From 801ddcad10201b150f769c7e33a33ab7e88c5d43 Mon Sep 17 00:00:00 2001 From: devleejb Date: Mon, 12 Aug 2024 09:29:23 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair@b8b14006c1ed7d80584d21ffbc554420e9521dfd=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-OF-TFpq8.js => index-H0F36rkQ.js} | 4 ++-- index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename assets/{index-OF-TFpq8.js => index-H0F36rkQ.js} (99%) diff --git a/assets/index-OF-TFpq8.js b/assets/index-H0F36rkQ.js similarity index 99% rename from assets/index-OF-TFpq8.js rename to assets/index-H0F36rkQ.js index 5dbc6d1d..96c9d01c 100644 --- a/assets/index-OF-TFpq8.js +++ b/assets/index-H0F36rkQ.js @@ -1,4 +1,4 @@ -var Owe=Object.defineProperty;var Swe=(e,t,n)=>t in e?Owe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ewe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $s=(e,t,n)=>(Swe(e,typeof t!="symbol"?t+"":t,n),n),WD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(WD(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(WD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var xC=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Le(e,t,r)}}),lr=(e,t,n)=>(WD(e,t,"access private method"),n);var vAt=Ewe((XAt,O_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6152988c-0316-473e-b545-d025fd972d79",e._sentryDebugIdIdentifier="sentry-dbid-6152988c-0316-473e-b545-d025fd972d79")}catch{}})();function Nie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wwe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wwe.SENTRY_RELEASE={id:"7df0fc02cf340475b125c75129a6618d0f06d19b"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xwe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Pie={exports:{}},_5={},Mie={exports:{}},Mr={};/** +var Owe=Object.defineProperty;var Swe=(e,t,n)=>t in e?Owe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ewe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $s=(e,t,n)=>(Swe(e,typeof t!="symbol"?t+"":t,n),n),WD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(WD(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(WD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var xC=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Le(e,t,r)}}),lr=(e,t,n)=>(WD(e,t,"access private method"),n);var vAt=Ewe((XAt,O_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="652d61bb-7100-4f50-a718-eee5504a6eac",e._sentryDebugIdIdentifier="sentry-dbid-652d61bb-7100-4f50-a718-eee5504a6eac")}catch{}})();function Nie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wwe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wwe.SENTRY_RELEASE={id:"b8b14006c1ed7d80584d21ffbc554420e9521dfd"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xwe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Pie={exports:{}},_5={},Mie={exports:{}},Mr={};/** * @license React * react.production.min.js * @@ -626,6 +626,6 @@ Event: ${ym(e)}. Url: ${k5(e)}`),!0)}function gTt(e,t){return e.type||!t||!t.length?!1:OTt(e).some(n=>ck(n,t))}function bTt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ck(n,t):!1}function yTt(e,t){if(!t||!t.length)return!1;const n=k5(e);return n?ck(n,t):!1}function vTt(e,t){if(!t||!t.length)return!0;const n=k5(e);return n?ck(n,t):!0}function OTt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),zn&&t.length===0&&Pt.error(`Could not extract message for event ${ym(e)}`),t}function STt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ETt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function k5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ETt(t):null}catch{return zn&&Pt.error(`Cannot extract url for event ${ym(e)}`),null}}let oie;const Eve="FunctionToString",lie=new WeakMap,wTt=()=>({name:Eve,setupOnce(){oie=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=QQ(this),n=lie.has(eo())&&t!==void 0?t:this;return oie.apply(n,e)}}catch{}},setup(e){lie.set(e,!0)}}),wve=wTt;L0(Eve,wve);const oa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,si=oi;function xTt(){si&&si.document?si.document.addEventListener("visibilitychange",()=>{const e=cS();if(si.document.hidden&&e){const t="cancelled",{op:n,status:r}=Zo(e);oa&&Pt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):oa&&Pt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const eq=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},TTt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,kTt=()=>{const e=si.performance.timing,t=si.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},xve=()=>si.__WEB_VITALS_POLYFILL__?si.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||kTt()):si.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Tve=()=>{const e=xve();return e&&e.activationStart||0},tq=(e,t)=>{const n=xve();let r="navigate";return n&&(si.document.prerendering||Tve()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:TTt(),navigationType:r}},k6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},C6=(e,t)=>{const n=r=>{(r.type==="pagehide"||si.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},CTt=e=>{const t=tq("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=k6("layout-shift",a);if(s){n=eq(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return C6(o),o}};let p_=-1;const ATt=()=>si.document.visibilityState==="hidden"&&!si.document.prerendering?0:1/0,_Tt=()=>{C6(({timeStamp:e})=>{p_=e},!0)},nq=()=>(p_<0&&(p_=ATt(),_Tt()),{get firstHiddenTime(){return p_}}),RTt=e=>{const t=nq(),n=tq("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=k6("first-input",a);r=eq(e,n),s&&C6(()=>{a(s.takeRecords()),s.disconnect()},!0)},uie={},ITt=e=>{const t=nq(),n=tq("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-Tve(),0);l{uie[n.id]||(i(a.takeRecords()),a.disconnect(),uie[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),C6(s,!0),s}},cw={},C5={};let kve,Cve,Ave;function DTt(e,t=!1){return iq("cls",e,MTt,kve,t)}function NTt(e,t=!1){return iq("lcp",e,$Tt,Ave,t)}function PTt(e){return iq("fid",e,LTt,Cve)}function rq(e,t){return _ve(e,t),C5[e]||(FTt(e),C5[e]=!0),Rve(e,t)}function A6(e,t){const n=cw[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){oa&&Pt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${bp(r)} -Error:`,i)}}function MTt(){return CTt(e=>{A6("cls",{metric:e}),kve=e})}function LTt(){return RTt(e=>{A6("fid",{metric:e}),Cve=e})}function $Tt(){return ITt(e=>{A6("lcp",{metric:e}),Ave=e})}function iq(e,t,n,r,i=!1){_ve(e,t);let a;return C5[e]||(a=n(),C5[e]=!0),r&&t({metric:r}),Rve(e,t,i?a:void 0)}function FTt(e){const t={};e==="event"&&(t.durationThreshold=0),k6(e,n=>{A6(e,{entries:n})},t)}function _ve(e,t){cw[e]=cw[e]||[],cw[e].push(t)}function Rve(e,t,n){return()=>{n&&n();const r=cw[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function A7(e){return typeof e=="number"&&isFinite(e)}function vO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const BTt=2147483647;function rs(e){return e/1e3}function Ive(){return si&&si.addEventListener&&si.performance}let cie=0,Ra={},df,dw;function UTt(){const e=Ive();if(e&&Gf){e.mark&&si.performance.mark("sentry-tracing-init");const t=WTt(),n=HTt(),r=VTt();return()=>{t(),n(),r()}}return()=>{}}function zTt(){rq("longtask",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;const r=rs(Gf+t.startTime),i=rs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function jTt(){rq("event",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;if(t.name==="click"){const r=rs(Gf+t.startTime),i=rs(t.duration),a={description:Ix(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=Lye(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function HTt(){return DTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding CLS"),Ra.cls={value:e.value,unit:""},dw=t)},!0)}function VTt(){return NTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding LCP"),Ra.lcp={value:e.value,unit:"millisecond"},df=t)},!0)}function WTt(){return PTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=rs(Gf),r=rs(t.startTime);oa&&Pt.log("[Measurements] Adding FID"),Ra.fid={value:e.value,unit:"millisecond"},Ra["mark.fid"]={value:n+r,unit:"second"}})}function QTt(e){const t=Ive();if(!t||!si.performance.getEntries||!Gf)return;oa&&Pt.log("[Tracing] Adding & adjusting spans using Performance API");const n=rs(Gf),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=Zo(e);if(r.slice(cie).forEach(l=>{const u=rs(l.startTime),c=rs(l.duration);if(!(e.op==="navigation"&&o&&n+u{if(!Ra[u]||!o||n>=o)return;const c=Ra[u].value,f=n+rs(c),h=Math.abs((f-o)*1e3),g=h-c;oa&&Pt.log(`[Measurements] Normalized ${u} from ${c} to ${h} (${g})`),Ra[u].value=h});const l=Ra["mark.fid"];l&&Ra.fid&&(vO(e,{description:"first input delay",endTimestamp:l.value+rs(Ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ra["mark.fid"]),"fcp"in Ra||delete Ra.cls,Object.keys(Ra).forEach(u=>{jxt(u,Ra[u].value,Ra[u].unit)}),KTt(e)}df=void 0,dw=void 0,Ra={}}function qTt(e,t,n,r,i){const a=i+n,s=a+r;return vO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function GTt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{u4(e,t,r,n)}),u4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),u4(e,t,"fetch",n,"cache","domainLookupStart"),u4(e,t,"domainLookup",n,"DNS"),YTt(e,t,n)}function u4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rs(o),endTimestamp:r+rs(s)})}function YTt(e,t,n){t.responseEnd&&(vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rs(t.requestStart),endTimestamp:n+rs(t.responseEnd)}),vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rs(t.responseStart),endTimestamp:n+rs(t.responseEnd)}))}function ZTt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=f_(n),o={};_7(o,t,"transferSize","http.response_transfer_size"),_7(o,t,"encodedBodySize","http.response_content_length"),_7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(si.location.origin);const l=a+r,u=l+i;vO(e,{description:n.replace(si.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function XTt(e){const t=si.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),A7(n.rtt)&&(Ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),A7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),A7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function KTt(e){df&&(oa&&Pt.log("[Measurements] Adding LCP Data"),df.element&&e.setTag("lcp.element",Ix(df.element)),df.id&&e.setTag("lcp.id",df.id),df.url&&e.setTag("lcp.url",df.url.trim().slice(0,200)),e.setTag("lcp.size",df.size)),dw&&dw.sources&&(oa&&Pt.log("[Measurements] Adding CLS Data"),dw.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Ix(t.node))))}function _7(e,t,n,r){const i=t[n];i!=null&&i0&&h.setAttribute("http.response_content_length",b)}}else e.error&&h.setStatus("internal_error");h.end(),delete r[f]}return}const s=Ap(),o=eo(),{method:l,url:u}=e.fetchData,c=a?pve({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[Qy]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&o){const f=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=tkt(f,o,s,h,c)}return c}function tkt(e,t,n,r,i){const a=i||n.getSpan(),s=Q1(),{traceId:o,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},f=a?E6(a):YQ(o,l,u),h=Kye(c||(a?Px(a):x6(o,t,n))),g=r.headers||(typeof Request<"u"&&gp(e,Request)?e.headers:void 0);if(g)if(typeof Headers<"u"&&gp(g,Headers)){const b=new Headers(g);return b.append("sentry-trace",f),h&&b.append(N9,h),b}else if(Array.isArray(g)){const b=[...g,["sentry-trace",f]];return h&&b.push([N9,h]),b}else{const b="baggage"in g?g.baggage:void 0,S=[];return Array.isArray(b)?S.push(...b):b&&S.push(b),h&&S.push(h),{...g,"sentry-trace":f,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const F9=["localhost",/^\/(?!\/)/],B9={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:F9,tracePropagationTargets:F9};function nkt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:B9.traceFetch,traceXHR:B9.traceXHR,...e},o=typeof a=="function"?a:c=>!0,l=c=>skt(c,r||i),u={};t&&Wye(c=>{const f=ekt(c,o,l,u);s&&f&&die(f)}),n&&Gye(c=>{const f=okt(c,o,l,u);s&&f&&die(f)})}function rkt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function die(e){const{url:t}=Zo(e).data||{};if(!t||typeof t!="string")return;const n=rq("resource",({entries:r})=>{r.forEach(i=>{rkt(i)&&i.name.endsWith(t)&&(akt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function ikt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function sf(e=0){return((Gf||performance.timeOrigin)+e)/1e3}function akt(e){const{name:t,version:n}=ikt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Gf?[...r,["http.request.redirect_start",sf(e.redirectStart)],["http.request.fetch_start",sf(e.fetchStart)],["http.request.domain_lookup_start",sf(e.domainLookupStart)],["http.request.domain_lookup_end",sf(e.domainLookupEnd)],["http.request.connect_start",sf(e.connectStart)],["http.request.secure_connection_start",sf(e.secureConnectionStart)],["http.request.connection_end",sf(e.connectEnd)],["http.request.request_start",sf(e.requestStart)],["http.request.response_start",sf(e.responseStart)],["http.request.response_end",sf(e.responseEnd)]]:r}function skt(e,t){return ck(e,t||F9)}function okt(e,t,n,r){const i=e.xhr,a=i&&i[Vy];if(!T6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const f=i.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(KQ(h,a.status_code),h.end(),delete r[f]);return}const o=Ap(),l=Q1(),u=s?pve({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Qy]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=eo();if(i.setRequestHeader&&n(a.url)&&c){const{traceId:f,spanId:h,sampled:g,dsc:b}={...l.getPropagationContext(),...o.getPropagationContext()},S=u?E6(u):YQ(f,h,g),w=Kye(b||(u?Px(u):x6(f,c,o)));lkt(i,S,w)}return u}function lkt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(N9,n)}catch{}}function ukt(e,t=!0,n=!0){if(!si||!si.location){oa&&Pt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=si.location.href,i;t&&(i=e({name:si.location.pathname,startTimestamp:Gf?Gf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&qQ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(oa&&Pt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:si.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const ckt="BrowserTracing",dkt={...h_,markBackgroundTransactions:!0,routingInstrumentation:ukt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...B9};class fkt{constructor(t){this.name=ckt,this._hasSetTracePropagationTargets=!1,Bxt(),oa&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...dkt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=UTt(),this.options.enableLongTask&&zTt(),this.options._experiments.enableInteractions&&jTt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;oa&&this._hasSetTracePropagationTargets&&S&&Pt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(E=>{const x=this._createRouteTransaction(E);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,E,n),x},l,o),u&&xTt(),b.enableInteractions&&this._registerInteractionListener(),nkt({traceFetch:c,traceXHR:f,tracePropagationTargets:w,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?fie("sentry-trace"):"",b=o?fie("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=Wwt(g,b);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=hkt(c),c.sampled===!1&&oa&&Pt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),oa&&Pt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:f}=si,h=nie(n,c,i,a,!0,{location:f},s,o);return o&&(si.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(g=>{this._collectWebVitals(),QTt(g)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=cS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=si,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[wv]:this._latestRouteSource||"url"}};t=nie(l,c,r,i,!0,{location:u},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function fie(e){const t=K2t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function hkt(e){const t=e.attributes&&e.attributes[wv],n=e.data&&e.data[wv],r=e.metadata&&e.metadata.source;return t||n||r}const ci=oi;let U9=0;function Dve(){return U9>0}function pkt(){U9++,setTimeout(()=>{U9--})}function OO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(QQ(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>OO(s,t));return e.apply(this,a)}catch(a){throw pkt(),Oxt(s=>{s.addEventProcessor(o=>(t.mechanism&&(k9(o,void 0,void 0),Nx(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),vxt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Fye(r,e),Dx(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Nve(e,t){const n=aq(e,t),r={type:t&&t.name,value:ykt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function mkt(e,t,n,r){const i=eo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:y6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Skt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Yye(t,a)}};if(n){const o=aq(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function R7(e,t){return{exception:{values:[Nve(e,t)]}}}function aq(e,t){const n=t.stacktrace||t.stack||"",r=bkt(t);try{return e(n,r)}catch{}return[]}const gkt=/Minified React error #\d+;/i;function bkt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(gkt.test(e.message))return 1}return 0}function ykt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function vkt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=sq(e,t,i,r);return Nx(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),yO(a)}function Okt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=z9(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),yO(s)}function sq(e,t,n,r,i){let a;if(jQ(t)&&t.error)return R7(e,t.error);if(Ire(t)||j2t(t)){const s=t;if("stack"in t)a=R7(e,t);else{const o=s.name||(Ire(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=z9(e,l,n,r),k9(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Dye(t)?R7(e,t):bO(t)||y6(t)?(a=mkt(e,t,n,i),Nx(a,{synthetic:!0}),a):(a=z9(e,t,n,r),k9(a,`${t}`,void 0),Nx(a,{synthetic:!0}),a)}function z9(e,t,n,r){const i={};if(r&&n){const a=aq(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(HQ(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Skt(e,{isUnhandledRejection:t}){const n=owt(e),r=t?"promise rejection":"exception";return jQ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:y6(e)?`Event \`${Ekt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ekt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function wkt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:dk(r)}},a=xkt(e);return uS(i,[a])}function xkt(e){return[{type:"user_report"},e]}class Tkt extends iTt{constructor(t){const n=ci.SENTRY_SDK_SOURCE||_wt();vve(t,"browser",["browser"],n),super(t),t.sendClientReports&&ci.document&&ci.document.addEventListener("visibilitychange",()=>{ci.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return vkt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Okt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Qh&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=wkt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Qh&&Pt.log("No outcomes to send");return}if(!this._dsn){Qh&&Pt.log("No dsn provided, will not send outcomes");return}Qh&&Pt.log("Sending outcomes:",t);const n=Kwt(t,this._options.tunnel&&dk(this._dsn));this._sendEnvelope(n)}}let y2;function kkt(){if(y2)return y2;if(R9(ci.fetch))return y2=ci.fetch.bind(ci);const e=ci.document;let t=ci.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Qh&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return y2=t.bind(ci)}function Ckt(){y2=void 0}function Akt(e,t=kkt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Ckt(),n-=s,r--,GQ(l)}}return yve(e,i)}const _kt=4;function Rkt(e){function t(n){return new pu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===_kt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return yve(e,t)}const _6="?",Ikt=30,Dkt=40,Nkt=50;function oq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Pkt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mkt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lkt=e=>{const t=Pkt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Mkt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Pve(t[1]||_6,t[2]);return oq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},$kt=[Ikt,Lkt],Fkt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bkt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ukt=e=>{const t=Fkt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Bkt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||_6;return[i,r]=Pve(i,r),oq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},zkt=[Nkt,Ukt],jkt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hkt=e=>{const t=jkt.exec(e);return t?oq(t[2],t[1]||_6,+t[3],t[4]?+t[4]:void 0):void 0},Vkt=[Dkt,Hkt],Wkt=[$kt,zkt,Vkt],Qkt=zye(...Wkt),Pve=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:_6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},c4=1024,Mve="Breadcrumbs",qkt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Mve,setupOnce(){},setup(n){t.console&&dwt(Zkt(n)),t.dom&&pwt(Ykt(n,t.dom)),t.xhr&&Gye(Xkt(n)),t.fetch&&Wye(Kkt(n)),t.history&&qQ(Jkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Gkt(n))}}},Lve=qkt;L0(Mve,Lve);function Gkt(e){return function(n){eo()===e&&T1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ym(n)},{event:n})}}function Ykt(e,t){return function(r){if(eo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>c4&&(Qh&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${c4}, but a value of ${o} was configured. Sentry will use ${c4} instead.`),o=c4),typeof s=="string"&&(s=[s]);try{const u=r.event,c=eCt(u)?u.target:u;i=Ix(c,{keyAttrs:s,maxStringLength:o}),a=Lye(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),T1(l,{event:r.event,name:r.name,global:r.global})}}function Zkt(e){return function(n){if(eo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:$wt(n.level),message:Dre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Dre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;T1(r,{input:n.args,level:n.level})}}function Xkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Vy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};T1({category:"xhr",data:c,type:"http"},f)}}function Kkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:s,type:"http"},o)}}}function Jkt(e){return function(n){if(eo()!==e)return;let r=n.from,i=n.to;const a=f_(ci.location.href);let s=r?f_(r):void 0;const o=f_(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),T1({category:"navigation",data:{from:r,to:i}})}}function eCt(e){return!!e&&!!e.target}const $ve="Dedupe",tCt=()=>{let e;return{name:$ve,setupOnce(){},processEvent(t){if(t.type)return t;try{if(nCt(t,e))return Qh&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Fve=tCt;L0($ve,Fve);function nCt(e,t){return t?!!(rCt(e,t)||iCt(e,t)):!1}function rCt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Uve(e,t)||!Bve(e,t))}function iCt(e,t){const n=hie(t),r=hie(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Uve(e,t)||!Bve(e,t))}function Bve(e,t){let n=pie(e),r=pie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:zve,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(sCt(n),mie("onerror")),t.onunhandledrejection&&(oCt(n),mie("onunhandledrejection"))}}},jve=aCt;L0(zve,jve);function sCt(e){Qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Wf(i)?cCt(i,a,s,o):Hve(sq(n,l||i,void 0,r,!1),a,s,o);u.level="error",ive(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function oCt(e){qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const i=lCt(t),a=VQ(i)?uCt(i):sq(n,i,void 0,r,!0);a.level="error",ive(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function lCt(e){if(VQ(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function uCt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function cCt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=jQ(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Hve({exception:{values:[{type:s,value:a}]}},t,n,r)}function Hve(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Wf(t)&&t.length>0?t:X2t();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:c}),e}function mie(e){Qh&&Pt.log(`Global Handler attached: ${e}`)}function Vve(){const e=eo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Wve="HttpContext",dCt=()=>({name:Wve,setupOnce(){},preprocessEvent(e){if(!ci.navigator&&!ci.location&&!ci.document)return;const t=e.request&&e.request.url||ci.location&&ci.location.href,{referrer:n}=ci.document||{},{userAgent:r}=ci.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Qve=dCt;L0(Wve,Qve);const fCt="cause",hCt=5,qve="LinkedErrors",pCt=(e={})=>{const t=e.limit||hCt,n=e.key||fCt;return{name:qve,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();q2t(Nve,s.stackParser,s.maxValueLength,n,t,r,i)}}},Gve=pCt;L0(qve,Gve);const mCt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Yve="TryCatch",gCt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Yve,setupOnce(){t.setTimeout&&Gs(ci,"setTimeout",gie),t.setInterval&&Gs(ci,"setInterval",gie),t.requestAnimationFrame&&Gs(ci,"requestAnimationFrame",bCt),t.XMLHttpRequest&&"XMLHttpRequest"in ci&&Gs(XMLHttpRequest.prototype,"send",yCt);const n=t.eventTarget;n&&(Array.isArray(n)?n:mCt).forEach(vCt)}}},Zve=gCt;L0(Yve,Zve);function gie(e){return function(...t){const n=t[0];return t[0]=OO(n,{mechanism:{data:{function:bp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function bCt(e){return function(t){return e.apply(this,[OO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:bp(e)},handled:!1,type:"instrument"}})])}}function yCt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gs(n,i,function(a){const s={mechanism:{data:{function:i,handler:bp(a)},handled:!1,type:"instrument"}},o=QQ(a);return o&&(s.mechanism.data.handler=bp(o)),OO(a,s)})}),e.apply(this,t)}}function vCt(e){const t=ci,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=OO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,OO(a,{mechanism:{data:{function:"addEventListener",handler:bp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Gs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const OCt=[Sve(),wve(),Zve(),Lve(),jve(),Gve(),Fve(),Qve()];function SCt(e){return[...OCt]}function ECt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=SCt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ci.SENTRY_RELEASE&&ci.SENTRY_RELEASE.id&&(e.release=ci.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:uwt(e.stackParser||Qkt),integrations:Kxt(e),transport:e.transport||(Vye()?Akt:Rkt)};oTt(Tkt,t),e.autoSessionTracking&&wCt()}function wCt(){if(typeof ci.document>"u"){Qh&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Yre({ignoreDuration:!0}),Zre(),qQ(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yre({ignoreDuration:!0}),Zre())})}function xCt(e){const t={...e};vve(t,"react"),ECt(t)}const TCt={"routing.instrumentation":"react-router-v6"};function kCt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ci&&ci.location&&ci.location.pathname;o&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:TCt,metadata:{source:"url"}})}}const CCt=()=>["settings"],ACt=()=>{const e=Pu(),t=Qr(MI),n=MO({queryKey:CCt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await yr.get("/settings")).data,staleTime:1e3*60*60*24});return N.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(Out(r.yorkieIntelligence)),e(Sut(r.fileUpload))},[e,n.data,n.isSuccess]),n},_Ct=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===404},RCt=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===500};xCt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new fkt({routingInstrumentation:kCt()})],tracesSampleRate:1});const ICt=d$e(F2t);yr.defaults.baseURL="https://codepair-api.yorkie.dev";function DCt(){return ACt(),null}function NCt(){const e=Qr(jF),t=RO("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const a=t?"dark":"light";return rF({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=z2t(),i=N.useMemo(()=>new nze({queryCache:new Kue({onError:a=>{_Ct(a)||RCt(a)?window.location.href="/404":r(a)}}),defaultOptions:{mutations:{onError:r}}}),[r]);return _.jsx(oze,{client:i,children:_.jsx(U2t,{children:_.jsxs(V4e,{theme:n,children:[_.jsx(P6e,{}),_.jsx(DCt,{}),_.jsx(Qa,{minHeight:"100vh",children:_.jsx(O$e,{router:ICt})})]})})})}var lq={},uq={};uq.__esModule=!0;uq.default=LCt;function m_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m_=function(n){return typeof n}:m_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},m_(e)}function I7(){}var PCt={getItem:I7,setItem:I7,removeItem:I7};function MCt(e){if((typeof self>"u"?"undefined":m_(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function LCt(e){var t="".concat(e,"Storage");return MCt(t)?self[t]:PCt}lq.__esModule=!0;lq.default=BCt;var $Ct=FCt(uq);function FCt(e){return e&&e.__esModule?e:{default:e}}function BCt(e){var t=(0,$Ct.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var Xve=void 0,UCt=zCt(lq);function zCt(e){return e&&e.__esModule?e:{default:e}}var jCt=(0,UCt.default)("local");Xve=jCt;var cq="persist:",Kve="persist/FLUSH",dq="persist/REHYDRATE",Jve="persist/PAUSE",eOe="persist/PERSIST",tOe="persist/PURGE",nOe="persist/REGISTER",HCt=-1;function g_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g_=function(n){return typeof n}:g_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g_(e)}function bie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function VCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tAt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var nAt=5e3;function rAt(e,t){var n=e.version!==void 0?e.version:HCt;e.debug;var r=e.stateReconciler===void 0?QCt:e.stateReconciler,i=e.getStoredState||YCt,a=e.timeout!==void 0?e.timeout:nAt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(c,f){var h=c||{},g=h._persist,b=eAt(h,["_persist"]),S=b;if(f.type===eOe){var w=!1,E=function(B,L){w||(f.rehydrate(e.key,B,L),w=!0)};if(a&&setTimeout(function(){!w&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=qCt(e)),g)return Ih({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var B=e.migrate||function(L,F){return Promise.resolve(L)};B(D,n).then(function(L){E(L)},function(L){E(void 0,L)})},function(D){E(void 0,D)}),Ih({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===tOe)return o=!0,f.result(XCt(e)),Ih({},t(S,f),{_persist:g});if(f.type===Kve)return f.result(s&&s.flush()),Ih({},t(S,f),{_persist:g});if(f.type===Jve)l=!0;else if(f.type===dq){if(o)return Ih({},S,{_persist:Ih({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,C=r!==!1&&k!==void 0?r(k,c,x,e):x,I=Ih({},C,{_persist:Ih({},g,{rehydrated:!0})});return u(I)}}}if(!g)return t(c,f);var A=t(S,f);return A===S?c:u(Ih({},A,{_persist:g}))}}function vie(e){return sAt(e)||aAt(e)||iAt()}function iAt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aAt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sAt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:rOe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case nOe:return j9({},t,{registry:[].concat(vie(t.registry),[n.key])});case dq:var r=t.registry.indexOf(n.key),i=vie(t.registry);return i.splice(r,1),j9({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function uAt(e,t,n){var r=n||!1,i=$F(lAt,rOe,t&&t.enhancer?t.enhancer:void 0),a=function(u){i.dispatch({type:nOe,key:u})},s=function(u,c,f){var h={type:dq,payload:c,err:f,key:u};e.dispatch(h),i.dispatch(h),r&&o.getState().bootstrapped&&(r(),r=!1)},o=j9({},i,{purge:function(){var u=[];return e.dispatch({type:tOe,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Kve,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:Jve})},persist:function(){e.dispatch({type:eOe,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const cAt=Xle({auth:aKe,config:xFe,user:VBe,editor:hUe,workspace:mUe,document:zUe,setting:Eut}),dAt={key:"root",storage:Xve,whitelist:["auth","config"]},fAt=rAt(dAt,cAt),iOe=rFe({reducer:fAt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function b_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b_=function(n){return typeof n}:b_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},b_(e)}function hAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sie(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(lOe);var uOe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=o||"";return l&&(c=n(o)),u&&(c=a(c)),c}})(uOe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(lOe),n=s(uOe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function o(Q,H){if(Q==null)return{};var J=l(Q,H),K,X;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(X=0;X=0)&&Object.prototype.propertyIsEnumerable.call(Q,K)&&(J[K]=Q[K])}return J}function l(Q,H){if(Q==null)return{};var J={},K=Object.keys(Q),X,te;for(te=0;te=0)&&(J[X]=Q[X]);return J}function u(Q){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},u(Q)}function c(Q){return g(Q)||h(Q)||x(Q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +Error:`,i)}}function MTt(){return CTt(e=>{A6("cls",{metric:e}),kve=e})}function LTt(){return RTt(e=>{A6("fid",{metric:e}),Cve=e})}function $Tt(){return ITt(e=>{A6("lcp",{metric:e}),Ave=e})}function iq(e,t,n,r,i=!1){_ve(e,t);let a;return C5[e]||(a=n(),C5[e]=!0),r&&t({metric:r}),Rve(e,t,i?a:void 0)}function FTt(e){const t={};e==="event"&&(t.durationThreshold=0),k6(e,n=>{A6(e,{entries:n})},t)}function _ve(e,t){cw[e]=cw[e]||[],cw[e].push(t)}function Rve(e,t,n){return()=>{n&&n();const r=cw[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function A7(e){return typeof e=="number"&&isFinite(e)}function vO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const BTt=2147483647;function rs(e){return e/1e3}function Ive(){return si&&si.addEventListener&&si.performance}let cie=0,Ra={},df,dw;function UTt(){const e=Ive();if(e&&Gf){e.mark&&si.performance.mark("sentry-tracing-init");const t=WTt(),n=HTt(),r=VTt();return()=>{t(),n(),r()}}return()=>{}}function zTt(){rq("longtask",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;const r=rs(Gf+t.startTime),i=rs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function jTt(){rq("event",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;if(t.name==="click"){const r=rs(Gf+t.startTime),i=rs(t.duration),a={description:Ix(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=Lye(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function HTt(){return DTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding CLS"),Ra.cls={value:e.value,unit:""},dw=t)},!0)}function VTt(){return NTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding LCP"),Ra.lcp={value:e.value,unit:"millisecond"},df=t)},!0)}function WTt(){return PTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=rs(Gf),r=rs(t.startTime);oa&&Pt.log("[Measurements] Adding FID"),Ra.fid={value:e.value,unit:"millisecond"},Ra["mark.fid"]={value:n+r,unit:"second"}})}function QTt(e){const t=Ive();if(!t||!si.performance.getEntries||!Gf)return;oa&&Pt.log("[Tracing] Adding & adjusting spans using Performance API");const n=rs(Gf),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=Zo(e);if(r.slice(cie).forEach(l=>{const u=rs(l.startTime),c=rs(l.duration);if(!(e.op==="navigation"&&o&&n+u{if(!Ra[u]||!o||n>=o)return;const c=Ra[u].value,f=n+rs(c),h=Math.abs((f-o)*1e3),g=h-c;oa&&Pt.log(`[Measurements] Normalized ${u} from ${c} to ${h} (${g})`),Ra[u].value=h});const l=Ra["mark.fid"];l&&Ra.fid&&(vO(e,{description:"first input delay",endTimestamp:l.value+rs(Ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ra["mark.fid"]),"fcp"in Ra||delete Ra.cls,Object.keys(Ra).forEach(u=>{jxt(u,Ra[u].value,Ra[u].unit)}),KTt(e)}df=void 0,dw=void 0,Ra={}}function qTt(e,t,n,r,i){const a=i+n,s=a+r;return vO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function GTt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{u4(e,t,r,n)}),u4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),u4(e,t,"fetch",n,"cache","domainLookupStart"),u4(e,t,"domainLookup",n,"DNS"),YTt(e,t,n)}function u4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rs(o),endTimestamp:r+rs(s)})}function YTt(e,t,n){t.responseEnd&&(vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rs(t.requestStart),endTimestamp:n+rs(t.responseEnd)}),vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rs(t.responseStart),endTimestamp:n+rs(t.responseEnd)}))}function ZTt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=f_(n),o={};_7(o,t,"transferSize","http.response_transfer_size"),_7(o,t,"encodedBodySize","http.response_content_length"),_7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(si.location.origin);const l=a+r,u=l+i;vO(e,{description:n.replace(si.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function XTt(e){const t=si.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),A7(n.rtt)&&(Ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),A7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),A7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function KTt(e){df&&(oa&&Pt.log("[Measurements] Adding LCP Data"),df.element&&e.setTag("lcp.element",Ix(df.element)),df.id&&e.setTag("lcp.id",df.id),df.url&&e.setTag("lcp.url",df.url.trim().slice(0,200)),e.setTag("lcp.size",df.size)),dw&&dw.sources&&(oa&&Pt.log("[Measurements] Adding CLS Data"),dw.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Ix(t.node))))}function _7(e,t,n,r){const i=t[n];i!=null&&i0&&h.setAttribute("http.response_content_length",b)}}else e.error&&h.setStatus("internal_error");h.end(),delete r[f]}return}const s=Ap(),o=eo(),{method:l,url:u}=e.fetchData,c=a?pve({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[Qy]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&o){const f=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=tkt(f,o,s,h,c)}return c}function tkt(e,t,n,r,i){const a=i||n.getSpan(),s=Q1(),{traceId:o,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},f=a?E6(a):YQ(o,l,u),h=Kye(c||(a?Px(a):x6(o,t,n))),g=r.headers||(typeof Request<"u"&&gp(e,Request)?e.headers:void 0);if(g)if(typeof Headers<"u"&&gp(g,Headers)){const b=new Headers(g);return b.append("sentry-trace",f),h&&b.append(N9,h),b}else if(Array.isArray(g)){const b=[...g,["sentry-trace",f]];return h&&b.push([N9,h]),b}else{const b="baggage"in g?g.baggage:void 0,S=[];return Array.isArray(b)?S.push(...b):b&&S.push(b),h&&S.push(h),{...g,"sentry-trace":f,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const F9=["localhost",/^\/(?!\/)/],B9={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:F9,tracePropagationTargets:F9};function nkt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:B9.traceFetch,traceXHR:B9.traceXHR,...e},o=typeof a=="function"?a:c=>!0,l=c=>skt(c,r||i),u={};t&&Wye(c=>{const f=ekt(c,o,l,u);s&&f&&die(f)}),n&&Gye(c=>{const f=okt(c,o,l,u);s&&f&&die(f)})}function rkt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function die(e){const{url:t}=Zo(e).data||{};if(!t||typeof t!="string")return;const n=rq("resource",({entries:r})=>{r.forEach(i=>{rkt(i)&&i.name.endsWith(t)&&(akt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function ikt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function sf(e=0){return((Gf||performance.timeOrigin)+e)/1e3}function akt(e){const{name:t,version:n}=ikt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Gf?[...r,["http.request.redirect_start",sf(e.redirectStart)],["http.request.fetch_start",sf(e.fetchStart)],["http.request.domain_lookup_start",sf(e.domainLookupStart)],["http.request.domain_lookup_end",sf(e.domainLookupEnd)],["http.request.connect_start",sf(e.connectStart)],["http.request.secure_connection_start",sf(e.secureConnectionStart)],["http.request.connection_end",sf(e.connectEnd)],["http.request.request_start",sf(e.requestStart)],["http.request.response_start",sf(e.responseStart)],["http.request.response_end",sf(e.responseEnd)]]:r}function skt(e,t){return ck(e,t||F9)}function okt(e,t,n,r){const i=e.xhr,a=i&&i[Vy];if(!T6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const f=i.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(KQ(h,a.status_code),h.end(),delete r[f]);return}const o=Ap(),l=Q1(),u=s?pve({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Qy]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=eo();if(i.setRequestHeader&&n(a.url)&&c){const{traceId:f,spanId:h,sampled:g,dsc:b}={...l.getPropagationContext(),...o.getPropagationContext()},S=u?E6(u):YQ(f,h,g),w=Kye(b||(u?Px(u):x6(f,c,o)));lkt(i,S,w)}return u}function lkt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(N9,n)}catch{}}function ukt(e,t=!0,n=!0){if(!si||!si.location){oa&&Pt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=si.location.href,i;t&&(i=e({name:si.location.pathname,startTimestamp:Gf?Gf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&qQ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(oa&&Pt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:si.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const ckt="BrowserTracing",dkt={...h_,markBackgroundTransactions:!0,routingInstrumentation:ukt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...B9};class fkt{constructor(t){this.name=ckt,this._hasSetTracePropagationTargets=!1,Bxt(),oa&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...dkt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=UTt(),this.options.enableLongTask&&zTt(),this.options._experiments.enableInteractions&&jTt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;oa&&this._hasSetTracePropagationTargets&&S&&Pt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(E=>{const x=this._createRouteTransaction(E);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,E,n),x},l,o),u&&xTt(),b.enableInteractions&&this._registerInteractionListener(),nkt({traceFetch:c,traceXHR:f,tracePropagationTargets:w,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?fie("sentry-trace"):"",b=o?fie("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=Wwt(g,b);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=hkt(c),c.sampled===!1&&oa&&Pt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),oa&&Pt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:f}=si,h=nie(n,c,i,a,!0,{location:f},s,o);return o&&(si.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(g=>{this._collectWebVitals(),QTt(g)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=cS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=si,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[wv]:this._latestRouteSource||"url"}};t=nie(l,c,r,i,!0,{location:u},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function fie(e){const t=K2t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function hkt(e){const t=e.attributes&&e.attributes[wv],n=e.data&&e.data[wv],r=e.metadata&&e.metadata.source;return t||n||r}const ci=oi;let U9=0;function Dve(){return U9>0}function pkt(){U9++,setTimeout(()=>{U9--})}function OO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(QQ(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>OO(s,t));return e.apply(this,a)}catch(a){throw pkt(),Oxt(s=>{s.addEventProcessor(o=>(t.mechanism&&(k9(o,void 0,void 0),Nx(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),vxt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Fye(r,e),Dx(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Nve(e,t){const n=aq(e,t),r={type:t&&t.name,value:ykt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function mkt(e,t,n,r){const i=eo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:y6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Skt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Yye(t,a)}};if(n){const o=aq(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function R7(e,t){return{exception:{values:[Nve(e,t)]}}}function aq(e,t){const n=t.stacktrace||t.stack||"",r=bkt(t);try{return e(n,r)}catch{}return[]}const gkt=/Minified React error #\d+;/i;function bkt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(gkt.test(e.message))return 1}return 0}function ykt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function vkt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=sq(e,t,i,r);return Nx(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),yO(a)}function Okt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=z9(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),yO(s)}function sq(e,t,n,r,i){let a;if(jQ(t)&&t.error)return R7(e,t.error);if(Ire(t)||j2t(t)){const s=t;if("stack"in t)a=R7(e,t);else{const o=s.name||(Ire(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=z9(e,l,n,r),k9(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Dye(t)?R7(e,t):bO(t)||y6(t)?(a=mkt(e,t,n,i),Nx(a,{synthetic:!0}),a):(a=z9(e,t,n,r),k9(a,`${t}`,void 0),Nx(a,{synthetic:!0}),a)}function z9(e,t,n,r){const i={};if(r&&n){const a=aq(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(HQ(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Skt(e,{isUnhandledRejection:t}){const n=owt(e),r=t?"promise rejection":"exception";return jQ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:y6(e)?`Event \`${Ekt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ekt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function wkt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:dk(r)}},a=xkt(e);return uS(i,[a])}function xkt(e){return[{type:"user_report"},e]}class Tkt extends iTt{constructor(t){const n=ci.SENTRY_SDK_SOURCE||_wt();vve(t,"browser",["browser"],n),super(t),t.sendClientReports&&ci.document&&ci.document.addEventListener("visibilitychange",()=>{ci.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return vkt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Okt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Qh&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=wkt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Qh&&Pt.log("No outcomes to send");return}if(!this._dsn){Qh&&Pt.log("No dsn provided, will not send outcomes");return}Qh&&Pt.log("Sending outcomes:",t);const n=Kwt(t,this._options.tunnel&&dk(this._dsn));this._sendEnvelope(n)}}let y2;function kkt(){if(y2)return y2;if(R9(ci.fetch))return y2=ci.fetch.bind(ci);const e=ci.document;let t=ci.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Qh&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return y2=t.bind(ci)}function Ckt(){y2=void 0}function Akt(e,t=kkt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Ckt(),n-=s,r--,GQ(l)}}return yve(e,i)}const _kt=4;function Rkt(e){function t(n){return new pu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===_kt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return yve(e,t)}const _6="?",Ikt=30,Dkt=40,Nkt=50;function oq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Pkt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mkt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lkt=e=>{const t=Pkt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Mkt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Pve(t[1]||_6,t[2]);return oq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},$kt=[Ikt,Lkt],Fkt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bkt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ukt=e=>{const t=Fkt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Bkt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||_6;return[i,r]=Pve(i,r),oq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},zkt=[Nkt,Ukt],jkt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hkt=e=>{const t=jkt.exec(e);return t?oq(t[2],t[1]||_6,+t[3],t[4]?+t[4]:void 0):void 0},Vkt=[Dkt,Hkt],Wkt=[$kt,zkt,Vkt],Qkt=zye(...Wkt),Pve=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:_6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},c4=1024,Mve="Breadcrumbs",qkt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Mve,setupOnce(){},setup(n){t.console&&dwt(Zkt(n)),t.dom&&pwt(Ykt(n,t.dom)),t.xhr&&Gye(Xkt(n)),t.fetch&&Wye(Kkt(n)),t.history&&qQ(Jkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Gkt(n))}}},Lve=qkt;L0(Mve,Lve);function Gkt(e){return function(n){eo()===e&&T1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ym(n)},{event:n})}}function Ykt(e,t){return function(r){if(eo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>c4&&(Qh&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${c4}, but a value of ${o} was configured. Sentry will use ${c4} instead.`),o=c4),typeof s=="string"&&(s=[s]);try{const u=r.event,c=eCt(u)?u.target:u;i=Ix(c,{keyAttrs:s,maxStringLength:o}),a=Lye(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),T1(l,{event:r.event,name:r.name,global:r.global})}}function Zkt(e){return function(n){if(eo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:$wt(n.level),message:Dre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Dre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;T1(r,{input:n.args,level:n.level})}}function Xkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Vy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};T1({category:"xhr",data:c,type:"http"},f)}}function Kkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:s,type:"http"},o)}}}function Jkt(e){return function(n){if(eo()!==e)return;let r=n.from,i=n.to;const a=f_(ci.location.href);let s=r?f_(r):void 0;const o=f_(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),T1({category:"navigation",data:{from:r,to:i}})}}function eCt(e){return!!e&&!!e.target}const $ve="Dedupe",tCt=()=>{let e;return{name:$ve,setupOnce(){},processEvent(t){if(t.type)return t;try{if(nCt(t,e))return Qh&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Fve=tCt;L0($ve,Fve);function nCt(e,t){return t?!!(rCt(e,t)||iCt(e,t)):!1}function rCt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Uve(e,t)||!Bve(e,t))}function iCt(e,t){const n=hie(t),r=hie(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Uve(e,t)||!Bve(e,t))}function Bve(e,t){let n=pie(e),r=pie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:zve,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(sCt(n),mie("onerror")),t.onunhandledrejection&&(oCt(n),mie("onunhandledrejection"))}}},jve=aCt;L0(zve,jve);function sCt(e){Qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Wf(i)?cCt(i,a,s,o):Hve(sq(n,l||i,void 0,r,!1),a,s,o);u.level="error",ive(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function oCt(e){qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const i=lCt(t),a=VQ(i)?uCt(i):sq(n,i,void 0,r,!0);a.level="error",ive(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function lCt(e){if(VQ(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function uCt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function cCt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=jQ(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Hve({exception:{values:[{type:s,value:a}]}},t,n,r)}function Hve(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Wf(t)&&t.length>0?t:X2t();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:c}),e}function mie(e){Qh&&Pt.log(`Global Handler attached: ${e}`)}function Vve(){const e=eo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Wve="HttpContext",dCt=()=>({name:Wve,setupOnce(){},preprocessEvent(e){if(!ci.navigator&&!ci.location&&!ci.document)return;const t=e.request&&e.request.url||ci.location&&ci.location.href,{referrer:n}=ci.document||{},{userAgent:r}=ci.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Qve=dCt;L0(Wve,Qve);const fCt="cause",hCt=5,qve="LinkedErrors",pCt=(e={})=>{const t=e.limit||hCt,n=e.key||fCt;return{name:qve,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();q2t(Nve,s.stackParser,s.maxValueLength,n,t,r,i)}}},Gve=pCt;L0(qve,Gve);const mCt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Yve="TryCatch",gCt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Yve,setupOnce(){t.setTimeout&&Gs(ci,"setTimeout",gie),t.setInterval&&Gs(ci,"setInterval",gie),t.requestAnimationFrame&&Gs(ci,"requestAnimationFrame",bCt),t.XMLHttpRequest&&"XMLHttpRequest"in ci&&Gs(XMLHttpRequest.prototype,"send",yCt);const n=t.eventTarget;n&&(Array.isArray(n)?n:mCt).forEach(vCt)}}},Zve=gCt;L0(Yve,Zve);function gie(e){return function(...t){const n=t[0];return t[0]=OO(n,{mechanism:{data:{function:bp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function bCt(e){return function(t){return e.apply(this,[OO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:bp(e)},handled:!1,type:"instrument"}})])}}function yCt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gs(n,i,function(a){const s={mechanism:{data:{function:i,handler:bp(a)},handled:!1,type:"instrument"}},o=QQ(a);return o&&(s.mechanism.data.handler=bp(o)),OO(a,s)})}),e.apply(this,t)}}function vCt(e){const t=ci,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=OO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,OO(a,{mechanism:{data:{function:"addEventListener",handler:bp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Gs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const OCt=[Sve(),wve(),Zve(),Lve(),jve(),Gve(),Fve(),Qve()];function SCt(e){return[...OCt]}function ECt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=SCt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ci.SENTRY_RELEASE&&ci.SENTRY_RELEASE.id&&(e.release=ci.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:uwt(e.stackParser||Qkt),integrations:Kxt(e),transport:e.transport||(Vye()?Akt:Rkt)};oTt(Tkt,t),e.autoSessionTracking&&wCt()}function wCt(){if(typeof ci.document>"u"){Qh&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Yre({ignoreDuration:!0}),Zre(),qQ(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yre({ignoreDuration:!0}),Zre())})}function xCt(e){const t={...e};vve(t,"react"),ECt(t)}const TCt={"routing.instrumentation":"react-router-v6"};function kCt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ci&&ci.location&&ci.location.pathname;o&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:TCt,metadata:{source:"url"}})}}const CCt=()=>["settings"],ACt=()=>{const e=Pu(),t=Qr(MI),n=MO({queryKey:CCt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await yr.get("/settings")).data,staleTime:1e3*60*60*24});return N.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(Out(r.yorkieIntelligence)),e(Sut(r.fileUpload))},[e,n.data,n.isSuccess]),n},_Ct=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===404},RCt=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===500};xCt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.0",integrations:[new fkt({routingInstrumentation:kCt()})],tracesSampleRate:1});const ICt=d$e(F2t);yr.defaults.baseURL="https://codepair-api.yorkie.dev";function DCt(){return ACt(),null}function NCt(){const e=Qr(jF),t=RO("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const a=t?"dark":"light";return rF({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=z2t(),i=N.useMemo(()=>new nze({queryCache:new Kue({onError:a=>{_Ct(a)||RCt(a)?window.location.href="/404":r(a)}}),defaultOptions:{mutations:{onError:r}}}),[r]);return _.jsx(oze,{client:i,children:_.jsx(U2t,{children:_.jsxs(V4e,{theme:n,children:[_.jsx(P6e,{}),_.jsx(DCt,{}),_.jsx(Qa,{minHeight:"100vh",children:_.jsx(O$e,{router:ICt})})]})})})}var lq={},uq={};uq.__esModule=!0;uq.default=LCt;function m_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m_=function(n){return typeof n}:m_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},m_(e)}function I7(){}var PCt={getItem:I7,setItem:I7,removeItem:I7};function MCt(e){if((typeof self>"u"?"undefined":m_(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function LCt(e){var t="".concat(e,"Storage");return MCt(t)?self[t]:PCt}lq.__esModule=!0;lq.default=BCt;var $Ct=FCt(uq);function FCt(e){return e&&e.__esModule?e:{default:e}}function BCt(e){var t=(0,$Ct.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var Xve=void 0,UCt=zCt(lq);function zCt(e){return e&&e.__esModule?e:{default:e}}var jCt=(0,UCt.default)("local");Xve=jCt;var cq="persist:",Kve="persist/FLUSH",dq="persist/REHYDRATE",Jve="persist/PAUSE",eOe="persist/PERSIST",tOe="persist/PURGE",nOe="persist/REGISTER",HCt=-1;function g_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g_=function(n){return typeof n}:g_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g_(e)}function bie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function VCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tAt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var nAt=5e3;function rAt(e,t){var n=e.version!==void 0?e.version:HCt;e.debug;var r=e.stateReconciler===void 0?QCt:e.stateReconciler,i=e.getStoredState||YCt,a=e.timeout!==void 0?e.timeout:nAt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(c,f){var h=c||{},g=h._persist,b=eAt(h,["_persist"]),S=b;if(f.type===eOe){var w=!1,E=function(B,L){w||(f.rehydrate(e.key,B,L),w=!0)};if(a&&setTimeout(function(){!w&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=qCt(e)),g)return Ih({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var B=e.migrate||function(L,F){return Promise.resolve(L)};B(D,n).then(function(L){E(L)},function(L){E(void 0,L)})},function(D){E(void 0,D)}),Ih({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===tOe)return o=!0,f.result(XCt(e)),Ih({},t(S,f),{_persist:g});if(f.type===Kve)return f.result(s&&s.flush()),Ih({},t(S,f),{_persist:g});if(f.type===Jve)l=!0;else if(f.type===dq){if(o)return Ih({},S,{_persist:Ih({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,C=r!==!1&&k!==void 0?r(k,c,x,e):x,I=Ih({},C,{_persist:Ih({},g,{rehydrated:!0})});return u(I)}}}if(!g)return t(c,f);var A=t(S,f);return A===S?c:u(Ih({},A,{_persist:g}))}}function vie(e){return sAt(e)||aAt(e)||iAt()}function iAt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aAt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sAt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:rOe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case nOe:return j9({},t,{registry:[].concat(vie(t.registry),[n.key])});case dq:var r=t.registry.indexOf(n.key),i=vie(t.registry);return i.splice(r,1),j9({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function uAt(e,t,n){var r=n||!1,i=$F(lAt,rOe,t&&t.enhancer?t.enhancer:void 0),a=function(u){i.dispatch({type:nOe,key:u})},s=function(u,c,f){var h={type:dq,payload:c,err:f,key:u};e.dispatch(h),i.dispatch(h),r&&o.getState().bootstrapped&&(r(),r=!1)},o=j9({},i,{purge:function(){var u=[];return e.dispatch({type:tOe,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Kve,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:Jve})},persist:function(){e.dispatch({type:eOe,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const cAt=Xle({auth:aKe,config:xFe,user:VBe,editor:hUe,workspace:mUe,document:zUe,setting:Eut}),dAt={key:"root",storage:Xve,whitelist:["auth","config"]},fAt=rAt(dAt,cAt),iOe=rFe({reducer:fAt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function b_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b_=function(n){return typeof n}:b_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},b_(e)}function hAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sie(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(lOe);var uOe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=o||"";return l&&(c=n(o)),u&&(c=a(c)),c}})(uOe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(lOe),n=s(uOe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function o(Q,H){if(Q==null)return{};var J=l(Q,H),K,X;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(X=0;X=0)&&Object.prototype.propertyIsEnumerable.call(Q,K)&&(J[K]=Q[K])}return J}function l(Q,H){if(Q==null)return{};var J={},K=Object.keys(Q),X,te;for(te=0;te=0)&&(J[X]=Q[X]);return J}function u(Q){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},u(Q)}function c(Q){return g(Q)||h(Q)||x(Q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(Q){if(typeof Symbol<"u"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}function g(Q){if(Array.isArray(Q))return k(Q)}function b(Q,H){var J=Object.keys(Q);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(Q);H&&(K=K.filter(function(X){return Object.getOwnPropertyDescriptor(Q,X).enumerable})),J.push.apply(J,K)}return J}function S(Q){for(var H=1;HQ.length)&&(H=Q.length);for(var J=0,K=new Array(H);J2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!H._hasLoadedGA){var te=document.createElement("script");te.async=!0,te.src="".concat(X,"?id=").concat(J),K&&te.setAttribute("nonce",K),document.body.appendChild(te),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},H._hasLoadedGA=!0}}),L(this,"_toGtagOptions",function(J){if(J){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},X=Object.entries(J).reduce(function(te,z){var Te=w(z,2),be=Te[0],ee=Te[1];return K[be]?te[K[be]]=ee:te[be]=ee,te},{});return X}}),L(this,"initialize",function(J){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw new Error("Require GA_MEASUREMENT_ID");var X=typeof J=="string"?[{trackingId:J}]:J;H._currentMeasurementId=X[0].trackingId;var te=K.gaOptions,z=K.gtagOptions,Te=K.nonce,be=K.testMode,ee=be===void 0?!1:be,ye=K.gtagUrl;if(H._testMode=ee,ee||H._loadGA(H._currentMeasurementId,Te,ye),H.isInitialized||(H._gtag("js",new Date),X.forEach(function(_e){var Ie=S(S(S({},H._toGtagOptions(S(S({},te),_e.gaOptions))),z),_e.gtagOptions);Object.keys(Ie).length?H._gtag("config",_e.trackingId,Ie):H._gtag("config",_e.trackingId)})),H.isInitialized=!0,!ee){var Oe=c(H._queueGtag);for(H._queueGtag=[],H._isQueuing=!1;Oe.length;){var ie=Oe.shift();H._gtag.apply(H,c(ie)),ie[0]==="get"&&(H._isQueuing=!0)}}}),L(this,"set",function(J){if(!J){console.warn("`fieldsObject` is required in .set()");return}if(u(J)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(J).length===0&&console.warn("empty `fieldsObject` given to .set()"),H._gaCommand("set",J)}),L(this,"_gaCommandSendEvent",function(J,K,X,te,z){H._gtag("event",K,S(S({event_category:J,event_label:X,value:te},z&&{non_interaction:z.nonInteraction}),H._toGtagOptions(z)))}),L(this,"_gaCommandSendEventParameters",function(){for(var J=arguments.length,K=new Array(J),X=0;X1?K-1:0),te=1;te - +