Files
e-tib.com/.next/static/chunks/0fb0262dbadeeecd.js
2026-05-07 14:00:03 +02:00

496 lines
512 KiB
JavaScript

;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="70641956-3a12-cbe6-0e2e-ee9184986bda")}catch(e){}}();
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,769117,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},667210,(e,t,r)=>{"use strict";function n(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},230868,(e,t,r)=>{"use strict";let n;function a(e){return(void 0===n&&"u">typeof window&&(n=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),n)?.createScriptURL(e)||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return a}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},598896,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return p},markAssetError:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(481258),e.r(667210);let i=e.r(230868),o=e.r(91266),s=e.r(954633),l=e.r(818127);function u(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let i=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:i}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):i}let c=Symbol("ASSET_LOAD_ERROR");function d(e){return Object.defineProperty(e,c,{})}function p(e){return e&&c in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}(),h=()=>(0,s.getDeploymentIdQueryOrEmptyString)();function m(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function g(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):m(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,d(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return g().then(r=>{if(!(t in r))throw d(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,l.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+h()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+h())}})}function y(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(d(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw d(e)})),t}return{whenEntrypoint:e=>u(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return u(r,a,()=>{let a;return m(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(i)),Promise.all(n.map(s))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,d(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>a?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let i=`
link[rel="prefetch"][href^="${t}"],
link[rel="preload"][href^="${t}"],
script[src^="${t}"]`;if(document.querySelector(i))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(d(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},863312,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return _}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),o=e.r(744066),s=e.r(452797),l=i._(e.r(910353)),u=o._(e.r(907358)),c=e.r(717441),d=e.r(994210),p=e.r(91266),f=new Map,h=new Set,m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:i,children:o="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,p=r||t;if(p&&h.has(p))return;if(f.has(t)){h.add(p),f.get(t).then(n,u);return}let m=()=>{a&&a(),h.add(p)},g=document.createElement("script"),_=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});i?(g.innerHTML=i.__html||"",m()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(g.src=t,f.set(t,_)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(g)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}):m(e)}function _(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:i="afterInteractive",onError:o,stylesheets:d,...f}=e,{updateScripts:g,scripts:_,getIsSsr:y,appDir:v,nonce:b}=(0,u.useContext)(c.HeadManagerContext);b=f.nonce||b;let S=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;S.current||(a&&e&&h.has(e)&&a(),S.current=!0)},[a,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!E.current){if("afterInteractive"===i)m(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}));E.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(g?(_[i]=(_[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:o,...f,nonce:b}]),g(_)):y&&y()?h.add(t||r):y&&!y()&&m({...e,nonce:b})),v){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:b,crossOrigin:f.crossOrigin}:{as:"script",nonce:b,crossOrigin:f.crossOrigin}),(0,s.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...f,id:t}])})`}});"afterInteractive"===i&&r&&l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:b,crossOrigin:f.crossOrigin}:{as:"script",nonce:b,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},644280,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return s},getSortedRoutes:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let i=n.slice(1,-1),o=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),o=!0),i.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,i),this.restSlugName=i,n="[...]"}else{if(o)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,i),this.slugName=i,n="[]"}}this.children.has(n)||this.children.set(n,new i),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function o(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function s(e,t){let r={},n=[];for(let a=0;a<e.length;a++){let i=t(e[a]);r[i]=a,n[a]=i}return o(n).map(t=>e[r[t]])}},782248,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=e.r(261308),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function o(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):a.test(e)}},260447,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(644280),o=e.r(782248)},841197,(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return n}})},796287,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let n=e.r(260447),a=e.r(841197);function i(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},194142,(e,t,r)=>{"use strict";function n(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},395293,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});let n=e.r(97872),a=e.r(801296);function i(e,t,r=!0){let o=new URL("u"<typeof window?"http://n":(0,n.getLocationOrigin)()),s=t?new URL(t,o):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):o,{pathname:l,searchParams:u,search:c,hash:d,href:p,origin:f}=new URL(e,s);if(f!==o.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:l,query:r?(0,a.searchParamsToUrlQuery)(u):void 0,search:c,hash:d,href:p.slice(f.length),slashes:void 0}}},963538,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@opentelemetry+api@1.9.1_react-dom@19.2.4_react@19.2.4__react@19.2.4_sass@1.98.0/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var a="",i=r+1;i<e.length;){var o=e.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===n){var s=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){l+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--s){i++;break}}else if("("===e[i]&&(s++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(s)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,o=t.delimiter,s=void 0===o?"/#?":o,l=[],u=0,c=0,d="",p=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var n=r[c],a=n.type,i=n.index;throw TypeError("Unexpected ".concat(a," at ").concat(i,", expected ").concat(e))},h=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var r=s[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(a(s),"]+?"):"(?:(?!".concat(a(r),")[^").concat(a(s),"])+?")};c<r.length;){var _=p("CHAR"),y=p("NAME"),v=p("PATTERN");if(y||v){var b=_||"";-1===i.indexOf(b)&&(d+=b,b=""),d&&(l.push(d),d=""),l.push({name:y||u++,prefix:b,suffix:"",pattern:v||g(b),modifier:p("MODIFIER")||""});continue}var S=_||p("ESCAPED_CHAR");if(S){d+=S;continue}if(d&&(l.push(d),d=""),p("OPEN")){var b=h(),E=p("NAME")||"",T=p("PATTERN")||"",w=h();f("CLOSE"),l.push({name:E||(T?u++:""),pattern:E&&!T?g(b):T,prefix:b,suffix:w,modifier:p("MODIFIER")||""});continue}f("END")}return l}function r(e,t){void 0===t&&(t={});var r=i(t),n=t.encode,a=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var i=e[n];if("string"==typeof i){r+=i;continue}var o=t?t[i.name]:void 0,u="?"===i.modifier||"*"===i.modifier,c="*"===i.modifier||"+"===i.modifier;if(Array.isArray(o)){if(!c)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===o.length){if(u)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var d=0;d<o.length;d++){var p=a(o[d],i);if(s&&!l[n].test(p))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix}continue}if("string"==typeof o||"number"==typeof o){var p=a(String(o),i);if(s&&!l[n].test(p))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix;continue}if(!u){var f=c?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(f))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,a=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],o=n.index,s=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):s[r.name]=a(n[e],r)}}(l);return{path:i,index:o,params:s}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function o(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,s=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,d=r.delimiter,p=r.endsWith,f="[".concat(a(void 0===p?"":p),"]|$"),h="[".concat(a(void 0===d?"/#?":d),"]"),m=void 0===s||s?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=a(c(_));else{var y=a(c(_.prefix)),v=a(c(_.suffix));if(_.pattern)if(t&&t.push(_),y||v)if("+"===_.modifier||"*"===_.modifier){var b="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(v).concat(y,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(b)}else m+="(?:".concat(y,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));m+="(".concat(_.pattern,")").concat(_.modifier)}else m+="(?:".concat(y).concat(v,")").concat(_.modifier)}}if(void 0===l||l)o||(m+="".concat(h,"?")),m+=r.endsWith?"(?=".concat(f,")"):"$";else{var S=e[e.length-1],E="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;o||(m+="(?:".concat(h,"(?=").concat(f,"))?")),E||(m+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(m,i(r))}function s(e,r,n){if(e instanceof RegExp){var a;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(e.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(e.source);return e}return Array.isArray(e)?(a=e.map(function(e){return s(e,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),i(n))):o(t(e,n),r,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,n){return r(t(e,n),n)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return n(s(e,r,t),r,t)},e.regexpToFunction=n,e.tokensToRegexp=o,e.pathToRegexp=s})(),t.exports=e})()},904948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return o},normalizeAdjacentParameters:function(){return s},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return u},stripParameterSeparators:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="_NEXTSEP_";function o(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function s(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function u(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function c(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${i}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=n;return t}},378919,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(963538),o=e.r(904948);function s(e,t,r){if("string"!=typeof e)return(0,i.pathToRegexp)(e,t,r);let n=(0,o.hasAdjacentParameterIssues)(e),a=n?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,i.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,o.normalizeAdjacentParameters)(e);return(0,i.pathToRegexp)(n,t,r)}catch(e){}throw a}}function l(e,t){let r=(0,o.hasAdjacentParameterIssues)(e),n=r?(0,o.normalizeAdjacentParameters)(e):e;try{let e=(0,i.compile)(n,t);if(r)return t=>(0,o.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,o.normalizeAdjacentParameters)(e),n=(0,i.compile)(r,t);return e=>(0,o.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function u(e,t){let r=(0,i.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,o.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,o.stripParameterSeparators)(r)}}},448512,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=e.r(97872),a=e.r(378919);function i({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},o={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?o[e]=t.split("/").map(e=>i(e)):o[e]=i(t))}return o})}},518521,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,a=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(a,"\\$&"):e}},470027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return a}});let n=e.r(198151);function a(e){let[t,r,a]=e,{layout:i,template:o}=a,{page:s}=a;s=t===n.DEFAULT_SEGMENT_KEY?a.defaultPage:s;let l=i?.[1]||o?.[1]||s?.[1];return{page:s,segment:t,modules:a,conventionPath:l,parallelRoutes:r}}},639801,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return o},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(261308);function o(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},223185,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return c},isNormalizedAppRoute:function(){return u},parseAppRoute:function(){return function e(t,r){let n,a,o,s=t.split("/").filter(Boolean),u=[];for(let c of s){let s=l(c);if(s){if(r&&("route-group"===s.type||"parallel-route"===s.type))throw Object.defineProperty(new i.InvariantError(`${t} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(u.push(s),s.interceptionMarker){let i=t.split(s.interceptionMarker);if(2!==i.length)throw Object.defineProperty(Error(`Invalid interception route: ${t}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});a=r?e(i[0],!0):e(i[0],!1),o=r?e(i[1],!0):e(i[1],!1),n=s.interceptionMarker}}}let c=u.filter(e=>"dynamic"===e.type);return{normalized:r,pathname:t,segments:u,dynamicSegments:c,interceptionMarker:n,interceptingRoute:a,interceptedRoute:o}}},parseAppRouteSegment:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(436120),o=e.r(639801),s=e.r(261308);function l(e){if(""===e)return null;let t=s.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,o.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function u(e){return e.normalized}function c(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}},237351,(e,t,r)=>{"use strict";function n(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return n}})},172051,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return i}});let n=e.r(436120),a=e.r(237351);function i(e,t,r,i,o){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let s=[];for(let e=r;e<i.segments.length;e++){let n=i.segments[e];if("static"===n.type){let i=n.name,o=(0,a.interceptionPrefixFromParamType)(t);o&&e===r&&o===n.interceptionMarker&&(i=i.replace(n.interceptionMarker,"")),s.push(i)}else{if(!o.hasOwnProperty(n.param.paramName)){if("optional-catchall"===n.param.paramType)break;return}let e=o[n.param.paramName];Array.isArray(e)?s.push(...e):s.push(e)}}if(s.length>0)return s;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<i.segments.length){let e=i.segments[r];if("dynamic"===e.type&&!o.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?o[e.param.paramName]:(0,a.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},429052,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return c},interpolateParallelRouteParams:function(){return u},parseMatchedParameter:function(){return f},parseParameter:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(436120),o=e.r(470027),s=e.r(223185),l=e.r(172051);function u(e,t,r,n){let a=structuredClone(t),u=[{tree:e,depth:0}],c=(0,s.parseAppRoute)(r,!0);for(;u.length>0;){let{tree:e,depth:t}=u.pop(),{segment:r,parallelRoutes:d}=(0,o.parseLoaderTree)(e),p=(0,s.parseAppRouteSegment)(r);if(p?.type==="dynamic"&&!a.hasOwnProperty(p.param.paramName)&&!n?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,l.resolveParamValue)(e,r,t,c,a);if(void 0!==n)a[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new i.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let f=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&f++,Object.values(d)))u.push({tree:e,depth:f})}return a}function c(e,t,r,n){let a=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!a||0===a.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r]};throw Object.defineProperty(new i.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:t,value:a,treeSegment:[t,Array.isArray(a)?a.join("/"):a,r],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?f(t[2]):f(e)}function f(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},465518,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(955973),o=e.r(261308),s=e.r(518521),l=e.r(895708),u=e.r(429052);function c(e,t,r){let n={},a=1,i=[];for(let c of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),l=c.match(u.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:o}=(0,u.parseMatchedParameter)(l[2]);n[t]={pos:a++,repeat:o,optional:r},i.push(`/${(0,s.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:o}=(0,u.parseMatchedParameter)(l[2]);n[e]={pos:a++,repeat:t,optional:o},r&&l[1]&&i.push(`/${(0,s.escapeStringRegexp)(l[1])}`);let c=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(c=c.substring(1)),i.push(c)}else i.push(`/${(0,s.escapeStringRegexp)(c)}`);t&&l&&l[3]&&i.push((0,s.escapeStringRegexp)(l[3]))}return{parameterizedRoute:i.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:a,groups:i}=c(e,t,r),o=a;return n||(o+="(?:/)?"),{re:RegExp(`^${o}$`),groups:i}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:a,backreferenceDuplicateKeys:i}){let o,{key:l,optional:c,repeat:d}=(0,u.parseMatchedParameter)(r),p=l.replace(/\W/g,"");a&&(p=`${a}${p}`);let f=!1;(0===p.length||p.length>30)&&(f=!0),isNaN(parseInt(p.slice(0,1)))||(f=!0),f&&(p=t());let h=p in n;a?n[p]=`${a}${l}`:n[p]=l;let m=e?(0,s.escapeStringRegexp)(e):"";return o=h&&i?`\\k<${p}>`:d?`(?<${p}>.+?)`:`(?<${p}>[^/]+?)`,{key:l,pattern:c?`(?:/${m}${o})?`:`/${m}${o}`,cleanedKey:p,optional:c,repeat:d}}function f(e,t,r,n,a,c={names:{},intercepted:{}}){let d,h=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],_=[];for(let d of(c=structuredClone(c),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=o.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),f=d.match(u.PARAMETER_PATTERN),y=l?f?.[1]:void 0;if(y&&f?.[2]?(e=t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,c.intercepted[f[2]]=y):e=f?.[2]&&c.intercepted[f[2]]?t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?i.NEXT_QUERY_PARAM_PREFIX:void 0,y&&f&&f[2]){let{key:t,pattern:r,cleanedKey:n,repeat:i,optional:o}=p({getSafeRouteKey:h,interceptionMarker:y,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a});g.push(r),_.push(`/${f[1]}:${c.names[t]??n}${i?o?"*":"+":""}`),c.names[t]??=n}else if(f&&f[2]){n&&f[1]&&(g.push(`/${(0,s.escapeStringRegexp)(f[1])}`),_.push(`/${f[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:o,optional:l}=p({getSafeRouteKey:h,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a}),u=r;n&&f[1]&&(u=u.substring(1)),g.push(u),_.push(`/:${c.names[t]??i}${o?l?"*":"+":""}`),c.names[t]??=i}else g.push(`/${(0,s.escapeStringRegexp)(d)}`),_.push(`/${d}`);r&&f&&f[3]&&(g.push((0,s.escapeStringRegexp)(f[3])),_.push(f[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:c}}function h(e,t){let r=f(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...d(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:a}=f(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${a}${n?"(?:(/.*)?)":""}$`}}},381616,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=(...e)=>{};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},554471,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return n}}),e.r(164934);let n=(e,...t)=>e;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},886170,(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return n}}),e.r(506985),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},489295,(e,t,r)=>{"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return n}})},806620,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});let n=e.r(448512),a=e.r(465518);function i(e,t,r){let i="",o=(0,a.getRouteRegex)(e),s=o.groups,l=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;i=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],a=`[${r?"...":""}${e}]`;return n&&(a=`${!t?"/":""}[${a}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(a,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},85996,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return f}});let n=e.r(801296),a=e.r(462307),i=e.r(489295),o=e.r(97872),s=e.r(164934),l=e.r(171064),u=e.r(260447),c=e.r(806620),d=e.r(465518),p=e.r(448512);function f(e,t,r){let f,h="string"==typeof t?t:(0,a.formatWithValidation)(t),m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,o.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);o&&(t=(0,a.formatWithValidation)({pathname:o,hash:e.hash,query:(0,i.omit)(r,s)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[o,t||o]:o}catch(e){return r?[h]:h}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},853939,(e,t,r)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return n}})},76491,(e,t,r)=>{"use strict";function n(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let a=r[n];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},237942,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return a}});let n=e.r(963538);function a(e,t){let r=[],a=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),i=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(a.source),a.flags):a,r);return(e,n)=>{if("string"!=typeof e)return!1;let a=i(e);if(!a)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete a.params[e.name];return{...n,...a.params}}}},54800,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});let n=e.r(801296),a=e.r(395293);function i(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:t.search,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},429901,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@opentelemetry+api@1.9.1_react-dom@19.2.4_react@19.2.4__react@19.2.4_sass@1.98.0/node_modules/next/dist/compiled/cookie/");var e,r,n,a,i={};i.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},i=t.split(n),o=(r||{}).decode||e,s=0;s<i.length;s++){var l=i[s],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),d=l.substr(++u,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==a[c]&&(a[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,o))}}return a},i.serialize=function(e,t,n){var i=n||{},o=i.encode||r;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!a.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(i.domain){if(!a.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},e=decodeURIComponent,r=encodeURIComponent,n=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=i})()},146782,(e,t,r)=>{"use strict";function n(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(429901);return n(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},611259,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return f},prepareDestination:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(518521),o=e.r(54800),s=e.r(261308),l=e.r(146782),u=e.r(378919);function c(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let a={},i=r=>{let n,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),n=e.headers[i];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[i];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(i)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!(!r.every(e=>i(e))||n.some(e=>i(e)))&&a}function p(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,u.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function f(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,i.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,o.parseUrl)(t),n=r.pathname;n&&(n=c(n));let a=r.href;a&&(a=c(a));let s=r.hostname;s&&(s=c(s));let l=r.hash;l&&(l=c(l));let u=r.search;u&&(u=c(u));let d=r.origin;return d&&(d=c(d)),{...r,pathname:n,hostname:s,href:a,hash:l,search:u,origin:d}}function h(e){let t,r,n=f(e),{hostname:a,query:i,search:o}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],h=[];for(let e of((0,u.safePathToRegexp)(l,h),h))d.push(e.name);if(a){let e=[];for(let t of((0,u.safePathToRegexp)(a,e),e))d.push(t.name)}let m=(0,u.safeCompile)(l,{validate:!1});for(let[r,n]of(a&&(t=(0,u.safeCompile)(a,{validate:!1})),Object.entries(i)))Array.isArray(n)?i[r]=n.map(t=>p(c(t),e.params)):"string"==typeof n&&(i[r]=p(c(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in i||(i[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[a,i]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=a,n.hash=`${i?"#":""}${i||""}`,n.search=o?p(o,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:i,parsedDestination:n}}},239882,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(237942),a=e.r(611259),i=e.r(895708),o=e.r(866140),s=e.r(391518),l=e.r(395293);function u(e,t,r,u,c,d){let p,f=!1,h=!1,m=(0,l.parseRelativeUrl)(e),g=(0,i.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),_=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,a.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,a.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(m=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),g=(0,i.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(g))return f=!0,p=g,!0;if((p=c(g))!==e&&t.includes(p))return f=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(f=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(p=c(g),y=f=t.includes(p)),!y){for(let e=0;e<r.fallback.length;e++)if(_(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:f,resolvedHref:p,externalDest:h}}},310531,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createKey:function(){return J},default:function(){return X},matchesMiddleware:function(){return $}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let o=e.r(481258),s=e.r(744066),l=e.r(895708),u=e.r(598896),c=e.r(863312),d=s._(e.r(644088)),p=e.r(796287),f=e.r(866140),h=o._(e.r(194142)),m=e.r(97872),g=e.r(782248),_=e.r(395293),y=e.r(448512),v=e.r(465518),b=e.r(462307);e.r(381616);let S=e.r(506985),E=e.r(554471),T=e.r(886170),w=e.r(391518),R=e.r(266190),I=e.r(33905),C=e.r(85996),A=e.r(853939),k=e.r(707723),N=e.r(971560),O=e.r(76491),x=e.r(171064),P=e.r(801404),M=e.r(489295),L=e.r(806620),D=e.r(879591),U=e.r(955973),B=e.r(954633);function j(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function $(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,S.parsePath)(e.asPath),n=(0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,a=(0,R.addBasePath)((0,E.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function F(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function H(e,t,r){let[n,a]=(0,C.resolveHref)(e,t,!0),i=(0,m.getLocationOrigin)(),o=n.startsWith(i),s=a&&a.startsWith(i);n=F(n),a=a?F(a):a;let l=o?n:(0,R.addBasePath)(n),u=r?F((0,C.resolveHref)(e,r)):a||n;return{url:l,as:s?u:(0,R.addBasePath)(u)}}function W(e,t){let r=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function q(e){if(!await $(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),o=i||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(U.MATCHED_PATH_HEADER);if(!s||o||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(o=s),o){if(o.startsWith("/")){let t=(0,_.parseRelativeUrl)(o),s=(0,k.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),c=(0,l.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,u.getClientBuildManifest)()]).then(([a,{__rewrites:o}])=>{let l=(0,E.addLocale)(s.pathname,s.locale);if((0,g.isDynamicRoute)(l)||!i&&a.includes((0,f.normalizeLocalePath)((0,w.removeBasePath)(l),r.router.locales).pathname)){let r=(0,k.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0});t.pathname=l=(0,R.addBasePath)(r.pathname)}{let e=n(l,a,o,t.query,e=>W(e,a),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,l=t.pathname,Object.assign(t.query,e.parsedAs.query))}let u=a.includes(c)?c:W((0,f.normalizeLocalePath)((0,w.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,g.isDynamicRoute)(u)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(u))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:u}})}let t=(0,S.parsePath)(e),s=(0,N.formatNextPathnameInfo)({...(0,k.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,S.parsePath)(c),t=(0,N.formatNextPathnameInfo)({...(0,k.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=e.r(239882).default;let G=Symbol("SSG_DATA_NOT_FOUND");function z(e){try{return JSON.parse(e)}catch(e){return null}}function Y({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:i,persistCache:o,isBackground:s,unstable_skipClientCache:l}){let{href:c}=new URL(e,window.location.href),d=(0,B.getDeploymentId)(),p=s=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:s?.method??"GET"}).then(t=>t.ok&&s?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&z(r)?.notFound)return{dataHref:e,json:{notFound:G},response:t,text:r,cacheKey:c};let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,u.markAssetError)(i),i}return{dataHref:e,json:i?z(r):null,response:t,text:r,cacheKey:c}})).then(e=>(o&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw l||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,u.markAssetError)(e),e});return l&&o?p({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=p(s?{method:"HEAD"}:{})}function J(){return Math.random().toString(36).slice(2,10)}function V({url:e,router:t}){if(e===(0,R.addBasePath)((0,E.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let K=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class X{static{this.events=(0,h.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:i,wrapApp:o,Component:s,err:u,subscription:c,isFallback:d,locale:p,locales:f,defaultLocale:h,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=J(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,b.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:i,options:o,key:s}=n;this._key=s;let{pathname:l}=(0,_.parseRelativeUrl)(a);this.isSsr&&i===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,i,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};const S=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=X.events,this.pageLoader=a;const E=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=o,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search&&0),this.state={route:S,pathname:e,query:t,asPath:E?e:r,isPreview:!!v,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const n={locale:p},a=(0,m.getURL)();this._initialMatchesMiddlewarePromise=$({router:this,locale:p,asPath:a}).then(i=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",i?a:(0,b.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),a,n),i))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){return{url:e,as:t}=H(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){return{url:e,as:t}=H(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,n,a){{if(!this._bfl_s&&!this._bfl_d){let r,i,{BloomFilter:o}=e.r(769117);try{({__routerFilterStatic:r,__routerFilterDynamic:i}=await (0,u.getClientBuildManifest)())}catch(e){if(console.error(e),a)return!0;return V({url:(0,R.addBasePath)((0,E.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let s={numItems:11,errorRate:1e-4,numBits:211,numHashes:14,bitArray:[0,0,1,1,0,0,0,1,1,0,1,0,0,1,1,1,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,1,1,0,1,0,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,0,1,0,1,1,0,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,1,1,1,0,1,0,0,1,1,1,1,1,0,0,0,1,0,0,1,1,1,1,1,1,1,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1]};!r&&s&&(r=s||void 0);let l={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};!i&&l&&(i=l),r?.numHashes&&(this._bfl_s=new o(r.numItems,r.errorRate),this._bfl_s.import(r)),i?.numHashes&&(this._bfl_d=new o(i.numItems,i.errorRate),this._bfl_d.import(i))}let i=!1,o=!1;for(let{as:e,allowMatchCurrent:s}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),u=(0,R.addBasePath)((0,E.addLocale)(r,n||this.locale));if(s||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(i=i||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(u),[r,u])){let t=e.split("/");for(let e=0;!o&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){o=!0;break}}}if(i||o){if(a)return!0;return V({url:(0,R.addBasePath)((0,E.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,a,i){let o,s;if(!(0,x.isLocalURL)(t))return V({url:t,router:this}),!1;let p=1===a._h;p||a.shallow||await this._bfl(r,void 0,a.locale);let f=p||a._shouldResolveHref||(0,S.parsePath)(t).pathname===(0,S.parsePath)(r).pathname,h={...this.state},C=!0!==this.isReady;this.isReady=!0;let A=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let k=h.locale;m.ST&&performance.mark("routeChange");let{shallow:N=!1,scroll:P=!0}=a,D={shallow:N};this._inFlightRoute&&this.clc&&(A||X.events.emit("routeChangeError",j(),this._inFlightRoute,D),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,E.addLocale)((0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,a.locale,this.defaultLocale));let U=(0,T.removeLocale)((0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,h.locale);this._inFlightRoute=r;let B=k!==h.locale;if(!p&&this.onlyAHashChange(U)&&!B){h.asPath=U,X.events.emit("hashChangeStart",r,D),this.changeState(e,t,r,{...a,scroll:!1}),P&&this.scrollToHash(U);try{await this.set(h,this.components[h.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,U,D),e}return X.events.emit("hashChangeComplete",r,D),!0}let F=(0,_.parseRelativeUrl)(t),{pathname:q,query:z}=F;try{[o,{__rewrites:s}]=await Promise.all([this.pageLoader.getPageList(),(0,u.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(U)||B||(e="replaceState");let Y=r;q=q?(0,l.removeTrailingSlash)((0,w.removeBasePath)(q)):q;let J=(0,l.removeTrailingSlash)(q),K=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[q]?.__appRouter)return V({url:r,router:this}),new Promise(()=>{});let Q=!!(K&&J!==K&&(!(0,g.isDynamicRoute)(J)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(J))(K))),Z=!a.shallow&&await $({asPath:r,locale:h.locale,router:this});if(p&&Z&&(f=!1),f&&"/_error"!==q)if(a._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,R.addBasePath)((0,E.addLocale)(U,h.locale),!0),o,s,z,e=>W(e,o),this.locales);if(e.externalDest)return V({url:r,router:this}),!0;Z||(Y=e.asPath),e.matchedPage&&e.resolvedHref&&(q=e.resolvedHref,F.pathname=(0,R.addBasePath)(q),Z||(t=(0,b.formatWithValidation)(F)))}else F.pathname=W(q,o),F.pathname!==q&&(q=F.pathname,F.pathname=(0,R.addBasePath)(q),Z||(t=(0,b.formatWithValidation)(F)));if(!(0,x.isLocalURL)(r))return V({url:r,router:this}),!1;Y=(0,T.removeLocale)((0,w.removeBasePath)(Y),h.locale),J=(0,l.removeTrailingSlash)(q);let ee=!1;if((0,g.isDynamicRoute)(J)){let e=(0,_.parseRelativeUrl)(Y),n=e.pathname,a=(0,v.getRouteRegex)(J);ee=(0,y.getRouteMatcher)(a)(n);let i=J===n,o=i?(0,L.interpolateAs)(J,n,z):{};if(ee&&(!i||o.result))i?r=(0,b.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,M.omit)(z,o.params)})):Object.assign(z,ee);else{let e=Object.keys(a.groups).filter(e=>!z[e]&&!a.groups[e].optional);if(e.length>0&&!Z)throw Object.defineProperty(Error((i?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${J}). `)+`Read more: https://nextjs.org/docs/messages/${i?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||X.events.emit("routeChangeStart",r,D);let et="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:J,pathname:q,query:z,as:r,resolvedAs:Y,routeProps:D,locale:h.locale,isPreview:h.isPreview,hasMiddleware:Z,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:Q});if(p||a.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,h.locale),"route"in n&&Z){J=q=n.route||J,D.shallow||(z=Object.assign({},n.query||{},z));let e=(0,I.hasBasePath)(F.pathname)?(0,w.removeBasePath)(F.pathname):F.pathname;if(ee&&q!==e&&Object.keys(ee).forEach(e=>{ee&&z[e]===ee[e]&&delete z[e]}),(0,g.isDynamicRoute)(q)){let e=!D.shallow&&n.resolvedAs?n.resolvedAs:(0,R.addBasePath)((0,E.addLocale)(new URL(r,location.href).pathname,h.locale),!0);(0,I.hasBasePath)(e)&&(e=(0,w.removeBasePath)(e));let t=(0,v.getRouteRegex)(q),a=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);a&&Object.assign(z,a)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,a);else return V({url:n.destination,router:this}),new Promise(()=>{});let s=n.Component;if(s&&s.unstable_scriptLoader&&[].concat(s.unstable_scriptLoader()).forEach(e=>{(0,c.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){a.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,_.parseRelativeUrl)(t);r.pathname=W(r.pathname,o);let{url:n,as:i}=H(this,t,t);return this.change(e,n,i,a)}return V({url:t,router:this}),new Promise(()=>{})}if(h.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===G){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:z,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}p&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=a.shallow&&h.route===(n.route??J),u=a.scroll??(!p&&!l),f=i??(u?{x:0,y:0}:null),m={...h,route:J,pathname:q,query:z,asPath:U,isFallback:!1};if(p&&et){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:z,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isQueryUpdating:p&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,f)}catch(e){throw(0,d.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,U,D),e}return!0}if(X.events.emit("beforeHistoryChange",r,D),this.changeState(e,t,r,a),!(p&&!f&&!C&&!B&&(0,O.compareRouterStates)(m,this.state))){try{await this.set(m,n,f)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||X.events.emit("routeChangeError",n.error,U,D),n.error;p||X.events.emit("routeChangeComplete",r,D),u&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:J()},"",r))}async handleRouteInfoError(e,t,r,n,a,i){if(e.cancelled)throw e;if((0,u.isAssetError)(e)||i)throw X.events.emit("routeChangeError",e,n,a),V({url:n,router:this}),j();console.error(e);try{let n,{page:a,styleSheets:i}=await this.fetchComponent("/_error"),o={props:n,Component:a,styleSheets:i,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:i,locale:o,hasMiddleware:s,isPreview:u,unstable_skipClientCache:c,isQueryUpdating:p,isMiddlewareRewrite:h,isNotFound:m}){let g=e;try{let e=this.components[g];if(i.shallow&&e&&this.route===g)return e;let d=K({route:g,router:this});s&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":a,locale:o}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c,isBackground:p},v=p&&!h?null:await q({fetchData:()=>Y(y),asPath:m?"/404":a,locale:o,router:this}).catch(e=>{if(p)return null;throw e});if(v&&("/_error"===t||"/404"===t)&&(v.effect=void 0),p&&(v?v.json=self.__NEXT_DATA__.props:v={json:self.__NEXT_DATA__.props}),d(),v?.effect?.type==="redirect-internal"||v?.effect?.type==="redirect-external")return v.effect;if(v?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(v.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(n))&&(g=n,t=v.effect.resolvedHref,r={...r,...v.effect.parsedAs.query},a=(0,w.removeBasePath)((0,f.normalizeLocalePath)(v.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],i.shallow&&e&&this.route===g&&!s))return{...e,route:g}}if((0,A.isAPIRoute)(g))return V({url:n,router:this}),new Promise(()=>{});let S=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),E=v?.response?.headers.get("x-middleware-skip"),T=S.__N_SSG||S.__N_SSP;E&&v?.dataHref&&delete this.sdc[v.dataHref];let{props:R,cacheKey:I}=await this._getData(async()=>{if(T){if(v?.json&&!E)return{cacheKey:v.cacheKey,props:v.json};let e=v?.dataHref?v.dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:o}),n=await Y({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?{}:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(S.Component,{pathname:t,query:r,asPath:n,locale:o,locales:this.locales,defaultLocale:this.defaultLocale})}});return S.__N_SSP&&y.dataHref&&I&&delete this.sdc[I],this.isPreview||!S.__N_SSG||p||Y(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),S.props=R,S.route=g,S.query=r,S.resolvedAs=a,this.components[g]=S,S}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,i)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,D.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("u">typeof window&&(0,P.isBot)(window.navigator.userAgent))return;let a=(0,_.parseRelativeUrl)(e),i=a.pathname,{pathname:o,query:s}=a,c=o,d=await this.pageLoader.getPageList(),p=t,f=void 0!==r.locale?r.locale||void 0:this.locale,h=await $({asPath:t,locale:f,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,u.getClientBuildManifest)());let i=n((0,R.addBasePath)((0,E.addLocale)(t,this.locale),!0),d,r,a.query,e=>W(e,d),this.locales);if(i.externalDest)return;h||(p=(0,T.removeLocale)((0,w.removeBasePath)(i.asPath),this.locale)),i.matchedPage&&i.resolvedHref&&(a.pathname=o=i.resolvedHref,h||(e=(0,b.formatWithValidation)(a)))}a.pathname=W(a.pathname,d),(0,g.isDynamicRoute)(a.pathname)&&(o=a.pathname,a.pathname=o,Object.assign(s,(0,y.getRouteMatcher)((0,v.getRouteRegex)(a.pathname))((0,S.parsePath)(t).pathname)||{}),h||(e=(0,b.formatWithValidation)(a)));let m=await q({fetchData:()=>Y({dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:c,query:s}),skipInterpolation:!0,asPath:p,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if(m?.effect.type==="rewrite"&&(a.pathname=m.effect.resolvedHref,o=m.effect.resolvedHref,s={...s,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,b.formatWithValidation)(a)),m?.effect.type==="redirect-external")return;let I=(0,l.removeTrailingSlash)(o);await this._bfl(t,p,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(I).then(t=>!!t&&Y({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](I)])}async fetchComponent(e){let t=K({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},164419,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(481258);let n=e.r(452797);e.r(907358);let a=e.r(386036);function i(e){function t(t){return(0,n.jsx)(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},386036,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Router:function(){return s.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return c.default}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),o=i._(e.r(907358)),s=i._(e.r(310531)),l=e.r(847658),u=i._(e.r(644088)),c=i._(e.r(164419)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>s.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>h()[e]})}),f.forEach(e=>{d[e]=(...t)=>h()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{s.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,u.default)(e)?`${e.message}
${e.stack}`:e+"")}})})});let m=d;function g(){let e=o.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(...e){return d.router=new s.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function y(e){let t={};for(let r of p){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,f.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},896389,(e,t,r)=>{t.exports=e.r(386036)},962288,(e,t,r)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},546878,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="/_not-found",o=`${i}/page`,s="/_global-error",l=`${s}/page`},847684,(e,t,r)=>{"use strict";var n,a=e.i(653782);Object.defineProperty(r,"__esModule",{value:!0});var i={APP_CLIENT_INTERNALS:function(){return er},APP_PATHS_MANIFEST:function(){return S},APP_PATH_ROUTES_MANIFEST:function(){return E},AdapterOutputType:function(){return d},BARREL_OPTIMIZATION_PREFIX:function(){return Y},BLOCKED_PAGES:function(){return H},BUILD_ID_FILE:function(){return F},BUILD_MANIFEST:function(){return T},CLIENT_PUBLIC_FILES_PATH:function(){return W},CLIENT_REFERENCE_MANIFEST:function(){return J},CLIENT_STATIC_FILES_PATH:function(){return q},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return en},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ea},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return $},DEFAULT_RUNTIME_WEBPACK:function(){return es},DEFAULT_SANS_SERIF_FONT:function(){return ep},DEFAULT_SERIF_FONT:function(){return ed},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return U},DEV_CLIENT_PAGES_MANIFEST:function(){return P},DYNAMIC_CSS_MANIFEST:function(){return Z},EDGE_RUNTIME_WEBPACK:function(){return el},EDGE_UNSUPPORTED_NODE_APIS:function(){return e_},EXPORT_DETAIL:function(){return A},EXPORT_MARKER:function(){return C},FUNCTIONS_CONFIG_MANIFEST:function(){return w},IMAGES_MANIFEST:function(){return O},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Q},MIDDLEWARE_BUILD_MANIFEST:function(){return K},MIDDLEWARE_MANIFEST:function(){return M},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return X},MODERN_BROWSERSLIST_TARGET:function(){return s.default},NEXT_BUILTIN_DOCUMENT:function(){return z},NEXT_FONT_MANIFEST:function(){return I},PAGES_MANIFEST:function(){return v},PHASE_ANALYZE:function(){return f},PHASE_DEVELOPMENT_SERVER:function(){return g},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return y},PHASE_PRODUCTION_BUILD:function(){return h},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return _},PRERENDER_MANIFEST:function(){return k},REACT_LOADABLE_MANIFEST:function(){return B},ROUTES_MANIFEST:function(){return N},RSC_MODULE_TYPES:function(){return eg},SERVER_DIRECTORY:function(){return j},SERVER_FILES_MANIFEST:function(){return x},SERVER_PROPS_ID:function(){return ec},SERVER_REFERENCE_MANIFEST:function(){return V},STATIC_PROPS_ID:function(){return eu},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return G},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return R},SYSTEM_ENTRYPOINTS:function(){return ey},TRACE_OUTPUT_VERSION:function(){return eh},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return D},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return L},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return em},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY},WEBPACK_STATS:function(){return b}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});let s=e.r(481258)._(e.r(962288)),l=e.r(546878),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var d=((n={}).PAGES="PAGES",n.PAGES_API="PAGES_API",n.APP_PAGE="APP_PAGE",n.APP_ROUTE="APP_ROUTE",n.PRERENDER="PRERENDER",n.STATIC_FILE="STATIC_FILE",n.MIDDLEWARE="MIDDLEWARE",n);let p="phase-export",f="phase-analyze",h="phase-production-build",m="phase-production-server",g="phase-development-server",_="phase-test",y="phase-info",v="pages-manifest.json",b="webpack-stats.json",S="app-paths-manifest.json",E="app-path-routes-manifest.json",T="build-manifest.json",w="functions-config-manifest.json",R="subresource-integrity-manifest",I="next-font-manifest",C="export-marker.json",A="export-detail.json",k="prerender-manifest.json",N="routes-manifest.json",O="images-manifest.json",x="required-server-files",P="_devPagesManifest.json",M="middleware-manifest.json",L="_clientMiddlewareManifest.json",D="client-build-manifest.json",U="_devMiddlewareManifest.json",B="react-loadable-manifest.json",j="server",$=["next.config.js","next.config.mjs","next.config.ts",...a.default?.features?.typescript?["next.config.mts"]:[]],F="BUILD_ID",H=["/_document","/_app","/_error"],W="public",q="static",G="__NEXT_DROP_CLIENT_FILE__",z="__NEXT_BUILTIN_DOCUMENT__",Y="__barrel_optimize__",J="client-reference-manifest",V="server-reference-manifest",K="middleware-build-manifest",X="middleware-react-loadable-manifest",Q="interception-route-rewrite-manifest",Z="dynamic-css-manifest",ee="main",et=`${ee}-app`,er="app-pages-internals",en="react-refresh",ea="webpack",ei="polyfills",eo=Symbol(ei),es="webpack-runtime",el="edge-runtime-webpack",eu="__N_SSG",ec="__N_SSP",ed={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ep={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],eh=1,em=6e3,eg={client:"client",server:"server"},e_=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ey=new Set([ee,en,et]);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},331912,(e,t,r)=>{t.exports=e.r(847684)},502456,e=>{"use strict";let t,r,n,a,i,o,s,l,u,c,d,p,f,h,m,g,_,y,v,b,S,E,T,w,R,I,C,A,k,N,O,x;e.s([],215178),e.i(215178);var P,M,L,D,U,B,j,$,F,H,W,q,G=e.i(653782),z=e.i(658993),Y=e.i(533622),J=e.i(83412);function V(e,t,r=[t],n="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:J.SDK_VERSION})),a.version=J.SDK_VERSION)}var K=e.i(493831),X=e.i(695207),Q=e.i(423491);let Z=[];function ee(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function et(e,t,r){if(r[t.name]){Q.DEBUG_BUILD&&z.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,Z.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Z.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}Q.DEBUG_BUILD&&z.debug.log(`Integration installed: ${t.name}`)}function er(e){let t=(0,X.getClient)();if(!t){Q.DEBUG_BUILD&&z.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function en(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var ea=e.i(163502),ei=e.i(778852);let eo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],es=(e={})=>{let t;return{name:"EventFilters",setup(r){t=eu(e,r.getOptions())},processEvent:(r,n,a)=>(t||(t=eu(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,ei.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return Q.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,ea.getEventDescription)(e)}`),!0}else{var r,n,a;if(r=e,n=t.ignoreErrors,n?.length&&en(r).some(e=>(0,ei.stringMatchesSomePattern)(e,n)))return Q.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,ea.getEventDescription)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return Q.DEBUG_BUILD&&z.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${(0,ea.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=ec(e);return!!r&&(0,ei.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return Q.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,ea.getEventDescription)(e)}.
Url: ${ec(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=ec(e);return!r||(0,ei.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return Q.DEBUG_BUILD&&z.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,ea.getEventDescription)(e)}.
Url: ${ec(e)}`),!0}return!1}(r,t)?r:null)}},el=(e={})=>({...es(e),name:"InboundFilters"});function eu(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ec(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return Q.DEBUG_BUILD&&z.debug.error(`Cannot extract url for event ${(0,ea.getEventDescription)(e)}`),null}}var ed=e.i(827363);let ep=new WeakMap,ef=()=>({name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=(0,ed.getOriginalFunction)(this),n=ep.has((0,X.getClient)())&&void 0!==r?r:this;return t.apply(n,e)}}catch{}},setup(e){ep.set(e,!0)}});var eh=e.i(935218),em=e.i(446754);let eg=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,n,a,i,o,s;let l,u,c,d;if(r=t,(n=e)&&(a=r,i=n,l=a.message,u=i.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&ey(a,i)&&e_(a,i)&&1||(o=r,s=n,c=ev(s),d=ev(o),c&&d&&c.type===d.type&&c.value===d.value&&ey(o,s)&&e_(o,s))))return Q.DEBUG_BUILD&&z.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function e_(e,t){let r=(0,em.getFramesFromEvent)(e),n=(0,em.getFramesFromEvent)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function ey(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function ev(e){return e.exception?.values?.[0]}function eb(e){(0,X.getCurrentScope)().setClient(e)}var eS=e.i(909502);function eE(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function eT(e,t,r){let n;return t||`${eE(e)}${e.projectId}/envelope/?${n={sentry_version:"7"},e.publicKey&&(n.sentry_key=e.publicKey),r&&(n.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(n).toString()}`}var ew=e.i(879468),eR=e.i(166072);function eI(e,t=!1){let r={};for(let[n,a]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},a=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),i=n&&"string"==typeof n?{unit:n}:{};if(a)return{...a,...i};if(!t||"skip-undefined"===t&&void 0===r)return;let o="";try{o=JSON.stringify(r)??""}catch{}return{value:o,type:"string",...i}}(a,t);e&&(r[n]=e)}return r}var eC=e.i(955526),eA=e.i(356632),ek=e.i(94777),eN=e.i(668567),eO=e.i(636217);let ex=0;function eP(e){let t=Math.floor(1e3*e);void 0!==r&&t!==r&&(ex=0);let n=ex;return ex++,r=t,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}var eM=e.i(172072),eL=e.i(166832);function eD(e,t){return t?(0,X.withScope)(t,()=>{let r=(0,eL.getActiveSpan)(),n=r?(0,eL.spanToTraceContext)(r):(0,X.getTraceContextFromScope)(t);return[r?(0,eM.getDynamicSamplingContextFromSpan)(r):(0,eM.getDynamicSamplingContextFromScope)(e,t),n]}):[void 0,void 0]}let eU={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var eB=e.i(849817);function ej(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function e$(e,t){var r;let n=eW(),a=(r=e,eW().get(r));void 0===a?n.set(e,[t]):a.length>=100?(eH(e,a),n.set(e,[t])):n.set(e,[...a,t])}function eF(e,t=(0,X.getCurrentScope)(),r=e$){let n=t?.getClient()??(0,X.getClient)();if(!n){Q.DEBUG_BUILD&&z.debug.warn("No client available to capture log.");return}let{release:a,environment:i,enableLogs:o=!1,beforeSendLog:s}=n.getOptions();if(!o){Q.DEBUG_BUILD&&z.debug.warn("logging option not enabled, log will not be captured.");return}let[,l]=eD(n,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:f={}}=(0,ek.getCombinedScopeData)((0,X.getIsolationScope)(),t);ej(u,"user.id",c,!1),ej(u,"user.email",d,!1),ej(u,"user.name",p,!1),ej(u,"sentry.release",a),ej(u,"sentry.environment",i);let{name:h,version:m}=n.getSdkMetadata()?.sdk??{};ej(u,"sentry.sdk.name",h),ej(u,"sentry.sdk.version",m);let g=n.getIntegrationByName("Replay"),_=g?.getReplayId(!0);ej(u,"sentry.replay_id",_),_&&g?.getRecordingMode()==="buffer"&&ej(u,"sentry._internal.replay_is_buffering",!0);let y=e.message;if((0,eA.isParameterizedString)(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let v=(0,eN._getSpanForScope)(t);ej(u,"sentry.trace.parent_span_id",v?.spanContext().spanId);let b={...e,attributes:u};n.emit("beforeCaptureLog",b);let S=s?(0,z.consoleSandbox)(()=>s(b)):b;if(!S){n.recordDroppedEvent("before_send","log_item",1),Q.DEBUG_BUILD&&z.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:E,message:T,attributes:w={},severityNumber:R}=S,I=(0,eO.timestampInSeconds)(),C=eP(I);r(n,{timestamp:I,level:E,body:T,trace_id:l?.trace_id,severity_number:R??eU[E],attributes:{...eI(f),...eI(w,!0),[C.key]:C.value}}),n.emit("afterCaptureLog",S)}function eH(e,t){var r,n,a,i;let o,s=t??(i=e,eW().get(i))??[];if(0===s.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,a=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(o.dsn=(0,eS.dsnToString)(a)),(0,eB.createEnvelope)(o,[[{type:"log",item_count:s.length,content_type:"application/vnd.sentry.items.log+json"},{items:s}]]));eW().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function eW(){return(0,eC.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eq(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function eG(e,t){var r;let n=eY(),a=(r=e,eY().get(r));void 0===a?n.set(e,[t]):a.length>=1e3?(ez(e,a),n.set(e,[t])):n.set(e,[...a,t])}function ez(e,t){var r,n,a,i;let o,s=t??(i=e,eY().get(i))??[];if(0===s.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,a=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(o.dsn=(0,eS.dsnToString)(a)),(0,eB.createEnvelope)(o,[[{type:"trace_metric",item_count:s.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:s}]]));eY().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(u)}function eY(){return(0,eC.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var eJ=e.i(976208),eV=e.i(860591);function eK(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let eX=Symbol.for("SentryBufferFullError");function eQ(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eV.rejectedSyncPromise)(eX);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eV.resolvedSyncPromise)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>eK(setTimeout(()=>t(!1),e)))]):r}}}var eZ=e.i(538051);function e0(e,t=(0,eZ.safeDateNow)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function e1(e,t,r=(0,eZ.safeDateNow)()){return(e[t]||e.all||0)>r}function e2(e,{statusCode:t,headers:r},n=(0,eZ.safeDateNow)()){let a={...e},i=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,r,,,i]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=n+s):a[e]=n+s;else a.all=n+s}else o?a.all=n+e0(o,n):429===t&&(a.all=n+6e4);return a}function e3(e,t,r=eQ(e.bufferSize||64)){let n={};return{send:function(a){let i=[];if((0,eB.forEachEnvelopeItem)(a,(t,r)=>{let a=(0,eB.envelopeItemTypeToDataCategory)(r);e1(n,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return Promise.resolve({});let o=(0,eB.createEnvelope)(a[0],i),s=t=>{if((0,eB.envelopeContainsItemType)(o,["client_report"])){Q.DEBUG_BUILD&&z.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,eB.forEachEnvelopeItem)(o,(r,n)=>{e.recordDroppedEvent(t,(0,eB.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,eB.serializeEnvelope)(o)}).then(e=>(413===e.statusCode?(Q.DEBUG_BUILD&&z.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(Q.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&z.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=e2(n,e)),e),e=>{throw s("network_error"),Q.DEBUG_BUILD&&z.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===eX)return Q.DEBUG_BUILD&&z.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}var e5=e.i(320501),e4=e.i(187248),e6=e.i(790556),e8=e.i(608422);let e7="Not capturing exception because it's already been captured.",e9="Discarded session because of missing or non-string release",te=Symbol.for("SentryInternalError"),tt=Symbol.for("SentryDoNotSendEventError");function tr(e){return{message:e,[te]:!0}}function tn(e){return{message:e,[tt]:!0}}function ta(e){return!!e&&"object"==typeof e&&te in e}function ti(e){return!!e&&"object"==typeof e&&tt in e}function to(e,t,r,n,a){let i,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(i),s=!1}),e.on(t,t=>{(o+=n(t))>=8e5?a(e):s||(s=!0,i=eK(setTimeout(()=>{a(e)},5e3)))}),e.on("flush",()=>{a(e)})}class ts{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eQ(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,eS.makeDsn)(e.dsn):Q.DEBUG_BUILD&&z.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=eT(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&to(this,"afterCaptureLog","flushLogs",tp,eH),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&to(this,"afterCaptureMetric","flushMetrics",td,ez)}captureException(e,t,r){let n=(0,ea.uuid4)();if((0,ea.checkOrSetAlreadyCaught)(e))return Q.DEBUG_BUILD&&z.debug.log(e7),n;let a={event_id:n,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),"error"),a.event_id}captureMessage(e,t,r,n){let a={event_id:(0,ea.uuid4)(),...r},i=(0,eA.isParameterizedString)(e)?e:String(e),o=(0,eA.isPrimitive)(e),s=o?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(()=>s.then(e=>this._captureEvent(e,a,n)),o?"unknown":"error"),a.event_id}captureEvent(e,t,r){let n=(0,ea.uuid4)();if(t?.originalException&&(0,ea.checkOrSetAlreadyCaught)(t.originalException))return Q.DEBUG_BUILD&&z.debug.log(e7),n;let a={event_id:n,...t},i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,s=i.capturedSpanIsolationScope,l=tl(e.type);return this._process(()=>this._captureEvent(e,a,o||r,s),l),a.event_id}captureSession(e){this.sendSession(e),(0,eJ.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){eH(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];et(this,e,this._integrations),t||ee(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,eR.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,eB.addItemToEnvelope)(r,(0,eB.createAttachmentEnvelopeItem)(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=ew.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){Q.DEBUG_BUILD&&z.debug.warn(e9);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){Q.DEBUG_BUILD&&z.debug.warn(e9);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=(0,eR.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;Q.DEBUG_BUILD&&z.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return Q.DEBUG_BUILD&&z.debug.error("Error while sending envelope:",e),{}}return Q.DEBUG_BUILD&&z.debug.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(r=>{r&&et(e,r,t)}),t),ee(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,a=t.exception?.values;if(a){for(let e of(n=!0,r=!1,a))if(e.mechanism?.handled===!1){r=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,eJ.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let a=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,e6.prepareEvent)(a,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,X.getTraceContextFromScope)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,eM.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,X.getCurrentScope)(),n=(0,X.getIsolationScope)()){return Q.DEBUG_BUILD&&tu(e)&&z.debug.log(`Captured error event \`${en(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{Q.DEBUG_BUILD&&(ti(e)?z.debug.log(e.message):ta(e)?z.debug.warn(e.message):z.debug.warn(e))})}_processEvent(e,t,r,n){let a=this.getOptions(),{sampleRate:i}=a,o=tc(e),s=tu(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===i?void 0:(0,e4.parseSampleRate)(i);if(s&&"number"==typeof c&&(0,eZ.safeMathRandom)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,eV.rejectedSyncPromise)(tn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let d=tl(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),tn("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,eA.isThenable)(e))return e.then(e=>{if(!(0,eA.isPlainObject)(e)&&null!==e)throw tr(r);return e},e=>{throw tr(`${t} rejected with ${e}`)});if(!(0,eA.isPlainObject)(e)&&null!==e)throw tr(r);return e}(function(e,t,r,n){let{beforeSend:a,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:s}=t,l=r;if(tu(l)&&a)return a(l,n);if(tc(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:i,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[eh.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:o?.[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&(0,e8.shouldIgnoreSpan)(t,s))return null;if(o){let e=o(t);if(e)l=(0,e5.merge)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[eh.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,eL.showSpanDropWarning)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&(0,e8.shouldIgnoreSpan)(e,s)){(0,e8.reparentChildSpans)(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,eL.showSpanDropWarning)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,n)}}return l}(this,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw tn(`${u} returned \`null\`, will not send event.`)}let i=r.getSession()||n.getSession();if(s&&i&&this._updateSessionFromEvent(i,a),o){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=a.transaction_info;return o&&l&&a.transaction!==e.transaction&&(a.transaction_info={...l,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(ti(e)||ta(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),tr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eX&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;let t;Q.DEBUG_BUILD&&z.debug.log("Flushing outcomes...");let r=this._clearOutcomes();if(0===r.length){Q.DEBUG_BUILD&&z.debug.log("No outcomes to send");return}if(!this._dsn){Q.DEBUG_BUILD&&z.debug.log("No dsn provided, will not send outcomes");return}Q.DEBUG_BUILD&&z.debug.log("Sending outcomes:",r);let n=(e=this._options.tunnel&&(0,eS.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,eO.dateTimestampInSeconds)(),discarded_events:r}],(0,eB.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}function tl(e){return"replay_event"===e?"replay":e||"error"}function tu(e){return void 0===e.type}function tc(e){return"transaction"===e.type}function td(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+tf(e.attributes)}function tp(e){let t=0;return e.message&&(t+=2*e.message.length),t+tf(e.attributes)}function tf(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*th(e[0]):(0,eA.isPrimitive)(e)?t+=th(e):t+=100}),t}function th(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function tm(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var tg=e.i(746065);function t_(e){return(0,eA.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ty(e,t){var r,n;let a,i,o=tb(e,t),s={type:(r=t,!(a=r?.name)&&tE(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":a),value:(n=t,i=n?.message,tE(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?t_(i.error):t_(n):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function tv(e,t){return{exception:{values:[ty(e,t)]}}}function tb(e,t){var r,n;let a=t.stacktrace||t.stack||"",i=(r=t)&&tS.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,i,o)}catch{}return[]}let tS=/Minified React error #\d+;/i;function tE(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function tT(e,t,r,n){let a=tR(e,t,r?.syntheticException||void 0,n);return(0,ea.addExceptionMechanism)(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),(0,eV.resolvedSyncPromise)(a)}function tw(e,t,r="info",n,a){let i=tI(e,t,n?.syntheticException||void 0,a);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,eV.resolvedSyncPromise)(i)}function tR(e,t,r,n,a){let i;if((0,eA.isErrorEvent)(t)&&t.error)return tv(e,t.error);if((0,eA.isDOMError)(t)||(0,eA.isDOMException)(t)){if("stack"in t)i=tv(e,t);else{let a=t.name||((0,eA.isDOMError)(t)?"DOMError":"DOMException"),o=t.message?`${a}: ${t.message}`:a;i=tI(e,o,r,n),(0,ea.addExceptionTypeValue)(i,o)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,eA.isError)(t)?tv(e,t):((0,eA.isPlainObject)(t)||(0,eA.isEvent)(t)?i=function(e,t,r,n){let a=(0,X.getClient)(),i=a?.getOptions().normalizeDepth,o=Object.values(t).find(e=>e instanceof Error),s={__serialized__:(0,tg.normalizeToSize)(t,i)};if(o)return{exception:{values:[ty(e,o)]},extra:s};let l={exception:{values:[{type:(0,eA.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,ed.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,eA.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eA.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=tb(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a):(i=tI(e,t,r,n),(0,ea.addExceptionTypeValue)(i,`${t}`,void 0)),(0,ea.addExceptionMechanism)(i,{synthetic:!0}),i)}function tI(e,t,r,n){let a={};if(n&&r){let n=tb(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,ea.addExceptionMechanism)(a,{synthetic:!0})}if((0,eA.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}var tC=e.i(205364);let tA=Y.GLOBAL_OBJ,tk=0;function tN(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,ed.getOriginalFunction)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>tN(e,t));return e.apply(this,n)}catch(e){throw tk++,setTimeout(()=>{tk--}),(0,X.withScope)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,ea.addExceptionTypeValue)(e,void 0,void 0),(0,ea.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,K.captureException)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,ed.markFunctionWrapped)(r,e),(0,ed.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function tO(){let e=(0,tC.getLocationHref)(),{referrer:t}=tA.document||{},{userAgent:r}=tA.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class tx extends ts{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tA.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);V(t,"browser",["browser"],tA.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:n,enableLogs:a,_experiments:i,enableMetrics:o}=this._options,s=o??i?.enableMetrics??!0;tA.document&&(n||a||s)&&tA.document.addEventListener("visibilitychange",()=>{"hidden"===tA.document.visibilityState&&(n&&this._flushOutcomes(),a&&eH(this),s&&ez(this))}),r&&this.on("beforeSendSession",tm)}eventFromException(e,t){return tT(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return tw(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let tP={},tM={};function tL(e,t){tP[e]=tP[e]||[],tP[e].push(t)}function tD(e,t){if(!tM[e]){tM[e]=!0;try{t()}catch(t){Q.DEBUG_BUILD&&z.debug.error(`Error while instrumenting ${e}`,t)}}}function tU(e,t){let r=e&&tP[e];if(r)for(let n of r)try{n(t)}catch(t){Q.DEBUG_BUILD&&z.debug.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,em.getFunctionName)(n)}
Error:`,t)}}function tB(e){let t="console";tL(t,e),tD(t,tj)}function tj(){"console"in Y.GLOBAL_OBJ&&z.CONSOLE_LEVELS.forEach(function(e){e in Y.GLOBAL_OBJ.console&&(0,ed.fill)(Y.GLOBAL_OBJ.console,e,function(t){return z.originalConsoleMethods[e]=t,function(...t){tU("console",{args:t,level:e});let r=z.originalConsoleMethods[e];r?.apply(Y.GLOBAL_OBJ.console,t)}})})}let t$=Y.GLOBAL_OBJ;function tF(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tH(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in t$))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tF(t$.fetch))return!0;let e=!1,t=t$.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tF(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){Q.DEBUG_BUILD&&z.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function tW(e,t){let r="fetch";tL(r,e),tD(r,()=>tq(void 0,t))}function tq(e,t=!1){(!t||tH())&&(0,ed.fill)(Y.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tJ(t),method:tY(r,"method")?String(r.method).toUpperCase():(0,eA.isRequest)(t)&&tY(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tJ(t),method:tY(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:a,url:i},startTimestamp:1e3*(0,eO.timestampInSeconds)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,eA.isRequest)(t))return new Headers(t.headers)}catch{}}(r)};return e||tU("fetch",{...o}),t.apply(Y.GLOBAL_OBJ,r).then(async t=>(e?e(t):tU("fetch",{...o,endTimestamp:1e3*(0,eO.timestampInSeconds)(),response:t}),t),e=>{tU("fetch",{...o,endTimestamp:1e3*(0,eO.timestampInSeconds)(),error:e}),(0,eA.isError)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,ed.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,X.getClient)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,ed.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tG(e,t){if(e?.body){let r=e.body,n=r.getReader(),a=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),n.releaseLock(),r.cancel().then(null,()=>{})}}function tz(e){let t;try{t=e.clone()}catch{return}tG(t,()=>{tU("fetch-body-resolved",{endTimestamp:1e3*(0,eO.timestampInSeconds)(),response:e})})}function tY(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tJ(e){return"string"==typeof e?e:e?tY(e,"url")?e.url:e.toString?e.toString():"":""}function tV(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tK(e,t){let r=(0,X.getClient)(),n=(0,X.getIsolationScope)();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=r.getOptions();if(i<=0)return;let o={timestamp:(0,eO.dateTimestampInSeconds)(),...e},s=a?(0,z.consoleSandbox)(()=>a(o,t)):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,i))}function tX(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tQ(e){return"isRelative"in e}function tZ(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function t0(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function t1(e){return e.split(/[?#]/,1)[0]}function t2(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),o="";if(t&&-1!==i){let t=e.slice(i+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${a?",base64":""}${o?`,${o}`:""}`}return e}let t3=Y.GLOBAL_OBJ;function t5(e){tL("dom",e),tD("dom",t4)}function t4(){if(!t3.document)return;let e=tU.bind(null,"dom"),t=t6(e,!0);t3.document.addEventListener("click",t,!1),t3.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=t3[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,ed.fill)(r,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){let n=t6(e);i.handler=n,t.call(this,r,n,a)}i.refCount++}catch{}return t.call(this,r,n,a)}}),(0,ed.fill)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function t6(e,t=!1){return r=>{var o;if(!r||r._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(r);if(o=r.type,"keypress"===o&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable&&1))return;(0,ed.addNonEnumerableProperty)(r,"_sentryCaptured",!0),s&&!s._sentryId&&(0,ed.addNonEnumerableProperty)(s,"_sentryId",(0,ea.uuid4)());let l="keypress"===r.type?"input":r.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==i)return!1}catch{}return!0}(r)&&(e({event:r,name:l,global:t}),a=r.type,i=s?s._sentryId:void 0),clearTimeout(n),n=t3.setTimeout(()=>{i=void 0,a=void 0},1e3)}}let t8="__sentry_xhr_v3__";function t7(e){tL("xhr",e),tD("xhr",t9)}function t9(){if(!t3.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),a=1e3*(0,eO.timestampInSeconds)(),i=(0,eA.isString)(r[0])?r[0].toUpperCase():void 0,o=function(e){if((0,eA.isString)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!i||!o)return e.apply(t,r);t[t8]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[t8];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}tU("xhr",{endTimestamp:1e3*(0,eO.timestampInSeconds)(),startTimestamp:a,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,a]=r,i=t[t8];return i&&(0,eA.isString)(n)&&(0,eA.isString)(a)&&(i.request_headers[n.toLowerCase()]=a),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[t8];return n&&(void 0!==r[0]&&(n.body=r[0]),tU("xhr",{startTimestamp:1e3*(0,eO.timestampInSeconds)(),xhr:t})),e.apply(t,r)}})}function re(e){let t="history";tL(t,e),tD(t,rt)}function rt(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=o,a=function(e){try{return new URL(e,t3.location.origin).toString()}catch{return e}}(String(r));if(o=a,n===a)return e.apply(this,t);tU("history",{from:n,to:a})}return e.apply(this,t)}}t3.addEventListener("popstate",()=>{let e=t3.location.href,t=o;o=e,t===e||tU("history",{from:t,to:e})}),"history"in t$&&t$.history&&((0,ed.fill)(t3.history,"pushState",e),(0,ed.fill)(t3.history,"replaceState",e))}let rr="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rn=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,a,i,o,s,l;t.console&&tB((r=e,function(e){if((0,X.getClient)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:tV(e.level),message:(0,ei.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,ei.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);tK(t,{input:e.args,level:e.level})})),t.dom&&t5((n=e,a=t.dom,function(e){let t,r;if((0,X.getClient)()!==n)return;let i="object"==typeof a?a.serializeAttribute:void 0,o="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;o&&o>1024&&(rr&&z.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof i&&(i=[i]);try{var s;let n=e.event,a=(s=n)&&s.target?n.target:n;t=(0,tC.htmlTreeAsString)(a,{keyAttrs:i,maxStringLength:o}),r=(0,tC.getComponentName)(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),tK(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&t7((i=e,function(e){if((0,X.getClient)()!==i)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[t8];if(!t||!r||!n)return;let{method:a,url:o,status_code:s,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:tX(s)};i.emit("beforeOutgoingRequestBreadcrumb",c,u),tK(c,u)})),t.fetch&&tW((o=e,function(e){if((0,X.getClient)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,n),tK(a,n)}else{let n=e.response,a={...e.fetchData,status_code:n?.status},i={input:e.args,response:n,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:tX(a.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,i),tK(s,i)}})),t.history&&re((s=e,function(e){if((0,X.getClient)()!==s)return;let t=e.from,r=e.to,n=t0(tA.location.href),a=t?t0(t):void 0,i=t0(r);a?.path||(a=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),tK({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,X.getClient)()===l&&tK({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,ea.getEventDescription)(e)},{event:e})}))}}},ra="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".split(","),ri=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,ed.fill)(tA,"setTimeout",ro),t.setInterval&&(0,ed.fill)(tA,"setInterval",ro),t.requestAnimationFrame&&(0,ed.fill)(tA,"requestAnimationFrame",rs),t.XMLHttpRequest&&"XMLHttpRequest"in tA&&(0,ed.fill)(XMLHttpRequest.prototype,"send",rl);let e=t.eventTarget;e&&(Array.isArray(e)?e:ra).forEach(e=>{var r,n;let a;return r=e,n=t,a=tA[r]?.prototype,void(a?.hasOwnProperty?.("addEventListener")&&((0,ed.fill)(a,"addEventListener",function(e){return function(t,a,i){var o,s,l,u;try{o=a,"function"==typeof o.handleEvent&&(a.handleEvent=tN(a.handleEvent,{mechanism:{data:{handler:(0,em.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(s=this,l=t,u=a,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,tN(a,{mechanism:{data:{handler:(0,em.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,ed.fill)(a,"removeEventListener",function(e){return function(t,r,n){try{let a=r.__sentry_wrapped__;a&&e.call(this,t,a,n)}catch{}return e.call(this,t,r,n)}})))})}}};function ro(e){return function(...t){let r=t[0];return t[0]=tN(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,em.getFunctionName)(e)}`}}),e.apply(this,t)}}function rs(e){return function(t){return e.apply(this,[tN(t,{mechanism:{data:{handler:(0,em.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rl(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,ed.fill)(r,e,function(t){let r={mechanism:{data:{handler:(0,em.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,ed.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,em.getFunctionName)(n)),tN(t,r)})}),e.apply(this,t)}}let ru=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===tA.document){rr&&z.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,K.startSession)({ignoreDuration:!0}),(0,K.captureSession)();let e=(0,X.getIsolationScope)(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&((0,K.captureSession)(),r=t)}),"route"===t&&re(({from:e,to:t})=>{e!==t&&((0,K.startSession)({ignoreDuration:!0}),(0,K.captureSession)())})}}},rc=()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=tA.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}}),rd=null;function rp(e){let t="error";tL(t,e),tD(t,rf)}function rf(){rd=Y.GLOBAL_OBJ.onerror,Y.GLOBAL_OBJ.onerror=function(e,t,r,n,a){return tU("error",{column:n,error:a,line:r,msg:e,url:t}),!!rd&&rd.apply(this,arguments)},Y.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let rh=null;function rm(e){let t="unhandledrejection";tL(t,e),tD(t,rg)}function rg(){rh=Y.GLOBAL_OBJ.onunhandledrejection,Y.GLOBAL_OBJ.onunhandledrejection=function(e){return tU("unhandledrejection",e),!rh||rh.apply(this,arguments)},Y.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let r_=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,rp(e=>{var t,n,a,i;let o,s,l,u,c,{stackParser:d,attachStacktrace:p}=rS();if((0,X.getClient)()!==r||tk>0)return;let{msg:f,url:h,line:m,column:g,error:_}=e,y=(t=tR(d,_||f,void 0,p,!1),n=h,a=m,i=g,0===(c=(u=(l=(s=(o=t.exception=t.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:i,lineno:a,filename:function(e){if((0,eA.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${t2(e,!1)}>`:e}(n)??(0,tC.getLocationHref)(),function:em.UNKNOWN_FUNCTION,in_app:!0}),t);y.level="error",(0,K.captureEvent)(y,{originalException:_,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rb("onerror")),t.onunhandledrejection&&(n=e,rm(e=>{let{stackParser:t,attachStacktrace:r}=rS();if((0,X.getClient)()!==n||tk>0)return;let a=ry(e),i=(0,eA.isPrimitive)(a)?rv(a):tR(t,a,void 0,r,!0);i.level="error",(0,K.captureEvent)(i,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rb("onunhandledrejection"))}}};function ry(e){if((0,eA.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function rv(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rb(e){rr&&z.debug.log(`Global Handler attached: ${e}`)}function rS(){let e=(0,X.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let rE=()=>({name:"HttpContext",preprocessEvent(e){if(!tA.navigator&&!tA.location&&!tA.document)return;let t=tO(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}});function rT(e){return Array.isArray(e.errors)}function rw(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rT(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rR(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let rI=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){!function(e,t,r,n,a,i){if(!a.exception?.values||!i||!(0,eA.isInstanceOf)(i.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=function e(t,r,n,a,i,o,s,l){if(o.length>=n+1)return o;let u=[...o];if((0,eA.isInstanceOf)(a[i],Error)){rw(s,l,a);let o=t(r,a[i]),c=u.length;rR(o,i,c,l),u=e(t,r,n,a[i],i,[o,...u],o,c)}return rT(a)&&a.errors.forEach((o,c)=>{if((0,eA.isInstanceOf)(o,Error)){rw(s,l,a);let d=t(r,o),p=u.length;rR(d,`errors[${c}]`,p,l),u=e(t,r,n,o,i,[d,...u],d,p)}}),u}(e,t,n,i.originalException,r,a.exception.values,o,0))}(ty,a.getOptions().stackParser,r,t,e,n)}}};function rC(e,t,r,n){let a={filename:e,function:"<anonymous>"===t?em.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}let rA=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rk=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rN=/\((\S*)(?::(\d+))(?::(\d+))\)/,rO=/at (.+?) ?\(data:(.+?),/,rx=[30,e=>{let t=e.match(rO);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rA.exec(e);if(r){let[,e,t,n]=r;return rC(e,em.UNKNOWN_FUNCTION,+t,+n)}let n=rk.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=rN.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=rq(n[1]||em.UNKNOWN_FUNCTION,n[2]);return rC(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rP=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rL=[50,e=>{let t=rP.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rM.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||em.UNKNOWN_FUNCTION;return[r,e]=rq(r,e),rC(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rD=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,rU=[40,e=>{let t=rD.exec(e);return t?rC(t[2],t[1]||em.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],rB=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rj=[10,e=>{let t=rB.exec(e);return t?rC(t[2],t[3]||em.UNKNOWN_FUNCTION,+t[1]):void 0}],r$=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,rF=[20,e=>{let t=r$.exec(e);return t?rC(t[5],t[3]||t[4]||em.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],rH=[rx,rL],rW=(0,em.createStackParser)(...rH),rq=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:em.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rG="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rz={};function rY(e){let t=rz[e];if(t)return t;let r=t3[e];if(tF(r))return rz[e]=r.bind(t3);let n=t3.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(r=a[e]),n.head.removeChild(t)}catch(t){rG&&z.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?rz[e]=r.bind(t3):r}function rJ(...e){return rY("setTimeout")(...e)}function rV(e,t=rY("fetch")){let r=0,n=0;async function a(a){let i=a.body.length;r+=i,n++;let o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw rz.fetch=void 0,e}finally{r-=i,n--}}return e3(e,a,eQ(e.bufferSize||40))}function rK(e){return[el(),ef(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,X.getCurrentScope)().getScopeData(),r=(0,X.getIsolationScope)().getScopeData(),n=t.conversationId||r.conversationId;n&&e.setAttribute(eh.GEN_AI_CONVERSATION_ID_ATTRIBUTE,n)})}},ri(),rn(),r_(),rI(),eg(),rE(),rc(),ru()]}function rX(e={}){let t,r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tA.window||tA.nw)return!1;let e=tA.chrome||tA.browser;if(!e?.runtime?.id)return!1;let t=(0,tC.getLocationHref)();return!(tA===tA.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(rr&&(0,z.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n=null==e.defaultIntegrations?rK():e.defaultIntegrations,a={...e,enabled:!r&&e.enabled,stackParser:(0,em.stackParserFromStackParserOptions)(e.stackParser||rW),integrations:function(e){let t,r,n=e.defaultIntegrations||[],a=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(a))t=[...n,...a];else if("function"==typeof a){let e=a(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||rV};return!0===a.debug&&(Q.DEBUG_BUILD?z.debug.enable():(0,z.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,X.getCurrentScope)().update(a.initialScope),eb(t=new tx(a)),t.init(),t}function rQ(){}function rZ(e){e()}var r0=e.i(907358);function r1(e){let t={...e};return V(t,"react"),(0,K.setContext)("react",{version:r0.version}),rX(t)}let r2="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function r3(e){return(0,eA.isError)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function r5(e){return(0,eA.isError)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var r4=e.i(961925),r6=e.i(20701),r8=e.i(696301),r7=e.i(55061),r9=e.i(143447);let ne={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function nt(e,t={}){var r;let n,a,i=new Map,o=!1,s="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=ne.idleTimeout,finalTimeout:d=ne.finalTimeout,childSpanTimeout:p=ne.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:h=!0}=t,m=(0,X.getClient)();if(!m||!(0,r4.hasSpansEnabled)()){let e=new r6.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,eM.getDynamicSamplingContextFromSpan)(e)};return(0,eM.freezeDscOnSpan)(e,t),e}let g=(0,X.getCurrentScope)(),_=(0,eL.getActiveSpan)(),y=(r=e,n=(0,r9.startInactiveSpan)(r),(0,eN._setSpanForScope)((0,X.getCurrentScope)(),n),Q.DEBUG_BUILD&&z.debug.log("[Tracing] Started span is an idle span"),n);function v(){a&&(clearTimeout(a),a=void 0)}function b(e){v(),a=setTimeout(()=>{!o&&0===i.size&&l&&(s="idleTimeout",y.end(e))},c)}function S(e){a=setTimeout(()=>{!o&&l&&(s="heartbeatFailed",y.end(e))},p)}function E(e){o=!0,i.clear(),u.forEach(e=>e()),(0,eN._setSpanForScope)(g,_);let t=(0,eL.spanToJSON)(y),{start_timestamp:r}=t;if(!r)return;t.data[eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||y.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let n=t.status;n&&"unknown"!==n||y.setStatus({code:r7.SPAN_STATUS_OK}),z.debug.log(`[Tracing] Idle span "${t.op}" finished`);let a=(0,eL.getSpanDescendants)(y).filter(e=>e!==y),l=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:r7.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),Q.DEBUG_BUILD&&z.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eL.spanToJSON)(t),a=n<=e,i=r-n<=(d+c)/1e3;if(Q.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?i||z.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):z.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!i||!a)&&((0,eL.removeChildSpanFromSpan)(y,t),l++)}),l>0&&y.setAttribute("sentry.idle_span_discarded_spans",l)}return y.end=new Proxy(y.end,{apply(e,t,r){if(f&&f(y),t instanceof r6.SentryNonRecordingSpan)return;let[n,...a]=r,i=n||(0,eO.timestampInSeconds)(),o=(0,eL.spanTimeInputToSeconds)(i),s=(0,eL.getSpanDescendants)(y).filter(e=>e!==y),l=(0,eL.spanToJSON)(y);if(!s.length||!h)return E(o),Reflect.apply(e,t,[o,...a]);let u=m.getOptions().ignoreSpans,c=s?.reduce((e,t)=>{let r=(0,eL.spanToJSON)(t);return!r.timestamp||u&&(0,e8.shouldIgnoreSpan)(r,u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),p=l.start_timestamp,g=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(o,c||1/0)));return E(g),Reflect.apply(e,t,[g,...a])}}),u.push(m.on("spanStart",e=>{var t;!(o||e===y||(0,eL.spanToJSON)(e).timestamp||e instanceof r8.SentrySpan&&e.isStandaloneSpan())&&(0,eL.getSpanDescendants)(y).includes(e)&&(t=e.spanContext().spanId,v(),i.set(t,!0),S((0,eO.timestampInSeconds)()+p/1e3))})),u.push(m.on("spanEnd",e=>{if(!o){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&b((0,eO.timestampInSeconds)()+c/1e3)}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===y&&(l=!0,b(),i.size&&S())})),t.disableAutoFinish||b(),setTimeout(()=>{o||(y.setStatus({code:r7.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",y.end())},d),y}let nr=!1;function nn(){nr||(e.tag="sentry_tracingErrorCallback",nr=!0,rp(e),rm(e));function e(){let e=(0,eL.getActiveSpan)(),t=e&&(0,eL.getRootSpan)(e);if(t){let e="internal_error";Q.DEBUG_BUILD&&z.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:r7.SPAN_STATUS_ERROR,message:e})}}}var na=e.i(230757),ni=e.i(518510);function no(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==G.default?G.default:0))||(e=Y.GLOBAL_OBJ.process,e?.type==="renderer"))}let ns=(e,t,r,n)=>{let a,i;return o=>{if(t.value>=0&&(o||n)&&((i=t.value-(a??0))||void 0===a)){var s;a=t.value,t.delta=i,s=t.value,t.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",e(t)}}},nl=(e=!0)=>{let t=t3.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},nu=()=>{let e=nl();return e?.activationStart??0};function nc(e,t,r){t3.document&&t3.addEventListener(e,t,r)}function nd(e,t,r){t3.document&&t3.removeEventListener(e,t,r)}let np=-1,nf=new Set,nh=e=>{if(("pagehide"===e.type||t3.document?.visibilityState==="hidden")&&np>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of nf)e();isFinite(np)||(np="visibilitychange"===e.type?e.timeStamp:0,nd("prerenderingchange",nh,!0))}},nm=()=>{if(t3.document&&np<0){let e=nu();np=(t3.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(t3.document?.visibilityState!=="hidden"||t3.document?.prerendering?1/0:0),nc("visibilitychange",nh,!0),nc("pagehide",nh,!0),nc("prerenderingchange",nh,!0)}return{get firstHiddenTime(){return np},onHidden(e){nf.add(e)}}},ng=(e,t=-1)=>{let r=nl(),n="navigate";return r&&(t3.document?.prerendering||nu()>0?n="prerender":t3.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},n_=new WeakMap;function ny(e,t){try{return n_.get(e)||n_.set(e,new t),n_.get(e)}catch(e){return new t}}class nv{constructor(){nv.prototype.__init.call(this),nv.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let nb=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},nS=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nE=e=>{t3.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nT=[1800,3e3],nw=[.1,.25],nR=0,nI=1/0,nC=0,nA=e=>{e.forEach(e=>{e.interactionId&&(nI=Math.min(nI,e.interactionId),nR=(nC=Math.max(nC,e.interactionId))?(nC-nI)/7+1:0)})},nk=()=>s?nR:performance.interactionCount||0,nN=0;class nO{constructor(){nO.prototype.__init.call(this),nO.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){nN=nk(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((nk()-nN)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let nx=e=>{let t=t3.requestIdleCallback||t3.setTimeout;t3.document?.visibilityState==="hidden"?e():(nc("visibilitychange",e=nS(e),{once:!0,capture:!0}),nc("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),nd("visibilitychange",e,{capture:!0}),nd("pagehide",e,{capture:!0})}))},nP=[200,500];class nM{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nL=[2500,4e3],nD=[800,1800],nU=e=>{t3.document?.prerendering?nE(()=>nU(e)):t3.document?.readyState!=="complete"?addEventListener("load",()=>nU(e),!0):setTimeout(e)},nB={},nj={};function n$(e,t=!1){return nV("cls",e,nG,l,t)}function nF(e,t=!1){return nV("lcp",e,nz,u,t)}function nH(e){return nV("inp",e,nJ,d)}function nW(e,t){var r;let n;return nK(e,t),nj[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),nb(r,e=>{nq(r,{entries:e})},n),nj[e]=!0),nX(e,t)}function nq(e,t){let r=nB[e];if(r?.length)for(let n of r)try{n(t)}catch(t){rG&&z.debug.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,em.getFunctionName)(n)}
Error:`,t)}}function nG(){return((e,t={})=>{((e,t={})=>{nE(()=>{let r,n=nm(),a=ng("FCP"),i=nb("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(a.value=Math.max(t.startTime-nu(),0),a.entries.push(t),r(!0)))});i&&(r=ns(e,a,nT,t.reportAllChanges))})})(nS(()=>{let r,n=ng("CLS",0),a=nm(),i=ny(t,nv),o=e=>{for(let t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},s=nb("layout-shift",o);s&&(r=ns(e,n,nw,t.reportAllChanges),a.onHidden(()=>{o(s.takeRecords()),r(!0)}),t3?.setTimeout?.(r))}))})(e=>{nq("cls",{metric:e}),l=e},{reportAllChanges:!0})}function nz(){return((e,t={})=>{nE(()=>{let r,n=nm(),a=ng("LCP"),i=ny(t,nM),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(o),o.startTime<n.firstHiddenTime&&(a.value=Math.max(o.startTime-nu(),0),a.entries=[o],r())},s=nb("largest-contentful-paint",o);if(s){r=ns(e,a,nL,t.reportAllChanges);let n=nS(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),i=e=>{e.isTrusted&&(nx(n),nd(e.type,i,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])nc(e,i,{capture:!0})}})})(e=>{nq("lcp",{metric:e}),u=e},{reportAllChanges:!0})}function nY(){return((e,t={})=>{let r=ng("TTFB"),n=ns(e,r,nD,t.reportAllChanges);nU(()=>{let e=nl();e&&(r.value=Math.max(e.responseStart-nu(),0),r.entries=[e],n(!0))})})(e=>{nq("ttfb",{metric:e}),c=e})}function nJ(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=nm();nE(()=>{let n;"interactionCount"in performance||s||(s=nb("event",nA,{type:"event",buffered:!0,durationThreshold:0}));let a=ng("INP"),i=ny(t,nO),o=e=>{nx(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,n())})},l=nb("event",o,{durationThreshold:t.durationThreshold??40});n=ns(e,a,nP,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(l.takeRecords()),n(!0)}))})})(e=>{nq("inp",{metric:e}),d=e})}function nV(e,t,r,n,a=!1){let i;return nK(e,t),nj[e]||(i=r(),nj[e]=!0),n&&t({metric:n}),nX(e,t,a?i:void 0)}function nK(e,t){nB[e]=nB[e]||[],nB[e].push(t)}function nX(e,t,r){return()=>{r&&r();let n=nB[e];if(!n)return;let a=n.indexOf(t);-1!==a&&n.splice(a,1)}}function nQ(e){return"number"==typeof e&&isFinite(e)}function nZ(e,t,r,{...n}){let a=(0,eL.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,r9.withActiveSpan)(e,()=>{let e=(0,r9.startInactiveSpan)({startTime:t,...n});return e&&e.end(r),e})}function n0(e){let t,r=(0,X.getClient)();if(!r)return;let{name:n,transaction:a,attributes:i,startTime:o}=e,{release:s,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,X.getCurrentScope)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}let m={release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":t3.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...i};return(0,r9.startInactiveSpan)({name:n,attributes:m,startTime:o,experimental:{standalone:!0}})}function n1(){return t3.addEventListener&&t3.performance}function n2(e){return e/1e3}function n3(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function n5(e,t){let r,n,a=!1;function i(e){!a&&n&&t(e,n),a=!0}nc("visibilitychange",r=e=>{("pagehide"===e.type||t3.document?.visibilityState==="hidden")&&(()=>{i("pagehide")})(e)},{capture:!0,once:!0}),nc("pagehide",r,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,s()})}let n4=[],n6=new Map,n8=new Map,n7={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},n9=({metric:e})=>{if(void 0==e.value)return;let t=n2(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&n7[t.name]);if(!r)return;let{interactionId:n}=r,a=n7[r.name],i=n2((0,eO.browserPerformanceTimeOrigin)()+r.startTime),o=(0,eL.getActiveSpan)(),s=o?(0,eL.getRootSpan)(o):void 0,l=null!=n?n6.get(n):void 0,u=l?.span||s,c=u?(0,eL.spanToJSON)(u).description:(0,X.getCurrentScope)().getScopeData().transactionName,d=n0({name:l?.elementName||(0,tC.htmlTreeAsString)(r.target),transaction:c,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},startTime:i});d&&(d.addEvent("inp",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(i+t))};var ae=e.i(967703);function at(e){return e?(((0,eO.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function ar(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let a of e){if("/"===a){[t,r]=e.split("/");break}if(!isNaN(Number(a))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=a}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eO.browserPerformanceTimeOrigin)()||n1()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":at(e.redirectStart),"http.request.redirect_end":at(e.redirectEnd),"http.request.worker_start":at(e.workerStart),"http.request.fetch_start":at(e.fetchStart),"http.request.domain_lookup_start":at(e.domainLookupStart),"http.request.domain_lookup_end":at(e.domainLookupEnd),"http.request.connect_start":at(e.connectStart),"http.request.secure_connection_start":at(e.secureConnectionStart),"http.request.connection_end":at(e.connectEnd),"http.request.request_start":at(e.requestStart),"http.request.response_start":at(e.responseStart),"http.request.response_end":at(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let an=0,aa={};function ai(e,t,r,n,a=r){var i;let o=t["secureConnection"===(i=r)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],s=t[`${r}Start`];s&&o&&nZ(e,n+n2(s),n+n2(o),{op:`browser.${a}`,name:t.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let ao="sentry_previous_trace";function as(e){return 1===e.traceFlags}var al=e.i(439611),au=e.i(679162);function ac(e={}){let t=e.client||(0,X.getClient)();if(!(0,K.isEnabled)()||!t)return{};let r=(0,eC.getMainCarrier)(),n=(0,au.getAsyncContextStrategy)(r);if(n.getTraceData)return n.getTraceData(e);let a=e.scope||(0,X.getCurrentScope)(),i=e.span||(0,eL.getActiveSpan)();if(!i&&(0,X.hasExternalPropagationContext)())return{};let o=i?(0,eL.spanToTraceHeader)(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,ni.generateSentryTraceHeader)(t,n,r)}(a),s=i?(0,eM.getDynamicSamplingContextFromSpan)(i):(0,eM.getDynamicSamplingContextFromScope)(t,a),l=(0,al.dynamicSamplingContextToSentryBaggageHeader)(s);if(!ni.TRACEPARENT_REGEXP.test(o))return z.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":o,baggage:l};return e.propagateTraceparent&&(u.traceparent=i?(0,eL.spanToTraceparentHeader)(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,ni.generateTraceparentHeader)(t,n,r)}(a)),u}function ad(e){return e.split(",").some(e=>e.trim().startsWith(al.SENTRY_BAGGAGE_KEY_PREFIX))}function ap(e,t,r,n){let a={url:t2(e),type:"fetch","http.method":r,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(tQ(t)||(a["http.url"]=t2(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}let af=Symbol.for("sentry__originalRequestBody");function ah(e){return new URLSearchParams(e).toString()}function am(e,t=z.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ah(e)];if(!e)return[void 0]}catch(r){return rG&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return rG&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ag(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][af];if(void 0!==t)return t}}function a_(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return rG&&z.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function ay(e){try{return new URL(e,tA.location.origin).href}catch{return}}function av(e){try{return new Headers(e)}catch{return}}let ab=new WeakMap,aS=new Map,aE={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function aT(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:a,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:u}={...aE,...t},c="function"==typeof i?i:e=>!0,d=e=>(function(e,t){let r=(0,tC.getLocationHref)();if(r){let n,a;try{n=new URL(e,r),a=new URL(r).origin}catch{return!1}let i=n.origin===a;return t?(0,ei.stringMatchesSomePattern)(n.toString(),t)||i&&(0,ei.stringMatchesSomePattern)(n.pathname,t):i}{let r=!!e.match(/^\/(?!\/)/);return t?(0,ei.stringMatchesSomePattern)(e,t):r}})(e,s),p={},f=e.getOptions().propagateTraceparent;if(r){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=aS.get(e.span_id);t&&(e.timestamp=t/1e3,aS.delete(e.span_id))}}),e)),a&&(tL(t="fetch-body-resolved",e=>{if(e.response){let t=ab.get(e.response);t&&e.endTimestamp&&aS.set(t,e.endTimestamp)}}),tD(t,()=>tq(tz))),tW(e=>{let t=function(e,t,r,n,a){if(!e.fetchData)return;let{method:i,url:o}=e.fetchData,s=(0,r4.hasSpansEnabled)()&&t(o);if(e.endTimestamp){var l,u,c;let t,r=e.fetchData.__span;if(!r)return;let i=n[r];i&&(s&&(function(e,t){if(t.response){(0,r7.setHttpStatus)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(i,e),l=i,u=e,t="object"==typeof(c=a)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete n[r]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof a?a:{spanOrigin:a},f=!!(0,eL.getActiveSpan)(),h=s&&f?(0,r9.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){let n=t2(e);return{name:`${t} ${n}`,attributes:ap(e,void 0,t,r)}}let n=tZ(e),a=n?function(e){if(tQ(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n):e;return{name:`${t} ${a}`,attributes:ap(e,n,t,r)}}(o,i,d)):new r6.SentryNonRecordingSpan;if(e.fetchData.__span=h.spanContext().spanId,n[h.spanContext().spanId]=h,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var a;let i=ac({span:r,propagateTraceparent:n}),o=i["sentry-trace"],s=i.baggage,l=i.traceparent;if(!o)return;let u=t.headers||((0,eA.isRequest)(e)?e.headers:void 0);if(!u)return{...i};if(a=u,"u">typeof Headers&&(0,eA.isInstanceOf)(a,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),s){let t=e.get("baggage");t?ad(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(u)){let e=[...u];u.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&l&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=u.find(e=>"baggage"===e[0]&&ad(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,r="baggage"in u?u.baggage:void 0,a=r?Array.isArray(r)?[...r]:[r]:[],i=r&&(Array.isArray(r)?r.find(e=>ad(e)):ad(r));s&&!i&&a.push(s);let c={...u,"sentry-trace":e??o,baggage:a.length>0?a.join(","):void 0};return n&&l&&!t&&(c.traceparent=l),c}}(t,r,(0,r4.hasSpansEnabled)()&&f?h:void 0,p);n&&(e.args[1]=r,r.headers=n)}let m=(0,X.getClient)();if(m){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",h,t)}return h}(e,c,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(e.response&&e.fetchData.__span&&ab.set(e.response,e.fetchData.__span),t){let r=ay(e.fetchData.url),n=r?t0(r).host:void 0;t.setAttributes({"http.url":r?t2(r):void 0,"server.address":n}),o&&aw(t),l?.(t,{headers:e.headers})}})}n&&t7(e=>{let t=function(e,t,r,n,a,i){let o=e.xhr,s=o?.[t8];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=(0,r4.hasSpansEnabled)()&&t(l);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==s.status_code&&((0,r7.setHttpStatus)(r,s.status_code),r.end(),i?.(r,{headers:av(a_(o)),error:e.error})),delete n[t]);return}let d=ay(l),p=d?t0(d):t0(l),f=t2(t1(l)),h=!!(0,eL.getActiveSpan)(),m=c&&h?(0,r9.startInactiveSpan)({name:`${u} ${f}`,attributes:{url:t2(l),type:"xhr","http.method":u,"http.url":d?t2(d):void 0,"server.address":p?.host,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new r6.SentryNonRecordingSpan;o.__sentry_xhr_span_id__=m.spanContext().spanId,n[o.__sentry_xhr_span_id__]=m,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:a,traceparent:i}=ac({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!a?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=a?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,a,i)}(o,(0,r4.hasSpansEnabled)()&&h?m:void 0,a);let g=(0,X.getClient)();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}(e,c,d,p,f,u);t&&(o&&aw(t),l?.(t,{headers:av(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function aw(e){let{url:t}=(0,eL.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;let r=nW("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&(e.setAttributes(ar(n)),setTimeout(r))})})}let aR=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i,aI={...ne,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...aE},aC=(e={})=>{let t,r,n,a;"enableElementTiming"in e&&(0,z.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let i={name:void 0,source:void 0},o=tA.document,{enableInp:s,enableLongTask:l,enableLongAnimationFrame:u,_experiments:{enableInteractions:d,enableStandaloneClsSpans:h,enableStandaloneLcpSpans:m},beforeStartSpan:g,idleTimeout:_,finalTimeout:y,childSpanTimeout:v,markBackgroundSpan:b,traceFetch:S,traceXHR:E,trackFetchStreamPerformance:T,shouldCreateSpanForRequest:w,enableHTTPTimings:R,ignoreResourceSpans:I,ignorePerformanceApiSpans:C,instrumentPageLoad:A,instrumentNavigation:k,detectRedirects:N,linkPreviousTrace:O,consistentTraceSampling:x,enableReportPageLoaded:P,onRequestSpanStart:M,onRequestSpanEnd:L}={...aI,...e},D=(a=tA.navigator,!!a?.userAgent&&aR.test(a.userAgent));function U(e,r,a=!0){let s="pageload"===r.op,l=r.name,u=g?g(r):r,c=u.attributes||{};if(l!==u.name&&(c[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",u.attributes=c),!a){let e=(0,eO.dateTimestampInSeconds)();(0,r9.startInactiveSpan)({...u,startTime:e}).end(e);return}i.name=u.name,i.source=c[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let d=nt(u,{idleTimeout:_,finalTimeout:y,childSpanTimeout:v,disableAutoFinish:s,beforeSpanEnd:r=>{t?.(),function(e,t){var r,n;let a=n1(),i=(0,eO.browserPerformanceTimeOrigin)();if(!a?.getEntries||!i)return;let o=n2(i),s=a.getEntries(),{op:l,start_timestamp:u}=(0,eL.spanToJSON)(e);s.slice(an).forEach(r=>{let n=n2(r.startTime),a=n2(Math.max(0,r.duration));if("navigation"!==l||!u||!(o+n<u))switch(r.entryType){case"navigation":var i,s,c,d,p,f;let h,m,g;i=e,s=r,c=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{ai(i,s,e,c)}),ai(i,s,"secureConnection",c,"TLS/SSL"),ai(i,s,"fetch",c,"cache"),ai(i,s,"domainLookup",c,"DNS"),d=i,p=s,h=(f=c)+n2(p.requestStart),m=f+n2(p.responseEnd),g=f+n2(p.responseStart),p.responseEnd&&(nZ(d,h,m,{op:"browser.request",name:p.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),nZ(d,g,m,{op:"browser.response",name:p.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,r,n,a,i){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,ei.stringMatchesSomePattern)(t.name,i))return;let o=nl(!1),s=a+Math.max(r,n2(o?o.requestStart:0)),l=a+r,u=l+n,c={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,eA.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,eA.isPrimitive)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),s<=u&&nZ(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,r,n,a,o,t.ignorePerformanceApiSpans);let i=nm(),s=r.startTime<i.firstHiddenTime;"first-paint"===r.name&&s&&(aa.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&s&&(aa.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,a,i,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=t0(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(t3.location.origin),s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let r=s[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...c,...ar(t)},f=i+n;nZ(e,f,f+a,{name:r.replace(t3.location.origin,""),op:u,attributes:p})}(e,r,r.name,n,a,o,t.ignoreResourceSpans)}}),an=Math.max(s.length-1,0),function(e){let t=t3.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),nQ(r.rtt)&&(aa["connection.rtt"]={value:r.rtt,unit:"millisecond"})),nQ(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),nQ(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=nl(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(aa),t.recordClsOnPageloadSpan||delete aa.cls,t.recordLcpOnPageloadSpan||delete aa.lcp,Object.entries(aa).forEach(([e,t])=>{(0,ae.setMeasurement)(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",nu()),r=e,n=t,p&&n.recordLcpOnPageloadSpan&&(p.element&&r.setAttribute("lcp.element",(0,tC.htmlTreeAsString)(p.element)),p.id&&r.setAttribute("lcp.id",p.id),p.url&&r.setAttribute("lcp.url",p.url.trim().slice(0,200)),null!=p.loadTime&&r.setAttribute("lcp.loadTime",p.loadTime),null!=p.renderTime&&r.setAttribute("lcp.renderTime",p.renderTime),r.setAttribute("lcp.size",p.size)),f?.sources&&n.recordClsOnPageloadSpan&&f.sources.forEach((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,tC.htmlTreeAsString)(e.node)))),p=void 0,f=void 0,aa={}}(r,{recordClsOnPageloadSpan:!h,recordLcpOnPageloadSpan:!m,ignoreResourceSpans:I,ignorePerformanceApiSpans:C}),aP(e,void 0);let a=(0,X.getCurrentScope)(),i=a.getPropagationContext();a.setPropagationContext({...i,traceId:d.spanContext().traceId,sampled:(0,eL.spanIsSampled)(d),dsc:(0,eM.getDynamicSamplingContextFromSpan)(r)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!P});function b(){o&&["interactive","complete"].includes(o.readyState)&&e.emit("idleSpanEnableAutoFinish",d)}s&&P&&(n=d),aP(e,d),s&&!P&&o&&(o.addEventListener("readystatechange",()=>{b()}),b())}return{name:"BrowserTracing",setup(e){if(D){rr&&z.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(nn(),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=n1();if(n&&(0,eO.browserPerformanceTimeOrigin)()){n.mark&&t3.performance.mark("sentry-tracing-init");let a=t?function(e){let t,r=0;if(!n3("largest-contentful-paint"))return;let n=nF(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);n5(e,(e,a)=>{var i,o,s,l;let u,c,d,p,f;i=r,o=t,s=a,l=e,rG&&z.debug.log(`Sending LCP span (${i})`),u=n2(((0,eO.browserPerformanceTimeOrigin)()||0)+(o?.startTime||0)),c=(0,X.getCurrentScope)().getScopeData().transactionName,d=o?(0,tC.htmlTreeAsString)(o.element):"Largest contentful paint",p={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o&&(o.element&&(p["lcp.element"]=(0,tC.htmlTreeAsString)(o.element)),o.id&&(p["lcp.id"]=o.id),o.url&&(p["lcp.url"]=o.url),null!=o.loadTime&&(p["lcp.loadTime"]=o.loadTime),null!=o.renderTime&&(p["lcp.renderTime"]=o.renderTime),null!=o.size&&(p["lcp.size"]=o.size)),(f=n0({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("lcp",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),f.end(u)),n()})}(r):nF(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(aa.lcp={value:e.value,unit:"millisecond"},p=t)},!0),i=nV("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(aa.ttfb={value:e.value,unit:"millisecond"})},nY,c),o=e?function(e){let t,r=0;if(!n3("layout-shift"))return;let n=n$(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);n5(e,(e,a)=>{var i,o,s,l;let u,c,d,p,f;i=r,o=t,s=a,l=e,rG&&z.debug.log(`Sending CLS span (${i})`),u=o?n2(((0,eO.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,eO.timestampInSeconds)(),c=(0,X.getCurrentScope)().getScopeData().transactionName,d=o?(0,tC.htmlTreeAsString)(o.sources[0]?.node):"Layout shift",p={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o?.sources&&o.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=(0,tC.htmlTreeAsString)(e.node)}),(f=n0({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("cls",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),f.end(u)),n()})}(r):n$(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(aa.cls={value:e.value,unit:""},f=t)},!0);return()=>{a?.(),i(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:h||!1,recordLcpStandaloneSpans:m||!1,client:e}),s&&function(){if(n1()&&(0,eO.browserPerformanceTimeOrigin)()){let e=nH(n9);()=>{e()}}}(),u&&Y.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,eL.getActiveSpan)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=n2((0,eO.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:a}=(0,eL.spanToJSON)(t);if("navigation"===a&&n&&e<n)continue;let i=n2(r.duration),o={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==d&&(o["browser.script.source_char_position"]=d),nZ(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):l&&nW("longtask",({entries:e})=>{let t=(0,eL.getActiveSpan)();if(!t)return;let{op:r,start_timestamp:n}=(0,eL.spanToJSON)(t);for(let a of e){let e=n2((0,eO.browserPerformanceTimeOrigin)()+a.startTime),i=n2(a.duration);"navigation"===r&&n&&e<n||nZ(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),d&&nW("event",({entries:e})=>{let t=(0,eL.getActiveSpan)();if(t){for(let r of e)if("click"===r.name){let e=n2((0,eO.browserPerformanceTimeOrigin)()+r.startTime),n=n2(r.duration),a={name:(0,tC.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=(0,tC.getComponentName)(r.target);i&&(a.attributes["ui.component_name"]=i),nZ(t,e,e+n,a)}}}),N&&o){let e=()=>{r=(0,eO.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function a(){let t=e[ax];t&&!(0,eL.spanToJSON)(t).timestamp&&(rr&&z.debug.log(`[Tracing] Finishing current active span with op: ${(0,eL.spanToJSON)(t).op}`),t.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,X.getClient)()!==e)return;if(n?.isRedirect){rr&&z.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),U(e,{op:"navigation.redirect",...t},!1);return}r=void 0,a(),(0,X.getIsolationScope)().setPropagationContext({traceId:(0,na.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,r4.hasSpansEnabled)()?void 0:(0,na.generateSpanId)()});let i=(0,X.getCurrentScope)();i.setPropagationContext({traceId:(0,na.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,r4.hasSpansEnabled)()?void 0:(0,na.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),U(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,X.getClient)()!==e)return;a();let n=r.sentryTrace||aN("sentry-trace")||aO("sentry-trace"),i=r.baggage||aN("baggage")||aO("baggage"),o=(0,ni.propagationContextFromHeaders)(n,i),s=(0,X.getCurrentScope)();s.setPropagationContext(o),(0,r4.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,na.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:tO()}),U(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{P&&n&&(n.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,a,o,l;let u;if(D)return;let c=(0,tC.getLocationHref)();if("off"!==O&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,a=n?function(){try{let e=tA.sessionStorage?.getItem(ao);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,eL.getRootSpan)(e)!==e)return;let t=(0,X.getCurrentScope)().getPropagationContext();a=function(e,t,r){let n=(0,eL.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(rr&&z.debug.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:n.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[eh.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!as(i)}`)),a)}(a,e,t),n&&function(e){try{tA.sessionStorage.setItem(ao,JSON.stringify(e))}catch(e){rr&&z.debug.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;r&&e.on("beforeSampling",e=>{if(!a)return;let t=(0,X.getCurrentScope)(),r=t.getPropagationContext();if(i&&r.parentSpanId){i=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(a.sampleRate),sampled:String(as(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=as(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[eh.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})}(e,{linkPreviousTrace:O,consistentTraceSampling:x}),tA.location){if(A){let t=(0,eO.browserPerformanceTimeOrigin)();aA(e,{name:tA.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}k&&re(({to:t,from:n})=>{var a,i;let o,s;if(void 0===n&&c?.indexOf(t)!==-1){c=void 0;return}c=void 0;let l=tZ(t),u=e[ax],d=u&&N&&(a=u,i=r,o=(0,eL.spanToJSON)(a),!((s=(0,eO.dateTimestampInSeconds)())-o.start_timestamp>1.5)&&(!i||!(s-i<=1.5)));ak(e,{name:l?.pathname||tA.location.pathname,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:d})})}b&&(tA.document?tA.document.addEventListener("visibilitychange",()=>{let e=(0,eL.getActiveSpan)();if(!e)return;let t=(0,eL.getRootSpan)(e);if(tA.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eL.spanToJSON)(t);rr&&z.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:r7.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):rr&&z.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d&&(t=e,n=_,a=y,o=v,l=i,tA.document&&addEventListener("click",()=>{let e="ui.action.click",r=function(e){return e[ax]}(t);if(r&&["navigation","pageload"].includes((0,eL.spanToJSON)(r).op)){rr&&z.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),u.end(),u=void 0),!l.name){rr&&z.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=nt({name:l.name,op:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l.source||"url"}},{idleTimeout:n,finalTimeout:a,childSpanTimeout:o})},{capture:!0})),s&&function(){let e=Object.keys(n7);function t(e){let t=e.target;if(!t)return;let r=(0,tC.htmlTreeAsString)(t),n=Math.round(e.timeStamp);if(n8.set(n,r),n8.size>50){let e=n8.keys().next().value;void 0!==e&&n8.delete(e)}}no()&&e.forEach(e=>{t3.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,eL.getActiveSpan)(),r=t&&(0,eL.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||n6.has(t))return;let n=e.target?(0,tC.htmlTreeAsString)(e.target):function(e){let t=Math.round(e.startTime),r=n8.get(t);if(!r)for(let e=-5;e<=5;e++){let n=n8.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(n4.length>10){let e=n4.shift();n6.delete(e)}n4.push(t),n6.set(t,{span:r,elementName:n})})};nW("event",r),nW("first-input",r)}(),aT(e,{traceFetch:S,traceXHR:E,trackFetchStreamPerformance:T,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:R,onRequestSpanStart:M,onRequestSpanEnd:L})}}};function aA(e,t,r){e.emit("startPageLoadSpan",t,r),(0,X.getCurrentScope)().setTransactionName(t.name);let n=e[ax];return n&&e.emit("afterStartPageLoadSpan",n),n}function ak(e,t,r){let{url:n,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});let i=(0,X.getCurrentScope)();return i.setTransactionName(t.name),n&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...tO(),url:n}}),e[ax]}function aN(e){let t=tA.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function aO(e){let t=tA.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let ax="_sentry_idleSpan";function aP(e,t){(0,ed.addNonEnumerableProperty)(e,ax,t)}let aM=Y.GLOBAL_OBJ,aL=null,aD=new Map,aU=new Map;function aB(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function aj(e){if(aD.has(e))return aD.get(e)??null;try{let t=new RegExp(e);return aD.set(e,t),t}catch(t){return r2&&z.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function a$(){if(!aM?._sentryRouteManifest||"string"!=typeof aM._sentryRouteManifest)return null;let e=aM._sentryRouteManifest;if(aL&&A===e)return aL;aD.clear(),aU.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return aL=t,A=e,t}catch{return r2&&z.debug.warn("Could not extract route manifest"),null}}let aF=e=>{let t=a$();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(aU.has(r))return aU.get(r);let{staticRoutes:n,dynamicRoutes:a}=t;if(!Array.isArray(n)||!Array.isArray(a))return;let i=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=aj(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,a=aj(t.regex);a?.test(r)&&n.push(t.path)}}return n})(r,n,a).sort((e,t)=>aB(e)-aB(t))[0];return aU.set(r,i),i};function aH(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let aW="incomplete-app-router-transaction",aq="router-patch",aG={current:void 0},az=Y.GLOBAL_OBJ,aY=Y.GLOBAL_OBJ;function aJ(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let aV=new WeakSet;function aK(e,t,r){aV.has(t)||(aV.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,a,i){if("router-patch"!==aq)return t.apply(a,i);let o=aW,s={[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=i[0],u=G.default.env._sentryBasePath??aY._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(o=aH(aJ(c)),s["navigation.type"]="router.push"):"replace"===n?(o=aH(aJ(c)),s["navigation.type"]="router.replace"):"back"===n?s["navigation.type"]="router.back":"forward"===n&&(s["navigation.type"]="router.forward");let d=aF(o);return r.current=ak(e,{name:d??o,attributes:{...s,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url"}}),t.apply(a,i)}}))}))}function aX(e,t){k&&k(e,t)}var aQ=e.i(896389);let aZ=aQ.default.events?aQ.default:aQ.default.default;function a0(e={}){let t=aC({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(tA.document.getElementById("__NEXT_DATA__"))aZ.events.on("routeChangeStart",t=>{let r,n,a=t1(t),i=function(e){let t=tA.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,a,i=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${n}(?:/)?$`));return e.match(i)})}(a);i?(r=i,n="route"):(r=a,n="url"),ak(e,{name:r,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})});else{let t,r,n;k=(t,r)=>{let n=G.default.env._sentryBasePath??aY._sentryBasePath,a=aH(new URL(n&&!t.startsWith(n)?`${n}${t}`:t,tA.location.href).pathname),i=aF(a),o=i??a;"router-patch"===aq&&(aq="transition-start-hook");let s=aG.current;s?(s.updateName(o),s.setAttributes({"navigation.type":`router.${r}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i?"route":"url"}),aG.current=void 0):ak(e,{name:o,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i?"route":"url","navigation.type":`router.${r}`}})},tA.addEventListener("popstate",()=>{let t=aH(tA.location.pathname),r=aF(t);aG.current?.isRecording()?(aG.current.updateName(r??t),aG.current.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,r?"route":"url")):aG.current=ak(e,{name:r??t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let a=az?.next?.router??az?.nd?.router;t||r>500?clearInterval(n):a&&(clearInterval(n),t=!0,aK(e,a,aG),["nd","next"].forEach(t=>{let r=az[t];r&&(az[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&aK(e,n,aG),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(tA.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:a}=function(){let e,t=tA.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{r2&&z.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:a,props:i}=e;return r.route=n,r.params=a,i?.pageProps&&(r.sentryTrace=i.pageProps._sentryTraceData,r.baggage=i.pageProps._sentryBaggage),r}(),i=(0,al.parseBaggageHeader)(a),o=t||tA.location.pathname;i?.["sentry-transaction"]&&"/_error"===o&&(o=(o=i["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,eO.browserPerformanceTimeOrigin)();aA(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:a})}(e);else{let t,r,n;r=aF(t=aH(tA.location.pathname)),aA(e,{name:r??t,startTime:(n=(0,eO.browserPerformanceTimeOrigin)())?n/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url"}})}}(e)}}}let a1=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function a2(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let a=n>=0?e[n]:"/";a&&(t=`${a}/${t}`,r="/"===a.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function a3(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let a5=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in Y.GLOBAL_OBJ&&!!Y.GLOBAL_OBJ.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let a=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(a||i){let e,i,o=a?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=a2(e).slice(1),t=a2(t).slice(1);let r=a3(e.split("/")),n=a3(t.split("/")),a=Math.min(r.length,n.length),i=a;for(let e=0;e<a;e++)if(r[e]!==n[e]){i=e;break}let o=[];for(let e=i;e<r.length;e++)o.push("..");return(o=o.concat(n.slice(i))).join("/")}(t,o):(e=o.length>1024?`<truncated>${o.slice(-1024)}`:o,(i=a1.exec(e))?i.slice(1):[])[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>a(e))}}}})}}}catch{return e}}(t)),t}}},a4=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),a6=Y.GLOBAL_OBJ,a8=!1,a7=Y.GLOBAL_OBJ;function a9(e){let t,r,n,a,i,o;a8&&(0,z.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),a8=!0,!r2&&e.debug&&(0,z.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){tA.document&&function(e){let t=aF(e)||e,r=a4.get(t);if(void 0!==r)return r;let n=a$();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return a4.set(t,!1),!1;let a=n.isrRoutes.includes(t);return a4.set(t,a),a}(tA.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tA.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let s={environment:e.environment||G.default.env.SENTRY_ENVIRONMENT||((t=G.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(r=rK(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&r.push(a0()),n=a7._sentryRewriteFramesAssetPrefixPath||"",a=G.default.env._sentryAssetPrefix||a7._sentryAssetPrefix,i=G.default.env._sentryBasePath||a7._sentryBasePath,o="true"===G.default.env._experimentalThirdPartyOriginStackFrames||"true"===a7._experimentalThirdPartyOriginStackFrames,r.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...a5({iteratee:a=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(r)&&!a.filename.endsWith(".js"))return a;if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===r&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)):(a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)),a}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:a,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:o})),r),release:"dc62485b60679b810b5f74bfb5a22915b7a62314",...e};!function(e){let t=G.default.env._sentryRewritesTunnelPath||a6._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,eS.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let a=n[1],i=n[2],o=`${t}?o=${a}&p=${r.projectId}`;i&&(o+=`&r=${i}`),e.tunnel=o,r2&&z.debug.log(`Tunneling events to "${o}"`)}else r2&&z.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),V(s,"nextjs",["nextjs","react"]);let l=r1(s),u=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;u.id="NextClient404Filter",(0,K.addEventProcessor)(u);let c=e=>"transaction"===e.type&&e.transaction===aW?null:e;c.id="IncompleteTransactionFilter",(0,K.addEventProcessor)(c);let d=(e,t)=>r5(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;d.id="NextRedirectErrorFilter",(0,K.addEventProcessor)(d);try{(0,X.getGlobalScope)().setTag("turbopack",!0)}catch{}return l}function ie(e){return e}function it(e,t={},r=(0,X.getCurrentScope)()){let{message:n,name:a,email:i,url:o,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:i,name:a,message:n,url:o,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=r?.getClient()||(0,X.getClient)();return d&&d.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)}e.s([],955364),e.i(955364),e.s([],227209),e.i(227209);let ir=Y.GLOBAL_OBJ,ia=ir.document,ii=ir.navigator,io="Report a Bug",is="Cancel",il="Send Bug Report",iu="Confirm",ic="Report a Bug",id="your.email@example.org",ip="Email",ih="What's the bug? What did you expect?",im="Description",ig="Your Name",i_="Name",iy="Thank you for your report!",iv="(required)",ib="Add a screenshot",iS="Remove screenshot",iE="Highlight",iT="Hide",iw="Remove",iR=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let r=(0,X.getClient)();if(!r)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,X.getCurrentScope)().setTags(e.tags);let n=it({source:"api",url:(0,tC.getLocationHref)(),...e},t);return new Promise((e,t)=>{let a=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),i=r.on("afterSendEvent",(r,o)=>{if(r.event_id===n)return(clearTimeout(a),i(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300)?e(n):o?.statusCode===403?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},iI="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function iC(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function iA(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let ik="rgba(88, 74, 192, 1)",iN={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ik,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},iO={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ik,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function ix(e){return`
--foreground: ${e.foreground};
--background: ${e.background};
--accent-foreground: ${e.accentForeground};
--accent-background: ${e.accentBackground};
--success-color: ${e.successColor};
--error-color: ${e.errorColor};
--border: ${e.border};
--box-shadow: ${e.boxShadow};
--outline: ${e.outline};
--interactive-filter: ${e.interactiveFilter};
`}function iP({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let a=ia.createElement("style");return a.textContent=`
:host {
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
--font-size: 14px;
--z-index: 100000;
--page-margin: 16px;
--inset: auto 0 0 auto;
--actor-inset: var(--inset);
font-family: var(--font-family);
font-size: var(--font-size);
${"system"!==e?`color-scheme: only ${e};`:""}
${ix("dark"===e?{...iO,...t}:{...iN,...r})}
}
${"system"===e?`
@media (prefers-color-scheme: dark) {
:host {
color-scheme: only dark;
${ix({...iO,...t})}
}
}`:""}
`,n&&a.setAttribute("nonce",n),a}let iM=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:a=!0,showBranding:i=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y=ib,cancelButtonLabel:v=is,confirmButtonLabel:b=iu,emailLabel:S=ip,emailPlaceholder:E=id,formTitle:T=ic,isRequiredLabel:w=iv,messageLabel:R=im,messagePlaceholder:I=ih,nameLabel:C=i_,namePlaceholder:A=ig,removeScreenshotButtonLabel:k=iS,submitButtonLabel:N=il,successMessageText:O=iy,triggerLabel:x=io,triggerAriaLabel:P="",highlightToolText:M=iE,hideToolText:L=iT,removeHighlightText:D=iw,onFormOpen:U,onFormClose:B,onSubmitSuccess:j,onSubmitError:$,onFormSubmitted:F}={})=>{let H={id:n,autoInject:a,showBranding:i,isEmailRequired:o,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:x,triggerAriaLabel:P,cancelButtonLabel:v,submitButtonLabel:N,confirmButtonLabel:b,formTitle:T,emailLabel:S,emailPlaceholder:E,messageLabel:R,messagePlaceholder:I,nameLabel:C,namePlaceholder:A,successMessageText:O,isRequiredLabel:w,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:k,highlightToolText:M,hideToolText:L,removeHighlightText:D,onFormClose:B,onFormOpen:U,onSubmitError:$,onSubmitSuccess:j,onFormSubmitted:F},W=null,q=null,G=[],Y=e=>{if(!W){let t=ia.createElement("div");t.id=String(e.id),ia.body.appendChild(t),W=t.attachShadow({mode:"open"}),q=iP(e),W.appendChild(q)}return W},J=async n=>{let a,i,o=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ii.userAgent)||/Macintosh/i.test(ii.userAgent)&&ii.maxTouchPoints&&ii.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",h))(),er(a)}catch{throw iI&&z.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let t=o?r?r():await e("feedbackScreenshotIntegration",h):void 0;t&&(i=t(),er(i))}catch{iI&&z.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s=a.createDialog({options:{...n,onFormClose:()=>{s?.close(),n.onFormClose?.()},onFormSubmitted:()=>{s?.close(),n.onFormSubmitted?.()}},screenshotIntegration:i,sendFeedback:iR,shadow:Y(n)});return s},V=(e,t={})=>{let r=iC(H,t),n="string"==typeof e?ia.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw iI&&z.debug.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let a=null,i=async()=>{a||(a=await J({...r,onFormSubmitted:()=>{a?.removeFromDom(),r.onFormSubmitted?.()}})),a.appendToDom(),a.open()};n.addEventListener("click",i);let o=()=>{G=G.filter(e=>e!==o),a?.removeFromDom(),a=null,n.removeEventListener("click",i)};return G.push(o),o},K=(e={})=>{let t=iC(H,e),r=Y(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let a,i,o,s,l,u,c,d,p=ia.createElement("button");if(p.type="button",p.className="widget__actor",p.ariaHidden="false",p.ariaLabel=t||e||io,p.appendChild((i=iA((a=e=>ir.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),o=iA(a("g"),{clipPath:"url(#clip0_57_80)"}),s=iA(a("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"}),i.appendChild(o).appendChild(s),l=a("defs"),u=iA(a("clipPath"),{id:"clip0_57_80"}),c=iA(a("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),i.appendChild(l).appendChild(u).appendChild(c),i)),e){let t=ia.createElement("span");t.appendChild(ia.createTextNode(e)),p.appendChild(t)}let f=((d=ia.createElement("style")).textContent=`
.widget__actor {
position: fixed;
z-index: var(--z-index);
margin: var(--page-margin);
inset: var(--actor-inset);
display: flex;
align-items: center;
gap: 8px;
padding: 16px;
font-family: inherit;
font-size: var(--font-size);
font-weight: 600;
line-height: 1.14em;
text-decoration: none;
background: var(--actor-background, var(--background));
border-radius: var(--actor-border-radius, 1.7em/50%);
border: var(--actor-border, var(--border));
box-shadow: var(--actor-box-shadow, var(--box-shadow));
color: var(--actor-color, var(--foreground));
fill: var(--actor-color, var(--foreground));
cursor: pointer;
opacity: 1;
transition: transform 0.2s ease-in-out;
transform: translate(0, 0) scale(1);
}
.widget__actor[aria-hidden="true"] {
opacity: 0;
pointer-events: none;
visibility: hidden;
transform: translate(0, 16px) scale(0.98);
}
.widget__actor:hover {
background: var(--actor-hover-background, var(--background));
filter: var(--interactive-filter);
}
.widget__actor svg {
width: 1.14em;
height: 1.14em;
}
@media (max-width: 600px) {
.widget__actor span {
display: none;
}
}
`,n&&d.setAttribute("nonce",n),d);return{el:p,appendToDom(){r.appendChild(f),r.appendChild(p)},removeFromDom(){p.remove(),f.remove()},show(){p.ariaHidden="false"},hide(){p.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:f});return V(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){no()&&H.autoInject&&("loading"===ia.readyState?ia.addEventListener("DOMContentLoaded",()=>K().appendToDom()):K().appendToDom())},attachTo:V,createWidget(e={}){let t=K(iC(H,e));return t.appendToDom(),t},createForm:async(e={})=>J(iC(H,e)),setTheme(e){if(H.colorScheme=e,W){let e=iP(H);q?W.replaceChild(e,q):W.prepend(e),q=e}},remove(){W&&(W.parentElement?.remove(),W=null,q=null),G.forEach(e=>e()),G=[]}}};function iL(){let e=(0,X.getClient)();return e?.getIntegrationByName("Feedback")}var iD,iU,iB,ij,i$,iF,iH,iW={},iq=[],iG=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,iz=Array.isArray;function iY(e,t){for(var r in t)e[r]=t[r];return e}function iJ(e){var t=e.parentNode;t&&t.removeChild(e)}function iV(e,t,r){var n,a,i,o={};for(i in t)"key"==i?n=t[i]:"ref"==i?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?iD.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return iK(e,o,n,a,null)}function iK(e,t,r,n,a){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++iB:a,__i:-1,__u:0};return null==a&&null!=iU.vnode&&iU.vnode(i),i}function iX(e){return e.children}function iQ(e,t){this.props=e,this.context=t}function iZ(e,t){if(null==t)return e.__?iZ(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?iZ(e):null}function i0(e){(!e.__d&&(e.__d=!0)&&ij.push(e)&&!i1.__r++||i$!==iU.debounceRendering)&&((i$=iU.debounceRendering)||iF)(i1)}function i1(){var e,t,r,n=[],a=[];for(ij.sort(iH);e=ij.shift();)e.__d&&(r=ij.length,t=function(e,t,r){var n,a=e.__v,i=a.__e,o=e.__P;if(o)return(n=iY({},a)).__v=a.__v+1,iU.vnode&&iU.vnode(n),i8(o,n,a,e.__n,void 0!==o.ownerSVGElement,32&a.__u?[i]:null,t,null==i?iZ(a):i,!!(32&a.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=i&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,a)||t,0===r||ij.length>r?(i7(n,t,a),a.length=n.length=0,t=void 0,ij.sort(iH)):t&&iU.__c&&iU.__c(t,iq));t&&i7(n,t,a),i1.__r=0}function i2(e,t,r,n,a,i,o,s,l,u,c){var d,p,f,h,m,g=n&&n.__k||iq,_=t.length;for(r.__d=l,function(e,t,r){var n,a,i,o,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)null!=(a=e.__k[n]=null==(a=t[n])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?iK(null,a,null,null,a):iz(a)?iK(iX,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?iK(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,s=function(e,t,r,n){var a=e.key,i=e.type,o=r-1,s=r+1,l=t[r];if(null===l||l&&a==l.key&&i===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&a==l.key&&i===l.type)return o;o--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&i===l.type)return s;s++}}return -1}(a,r,o=n+d,c),a.__i=s,i=null,-1!==s&&(c--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof a.type&&(a.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>l-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==n+d&&(a.__u|=65536))):(i=r[n])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=iZ(i)),oe(i,i,!1),r[n]=null,c--);if(c)for(n=0;n<u;n++)null!=(i=r[n])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=iZ(i)),oe(i,i))}(r,t,g),l=r.__d,d=0;d<_;d++)null!=(f=r.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?iW:g[f.__i]||iW,f.__i=d,i8(e,f,p,a,i,o,s,l,u,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&i9(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,r,n){var a,i;if("function"==typeof t.type){for(a=t.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=t,r=e(a[i],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType)return r}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=m}function i3(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||iG.test(t)?r:r+"px"}function i5(e,t,r,n,a){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||i3(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||i3(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,i?i6:i4,i)):e.removeEventListener(t,i?i6:i4,i);else{if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function i4(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(iU.event?iU.event(e):e)}}function i6(e){if(this.l)return this.l[e.type+!0](iU.event?iU.event(e):e)}function i8(e,t,r,n,a,i,o,s,l,u){var c,d,p,f,h,m,g,_,y,v,b,S,E,T,w,R=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(c=iU.__b)&&c(t);e:if("function"==typeof R)try{if(_=t.props,y=(c=R.contextType)&&n[c.__c],v=c?y?y.props.value:c.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(_,v):(t.__c=d=new iQ(_,v),d.constructor=R,d.render=ot),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=iY({},d.__s)),iY(d.__s,R.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=iU.__r,E=0,"prototype"in R&&R.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25)d.state=d.__s,null!=d.getChildContext&&(n=iY(iY({},n),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),i2(e,iz(w=null!=c&&c.type===iX&&null==c.key?c.props.children:c)?w:[w],t,r,n,a,i,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),iU.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,a,i,o,s,l){var u,c,d,p,f,h,m,g=r.props,_=t.props,y=t.type;if("svg"===y&&(a=!0),null!=i){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,i[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=a?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),i=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(i=i&&iD.call(e.childNodes),g=r.props||iW,!s&&null!=i)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in _||i5(e,u,null,f,a));for(u in _)f=_[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||s&&"function"!=typeof f||g[u]===f||i5(e,u,f,g[u],a);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),i2(e,iz(p)?p:[p],t,r,n,a&&"foreignObject"!==y,i,o,i?i[0]:r.__k&&iZ(r,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&iJ(i[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===g[u])||i5(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&i5(e,u,m,g[u],!1))}return e}(r.__e,t,r,n,a,i,o,l,u);(c=iU.diffed)&&c(t)}function i7(e,t,r){for(var n=0;n<r.length;n++)i9(r[n],r[++n],r[++n]);iU.__c&&iU.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){iU.__e(e,t.__v)}})}function i9(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){iU.__e(e,r)}}function oe(e,t,r){var n,a;if(iU.unmount&&iU.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||i9(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){iU.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(a=0;a<n.length;a++)n[a]&&oe(n[a],t,r||"function"!=typeof e.type);r||null==e.__e||iJ(e.__e),e.__=e.__e=e.__d=void 0}function ot(e,t,r){return this.constructor(e,r)}iD=iq.slice,iU={__e:function(e,t,r,n){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,n||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},iB=0,iQ.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=iY({},this.state),"function"==typeof e&&(e=e(iY({},r),this.props)),e&&iY(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),i0(this))},iQ.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),i0(this))},iQ.prototype.render=iX,ij=[],iF="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,iH=function(e,t){return e.__v.__b-t.__v.__b},i1.__r=0;var or,on,oa,oi,oo=0,os=[],ol=[],ou=iU,oc=ou.__b,od=ou.__r,op=ou.diffed,of=ou.__c,oh=ou.unmount,om=ou.__;function og(e,t){ou.__h&&ou.__h(on,e,oo||t),oo=0;var r=on.__H||(on.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:ol}),r.__[e]}function o_(e){return oo=1,oy(oC,e)}function oy(e,t,r){var n=og(or++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):oC(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=on,!on.u)){var a=function(e,t,r){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var o=!1;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&n.__c.props===e)&&(!i||i.call(this,e,t,r))};on.u=!0;var i=on.shouldComponentUpdate,o=on.componentWillUpdate;on.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,a(e,t,r),i=n}o&&o.call(this,e,t,r)},on.shouldComponentUpdate=a}return n.__N||n.__}function ov(e,t){var r=og(or++,4);!ou.__s&&oI(r.__H,t)&&(r.__=e,r.i=t,on.__h.push(r))}function ob(e,t){var r=og(or++,7);return oI(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function oS(e,t){return oo=8,ob(function(){return e},t)}function oE(){for(var e;e=os.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ow),e.__H.__h.forEach(oR),e.__H.__h=[]}catch(t){e.__H.__h=[],ou.__e(t,e.__v)}}ou.__b=function(e){on=null,oc&&oc(e)},ou.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),om&&om(e,t)},ou.__r=function(e){od&&od(e),or=0;var t=(on=e.__c).__H;t&&(oa===on?(t.__h=[],on.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ol,e.__N=e.i=void 0})):(t.__h.forEach(ow),t.__h.forEach(oR),t.__h=[],or=0)),oa=on},ou.diffed=function(e){op&&op(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==os.push(t)&&oi===ou.requestAnimationFrame||((oi=ou.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),oT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);oT&&(t=requestAnimationFrame(r))})(oE)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ol&&(e.__=e.__V),e.i=void 0,e.__V=ol})),oa=on=null},ou.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ow),e.__h=e.__h.filter(function(e){return!e.__||oR(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ou.__e(r,e.__v)}}),of&&of(e,t)},ou.unmount=function(e){oh&&oh(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{ow(e)}catch(e){t=e}}),r.__H=void 0,t&&ou.__e(t,r.__v))};var oT="function"==typeof requestAnimationFrame;function ow(e){var t=on,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),on=t}function oR(e){var t=on;e.__c=e.__(),on=t}function oI(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function oC(e,t){return"function"==typeof t?t(e):t}let oA=Object.defineProperty({__proto__:null,useCallback:oS,useContext:function(e){var t=on.context[e.__c],r=og(or++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(on)),t.props.value):e.__},useDebugValue:function(e,t){ou.useDebugValue&&ou.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=og(or++,3);!ou.__s&&oI(r.__H,t)&&(r.__=e,r.i=t,on.__H.__h.push(r))},useErrorBoundary:function(e){var t=og(or++,10),r=o_();return t.__=e,on.componentDidCatch||(on.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=og(or++,11);if(!e.__){for(var t=on.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){oo=6,ov(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:ov,useMemo:ob,useReducer:oy,useRef:function(e){return oo=5,ob(function(){return{current:e}},[])},useState:o_},Symbol.toStringTag,{value:"Module"});function ok({options:e}){let t=ob(()=>{let e,t;return{__html:(e=iA(ia.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=iA(ia.createElementNS("http://www.w3.org/2000/svg","path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"}),e.appendChild(t),e).outerHTML}},[]);return iV("h2",{class:"dialog__header"},iV("span",{class:"dialog__title"},e.formTitle),e.showBranding?iV("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function oN(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function oO({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:a,onSubmitSuccess:i,onSubmitError:o,showEmail:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:E,isRequiredLabel:T}=e,[w,R]=o_(!1),[I,C]=o_(null),[A,k]=o_(!1),N=u?.input,[O,x]=o_(null),P=oS(e=>{x(e),k(!1)},[]),M=oS(e=>{var t;let r,n=(r=[],(t={emailLabel:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:b}).isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r);return n.length>0?C(`Please enter in the following required fields: ${n.join(", ")}`):C(null),0===n.length},[h,g,_,y,b]);return iV("form",{class:"form",onSubmit:oS(async e=>{R(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (u&&A?u.value():void 0),n={name:oN(t,"name"),email:oN(t,"email"),message:oN(t,"message"),attachments:r?[r]:void 0};if(!M(n))return;try{let e=await a({name:n.name,email:n.email,message:n.message,source:"widget",tags:c},{attachments:n.attachments});i(n,e)}catch(e){iI&&z.debug.error(e),C(e),o(e)}}finally{R(!1)}},[u&&A,i,o])},N&&A?iV(N,{onError:P}):null,iV("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:w},iV("div",{class:"form__top"},I?iV("div",{class:"form__error-container"},I):null,l?iV("label",{for:"name",class:"form__label"},iV(ox,{label:b,isRequiredLabel:T,isRequired:_}),iV("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:S,required:_,type:"text"})):iV("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?iV("label",{for:"email",class:"form__label"},iV(ox,{label:h,isRequiredLabel:T,isRequired:g}),iV("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):iV("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),iV("label",{for:"message",class:"form__label"},iV(ox,{label:y,isRequiredLabel:T,isRequired:!0}),iV("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),N?iV("label",{for:"screenshot",class:"form__label"},iV("button",{class:"btn btn--default",disabled:w,type:"button",onClick:()=>{x(null),k(e=>!e)}},A?p:d),O?iV("div",{class:"form__error-container"},O.message):null):null),iV("div",{class:"btn-group"},iV("button",{class:"btn btn--primary",disabled:w,type:"submit"},E),iV("button",{class:"btn btn--default",disabled:w,type:"button",onClick:n},f))))}function ox({label:e,isRequired:t,isRequiredLabel:r}){return iV("span",{class:"form__label__text"},e,t&&iV("span",{class:"form__label__text--required"},r))}function oP({open:e,onFormSubmitted:t,...r}){let n=r.options,a=ob(()=>{let e,t,r,n,a,i,o,s;return{__html:(t=iA((e=e=>ir.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=iA(e("g"),{clipPath:"url(#clip0_57_156)"}),n=iA(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),a=iA(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(r).append(a,n),i=e("defs"),o=iA(e("clipPath"),{id:"clip0_57_156"}),s=iA(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),o.appendChild(s),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(s),t).outerHTML}},[]),[i,o]=o_(null),s=oS(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),l=oS((e,n)=>{r.onSubmitSuccess(e,n),o(setTimeout(()=>{t(),o(null)},5e3))},[t]);return iV(iX,null,i?iV("div",{class:"success__position",onClick:s},iV("div",{class:"success__content"},n.successMessageText,iV("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):iV("dialog",{class:"dialog",onClick:n.onFormClose,open:e},iV("div",{class:"dialog__position"},iV("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},iV(ok,{options:n}),iV(oO,{...r,onSubmitSuccess:l})))))}let oM=`
.dialog {
position: fixed;
z-index: var(--z-index);
margin: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
height: 100vh;
width: 100vw;
color: var(--dialog-color, var(--foreground));
fill: var(--dialog-color, var(--foreground));
line-height: 1.75em;
background-color: rgba(0, 0, 0, 0.05);
border: none;
inset: 0;
opacity: 1;
transition: opacity 0.2s ease-in-out;
}
.dialog__position {
position: fixed;
z-index: var(--z-index);
inset: var(--dialog-inset);
padding: var(--page-margin);
display: flex;
max-height: calc(100vh - (2 * var(--page-margin)));
}
@media (max-width: 600px) {
.dialog__position {
inset: var(--page-margin);
padding: 0;
}
}
.dialog__position:has(.editor) {
inset: var(--page-margin);
padding: 0;
}
.dialog:not([open]) {
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.dialog:not([open]) .dialog__content {
transform: translate(0, -16px) scale(0.98);
}
.dialog__content {
display: flex;
flex-direction: column;
gap: 16px;
padding: var(--dialog-padding, 24px);
max-width: 100%;
width: 100%;
max-height: 100%;
overflow: auto;
background: var(--dialog-background, var(--background));
border-radius: var(--dialog-border-radius, 20px);
border: var(--dialog-border, var(--border));
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
transform: translate(0, 0) scale(1);
transition: transform 0.2s ease-in-out;
}
`,oL=`
.dialog__header {
display: flex;
gap: 4px;
justify-content: space-between;
font-weight: var(--dialog-header-weight, 600);
margin: 0;
}
.dialog__title {
align-self: center;
width: var(--form-width, 272px);
}
@media (max-width: 600px) {
.dialog__title {
width: auto;
}
}
.dialog__position:has(.editor) .dialog__title {
width: auto;
}
.brand-link {
display: inline-flex;
}
.brand-link:focus-visible {
outline: var(--outline);
}
`,oD=`
.form {
display: flex;
overflow: auto;
flex-direction: row;
gap: 16px;
flex: 1 0;
}
.form fieldset {
border: none;
margin: 0;
padding: 0;
}
.form__right {
flex: 0 0 auto;
display: flex;
overflow: auto;
flex-direction: column;
justify-content: space-between;
gap: 20px;
width: var(--form-width, 100%);
}
.dialog__position:has(.editor) .form__right {
width: var(--form-width, 272px);
}
.form__top {
display: flex;
flex-direction: column;
gap: 8px;
}
.form__error-container {
color: var(--error-color);
fill: var(--error-color);
}
.form__label {
display: flex;
flex-direction: column;
gap: 4px;
margin: 0px;
}
.form__label__text {
display: flex;
gap: 4px;
align-items: center;
}
.form__label__text--required {
font-size: 0.85em;
}
.form__input {
font-family: inherit;
line-height: inherit;
background: transparent;
box-sizing: border-box;
border: var(--input-border, var(--border));
border-radius: var(--input-border-radius, 6px);
color: var(--input-color, inherit);
fill: var(--input-color, inherit);
font-size: var(--input-font-size, inherit);
font-weight: var(--input-font-weight, 500);
padding: 6px 12px;
}
.form__input::placeholder {
opacity: 0.65;
color: var(--input-placeholder-color, inherit);
filter: var(--interactive-filter);
}
.form__input:focus-visible {
outline: var(--input-focus-outline, var(--outline));
}
.form__input--textarea {
font-family: inherit;
resize: vertical;
}
.error {
color: var(--error-color);
fill: var(--error-color);
}
`,oU=`
.btn-group {
display: grid;
gap: 8px;
}
.btn {
line-height: inherit;
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
cursor: pointer;
font-family: inherit;
font-size: var(--button-font-size, inherit);
font-weight: var(--button-font-weight, 600);
padding: var(--button-padding, 6px 16px);
}
.btn[disabled] {
opacity: 0.6;
pointer-events: none;
}
.btn--primary {
color: var(--button-primary-color, var(--accent-foreground));
fill: var(--button-primary-color, var(--accent-foreground));
background: var(--button-primary-background, var(--accent-background));
border: var(--button-primary-border, var(--border));
border-radius: var(--button-primary-border-radius, 6px);
font-weight: var(--button-primary-font-weight, 500);
}
.btn--primary:hover {
color: var(--button-primary-hover-color, var(--accent-foreground));
fill: var(--button-primary-hover-color, var(--accent-foreground));
background: var(--button-primary-hover-background, var(--accent-background));
filter: var(--interactive-filter);
}
.btn--primary:focus-visible {
background: var(--button-primary-hover-background, var(--accent-background));
filter: var(--interactive-filter);
outline: var(--button-primary-focus-outline, var(--outline));
}
.btn--default {
color: var(--button-color, var(--foreground));
fill: var(--button-color, var(--foreground));
background: var(--button-background, var(--background));
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
font-weight: var(--button-font-weight, 500);
}
.btn--default:hover {
color: var(--button-color, var(--foreground));
fill: var(--button-color, var(--foreground));
background: var(--button-hover-background, var(--background));
filter: var(--interactive-filter);
}
.btn--default:focus-visible {
background: var(--button-hover-background, var(--background));
filter: var(--interactive-filter);
outline: var(--button-focus-outline, var(--outline));
}
`,oB=`
.success__position {
position: fixed;
inset: var(--dialog-inset);
padding: var(--page-margin);
z-index: var(--z-index);
}
.success__content {
background: var(--success-background, var(--background));
border: var(--success-border, var(--border));
border-radius: var(--success-border-radius, 1.7em/50%);
box-shadow: var(--success-box-shadow, var(--box-shadow));
font-weight: var(--success-font-weight, 600);
color: var(--success-color);
fill: var(--success-color);
padding: 12px 24px;
line-height: 1.75em;
display: grid;
align-items: center;
grid-auto-flow: column;
gap: 6px;
cursor: default;
}
.success__icon {
display: flex;
}
`,oj=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:n})=>{var a;let i,o,s,l,u=e.useSentryUser,c=(i=(0,X.getCurrentScope)().getUser(),o=(0,X.getIsolationScope)().getUser(),s=(0,X.getGlobalScope)().getUser(),i&&Object.keys(i).length?i:o&&Object.keys(o).length?o:s),d=ia.createElement("div"),p=(a=e.styleNonce,(l=ia.createElement("style")).textContent=`
:host {
--dialog-inset: var(--inset);
}
${oM}
${oL}
${oD}
${oU}
${oB}
`,a&&l.setAttribute("nonce",a),l),f="",h={get el(){return d},appendToDom(){n.contains(p)||n.contains(d)||(n.appendChild(p),n.appendChild(d))},removeFromDom(){d.remove(),p.remove(),ia.body.style.overflow=f},open(){g(!0),e.onFormOpen?.(),(0,X.getClient)()?.emit("openFeedbackWidget"),f=ia.body.style.overflow,ia.body.style.overflow="hidden"},close(){g(!1),ia.body.style.overflow=f}},m=t?.createInput({h:iV,hooks:oA,dialog:h,options:e}),g=t=>{var n,a,i,o;n=iV(oP,{options:e,screenshotInput:m,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{g(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),iU.__&&iU.__(n,d),a=d.__k,i=[],o=[],i8(d,n=d.__k=iV(iX,null,[n]),a||iW,iW,void 0!==d.ownerSVGElement,a?null:d.firstChild?iD.call(d.childNodes):null,i,a?a.__e:d.firstChild,!1,o),n.__d=void 0,i7(i,n,o)};return h}});function o$(e,t,r){if(!e)return;let n=e.getContext("2d",t);n&&r(e,n)}function oF(e,t){o$(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function oH(e,t,r){o$(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}})})}let oW=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let a=ia.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:r,dialog:n,options:a}){var i;let o,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:a}){let i=function(){let[t,r]=e.useState(ir.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(ir.devicePixelRatio)},t=matchMedia(`(resolution: ${ir.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await ii.mediaDevices.getDisplayMedia({video:{width:ir.innerWidth*i,height:ir.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=ia.createElement("video");await new Promise((t,n)=>{a.srcObject=e,a.onloadedmetadata=()=>{r(a,i),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(n)}),n()})().catch(a)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),d=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),p={__html:(i=a.styleNonce,o=ia.createElement("style"),s="#1A141F",l="#302735",o.textContent=`
.editor {
display: flex;
flex-grow: 1;
flex-direction: column;
}
.editor__image-container {
justify-items: center;
padding: 15px;
position: relative;
height: 100%;
border-radius: var(--menu-border-radius, 6px);
background-color: ${s};
background-image: repeating-linear-gradient(
-145deg,
transparent,
transparent 8px,
${s} 8px,
${s} 11px
),
repeating-linear-gradient(
-45deg,
transparent,
transparent 15px,
${l} 15px,
${l} 16px
);
}
.editor__canvas-container {
width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.editor__canvas-container > * {
object-fit: contain;
position: absolute;
}
.editor__tool-container {
padding-top: 8px;
display: flex;
justify-content: center;
}
.editor__tool-bar {
display: flex;
gap: 8px;
}
.editor__tool {
display: flex;
padding: 8px 12px;
justify-content: center;
align-items: center;
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
background: var(--button-background, var(--background));
color: var(--button-color, var(--foreground));
}
.editor__tool--active {
background: var(--button-primary-background, var(--accent-background));
color: var(--button-primary-color, var(--accent-foreground));
}
.editor__rect {
position: absolute;
z-index: 2;
}
.editor__rect button {
opacity: 0;
position: absolute;
top: -12px;
right: -12px;
cursor: pointer;
padding: 0;
z-index: 3;
border: none;
background: none;
}
.editor__rect:hover button {
opacity: 1;
}
`,i&&o.setAttribute("nonce",i),o).innerText},f=n.el.style,h=({screenshot:n})=>{let[i,o]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),f=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,_]=t.useState(1),y=t.useMemo(()=>{let e=ia.getElementById(a.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[a.id]);t.useLayoutEffect(()=>{let e=()=>{let t=u.current;t&&(o$(n.canvas,{alpha:!1},e=>{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),ir.addEventListener("resize",e),()=>{ir.removeEventListener("resize",e)}},[n]);let v=t.useCallback((e,t)=>{o$(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{v(f.current,n.dpi),oF(f.current,n.canvas)},[n]),t.useEffect(()=>{v(h.current,n.dpi),o$(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),oH(h.current,y,s)},[s,y]),t.useEffect(()=>{v(r,n.dpi),oF(r,n.canvas),o$(ia.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,oH(e,y,s),oF(r,e)})},[s,n,y]);let b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let r=[...t];return r.splice(e,1),r})},[]),S={width:`${n.canvas.width*g}px`,height:`${n.canvas.height*g}px`},E=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:p}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:m,onMouseDown:e=>{if(!i||!m.current)return;let t=m.current.getBoundingClientRect(),r={type:i,x:e.offsetX/g,y:e.offsetY/g},n=(e,r)=>{let n=(r.clientX-t.x)/g,a=(r.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,a),w:Math.abs(n-e.x),h:Math.abs(a-e.y)}},a=e=>{o$(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),oH(h.current,y,[...s,n(r,e)])},o=e=>{let t=n(r,e);t.w*g>=1&&t.h*g>=1&&l(e=>[...e,t]),ia.removeEventListener("mousemove",a),ia.removeEventListener("mouseup",o)};ia.addEventListener("mousemove",a),ia.addEventListener("mouseup",o)},style:S},s.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e("button",{"aria-label":a.removeHighlightText,onClick:b(r),onMouseDown:E,onMouseUp:E,type:"button"},e(d,null))))))),e(c,{options:a,action:i,setAction:o}))};return function({onError:n}){let[a,i]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{o$(ia.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),i({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",n(e)},[])}),a)?e(h,{screenshot:a}):e("div",null)}}({h:e,hooks:t,outputBuffer:a,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>{a.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),oq=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler"],oG={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function oz(e,t){var r;let n,a,i=oq.includes(e)?oG[e]||e.replace("Integration","").toLowerCase():void 0,o=tA.Sentry=tA.Sentry||{};if(!i)throw Error(`Cannot lazy load integration: ${e}`);let s=o[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(r=i,n=(0,X.getClient)(),a=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${J.SDK_VERSION}/${r}.min.js`,a).toString()),u=tA.document.createElement("script");u.src=l,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let c=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),d=tA.document.currentScript,p=tA.document.body||tA.document.head||d?.parentElement;if(p)p.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let f=o[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}let oY=iM({lazyLoadIntegration:oz}),oJ=iM({getModalIntegration:()=>oj,getScreenshotIntegration:()=>oW}),oV="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function oK(e,t){let r;return(0,eB.forEachEnvelopeItem)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function oX(e,t){return r=>{let n=e(r),a=new Map,i=t||(e=>{let t=e.getEvent();return t?.extra?.[oV]&&Array.isArray(t.extra[oV])?t.extra[oV]:[]});function o(t,n){let i=n?`${t}:${n}`:t,o=a.get(i);if(!o){let s=(0,eS.dsnFromString)(t);if(!s)return;let l=eT(s,r.tunnel);o=n?(t=>{let r=e(t);return{...r,send:async e=>{let t=oK(e,["event","transaction","profile","replay_event"]);return t&&(t.release=n),r.send(e)}}})({...r,url:l}):e({...r,url:l}),a.set(i,o)}return[t,o]}return{send:async function(e){let t=i({envelope:e,getEvent:function(t){return oK(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",n]];return(await Promise.all(r.map(([t,r])=>r.send((0,eB.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...a.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var oQ=e.i(649008);let oZ=(e={})=>{let t=e.levels||z.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in Y.GLOBAL_OBJ&&tB(({args:n,level:a})=>{var i,o,s;let l,u,c;(0,X.getClient)()===e&&t.includes(a)&&(i=n,o=a,s=r,l=tV(o),u=Error(),c={level:tV(o),extra:{arguments:i}},(0,X.withScope)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,ea.addExceptionMechanism)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===o){if(!i[0]){let t=`Assertion failed: ${(0,ei.safeJoin)(i.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",i.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=i.find(e=>e instanceof Error);if(t)return void(0,K.captureException)(t,c);let r=(0,ei.safeJoin)(i," ");e.captureMessage(r,l,{captureContext:c,syntheticException:u})}))})}}};function o0(e,t,r){var n,a,i;return"util"in Y.GLOBAL_OBJ&&"function"==typeof Y.GLOBAL_OBJ.util.format?Y.GLOBAL_OBJ.util.format(...e):(n=e,a=t,i=r,n.map(e=>(0,eA.isPrimitive)(e)?String(e):JSON.stringify((0,tg.normalize)(e,a,i))).join(" "))}function o1(e){return/%[sdifocO]/.test(e)}function o2(e,t){let r={},n=Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}let o3={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},o5=(e={})=>{let t=e.levels||z.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:r,normalizeDepth:n=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!r){Q.DEBUG_BUILD&&z.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}tB(({args:r,level:i})=>{if((0,X.getClient)()!==e||!t.includes(i))return;let o=r[0],s=r.slice(1);if("assert"===i){o||eF({level:"error",message:s.length>0?`Assertion failed: ${o0(s,n,a)}`:"Assertion failed",attributes:o3});return}let l="log"===i,u=r.length>1&&"string"==typeof r[0]&&!o1(r[0]),c={...o3,...u?o2(o,s):{}};eF({level:l?"info":i,message:o0(r,n,a),severityNumber:l?10:void 0,attributes:c})})}}},o4=["trace","debug","info","warn","error","fatal"];function o6(e={}){let t=new Set(e.levels??o4),r=e.client;return{log(e){let{type:n,level:a,message:i,args:o,tag:s,date:l,...u}=e,c=r||(0,X.getClient)();if(!c)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=o8[e];if(t)return t}if("number"==typeof t){let e=o7[t];if(e)return e}return"info"}(n,a);if(!t.has(d))return;let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=(0,tg.normalize)(t,p,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),n&&(h["consola.type"]=n),null!=a&&"number"==typeof a&&(h["consola.level"]=a);let m=function(e,t,r){let{message:n,attributes:a,messageTemplate:i,messageParameters:o}=e,s={};if(i&&o)for(let[e,n]of Object.entries(o2(i,o)))s[e]=e.startsWith("sentry.message.parameter.")?(0,tg.normalize)(n,t,r):n;else o&&o.length>0&&o.forEach((e,n)=>{s[`sentry.message.parameter.${n}`]=(0,tg.normalize)(e,t,r)});return{message:n,attributes:{...(0,tg.normalize)(a,t,r),...s}}}(function(e,t,r){if(!e?.length)return{message:""};let n=o0(e,t,r),a=e[0];if((0,eA.isPlainObject)(a)){let t="string"==typeof e[1]?2:1;return{message:n,attributes:a,messageParameters:e.slice(t)}}{let t=e.slice(1),r=t.length>0&&"string"==typeof a&&!o1(a);return{message:n,messageTemplate:r?a:void 0,messageParameters:r?t:void 0}}}(o,p,f),p,f);m?.attributes&&Object.assign(h,m.attributes),eF({level:d,message:m?.message||i||o&&o0(o,p,f)||"",attributes:h})}}}let o8={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},o7={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},o9="gen_ai.system",se="gen_ai.request.model",st="gen_ai.request.stream",sr="gen_ai.request.temperature",sn="gen_ai.request.max_tokens",sa="gen_ai.request.frequency_penalty",si="gen_ai.request.presence_penalty",so="gen_ai.request.top_p",ss="gen_ai.request.top_k",sl="gen_ai.response.finish_reasons",su="gen_ai.response.model",sc="gen_ai.response.id",sd="gen_ai.usage.input_tokens",sp="gen_ai.usage.output_tokens",sf="gen_ai.usage.total_tokens",sh="gen_ai.operation.name",sm="sentry.sdk_meta.gen_ai.input.messages.original_length",sg="gen_ai.input.messages",s_="gen_ai.system_instructions",sy="gen_ai.response.text",sv="gen_ai.request.available_tools",sb="gen_ai.response.streaming",sS="gen_ai.response.tool_calls",sE="gen_ai.agent.name",sT="gen_ai.conversation.id",sw="gen_ai.embeddings.input",sR="openai.response.id",sI="openai.response.model",sC="openai.response.timestamp",sA="anthropic.response.timestamp";function sk(e){var t,r,n,a,i,o,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&sk(t.source)||sO(e)||"image_url"in(r=e)&&("string"==typeof r.image_url?r.image_url.startsWith("data:"):sN(r))||sx(e)||sP(e)||"media_type"in(n=e)&&"string"==typeof n.media_type&&"data"in n||"type"in(a=e)&&"file"===a.type&&"mediaType"in a&&"string"==typeof a.mediaType&&"data"in a&&"string"==typeof a.data&&!a.data.startsWith("http://")&&!a.data.startsWith("https://")||"type"in(i=e)&&"image"===i.type&&"image"in i&&"string"==typeof i.image&&!i.image.startsWith("http://")&&!i.image.startsWith("https://")||"type"in(o=e)&&("blob"===o.type||"base64"===o.type)||"b64_json"in e||"type"in(s=e)&&"result"in s&&"image_generation"===s.type||"uri"in(l=e)&&"string"==typeof l.uri&&l.uri.startsWith("data:"))}function sN(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function sO(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function sx(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function sP(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let sM="[Blob substitute]",sL=["image_url","data","content","b64_json","result","uri","image"];function sD(e){let t={...e};for(let r of(sk(t.source)&&(t.source=sD(t.source)),sO(e)&&(t.inlineData={...e.inlineData,data:sM}),sN(e)&&(t.image_url={...e.image_url,url:sM}),sx(e)&&(t.input_audio={...e.input_audio,data:sM}),sP(e)&&(t.file={...e.file,file_data:sM}),sL))"string"==typeof t[r]&&(t[r]=sM);return t}let sU=e=>new TextEncoder().encode(e).length,sB=e=>sU(JSON.stringify(e));function sj(e,t){if(sU(e)<=t)return e;let r=0,n=e.length,a="";for(;r<=n;){let i=Math.floor((r+n)/2),o=e.slice(0,i);sU(o)<=t?(a=o,r=i+1):n=i-1}return a}function s$(e,t){return"string"==typeof e?t:{...e,text:t}}function sF(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function sH(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function sW(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let r;return t&&"object"==typeof t&&(sF(t)?r={...t,content:e(t.content)}:"content"in t&&sk(t.content)&&(r={...t,content:sD(t.content)}),sH(t)&&(r={...r??t,parts:e(t.parts)}),sk(r)?r=sD(r):sk(t)&&(r=sD(t))),r??t})}([e[e.length-1]]),r=t[0];return 19998>=sB(r)?t:function(e,t){if(!e)return[];if("string"==typeof e){let t=sj(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-sB({...e,content:""});if(t<=0)return[];let r=sj(e.content,t);return[{...e,content:r}]}return sF(e)||sH(e)?function(e,t){let{key:r,items:n}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===r||0===n.length)return[];let a=n.map(e=>s$(e,"")),i=t-sB({...e,[r]:a});if(i<=0)return[];let o=[];for(let e of n){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",r=sU(t);if(r<=i)o.push(e),i-=r;else if(0===o.length){let r=sj(t,i);r&&o.push(s$(e,r));break}else break}return o.length<=0?[]:[{...e,[r]:o}]}(e,19998):[]}(r,19998)}function sq(e){let t=!!(0,X.getClient)()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function sG(e,t){return e?`${e}.${t}`:t}function sz(e,t,r,n,a){void 0!==t&&e.setAttributes({[sd]:t}),void 0!==r&&e.setAttributes({[sp]:r}),(void 0!==t||void 0!==r||void 0!==n||void 0!==a)&&e.setAttributes({[sf]:(t??0)+(r??0)+(n??0)+(a??0)})}function sY(e){return"string"==typeof e?sj(e,2e4):Array.isArray(e)?JSON.stringify(sW(e)):JSON.stringify(e)}function sJ(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function sV(e,t,r){let n=e.catch(e=>{throw(0,K.captureException)(e,{mechanism:{handled:!1,type:r}}),e}),a=await t,i=await n;return i&&"object"==typeof i&&"data"in i?{...i,data:a}:a}function sK(e,t,r){return(0,eA.isThenable)(e)?new Proxy(e,{get(e,n){let a=n in Promise.prototype||n===Symbol.toStringTag?t:e,i=Reflect.get(a,n);return"withResponse"===n&&"function"==typeof i?function(){return sV(i.call(e),t,r)}:"function"==typeof i?i.bind(a):i}}):t}let sX="auto.ai.langchain",sQ={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},sZ=(e,t,r)=>{null!=r&&(e[t]=r)},s0=(e,t,r)=>{let n=Number(r);Number.isNaN(n)||(e[t]=n)};function s1(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function s2(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&sk(e)?sD(e):e);return JSON.stringify(t)}catch{return String(e)}return s1(e)}function s3(e){let t=e.toLowerCase();return sQ[t]??t}function s5(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function s4(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function s6(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:s3(t.call(e)),content:s2(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:s3("string"==typeof r?s5(r):"user"),content:s2(e.kwargs?.content)}}if(e.type)return{role:s3(String(e.type).toLowerCase()),content:s2(e.content)};if(e.role)return{role:s3(String(e.role)),content:s2(e.content)};let r=e.constructor?.name;return r&&"Object"!==r?{role:s3(s5(r)),content:s2(e.content)}:{role:"user",content:s2(e.content)}})}function s8(e,t,r,n,a){let i,o;return{[o9]:s1(e??"langchain"),[sh]:"chat",[se]:s1(t),[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:sX,...(i={},o="kwargs"in r?r.kwargs:void 0,s0(i,sr,n?.temperature??a?.ls_temperature??o?.temperature),s0(i,sn,n?.max_tokens??a?.ls_max_tokens??o?.max_tokens),s0(i,so,n?.top_p??o?.top_p),s0(i,sa,n?.frequency_penalty),s0(i,si,n?.presence_penalty),n&&"stream"in n&&sZ(i,st,!!n.stream),i)}}function s7(e={}){let{recordInputs:t,recordOutputs:r}=sq(e),n=new Map,a=e=>{let t=n.get(e);t?.isRecording()&&(t.end(),n.delete(e))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,a,i,o,s,l,u){let c,d=s4(s),p=(c=s8(l?.ls_provider,d?.model??l?.ls_model_name??"unknown",e,d,l),t&&Array.isArray(r)&&r.length>0&&(sZ(c,sm,r.length),sZ(c,sg,s1(r.map(e=>({role:"user",content:e}))))),c),f=p[se],h=p[sh];(0,r9.startSpanManual)({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...p,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(n.set(a,e),e))},handleChatModelStart(e,r,a,i,o,s,l,u){let c=function(e,t,r,n,a){let i=s8(a?.ls_provider??e.id?.[2],n?.model??a?.ls_model_name??"unknown",e,n,a);if(r&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:r}=sJ(s6(t.flat()));e&&sZ(i,s_,e),sZ(i,sm,Array.isArray(r)?r.length:0),sZ(i,sg,s1(sW(r)))}return i}(e,r,t,s4(s),l),d=c[se],p=c[sh];(0,r9.startSpanManual)({name:`${p} ${d}`,op:"gen_ai.chat",attributes:{...c,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(n.set(a,e),e))},handleLLMEnd(e,t,i,o,s){let l=n.get(t);if(l?.isRecording()){let n=function(e,t){if(!e)return;let r={};if(Array.isArray(e.generations)){let a=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);a.length>0&&sZ(r,sl,s1(a));var n=e.generations;let i=[];for(let e of n.flat()){let t=e.message?.content;if(Array.isArray(t))for(let e of t)"tool_use"===e.type&&i.push(e)}if(i.length>0&&sZ(r,sS,s1(i)),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&sZ(r,sy,s1(t))}}!function(e,t){if(!e)return;let r=e.tokenUsage,n=e.usage;if(r)s0(t,sd,r.promptTokens),s0(t,sp,r.completionTokens),s0(t,sf,r.totalTokens);else if(n){s0(t,sd,n.input_tokens),s0(t,sp,n.output_tokens);let e=Number(n.input_tokens),r=Number(n.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);a>0&&s0(t,sf,a),void 0!==n.cache_creation_input_tokens&&s0(t,"gen_ai.usage.cache_creation_input_tokens",n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&s0(t,"gen_ai.usage.cache_read_input_tokens",n.cache_read_input_tokens)}}(e.llmOutput,r);let a=e.llmOutput,i=e.generations?.[0]?.[0],o=i?.message,s=a?.model_name??a?.model??o?.response_metadata?.model_name;s&&sZ(r,su,s);let l=a?.id??o?.id;l&&sZ(r,sc,l);let u=a?.stop_reason??o?.response_metadata?.finish_reason;return u&&sZ(r,"gen_ai.response.stop_reason",s1(u)),r}(e,r);n&&l.setAttributes(n),a(t)}},handleLLMError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),a(t)),(0,K.captureException)(e,{mechanism:{handled:!1,type:`${sX}.llm_error_handler`}})},handleChainStart(e,r,a,i,o,s,l,u){let c=u||e.name||"unknown_chain",d={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":c};t&&(d["langchain.chain.inputs"]=JSON.stringify(r)),(0,r9.startSpanManual)({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...d,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(n.set(a,e),e))},handleChainEnd(e,t){let i=n.get(t);i?.isRecording()&&(r&&i.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),a(t))},handleChainError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),a(t)),(0,K.captureException)(e,{mechanism:{handled:!1,type:`${sX}.chain_error_handler`}})},handleToolStart(e,r,a,i){let o=e.name||"unknown_tool",s={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:sX,"gen_ai.tool.name":o};t&&(s["gen_ai.tool.input"]=r),(0,r9.startSpanManual)({name:`execute_tool ${o}`,op:"gen_ai.execute_tool",attributes:{...s,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(n.set(a,e),e))},handleToolEnd(e,t){let i=n.get(t);i?.isRecording()&&(r&&i.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),a(t))},handleToolError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),a(t)),(0,K.captureException)(e,{mechanism:{handled:!1,type:`${sX}.tool_error_handler`}})},copy:()=>i,toJSON:()=>({lc:1,type:"not_implemented",id:i.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:i.lc_id})};return i}let s9=(e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,a){let{maxValueLength:i}=a.getOptions();return function(e,t={},r,n,a){if(!t.originalException||!(0,eA.isError)(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,o=function e(t,r,n){try{let a=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(let e of Object.keys(t)){if(-1!==a.indexOf(e))continue;let r=t[e];i[e]=(0,eA.isError)(r)||"string"==typeof r?n?(0,ei.truncate)(`${r}`,n):`${r}`:r}if(r&&void 0!==t.cause&&((0,eA.isError)(t.cause)?i.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,n)}:i.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let r=e[t];i[t]=(0,eA.isError)(r)?r.toString():r}}return i}catch(e){Q.DEBUG_BUILD&&z.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n,a);if(o){let t={...e.contexts},n=(0,tg.normalize)(o,r);return(0,eA.isPlainObject)(n)&&((0,ed.addNonEnumerableProperty)(n,"__sentry_skip_normalization__",!0),t[i]=n),{...e,contexts:t}}return e}(e,n,t,r,i)}}},le="flag.evaluation.";function lt(e){let t=(0,X.getCurrentScope)().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function lr(e,t,r=100){let n=(0,X.getCurrentScope)().getScopeData().contexts;n.flags||(n.flags={values:[]}),function(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n){Q.DEBUG_BUILD&&z.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}(n.flags.values,e,t,r)}function ln(e,t,r=10){if("boolean"!=typeof t)return;let n=(0,eL.getActiveSpan)();if(!n)return;let a=(0,eL.spanToJSON)(n).data;`${le}${e}`in a?n.setAttribute(`${le}${e}`,t):Object.keys(a).filter(e=>e.startsWith(le)).length<r&&n.setAttribute(`${le}${e}`,t)}let la=()=>({name:"FeatureFlags",processEvent:(e,t,r)=>lt(e),addFeatureFlag(e,t){lr(e,t),ln(e,t)}}),li={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},lo={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function ls(e){return e&&lo[e]||"internal_error"}function ll(e,t,r,n){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(n.setStatus({code:r7.SPAN_STATUS_ERROR,message:ls(e.error?.type)}),(0,K.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let r;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let n=t.activeToolBlocks[e.index];if(!n)return;let a=n.inputJsonParts.join("");try{r=a?JSON.parse(a):{}}catch{r={__unparsed:a}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:r}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*lu(e,t,r){let n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let a of e)ll(a,n,r,t),yield a}finally{n.responseId&&t.setAttributes({[sc]:n.responseId}),n.responseModel&&t.setAttributes({[su]:n.responseModel}),sz(t,n.promptTokens,n.completionTokens,n.cacheCreationInputTokens,n.cacheReadInputTokens),t.setAttributes({[sb]:!0}),n.finishReasons.length>0&&t.setAttributes({[sl]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length>0&&t.setAttributes({[sy]:n.responseTexts.join("")}),r&&n.toolCalls.length>0&&t.setAttributes({[sS]:JSON.stringify(n.toolCalls)}),t.end()}}function lc(e,t){!function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:n}=sJ(t);r&&e.setAttributes({[s_]:r});let a=Array.isArray(n)?n.length:1;e.setAttributes({[sg]:sY(n),[sm]:a})}(e,function(e){let{system:t,messages:r,input:n}=e,a="string"==typeof t?[{role:"system",content:e.system}]:[],i=Array.isArray(n)?n:null!=n?[n]:void 0,o=Array.isArray(r)?r:null!=r?[r]:[];return[...a,...i??o]}(t)),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function ld(e,t,r){throw(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function lp(e,t){return function e(t,r="",n){return new Proxy(t,{get(t,a){let i=t[a],o=sG(r,String(a)),s=li[o];if("function"==typeof i&&s)return new Proxy(i,{apply(e,r,a){let l,u=s.operation,c=function(e,t,r){let n={[o9]:"anthropic",[sh]:r,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[sv]=JSON.stringify(t.tools)),n[se]=t.model??"unknown","temperature"in t&&(n[sr]=t.temperature),"top_p"in t&&(n[so]=t.top_p),"stream"in t&&(n[st]=t.stream),"top_k"in t&&(n[ss]=t.top_k),"frequency_penalty"in t&&(n[sa]=t.frequency_penalty),"max_tokens"in t&&(n[sn]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?n[se]=e[0]:n[se]="unknown";return n}(a,o,u),d=c[se]??"unknown",p="object"==typeof a[0]?a[0]:void 0,f=!!p?.stream,h=!0===s.streaming;if(f||h){let r=c[se]??"unknown",s={name:`${u} ${r}`,op:`gen_ai.${u}`,attributes:c};if(!f||h)return(0,r9.startSpanManual)(s,r=>{try{var i,s;let o;return n.recordInputs&&p&&lc(r,p),i=e.apply(t,a),s=n.recordOutputs??!1,o={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},i.on("streamEvent",e=>{ll(e,o,s,r)}),i.on("message",()=>{r.isRecording()&&(o.responseId&&r.setAttributes({[sc]:o.responseId}),o.responseModel&&r.setAttributes({[su]:o.responseModel}),sz(r,o.promptTokens,o.completionTokens,o.cacheCreationInputTokens,o.cacheReadInputTokens),r.setAttributes({[sb]:!0}),o.finishReasons.length>0&&r.setAttributes({[sl]:JSON.stringify(o.finishReasons)}),s&&o.responseTexts.length>0&&r.setAttributes({[sy]:o.responseTexts.join("")}),s&&o.toolCalls.length>0&&r.setAttributes({[sS]:JSON.stringify(o.toolCalls)}),r.end())}),i.on("error",e=>{(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),r.isRecording()&&(r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),r.end())}),i}catch(e){return ld(e,r,o)}});{let e,r=(0,r9.startSpanManual)(s,r=>(e=i.apply(t,a),n.recordInputs&&p&&lc(r,p),(async()=>{try{let t=await e;return lu(t,r,n.recordOutputs??!1)}catch(e){return ld(e,r,o)}})()));return sK(e,r,"auto.ai.anthropic")}}let m=(0,r9.startSpan)({name:`${u} ${d}`,op:`gen_ai.${u}`,attributes:c},r=>(l=e.apply(t,a),n.recordInputs&&p&&lc(r,p),l.then(e=>(!function(e,t,r){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:r7.SPAN_STATUS_ERROR,message:ls(t.error.type)}),(0,K.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[sy]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&r.push(e);r.length>0&&e.setAttributes({[sS]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[sy]:t.completion}),"input_tokens"in t&&e.setAttributes({[sy]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[sc]:t.id,[su]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[sA]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[sA]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&sz(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}}(r,e,n.recordOutputs),e),e=>{throw(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),e})));return sK(l,m,"auto.ai.anthropic")}});return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,o,n):i}})}(e,"",sq(t))}var lf=e.i(672275);let lh={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{operation:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},lm="chats.create";async function*lg(e,t,r){let n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,r,n){if(!(!e||function(e,t){let r=e?.promptFeedback;if(r?.blockReason){let e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,n))){let n;for(let a of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(n=e.usageMetadata)&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(a?.finishReason&&!t.finishReasons.includes(a.finishReason)&&t.finishReasons.push(a.finishReason),a?.content?.parts??[]))r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(a,n,r,t),yield a}finally{let e={[sb]:!0};n.responseId&&(e[sc]=n.responseId),n.responseModel&&(e[su]=n.responseModel),void 0!==n.promptTokens&&(e[sd]=n.promptTokens),void 0!==n.completionTokens&&(e[sp]=n.completionTokens),void 0!==n.totalTokens&&(e[sf]=n.totalTokens),n.finishReasons.length&&(e[sl]=JSON.stringify(n.finishReasons)),r&&n.responseTexts.length&&(e[sy]=n.responseTexts.join("")),r&&n.toolCalls.length&&(e[sS]=JSON.stringify(n.toolCalls)),t.setAttributes(e),t.end()}}function l_(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>l_(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function ly(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function lv(e,t,r){if(r){let r=t.contents;null!=r&&e.setAttribute(sw,"string"==typeof r?r:JSON.stringify(r));return}let n=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...l_(t.config.systemInstruction,"system")),"history"in t&&n.push(...l_(t.history,"user")),"contents"in t&&n.push(...l_(t.contents,"user")),"message"in t&&n.push(...l_(t.message,"user")),Array.isArray(n)&&n.length){let{systemInstructions:t,filteredMessages:r}=sJ(n);t&&e.setAttribute(s_,t);let a=Array.isArray(r)?r.length:0;e.setAttributes({[sm]:a,[sg]:JSON.stringify(sW(r))})}}function lb(e,t,r,n,a){let i=t===lm,o="embeddings"===r.operation;return new Proxy(e,{apply(e,s,l){let u=r.operation,c=l[0],d=function(e,t,r){let n={[o9]:"google_genai",[sh]:e,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(n[se]=ly(t,r),"config"in t&&"object"==typeof t.config&&t.config){let e,r=t.config;if(Object.assign(n,(e={},"temperature"in r&&"number"==typeof r.temperature&&(e[sr]=r.temperature),"topP"in r&&"number"==typeof r.topP&&(e[so]=r.topP),"topK"in r&&"number"==typeof r.topK&&(e[ss]=r.topK),"maxOutputTokens"in r&&"number"==typeof r.maxOutputTokens&&(e[sn]=r.maxOutputTokens),"frequencyPenalty"in r&&"number"==typeof r.frequencyPenalty&&(e[sa]=r.frequencyPenalty),"presencePenalty"in r&&"number"==typeof r.presencePenalty&&(e[si]=r.presencePenalty),e)),"tools"in r&&Array.isArray(r.tools)){let e=r.tools.flatMap(e=>e.functionDeclarations);n[sv]=JSON.stringify(e)}}}else n[se]=ly({},r);return n}(u,c,n),p=d[se]??"unknown";return r.streaming?(0,r9.startSpanManual)({name:`${u} ${p}`,op:`gen_ai.${u}`,attributes:d},async r=>{try{a.recordInputs&&c&&lv(r,c,o);let t=await e.apply(n,l);return lg(t,r,!!a.recordOutputs)}catch(e){throw r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),r.end(),e}}):(0,r9.startSpan)({name:i?`${u} ${p} create`:`${u} ${p}`,op:`gen_ai.${u}`,attributes:d},r=>(a.recordInputs&&c&&lv(r,c,o),(0,lf.handleCallbackErrors)(()=>e.apply(n,l),e=>{(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{i||o||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(su,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[sd]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[sp]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[sf]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[sy]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[sS]:JSON.stringify(r)})}}}(r,e,a.recordOutputs)})))}})}function lS(e,t){return function e(t,r="",n){return new Proxy(t,{get:(t,a,i)=>{let o=Reflect.get(t,a,i),s=sG(r,String(a)),l=lh[s];if("function"==typeof o&&l){if(s===lm){let r=lb(o,s,l,t,n);return function(...t){let a=r(...t);return a&&"object"==typeof a?e(a,"chat",n):a}}return lb(o,s,l,t,n)}return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,n):o}})}(e,"",sq(t))}let lE="auto.ai.langgraph";function lT(e,t){var r,n;return r=e.compile,n=sq(t),e.compile=new Proxy(r,{apply:(e,t,r)=>(0,r9.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:lE,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[sh]:"create_agent"}},a=>{try{var i,o,s,l;let u=Reflect.apply(e,t,r),c=r.length>0?r[0]:{};c?.name&&"string"==typeof c.name&&(a.setAttribute(sE,c.name),a.updateName(`create_agent ${c.name}`));let d=u.invoke;return d&&"function"==typeof d&&(i=d.bind(u),o=u,s=c,l=n,u.invoke=new Proxy(i,{apply:(e,t,r)=>(0,r9.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:lE,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent",[sh]:"invoke_agent"}},async n=>{try{let a=s?.name;a&&"string"==typeof a&&(n.setAttribute("gen_ai.pipeline.name",a),n.setAttribute(sE,a),n.updateName(`invoke_agent ${a}`));let i=r.length>1?r[1]:void 0,u=i?.configurable,c=u?.thread_id;c&&"string"==typeof c&&n.setAttribute(sT,c);let d=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(o);d&&n.setAttribute(sv,JSON.stringify(d));let p=l.recordInputs,f=l.recordOutputs,h=r.length>0?r[0]?.messages??[]:[];if(h&&p){let e=s6(h),{systemInstructions:t,filteredMessages:r}=sJ(e);t&&n.setAttribute(s_,t);let a=sW(r),i=Array.isArray(r)?r.length:0;n.setAttributes({[sg]:JSON.stringify(a),[sm]:i})}let m=await Reflect.apply(e,t,r);return f&&function(e,t,r){let n=r?.messages;if(!n||!Array.isArray(n))return;let a=t?.length??0,i=n.length>a?n.slice(a):[];if(0===i.length)return;let o=function(e){if(!e||0===e.length)return null;let t=[];for(let r of e)if(r&&"object"==typeof r){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(i);o&&e.setAttribute(sS,JSON.stringify(o));let s=s6(i);e.setAttribute(sy,JSON.stringify(s));let l=0,u=0,c=0;for(let t of i){let r=function(e){let t=0,r=0,n=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let a=e.usage_metadata;return"number"==typeof a.input_tokens&&(t=a.input_tokens),"number"==typeof a.output_tokens&&(r=a.output_tokens),"number"==typeof a.total_tokens&&(n=a.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}if(e.response_metadata&&"object"==typeof e.response_metadata){let a=e.response_metadata;if(a.tokenUsage&&"object"==typeof a.tokenUsage){let e=a.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(r=e.completionTokens),"number"==typeof e.totalTokens&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}(t);l+=r.inputTokens,u+=r.outputTokens,c+=r.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let r=t.response_metadata;r.model_name&&"string"==typeof r.model_name&&e.setAttribute(su,r.model_name),r.finish_reason&&"string"==typeof r.finish_reason&&e.setAttribute(sl,[r.finish_reason])}}(e,t)}l>0&&e.setAttribute(sd,l),u>0&&e.setAttribute(sp,u),c>0&&e.setAttribute(sf,c)}(n,h??null,m),m}catch(e){throw n.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),u}catch(e){throw a.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}),e}let lw={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},lR=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function lI(e,t,r,n){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[sd]:t}),void 0!==r&&e.setAttributes({"openai.usage.completion_tokens":r,[sp]:r}),void 0!==n&&e.setAttributes({[sf]:n})}function lC(e,t,r,n){e.setAttributes({[sR]:t,[sc]:t}),e.setAttributes({[sI]:r,[su]:r}),e.setAttributes({[sC]:new Date(1e3*n).toISOString()})}async function*lA(e,t,r){let n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let a of e){if(null!==a&&"object"==typeof a&&"object"in a&&"chat.completion.chunk"===a.object){for(let e of(n.responseId=a.id??n.responseId,n.responseModel=a.model??n.responseModel,n.responseTimestamp=a.created??n.responseTimestamp,a.usage&&(n.promptTokens=a.usage.prompt_tokens,n.completionTokens=a.usage.completion_tokens,n.totalTokens=a.usage.total_tokens),a.choices??[]))r&&(e.delta?.content&&n.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let r of e){let e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}(e.delta.tool_calls,n)),e.finish_reason&&n.finishReasons.push(e.finish_reason)}else null!==a&&"object"==typeof a&&"type"in a&&"string"==typeof a.type&&a.type.startsWith("response.")&&function(e,t,r,n){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");if(e instanceof Error){n.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!lR.includes(e.type))return t.eventTypes.push(e.type);if(r&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:n}=e;t.responseId=n.id??t.responseId,t.responseModel=n.model??t.responseModel,t.responseTimestamp=n.created_at??t.responseTimestamp,n.usage&&(t.promptTokens=n.usage.input_tokens,t.completionTokens=n.usage.output_tokens,t.totalTokens=n.usage.total_tokens),n.status&&t.finishReasons.push(n.status),r&&n.output_text&&t.responseTexts.push(n.output_text)}}}(a,n,r,t);yield a}}finally{lC(t,n.responseId,n.responseModel,n.responseTimestamp),lI(t,n.promptTokens,n.completionTokens,n.totalTokens),t.setAttributes({[sb]:!0}),n.finishReasons.length&&t.setAttributes({[sl]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length&&t.setAttributes({[sy]:n.responseTexts.join("")});let e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];e.length>0&&t.setAttributes({[sS]:JSON.stringify(e)}),t.end()}}function lk(e,t,r){if("embeddings"===r&&"input"in t){let r=t.input;if(null==r||"string"==typeof r&&0===r.length||Array.isArray(r)&&0===r.length)return;e.setAttribute(sw,"string"==typeof r?r:JSON.stringify(r));return}let n="input"in t?t.input:"messages"in t?t.messages:void 0;if(!n||Array.isArray(n)&&0===n.length)return;let{systemInstructions:a,filteredMessages:i}=sJ(n);a&&e.setAttribute(s_,a);let o=sY(i);e.setAttribute(sg,o),Array.isArray(i)?e.setAttribute(sm,i.length):e.setAttribute(sm,1)}function lN(e,t){return function e(t,r="",n){return new Proxy(t,{get(t,a){let i=t[a],o=sG(r,String(a)),s=lw[o];if("function"==typeof i&&s)return function(...e){let r,a=s.operation,l=function(e,t){let r={[o9]:"openai",[sh]:t,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,n,a=e[0],i=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){Q.DEBUG_BUILD&&z.debug.error("Failed to serialize OpenAI tools:",e);return}}(a);i&&(r[sv]=i),Object.assign(r,(t={[se]:a.model??"unknown"},"temperature"in a&&(t[sr]=a.temperature),"top_p"in a&&(t[so]=a.top_p),"frequency_penalty"in a&&(t[sa]=a.frequency_penalty),"presence_penalty"in a&&(t[si]=a.presence_penalty),"stream"in a&&(t[st]=a.stream),"encoding_format"in a&&(t["gen_ai.request.encoding_format"]=a.encoding_format),"dimensions"in a&&(t["gen_ai.request.dimensions"]=a.dimensions),(n="conversation"in a&&"string"==typeof a.conversation?a.conversation:"previous_response_id"in a&&"string"==typeof a.previous_response_id?a.previous_response_id:void 0)&&(t[sT]=n),t))}else r[se]="unknown";return r}(e,a),u=l[se]||"unknown",c=e[0],d=c&&"object"==typeof c&&!0===c.stream,p={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:l};if(d){let r,s=(0,r9.startSpanManual)(p,s=>(r=i.apply(t,e),n.recordInputs&&c&&lk(s,c,a),(async()=>{try{let e=await r;return lA(e,s,n.recordOutputs??!1)}catch(e){throw s.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),s.end(),e}})()));return sK(r,s,"auto.ai.openai")}let f=(0,r9.startSpan)(p,s=>(r=i.apply(t,e),n.recordInputs&&c&&lk(s,c,a),r.then(e=>(!function(e,t,r){if(t&&"object"==typeof t)if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){if(lC(e,t.id,t.model,t.created),t.usage&&lI(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let n=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(n.length>0&&e.setAttributes({[sl]:JSON.stringify(n)}),r){let r=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&e.setAttributes({[sS]:JSON.stringify(r)})}}if(r&&t.choices?.length){let r=t.choices.map(e=>e.message?.content||"");e.setAttributes({[sy]:JSON.stringify(r)})}}else if(null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object){if(lC(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[sl]:JSON.stringify([t.status])}),t.usage&&lI(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),r&&Array.isArray(t.output)&&t.output.length>0){let r=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);r.length>0&&e.setAttributes({[sS]:JSON.stringify(r)})}r&&t.output_text&&e.setAttributes({[sy]:t.output_text})}else null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")?(e.setAttributes({[sI]:t.model,[su]:t.model}),t.usage&&lI(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)):null!==t&&"object"==typeof t&&"object"in t&&"conversation"===t.object&&function(e,t){let{id:r,created_at:n}=t;e.setAttributes({[sR]:r,[sc]:r,[sT]:r}),n&&e.setAttributes({[sC]:new Date(1e3*n).toISOString()})}(e,t)}(s,e,n.recordOutputs),e),e=>{throw(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),e})));return sK(r,f,"auto.ai.openai")};return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,o,n):i}})}(e,"",sq(t))}let lO=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],lx=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],lP={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},lM=["select","insert","upsert","update","delete"];function lL(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function lD(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function lU(e,t=!1){return new Proxy(e,{apply:(r,n,a)=>(0,r9.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,a).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:r7.SPAN_STATUS_ERROR}),(0,K.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:r7.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:r7.SPAN_STATUS_ERROR}),e.end(),(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a))})}let lB=e=>{var t;if(!e){Q.DEBUG_BUILD&&z.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}lD((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,r){let n=Reflect.apply(e,t,r);return function(e){for(let t of lM)lD(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,r,n){let a=Reflect.apply(e,r,n),i=a.constructor;return Q.DEBUG_BUILD&&z.debug.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),lD(i.prototype.then)||(i.prototype.then=new Proxy(i.prototype.then,{apply(e,t,r){let n=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!lM.includes(n)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,r);let a=t.url.pathname.split("/"),i=a.length>0?a[a.length-1]:"",o=[];for(let[e,r]of t.url.searchParams.entries())o.push(function(e,t){let r;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[n,...a]=t.split(".");return r=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&lP[n]||"filter",`${r}(${e}, ${a.join(".")})`}(e,r));let s=Object.create(null);if((0,eA.isPlainObject)(t.body))for(let[e,r]of Object.entries(t.body))s[e]=r;let l=`${"select"===n?"":`${n}${s?"(...) ":""}`}${o.join(" ")} from(${i})`,u={"db.table":i,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":n,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return o.length&&(u["db.query"]=o),Object.keys(s).length&&(u["db.body"]=s),(0,r9.startSpan)({name:l,attributes:u},a=>Reflect.apply(e,t,[]).then(e=>{if(a&&(e&&"object"==typeof e&&"status"in e&&(0,r7.setHttpStatus)(a,e.status||500),a.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let r={};o.length&&(r.query=o),Object.keys(s).length&&(r.body=s),(0,K.captureException)(t,e=>(e.addEventProcessor(e=>((0,ea.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}let t={type:"supabase",category:`db.${n}`,message:l},r={};return o.length&&(r.query=o),Object.keys(s).length&&(r.body=s),Object.keys(r).length&&(t.data=r),tK(t),e},e=>{throw a&&((0,r7.setHttpStatus)(a,500),a.end()),e}).then(...r))}}),lL(i.prototype.then)),a}}),lL(e.prototype[t]))}(n.constructor),n}}),lL(t.prototype.from));let r=e.auth;if(!(!r||lD(e.auth))){for(let t of lO){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=lU(n))}for(let t of lx){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=lU(n,!0))}lL(e.auth)}},lj=e=>{let t;return t=e.supabaseClient,{setupOnce(){lB(t)},name:"Supabase"}};function l$(e,t,r,n,a){eF({level:e,message:t,attributes:r,severityNumber:a},n)}function lF(e,t,{scope:r}={}){l$("trace",e,t,r)}function lH(e,t,{scope:r}={}){l$("debug",e,t,r)}function lW(e,t,{scope:r}={}){l$("info",e,t,r)}function lq(e,t,{scope:r}={}){l$("warn",e,t,r)}function lG(e,t,{scope:r}={}){l$("error",e,t,r)}function lz(e,t,{scope:r}={}){l$("fatal",e,t,r)}function lY(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}e.s(["debug",()=>lH,"error",()=>lG,"fatal",()=>lz,"info",()=>lW,"trace",()=>lF,"warn",()=>lq],437559),e.i(437559),e.s(["debug",()=>lH,"error",()=>lG,"fatal",()=>lz,"fmt",()=>lY,"info",()=>lW,"trace",()=>lF,"warn",()=>lq],293157);var lJ=e.i(293157),lJ=lJ;function lV(e,t,r,n){!function(e,t){let r=t?.scope??(0,X.getCurrentScope)(),n=t?.captureSerializedMetric??eG,a=r?.getClient()??(0,X.getClient)();if(!a){Q.DEBUG_BUILD&&z.debug.warn("No client available to capture metric.");return}let{_experiments:i,enableMetrics:o,beforeSendMetric:s}=a.getOptions();if(!(o??i?.enableMetrics??!0)){Q.DEBUG_BUILD&&z.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,ek.getCombinedScopeData)((0,X.getIsolationScope)(),r),c=function(e,t,r){let{release:n,environment:a}=t.getOptions(),i={...e.attributes};eq(i,"user.id",r.id,!1),eq(i,"user.email",r.email,!1),eq(i,"user.name",r.username,!1),eq(i,"sentry.release",n),eq(i,"sentry.environment",a);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};eq(i,"sentry.sdk.name",o),eq(i,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return eq(i,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&eq(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}(e,a,l);a.emit("processMetric",c);let d=s||i?.beforeSendMetric,p=d?d(c):c;if(!p){Q.DEBUG_BUILD&&z.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,r,n){let[,a]=eD(t,r),i=(0,eN._getSpanForScope)(r),o=i?i.spanContext().traceId:a?.trace_id,s=i?i.spanContext().spanId:void 0,l=(0,eO.timestampInSeconds)(),u=eP(l);return{timestamp:l,trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...eI(n),...eI(e.attributes,"skip-undefined"),[u.key]:u.value}}}(p,a,r,u);Q.DEBUG_BUILD&&z.debug.log("[Metric]",f),n(a,f),a.emit("afterCaptureMetric",p)}({type:e,name:t,value:r,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}function lK(e,t=1,r){lV("counter",e,t,r)}function lX(e,t,r){lV("gauge",e,t,r)}function lQ(e,t,r){lV("distribution",e,t,r)}e.s(["count",()=>lK,"distribution",()=>lQ,"gauge",()=>lX],647411);var lZ=e.i(647411),lZ=lZ;let l0=new Map,l1=new Set;function l2(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=function(e,t){if(Y.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(Y.GLOBAL_OBJ._sentryModuleMetadata)){let r=Y.GLOBAL_OBJ._sentryModuleMetadata[t];if(!l1.has(t)){for(let n of(l1.add(t),e(t).reverse()))if(n.filename){l0.set(n.filename,r);break}}}return l0.get(t)}(e,t.filename);r&&(t.module_metadata=r)})})}function l3(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let l5=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,eB.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(l3(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||l2(e.getOptions().stackParser,t)})}}),l4=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,eB.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(l3(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||l2(e.getOptions().stackParser,t)})},processEvent(t){let r=function(e,t){let r=(0,em.getFramesFromEvent)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(l7))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(l8))return!0}return!1}(e,r))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(l6)).map(e=>e.slice(l6.length)):[])}(t,e.ignoreSentryInternalFrames);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),l6="_sentryBundlerPluginAppKey:",l8="Attempt to invoke user-land function",l7="fn.apply(this, wrappedArguments)";function l9(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let ue=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>(function(e,t=!1,r,n){var a;if(!r.exception?.values||!n.originalException||(a=n.originalException,!((0,eA.isError)(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===n.originalException.issues.length)return r;try{let a=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(l9);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:function(e){let t=new Set;for(let r of e.issues){let e=r.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,ei.truncate)(r.join(", "),100)}`}(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":a.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,r,n)}},ut={startProfiler:function(){let e=(0,X.getClient)();if(!e){rr&&z.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){rr&&z.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,X.getClient)();if(!e){rr&&z.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){rr&&z.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function ur(e,{metadata:t,tunnel:r,dsn:n}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,eS.dsnToString)(n)}},i=[{type:"user_report"},e];return(0,eB.createEnvelope)(a,[i])}function un(e={}){let t=tA.document,r=t?.head||t?.body;if(!r){rr&&z.debug.error("[showReportDialog] Global document not defined");return}let n=(0,X.getCurrentScope)(),a=(0,X.getClient)(),i=a?.getDsn();if(!i){rr&&z.debug.error("[showReportDialog] DSN not configured");return}let o={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||(0,K.lastEventId)()},s=tA.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let r=(0,eS.makeDsn)(e);if(!r)return"";let n=`${eE(r)}embed/error-page/`,a=`dsn=${(0,eS.dsnToString)(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${a}`}(i,o);let{onLoad:l,onClose:u}=o;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{tA.removeEventListener("message",e)}};tA.addEventListener("message",e)}r.appendChild(s)}let ua=Y.GLOBAL_OBJ,ui=new WeakMap,uo=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(ui.has((0,X.getClient)()))for(let t of e)(0,X.withScope)(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,n="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=t.body.message||n}(0,K.captureMessage)(`${r}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in t$&&new ua.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){ui.set(e,!0)}}};function us(e,t){var r,n,a,i;let o,s=t?.getDsn(),l=t?.getOptions().tunnel;return r=e,n=s,!(!(o=tZ(r))||tQ(o))&&!!n&&o.host.includes(n.host)&&/(^|&|\?)sentry_key=/.test(o.search)||(a=e,!!(i=l)&&ul(a)===ul(i))}function ul(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let uu=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,a,i;r=e,n=t,tH()&&tW(e=>{if((0,X.getClient)()!==r)return;let{response:t,args:a,error:i,virtualError:o}=e,[s,l]=a;t&&function(e,t,r,n,a){if(up(e,r.status,r.url)){var i,o;let e,s,l,u,c=(i=t,!(o=n)&&i instanceof Request||i instanceof Request&&i.bodyUsed?i:new Request(i,o));uh()&&([e,l]=uc("Cookie",c),[s,u]=uc("Set-Cookie",r));let d=uf({url:c.url,method:c.method,status:r.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:a,type:"fetch"});(0,K.captureEvent)(d)}}(n,s,t,l,i||o)},!1),a=e,i=t,"XMLHttpRequest"in Y.GLOBAL_OBJ&&t7(e=>{if((0,X.getClient)()!==a)return;let{error:t,virtualError:r}=e,n=e.xhr,o=n[t8];if(!o)return;let{method:s,request_headers:l}=o;try{!function(e,t,r,n,a){if(up(e,t.status,t.responseURL)){let e,i,o;if(uh()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=ud(e))}catch{}try{let e;o=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}catch{}e=n}let s=uf({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:i,error:a,type:"xhr"});(0,K.captureEvent)(s)}}(i,n,s,l,t||r)}catch(e){rr&&z.debug.warn("Error while extracting response event form XHR response",e)}})}}};function uc(e,t){var r;let n,a,i=(r=t.headers,n={},r.forEach((e,t)=>{n[t]=e}),n);try{let t=i[e]||i[e.toLowerCase()]||void 0;t&&(a=ud(t))}catch{}return[i,a]}function ud(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function up(e,t,r){var n,a;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!us(r,(0,X.getClient)())}function uf(e){let t=(0,X.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,i={message:a,exception:{values:[{type:"Error",value:a,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,ea.addExceptionMechanism)(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function uh(){let e=(0,X.getClient)();return!!e&&!!e.getOptions().sendDefaultPii}let um=Y.GLOBAL_OBJ,ug=(e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=um.document,n=um.location&&t1(um.location.href);if(!r||!n)return e;let a=e.exception?.values;if(!a?.length)return e;let i=r.documentElement.innerHTML;if(!i)return e;let o=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return a.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>{var r,a,i,s;return r=e,a=o,i=n,s=t,r.filename===i&&r.lineno&&a.length&&(0,ea.addContextToFrame)(a,r,s),r}))}),e})(e,t)}};function u_(e){if(uS(e))return`persisted ${e.operationName}`;if(ub(e)){let{query:t,operationName:r}=e,{operationName:n=r,operationType:a}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return n?`${a} ${n}`:`${a}`}return"unknown"}function uy(e){let t;if("xhr"in e){let r=e.xhr[t8];t=r&&am(r.body)[0]}else t=am(ag(e.input))[0];return t}function uv(e){return"object"==typeof e&&null!==e}function ub(e){return uv(e)&&"string"==typeof e.query}function uS(e){return uv(e)&&"string"==typeof e.operationName&&uv(e.extensions)&&uv(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function uE(e){try{let t=JSON.parse(e);if(ub(t)||uS(t))return t;return}catch{return}}let uT=e=>({name:"GraphQLClient",setup(t){var r,n,a,i;r=t,n=e,r.on("beforeOutgoingRequestSpan",(e,t)=>{let r=(0,eL.spanToJSON)(e).data||{};if("http.client"!==r[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let a=r[eh.SEMANTIC_ATTRIBUTE_URL_FULL]||r["http.url"],i=r[eh.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||r["http.method"];if(!(0,eA.isString)(a)||!(0,eA.isString)(i))return;let{endpoints:o}=n,s=(0,ei.stringMatchesSomePattern)(a,o),l=uy(t);if(s&&l){let t=uE(l);if(t){let r=u_(t);e.updateName(`${i} ${a} (${r})`),ub(t)&&e.setAttribute("graphql.document",t.query),uS(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),a=t,i=e,a.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:r,type:n,data:a}=e;if("http"===n&&("fetch"===r||"xhr"===r)){let e=a?.url,{endpoints:r}=i,n=(0,ei.stringMatchesSomePattern)(e,r),o=uy(t);if(n&&a&&o){let e=uE(o);if(!a.graphql&&e){let t=u_(e);a["graphql.operation"]=t,ub(e)&&(a["graphql.document"]=e.query),uS(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),uw=Y.GLOBAL_OBJ,uR="sentryReplaySession",uI="Unable to send Replay";var uC=Object.defineProperty,uA=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?uC(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},uk=((P=uk||{})[P.Document=0]="Document",P[P.DocumentType=1]="DocumentType",P[P.Element=2]="Element",P[P.Text=3]="Text",P[P.CDATA=4]="CDATA",P[P.Comment=5]="Comment",P);function uN(e){let t=e?.host;return t?.shadowRoot===e}function uO(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ux(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,uP).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function uP(e){let t;if("styleSheet"in e)try{t=ux(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,a=n[r],i=n.getPropertyPriority(a);t+=`${a}:${n.getPropertyValue(a)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class uM{constructor(){uA(this,"idNodeMap",new Map),uA(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function uL({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function uD({isMasked:e,element:t,value:r,maskInputFn:n}){let a=r||"";return e?(n&&(a=n(a,t)),"*".repeat(a.length)):a}function uU(e){return e.toLowerCase()}function uB(e){return e.toUpperCase()}let uj="__rrweb_original__";function u$(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?uU(t):null}function uF(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function uH(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let uW={};function uq(e){let t=uW[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return uW[e]=n.bind(window)}function uG(...e){return uq("setTimeout")(...e)}function uz(...e){return uq("clearTimeout")(...e)}function uY(e){try{return e.contentDocument}catch(e){}}let uJ=1,uV=RegExp("[^a-z0-9-_:]");function uK(){return uJ++}let uX=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,uQ=/^(?:[a-z+]+:)?\/\//i,uZ=/^www\..*/i,u0=/^(data:)([^,]*),(.*)/i;function u1(e,t){return(e||"").replace(uX,(e,r,n,a,i,o)=>{let s=n||i||o,l=r||a||"";if(!s)return e;if(uQ.test(s)||uZ.test(s)||u0.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let u2=/^[^ \t\n\r\u000c]+/,u3=/^[, \t\n\r\u000c]+/,u5=new WeakMap;function u4(e,t){return t&&""!==t.trim()?u6(e,t):t}function u6(e,t){let r=u5.get(e);if(r||(r=e.createElement("a"),u5.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function u8(e,t,r,n,a,i,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return u4(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return u4(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}let a=[];for(;n(u3),!(r>=t.length);){let i=n(u2);if(","===i.slice(-1))i=u4(e,i.substring(0,i.length-1)),a.push(i);else{let n="";i=u4(e,i);let o=!1;for(;;){let e=t.charAt(r);if(""===e){a.push((i+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,a.push((i+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return a.join(", ")}(e,n);if("style"===r){let t=u1(n,u6(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let a=e.slice(0,r).trim();t.has(a)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return u4(e,n);return"function"==typeof i?i(r,n,a):n}function u7(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function u9(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:u9(e.parentNode,t,r,n+1)}function ce(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function ct(e,t,r,n,a,i){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if((l=u9(o,ce(n,a)))<0)return!0;s=u9(o,ce(t,r),l>=0?l:1/0)}else{if((s=u9(o,ce(t,r)))<0)return!1;l=u9(o,ce(n,a),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function cr(e){return null==e?"":e.toLowerCase()}function cn(e,t){let r,{doc:n,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:C=5e3,onBlockedImageLoad:A,onStylesheetLoad:k,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:x=!1,ignoreCSSAttributes:P}=t,{preserveWhiteSpace:M=!0}=t,L=function(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:i,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T=!1,ignoreCSSAttributes:w}=t,R=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:uk.Document,childNodes:[],compatMode:e.compatMode};return{type:uk.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uk.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:R};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskTextClass:v,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:E,ignoreCSSAttributes:T}=t,w=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,i,o),R=function(e){if(e instanceof HTMLFormElement)return"form";let t=uU(e.tagName);return uV.test(t)?"div":t}(e),I={},C=e.attributes.length;for(let t=0;t<C;t++){let r=e.attributes[t];r.name&&!u7(R,r.name,r.value)&&(I[r.name]=u8(n,R,uU(r.name),r.value,e,u,T))}if("link"===R&&s){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=ux(t)),r&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=u1(r,t.href))}if("style"===R&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=ux(e.sheet);t&&(I._cssText=u1(t,u6(n)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){let t=u$(e),r=uF(e,uB(R),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=ct(e,v,S,b,E,uL({type:t,tagName:uB(R),maskInputOptions:l}));I.value=uD({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(I.checked=n)}if("option"===R&&(e.selected&&!l.select?I.selected=!0:delete I.selected),"canvas"===R&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let a=t.getImageData;if(new Uint32Array((uj in a?a[uj]:a).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(I.rr_dataURL=t)}}if("img"===R&&p){h||(m=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{h.width=e.naturalWidth,h.height=e.naturalHeight,m.drawImage(e,0,0),I.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?I.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===R||"video"===R)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==R||g(I.src)||(w||uY(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(R)&&(r=!0)}catch(e){}return{type:uk.Element,tagName:R,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T,rootId:R,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=ux(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=u1(p,u6(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=ct(e,n,i,a,o,r);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=uD({isMasked:ct(e,n,i,a,o,uL({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:uk.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:r,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:R});case e.CDATA_SECTION_NODE:return{type:uk.CDATA,textContent:"",rootId:R};case e.COMMENT_NODE:return{type:uk.Comment,textContent:e.textContent||"",rootId:R};default:return!1}}(e,{doc:n,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,dataURLOptions:E,inlineImages:T,recordCanvas:w,keepIframeSrcFn:O,newlyAddedElement:x,ignoreCSSAttributes:P});if(!L)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===uk.Comment)return!0;if(e.type===uk.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===uH(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(cr(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===cr(e.attributes.name)||"icon"===cr(e.attributes.rel)||"apple-touch-icon"===cr(e.attributes.rel)||"shortcut icon"===cr(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&cr(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(cr(e.attributes.property).match(/^(og|twitter|fb):/)||cr(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===cr(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===cr(e.attributes.name)||"googlebot"===cr(e.attributes.name)||"bingbot"===cr(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===cr(e.attributes.name)||"generator"===cr(e.attributes.name)||"framework"===cr(e.attributes.name)||"publisher"===cr(e.attributes.name)||"progid"===cr(e.attributes.name)||cr(e.attributes.property).match(/^article:/)||cr(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===cr(e.attributes.name)||"yandex-verification"===cr(e.attributes.name)||"csrf-token"===cr(e.attributes.name)||"p:domain_verify"===cr(e.attributes.name)||"verify-v1"===cr(e.attributes.name)||"verification"===cr(e.attributes.name)||"shopify-checkout-api-token"===cr(e.attributes.name)))return!0}}return!1}(L,S)&&(M||L.type!==uk.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?uK():-2;let D=Object.assign(L,{id:r});if(a.add(e,D),-2===r)return null;R&&R(e);let U=!f;if(D.type===uk.Element){U=U&&!D.needBlock;let t=e.shadowRoot;t&&uO(t)&&(D.isShadowHost=!0)}if((D.type===uk.Document||D.type===uk.Element)&&U){S.headWhitespace&&D.type===uk.Element&&"head"===D.tagName&&(M=!1);let t={doc:n,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:C,onBlockedImageLoad:A,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:O,ignoreCSSAttributes:P};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=cn(r,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=cn(r,t);n&&(uO(e.shadowRoot)&&(n.isShadow=!0),D.childNodes.push(n))}}if(e.parentNode&&uN(e.parentNode)&&uO(e.parentNode)&&(D.isShadow=!0),D.type!==uk.Element||"iframe"!==D.tagName||D.needBlock||function(e,t,r){let n,a=e.contentWindow;if(!a)return;let i=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){let n=uG(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{uz(n),i=!0,t()});return}let o="about:blank";if(a.location.href!==o||e.src===o||""===e.src)return uG(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=uY(e);if(t&&I){let r=cn(t,{doc:t,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:O,ignoreCSSAttributes:P});r&&I(e,r)}},C),D.type===uk.Element&&"img"===D.tagName&&!e.complete&&D.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&A)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&A(e,D,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return D.type===uk.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===uH(D.attributes.href))&&function(e,t,r){let n,a=!1;try{n=e.sheet}catch(e){return}if(n)return;let i=uG(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{uz(i),a=!0,t()})}(e,()=>{if(k){let t=cn(e,{doc:n,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:O,ignoreCSSAttributes:P});t&&k(e,t)}},N),D.type===uk.Element&&delete D.needBlock,D}function ca(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let ci="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",co={map:{},getId:()=>(console.error(ci),-1),getNode:()=>(console.error(ci),null),removeNodeFromMap(){console.error(ci)},has:()=>(console.error(ci),!1),reset(){console.error(ci)}};function cs(e,t,r={}){let n=null,a=0;return function(...i){let o=Date.now();a||!1!==r.leading||(a=o);let s=t-(o-a),l=this;s<=0||s>t?(n&&(function(...e){cw("clearTimeout")(...e)}(n),n=null),a=o,e.apply(l,i)):n||!1===r.trailing||(n=cR(()=>{a=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},s))}}function cl(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(co=new Proxy(co,{get:(e,t,r)=>("map"===t&&console.error(ci),Reflect.get(e,t,r))}));let cu=Date.now;function cc(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function cd(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cp(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function cf(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ch(e,t,r,n,a){if(!e)return!1;let i=cf(e);if(!i)return!1;let o=ce(t,r);if(!a){let e=n&&i.matches(n);return o(i)&&!e}let s=u9(i,o),l=-1;return!(s<0)&&(n&&(l=u9(i,ce(null,n))),s>-1&&l<0||s<l)}function cm(e,t){return -2===t.getId(e)}function cg(e){return!!e.changedTouches}function c_(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function cy(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function cv(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(cu=()=>new Date().getTime());class cb{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function cS(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function cE(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=cS(r);)r=t;return r}(e);return t.contains(r)}(e))}let cT={};function cw(e){let t=cT[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return cT[e]=n.bind(window)}function cR(...e){return cw("setTimeout")(...e)}var cI=((M=cI||{})[M.DomContentLoaded=0]="DomContentLoaded",M[M.Load=1]="Load",M[M.FullSnapshot=2]="FullSnapshot",M[M.IncrementalSnapshot=3]="IncrementalSnapshot",M[M.Meta=4]="Meta",M[M.Custom=5]="Custom",M[M.Plugin=6]="Plugin",M),cC=((L=cC||{})[L.Mutation=0]="Mutation",L[L.MouseMove=1]="MouseMove",L[L.MouseInteraction=2]="MouseInteraction",L[L.Scroll=3]="Scroll",L[L.ViewportResize=4]="ViewportResize",L[L.Input=5]="Input",L[L.TouchMove=6]="TouchMove",L[L.MediaInteraction=7]="MediaInteraction",L[L.StyleSheetRule=8]="StyleSheetRule",L[L.CanvasMutation=9]="CanvasMutation",L[L.Font=10]="Font",L[L.Log=11]="Log",L[L.Drag=12]="Drag",L[L.StyleDeclaration=13]="StyleDeclaration",L[L.Selection=14]="Selection",L[L.AdoptedStyleSheet=15]="AdoptedStyleSheet",L[L.CustomElement=16]="CustomElement",L),cA=((D=cA||{})[D.MouseUp=0]="MouseUp",D[D.MouseDown=1]="MouseDown",D[D.Click=2]="Click",D[D.ContextMenu=3]="ContextMenu",D[D.DblClick=4]="DblClick",D[D.Focus=5]="Focus",D[D.Blur=6]="Blur",D[D.TouchStart=7]="TouchStart",D[D.TouchMove_Departed=8]="TouchMove_Departed",D[D.TouchEnd=9]="TouchEnd",D[D.TouchCancel=10]="TouchCancel",D),ck=((U=ck||{})[U.Mouse=0]="Mouse",U[U.Pen=1]="Pen",U[U.Touch=2]="Touch",U),cN=((B=cN||{})[B.Play=0]="Play",B[B.Pause=1]="Pause",B[B.Seeked=2]="Seeked",B[B.VolumeChange=3]="VolumeChange",B[B.RateChange=4]="RateChange",B);function cO(e){try{return e.contentDocument}catch(e){}}class cx{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let cP=(e,t)=>`${e}@${t}`;class cM{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new cx,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},a=a=>{if(!a.parentNode||!cE(a))return;let i=uN(a.parentNode)?this.mirror.getId(cS(a)):this.mirror.getId(a.parentNode),o=n(a);if(-1===i||-1===o)return r.addNode(a);let s=cn(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{c_(e,this.mirror)&&!ch(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),cy(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),cv(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ch(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:i,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!cD(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)cU(this.droppedSet,e)||cD(this.removes,e,this.mirror)?cU(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),a(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!cm(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ch(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ct(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,cf(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=u$(t),a=t.tagName;n=uF(t,a,r);let i=uL({maskInputOptions:this.maskInputOptions,tagName:a,type:r});n=uD({isMasked:ct(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(ch(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(cO(t))return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!u7(t.tagName,r)&&(a.attributes[r]=u8(this.doc,uU(t.tagName),uU(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),i=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||i!==r.style.getPropertyPriority(n)?""===i?a.styleDiff[n]=e:a.styleDiff[n]=[e,i]:a._unchangedStyles[n]=[e,i]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(ch(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=uN(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ch(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||cm(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(cL(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(uN(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[cP(r,n)]?cL(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(uN(e.target)&&uO(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(cm(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[cP(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ch(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),cv(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function cL(e,t){e.delete(t),t.childNodes?.forEach(t=>cL(e,t))}function cD(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function cU(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let cB=e=>g?(...t)=>{try{return e(...t)}catch(e){if(g&&!0===g(e))return()=>{};throw e}}:e,cj=[];function c$(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function cF(e,t){let r=new cM;cj.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(n=window[a]);let i=new n(cB(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function cH({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:o}){return ca("scroll",cB(cs(cB(o=>{let s=c$(o);if(!s||ch(s,n,a,i,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=cc(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let cW=["INPUT","TEXTAREA","SELECT"],cq=new WeakMap;function cG(e){var t=[];if(cV("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||cV("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||cV("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||cV("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function cz(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function cY({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&a&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),cB(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function cJ(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=cF(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let a;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=cs(cB(t=>{let r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),o),u=cB(cs(cB(e=>{let t=c$(e),{clientX:r,clientY:i}=cg(e)?e.changedTouches[0]:e;a||(a=cu()),s.push({x:r,y:i,id:n.getId(t),timeOffset:cu()-a}),l("u">typeof DragEvent&&e instanceof DragEvent?cC.Drag:e instanceof MouseEvent?cC.MouseMove:cC.TouchMove)}),i,{trailing:!1})),c=[ca("mousemove",u,r),ca("touchmove",u,r),ca("drag",u,r)];return cB(()=>{c.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(cA).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=uU(o),c=t=>{let s=c$(t);if(ch(s,n,a,i,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=ck.Mouse;break;case"touch":l=ck.Touch;break;case"pen":l=ck.Pen}l===ck.Touch?cA[o]===cA.MouseDown?c="TouchStart":cA[o]===cA.MouseUp&&(c="TouchEnd"):ck.Pen}else cg(t)&&(l=ck.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===ck.Touch||c.startsWith("Mouse")&&l===ck.Mouse)&&(l=null)):cA[o]===cA.Click&&(l=u,u=null);let d=cg(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(s),{clientX:f,clientY:h}=d;cB(e)({type:cA[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(cA[o]){case cA.MouseDown:case cA.MouseUp:s=s.replace("mouse","pointer");break;case cA.TouchStart:case cA.TouchEnd:return}l.push(ca(s,c,t))}),cB(()=>{l.forEach(e=>e())})}(e),o=cH(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return ca("resize",cB(cs(cB(()=>{let t=cd(),a=cp();(r!==t||n!==a)&&(e({width:Number(a),height:Number(t)}),r=t,n=a)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=c$(e),c=e.isTrusted,g=r&&uB(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>cW.indexOf(g)||ch(r,n,a,i,!0))return;let y=r;if(y.classList.contains(o)||s&&y.matches(s))return;let v=u$(r),b=uF(y,g,v),S=!1,E=uL({maskInputOptions:l,tagName:g,type:v}),T=ct(r,p,h,f,m,E);("radio"===v||"checkbox"===v)&&(S=r.checked),b=uD({isMasked:T,element:r,value:b,maskInputFn:u}),_(r,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let w=r.name;"radio"===v&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==r){let t=uD({isMasked:T,element:e,value:uF(e,g,v),maskInputFn:u});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function _(t,n){let a=cq.get(t);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){cq.set(t,n);let a=r.getId(t);cB(e)({...n,id:a})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>ca(e,cB(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map(e=>(function e(t,r,n,a,i=window){let o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,a?n:{set(e){cR(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){cB(g)({target:this,isTrusted:!1})}},!1,v))),cB(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:a,sampling:i,doc:o}){let s=cB(o=>cs(cB(i=>{let s=c$(i);if(!s||ch(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:a.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),i.media||500)),l=[ca("play",s(cN.Play),o),ca("pause",s(cN.Pause),o),ca("seeked",s(cN.Seeked),o),ca("volumechange",s(cN.VolumeChange),o),ca("ratechange",s(cN.RateChange),o)];return cB(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let a,i;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:cB((n,a,i)=>{let[o,s]=i,{id:l,styleId:u}=cz(a,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),n.apply(a,i)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:cB((n,a,i)=>{let[o]=i,{id:s,styleId:l}=cz(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),n.apply(a,i)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:cB((n,a,i)=>{let[o]=i,{id:s,styleId:l}=cz(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),n.apply(a,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:cB((n,a,i)=>{let[o]=i,{id:s,styleId:l}=cz(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),n.apply(a,i)})}));let l={};cK("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(cK("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),cK("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),cK("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,a])=>{u[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(u[n].insertRule,{apply:cB((n,a,i)=>{let[o,s]=i,{id:l,styleId:u}=cz(a.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...cG(a),s||0]}]}),n.apply(a,i)})}),a.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:cB((n,a,i)=>{let[o]=i,{id:s,styleId:l}=cz(a.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...cG(a),o]}]}),n.apply(a,i)})})}),cB(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,a&&(n.CSSStyleSheet.prototype.replace=a),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=cY(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let i=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:cB((a,o,s)=>{let[l,u,c]=s;if(r.has(l))return i.apply(o,[l,u,c]);let{id:d,styleId:p}=cz(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:cG(o.parentRule)}),a.apply(o,s)})});let o=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:cB((a,i,s)=>{let[l]=s;if(r.has(l))return o.apply(i,[l]);let{id:u,styleId:c}=cz(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:cG(i.parentRule)}),a.apply(i,s)})}),cB(()=>{a.CSSStyleDeclaration.prototype.setProperty=i,a.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=cl(t.fonts,"add",function(t){return function(r){return cR(cB(()=>{let t=a.get(r);t&&(e(t),a.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(o),cB(()=>{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,selectionCb:o}=e,s=!0,l=cB(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);ch(o,n,a,i,!0)||ch(u,n,a,i,!0)||l.push({start:r.getId(o),startOffset:s,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),ca("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?cl(r.customElements,"define",function(e){return function(r,n,a){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,a])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return cB(()=>{cj.forEach(e=>e.reset()),r?.disconnect(),a(),i(),o(),s(),l(),u(),c(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function cV(e){return void 0!==window[e]}function cK(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class cX{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let a=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let a=n.get(t);return a||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class cQ{constructor(){this.crossOriginIframeMirror=new cX(uK),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class cZ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new cX(uK),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new cX(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=cO(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case cI.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:cI.IncrementalSnapshot,data:{source:cC.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case cI.Meta:case cI.Load:case cI.DomContentLoaded:break;case cI.Plugin:return t;case cI.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case cI.IncrementalSnapshot:switch(t.data.source){case cC.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case cC.Drag:case cC.TouchMove:case cC.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case cC.ViewportResize:return!1;case cC.MediaInteraction:case cC.MouseInteraction:case cC.Scroll:case cC.CanvasMutation:case cC.Input:return this.replaceIds(t.data,e,["id"]),t;case cC.StyleSheetRule:case cC.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case cC.Font:return t;case cC.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case cC.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let a of n)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===uk.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class c0{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class c1{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!uO(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=cF({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(cH({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),cR(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(cY({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=cO(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(cl(e.prototype,"attachShadow",function(e){return function(n){let a=e.call(this,n);return this.shadowRoot&&cE(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var c2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c3="u"<typeof Uint8Array?[]:new Uint8Array(256),c5=0;c5<c2.length;c5++)c3[c2.charCodeAt(c5)]=c5;class c4{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class c6{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new cb,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:uP(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class c8{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){cw("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let c7=new uM;function c9(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,maxCanvasSize:R=null,packFn:I,sampling:C={},dataURLOptions:A={},mousemoveWait:k,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:x=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:L=!1,inlineImages:D=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:$,onMutation:F,getCanvasManager:H}=e;g=$;let W=!x||window.parent===window,q=!1;if(!W)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!q)return()=>{};void 0!==k&&void 0===C.mousemove&&(C.mousemove=k),c7.reset();let G=!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==b?b:{},z=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let Y=0,J=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!q&&(e=I(e)),e};_=(e,i)=>{if(e.timestamp=cu(),cj[0]?.isFrozen()&&e.type!==cI.FullSnapshot&&(e.type!==cI.IncrementalSnapshot||e.data.source!==cC.Mutation)&&cj.forEach(e=>e.unfreeze()),W)r?.(J(e),i);else if(q){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===cI.FullSnapshot)t=e,Y=0;else if(e.type===cI.IncrementalSnapshot){if(e.data.source===cC.Mutation&&e.data.isAttachIframe)return;Y++;let r=a&&Y>=a,i=n&&t&&e.timestamp-t.timestamp>n;(r||i)&&en(!0)}};let V=e=>{_({type:cI.IncrementalSnapshot,data:{source:cC.Mutation,...e}})},K=e=>_({type:cI.IncrementalSnapshot,data:{source:cC.Scroll,...e}}),X=e=>_({type:cI.IncrementalSnapshot,data:{source:cC.CanvasMutation,...e}}),Q=new c6({mutationCb:V,adoptedStyleSheetCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new cQ:new cZ({mirror:c7,mutationCb:V,stylesheetManager:Q,recordCrossOriginIframes:x,wrappedEmit:_});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:c7,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new c8,et=function(e,t){try{return e?e(t):new c4}catch{return console.warn("Unable to initialize CanvasManager"),new c4}}(H,{mirror:c7,win:window,mutationCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.CanvasMutation,...e}}),recordCanvas:O,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:R,sampling:C.canvas,dataURLOptions:A,errorHandler:$}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new c0:new c1({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:F,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:G,dataURLOptions:A,maskAttributeFn:E,maskTextFn:w,maskInputFn:T,recordCanvas:O,inlineImages:D,sampling:C,slimDOMOptions:z,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:B,processedNodeManager:ee,ignoreCSSAttributes:j},mirror:c7}),en=(e=!1)=>{if(!N)return;_({type:cI.Meta,data:{href:window.location.href,width:cp(),height:cd()}},e),Q.reset(),er.init(),cj.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new uM,blockClass:n="rr-block",blockSelector:a=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:R,stylesheetLoadTimeout:I,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:A=new Set([])}=t||{};return cn(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:R,stylesheetLoadTimeout:I,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:A})}(document,{mirror:c7,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:G,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,slimDOM:z,dataURLOptions:A,recordCanvas:O,inlineImages:D,onSerialize:e=>{c_(e,c7)&&Z.addIframe(e),cy(e,c7)&&Q.trackLinkElement(e),cv(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:B,ignoreCSSAttributes:j});if(!t)return console.warn("Failed to snapshot the document");_({type:cI.FullSnapshot,data:{node:t,initialOffset:cc(window)}}),cj.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,c7.getId(document))};y=en;try{let e=[],t=e=>cB(cJ)({onMutation:F,mutationCb:V,mousemoveCb:(e,t)=>_({type:cI.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.ViewportResize,...e}}),inputCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.Input,...e}}),mediaInteractionCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.MediaInteraction,...e}}),styleSheetRuleCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.StyleSheetRule,...e}}),styleDeclarationCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>_({type:cI.IncrementalSnapshot,data:{source:cC.Font,...e}}),selectionCb:e=>{_({type:cI.IncrementalSnapshot,data:{source:cC.Selection,...e}})},customElementCb:e=>{_({type:cI.IncrementalSnapshot,data:{source:cC.CustomElement,...e}})},blockClass:i,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:G,inlineStylesheet:m,sampling:C,recordDOM:N,recordCanvas:O,inlineImages:D,userTriggeredOnInput:M,collectFonts:L,doc:e,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:B,blockSelector:o,unblockSelector:s,slimDOMOptions:z,dataURLOptions:A,mirror:c7,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:j,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>_({type:cI.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(ca("DOMContentLoaded",()=>{_({type:cI.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&r()})),e.push(ca("load",()=>{_({type:cI.Load,data:{}}),"load"===P&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),y=void 0,g=void 0}}catch(e){console.warn(e)}}function de(e){return e>0x2540be3ff?e:1e3*e}function dt(e){return e>0x2540be3ff?e/1e3:e}function dr(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:cI.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,tg.normalize)(t,10,1e3)}}),"console"===t.category)))}function dn(e){return e.closest("button,a")||e}function da(e){let t=di(e);return t&&t instanceof Element?dn(t):t}function di(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}c9.mirror=c7,c9.takeFullSnapshot=function(e){if(!y)throw Error("please take full snapshot after start recording");y(e)},(j=W||(W={}))[j.NotStarted=0]="NotStarted",j[j.Running=1]="Running",j[j.Stopped=2]="Stopped";let ds=new Set([cC.Mutation,cC.StyleSheetRule,cC.StyleDeclaration,cC.AdoptedStyleSheet,cC.CanvasMutation,cC.Selection,cC.MediaInteraction]);class dl{constructor(e,t,r=dr){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=dc()},v||(v=[],(0,ed.fill)(uw,"open",function(e){return function(...t){if(v)try{v.forEach(e=>e())}catch{}return e.apply(uw,t)}})),v.push(e),()=>{let t=v?v.indexOf(e):-1;t>-1&&v.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,a;if(r=t,n=this._ignoreSelector,!du.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let i={timestamp:dt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=dt(e)}registerScroll(e=Date.now()){this._lastScroll=dt(e)}registerClick(e){let t=dn(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=dc();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:i}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:uw.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,o);return}if(a>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:uw.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rJ(()=>this._checkClicks(),1e3)}}let du=["A","BUTTON","INPUT"];function dc(){return Date.now()/1e3}function dd(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var dp=(($=dp||{})[$.Document=0]="Document",$[$.DocumentType=1]="DocumentType",$[$.Element=2]="Element",$[$.Text=3]="Text",$[$.CDATA=4]="CDATA",$[$.Comment=5]="Comment",$);let df=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function dh(e,t){let r=c9.mirror.getId(e),n=r&&c9.mirror.getNode(r),a=n&&c9.mirror.getMeta(n),i=a&&a.type===dp.Element?a:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===dp.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(df.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(i.attributes)}}:{}}}let dm={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:a,startTime:i,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:dy(i),end:dy(a),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:a}=e,i=dy(a);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:a,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:dy(f),end:dy(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:o,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function dg(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function d_(e){let t=dm[e.entryType];return t?t(e):null}function dy(e){return(((0,eO.browserPerformanceTimeOrigin)()||uw.performance.timeOrigin)+e)/1e3}function dv(e){let t=e.entries[e.entries.length-1];return dE(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function db(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=c9.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return dE(e,"cumulative-layout-shift",r,t)}function dS(e){let t=e.entries[e.entries.length-1];return dE(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function dE(e,t,r,n){let a=e.value,i=e.rating,o=dy(a);return{type:"web-vital",name:t,start:o,end:o,data:{value:a,size:a,rating:i,nodeIds:r?r.map(e=>c9.mirror.getId(e)):void 0,attributions:n}}}let dT="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,dw=["log","warn","error"],dR="[Replay] ";function dI(e,t="info"){tK({category:"console",data:{logger:"replay"},level:t,message:`${dR}${e}`},{level:t})}let dC=(N=!1,O=!1,x={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{N=!!e.captureExceptions,O=!!e.traceInternals}},dT?(dw.forEach(e=>{x[e]=(...t)=>{z.debug[e](dR,...t),O&&dI(t.join(""),tV(e))}}),x.exception=(e,...t)=>{t.length&&x.error&&x.error(...t),z.debug.error(dR,e),N?(0,K.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):O&&dI(e,"error")},x.infoTick=(...e)=>{z.debug.log(dR,...e),O&&setTimeout(()=>dI(e[0]),0)}):dw.forEach(e=>{x[e]=()=>void 0}),x);class dA extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class dk{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new dA;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:de(e)}}class dN{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(dT&&dC.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{dT&&dC.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){dT&&dC.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,a)=>{let i=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",i),!t.success){dT&&dC.error("Error in compression worker: ",t.response),a(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class dO{constructor(e){this._worker=new dN(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=de(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new dA):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{dT&&dC.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class dx{constructor(e){this._fallback=new dk,this._compression=new dO(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){dT&&dC.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){dT&&dC.exception(e,"Failed to add events when switching buffers.")}}}function dP(){try{return"sessionStorage"in uw&&!!uw.sessionStorage}catch{return!1}}function dM(e){return void 0!==e&&Math.random()<e}function dL(e){if(dP())try{uw.sessionStorage.setItem(uR,JSON.stringify(e))}catch{}}function dD(e){let t=Date.now(),r=e.id||(0,ea.uuid4)(),n=e.started||t,a=e.lastActivity||t,i=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:a,segmentId:i,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function dU({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let a=dD({sampled:dM(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&dL(a),a}function dB(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function dj(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return dB(e.started,t,n)||dB(e.lastActivity,r,n)}function d$(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!dj(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function dF({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let a=n.stickySession&&function(){if(!dP())return null;try{let e=uw.sessionStorage.getItem(uR);if(!e)return null;let t=JSON.parse(e);return dT&&dC.infoTick("Loading existing session"),dD(t)}catch{return null}}();return a?d$(a,{sessionIdleExpire:e,maxReplayDuration:t})?(dT&&dC.infoTick("Session in sessionStorage is expired, creating new one..."),dU(n,{previousSessionId:a.id})):a:(dT&&dC.infoTick("Creating new session"),dU(n,{previousSessionId:r}))}function dH(e,t,r){return!!dq(e,t)&&(dW(e,t,r),!0)}async function dW(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let a="buffer"===e.recordingMode;try{r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let i=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===cI.Custom)return t(e)}catch(e){return dT&&dC.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,i.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(i){let t=i&&i instanceof dA,r=(0,X.getClient)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&a)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function dq(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=de(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(dT&&dC.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function dG(e){return"transaction"===e.type}function dz(e){return"feedback"===e.type}function dY(e){return!!e.category}function dJ(){let e=(0,X.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eL.getActiveSpan)();if(t){let e=(0,eM.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function dV(e,t){return t.map(({type:t,start:r,end:n,name:a,data:i})=>{let o=e.throttledAddEvent({type:cI.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof o?Promise.resolve(null):o})}function dK(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!dT||!e.getOptions()._experiments.traceInternals)&&us(r,(0,X.getClient)())||e.addUpdate(()=>(dV(e,[t]),!0)))}function dX(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=ah(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function dQ(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function dZ(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function d0(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:a,method:i,statusCode:o,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:a,data:{method:i,statusCode:o,request:s,response:l}}}function d1(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function d2(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:a,warnings:i}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let a=e.length>15e4,i=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(a){let t=e.slice(0,15e4);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=a,i?.length&&(n._meta={warnings:i}),n}function d3(e,t){return Object.entries(e).reduce((r,[n,a])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=a),r},{})}function d5(e,t){let r=function(e,t=uw.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(uw.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,ei.stringMatchesSomePattern)(r,t)}async function d4(e,t,r){try{let n=await d6(e,t,r),a=d0("resource.fetch",n);dK(r.replay,a)}catch(e){dT&&dC.exception(e,"Failed to capture fetch breadcrumb")}}async function d6(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:i=n}=t,{url:o,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=d5(o,r.networkDetailAllowUrls)&&!d5(o,r.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:i,url:o,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var a,i;let o=r?(a=r,i=t,1===a.length&&"string"!=typeof a[0]?pe(a[0],i):2===a.length?pe(a[1],i):{}):{};if(!e)return d2(o,n,void 0);let[s,l]=am(ag(r),dC),u=d2(o,n,s);return l?dZ(u,l):u}(r,t.input,u):d1(u),response:await d8(d,r,t.response,c)}}async function d8(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,a){if(!e&&void 0!==a)return d1(a);let i=n?d9(n.headers,r):{};if(!n||!t&&void 0!==a)return d2(i,a,void 0);let[o,s]=await d7(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:a}){try{let i=e?.length&&void 0===r?dX(e):r;if(!n)return d1(i);if(t)return d2(a,i,e);return d2(a,i,void 0)}catch(e){return dT&&dC.exception(e,"Failed to serialize response body"),d2(a,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:i});return s?dZ(l,s):l}async function d7(e){let t=function(e){try{return e.clone()}catch(e){dT&&dC.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=rJ(()=>t(Error("Timeout while trying to read response body")),500);pt(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return dT&&dC.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return dT&&dC.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function d9(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function pe(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?d9(r,t):Array.isArray(r)?{}:d3(r,t):{}}async function pt(e){return await e.text()}async function pr(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:i=n,input:o,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!d5(l,r.networkDetailAllowUrls)||d5(l,r.networkDetailDenyUrls)){let e=d1(d);return{startTimestamp:a,endTimestamp:i,url:l,method:u,statusCode:c,request:e,response:d1(p)}}let f=s[t8],h=f?d3(f.request_headers,r.networkRequestHeaders):{},m=d3(a_(s),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?am(o,dC):[void 0],[y,v]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return dT&&dC.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return dT&&dC.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return dT&&dC.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],b=d2(h,d,g),S=d2(m,p,y);return{startTimestamp:a,endTimestamp:i,url:l,method:u,statusCode:c,request:_?dZ(b,_):b,response:v?dZ(S,v):S}}(e,t,r),a=d0("resource.xhr",n);dK(r.replay,a)}catch(e){dT&&dC.exception(e,"Failed to capture xhr breadcrumb")}}async function pn(e){try{return Promise.all(dV(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(uw.performance.memory)]))}catch{return[]}}let pa=Y.GLOBAL_OBJ.navigator;async function pi({client:e,scope:t,replayId:r,event:n}){let a={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,a);let i=await (0,e6.prepareEvent)(e.getOptions(),n,a,t,e,(0,X.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},i}async function po({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:a,session:i}){var o;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,f=(0,X.getClient)(),h=(0,X.getCurrentScope)(),m=f?.getTransport(),g=f?.getDsn();if(!f||!m||!g||!i.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:a/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:i.sampled},y=await pi({scope:h,client:f,replayId:t,event:_});if(!y)return f.recordDroppedEvent("event_processor","replay"),dT&&dC.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;let v=(o=f.getOptions().tunnel,(0,eB.createEnvelope)((0,eB.createEventEnvelopeHeaders)(y,(0,eB.getSdkMetadataForEnvelopeHeader)(y),o,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(v)}catch(t){let e=Error(uI);try{e.cause=t}catch{}throw e}let b=e2({},s);if(e1(b,"replay"))throw new pl(b);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new ps(s.statusCode);return s}class ps extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class pl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class pu extends Error{constructor(){super("Session is too long, not sending replay")}}async function pc(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await po(e),!0}catch(r){if(r instanceof ps||r instanceof pl)throw r;if((0,K.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${uI} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{rJ(async()=>{try{await pc(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let pd="__THROTTLED";class pp{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return function(e,t,r){let n,a,i,o=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function c(){return a&&clearTimeout(a),a=s(l,t),o&&void 0===i&&(i=s(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==i?l():n},c}(e,t,{...r,setTimeoutImpl:rJ})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,r){let n=new Map,a=!1;return(...t)=>{let r,i=Math.floor(Date.now()/1e3);if(r=i-5,n.forEach((e,t)=>{t<r&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=300){let e=a;return a=!0,e?"__SKIPPED":pd}a=!1;let o=n.get(i)||0;return n.set(i,o+1),e(...t)}}((e,t)=>dq(this,e)?dW(this,e,t):Promise.resolve(null),0,0);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),a=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(a&&(this.clickDetector=new dl(this,a)),dT){const t=e._experiments;dC.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===uw.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=dd({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=dd({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||a||i,u=1===o.length;if(!l&&u)return null;let c=(0,tC.htmlTreeAsString)(s,{maxStringLength:200})||"<unknown>",d=dh(s,c);return dd({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:o}})}(t);r&&dr(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){dT&&dC.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){dT&&dC.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",dT&&dC.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){dT&&dC.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){dT&&dC.log("Buffering is in progress, call `flush()` to save the replay");return}dT&&dC.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=dF({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){dT&&dC.log("Buffering is in progress, call `flush()` to save the replay");return}dT&&dC.infoTick("Starting replay in buffer mode");let e=dF({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=c9({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){dT&&dC.warn("Received replay event after session expired.");return}let a=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(ds.has(n)&&e.registerMutation(t.timestamp),n===cC.Scroll&&e.registerScroll(t.timestamp),t.data.source===cC.MouseInteraction){let{type:r,id:n}=t.data,a=c9.mirror.getNode(n);a instanceof HTMLElement&&r===cA.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!dH(e,r,a))return!0;if(!a)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;dH(e,(t=e.getOptions(),{type:cI.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(dT&&dC.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&dL(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(pa?.userAgent??"")||/Macintosh/i.test(pa?.userAgent??"")&&pa?.maxTouchPoints&&pa?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{dT&&dC.log(`Stopping Replay${t?` triggered by ${t}`:""}`),dJ(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(dP())try{uw.sessionStorage.removeItem(uR)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),dT&&dC.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),dT&&dC.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();dT&&dC.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&dB(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${uw.location.pathname}${uw.location.hash}${uw.location.search}`,t=`${uw.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===pd){let e=dd({category:"replay.throttled"});this.addUpdate(()=>!dH(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,eL.getActiveSpan)(),t=e&&(0,eL.getRootSpan)(e),r=(t&&(0,eL.spanToJSON)(t).data||{})[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,eL.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']),URL.createObjectURL(e)}return""}();if(!t)return;dT&&dC.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new dx(r)}catch(e){dT&&dC.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return dT&&dC.log("Using simple buffer"),new dk}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=dF({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!d$(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{uw.document.addEventListener("visibilitychange",this._handleVisibilityChange),uw.addEventListener("blur",this._handleWindowBlur),uw.addEventListener("focus",this._handleWindowFocus),uw.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,X.getClient)();t5(t=>{var r,n;if(!e.isEnabled())return;let a=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?da(e.event):di(e.event),t=(0,tC.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return dd({category:`ui.${e.name}`,...dh(t,r)})}(t);if(!a)return;let i="click"===t.name,o=i?t.event:void 0;i&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=da(t.event),r.handleClick(a,n)),dr(e,a)}),re(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(dV(e,[r]),!1)))}),(t=(0,X.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!dY(t))return;let n=(r=t,!dY(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return dd(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}`):e;if("object"==typeof e)try{let t=(0,tg.normalize)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}`;return t}catch{}return e});return dd({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):dd(r));n&&dr(e,n)})(e,t));let n=(0,X.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,a,i,o;n=t,"xhr"===n.category&&(a=r,a?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let a=dX(n),i=r.getResponseHeader("content-length")?dQ(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return dX(r)}catch{return}}(r.response,r.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),pr(t,r,e)),i=t,"fetch"===i.category&&(o=r,o?.response)&&(!function(e,t){let{input:r,response:n}=t,a=dX(r?ag(r):void 0),i=n?dQ(n.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),d4(t,r,e))}catch(e){dT&&dC.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}let a=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!dG(t)&&!dz(t))return t;if(!e.checkAndHandleExpiredSession())return dJ(),t;if(dz(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:cI.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return dT&&dC.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==uI&&!!t.exception&&!t.type&&dM(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&dL(t)}return t},{id:"Replay"});(0,K.addEventProcessor)(a),r&&(r.on("beforeSendEvent",t=>{var r,n;let a;e.isEnabled()&&!t.type&&(r=e,n=t,a=n.exception?.values?.[0]?.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&dr(r,dd({category:"replay.hydrate-error",data:{url:(0,tC.getLocationHref)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!dG(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(dG(t)){var a,i;let r;return void(a=e,i=t,r=a.getContext(),i.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(i.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&rJ(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(nW(e,r))}),n.push(nF(dg(dv,e)),n$(dg(db,e)),nH(dg(dS,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{uw.document.removeEventListener("visibilitychange",this._handleVisibilityChange),uw.removeEventListener("blur",this._handleWindowBlur),uw.removeEventListener("focus",this._handleWindowFocus),uw.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||dj(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){dT&&dC.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:cI.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(d_).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(dV(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){dT&&dC.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await pn(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new pu;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await pc({replayId:e,recordingData:a,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,X.getClient)();e&&e.recordDroppedEvent(t instanceof pl?"ratelimit_backoff":t instanceof pu?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){dT&&dC.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(n||a){dT&&dC.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&dT&&dC.log("Flushing initial segment without checkout.");let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&dL(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,i=n&&r>n;if(r>a||i){let e=dd({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function pf(e,t){return[...e,...t].join(",")}let ph='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',pm=["content-length","content-type","accept"],pg=Symbol.for("sentry__originalRequestBody"),p_=!1,py=!1,pv=e=>new pb(e);class pb{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:T=[],unblock:w=[],ignore:R=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:A,onError:k,attachRawBodyFromRequest:N=!1}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:r,unblock:n,ignore:a}){return{maskTextSelector:pf(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:pf(t,[]),blockSelector:pf(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:pf(n,[]),ignoreSelector:pf(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:T,unblock:w,ignore:R});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:a,value:i}){return!n||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?i:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i})({maskAttributes:S,maskAllText:l,privacyOptions:O,key:e,value:t,el:r}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:a,useCompression:i,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:pS(y),networkResponseHeaders:pS(v),beforeAddRecordingEvent:C,beforeErrorSampling:A,onError:k,attachRawBodyFromRequest:N,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ph}`:ph,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&no())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return p_}set _isInitialized(e){p_=e}afterAllSetup(e){no()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||py)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[pg]=r.body),n};t.prototype=e.prototype,Y.GLOBAL_OBJ.Request=t,py=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,a,i,o=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},a=(0,e4.parseSampleRate)(r.replaysSessionSampleRate),i=(0,e4.parseSampleRate)(r.replaysOnErrorSampleRate),null==a&&null==i&&(0,z.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=i&&(n.errorSampleRate=i),n);this._replay=new pp({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function pS(e){return[...pm,...e.map(e=>e.toLowerCase())]}function pE(){let e=(0,X.getClient)();return e?.getIntegrationByName("Replay")}var pT=Object.defineProperty,pw=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?pT(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};function pR(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:pR(e.parentNode,t,r,n+1)}function pI(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let pC="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",pA={map:{},getId:()=>(console.error(pC),-1),getNode:()=>(console.error(pC),null),removeNodeFromMap(){console.error(pC)},has:()=>(console.error(pC),!1),reset(){console.error(pC)}};function pk(e,t,r,n,a=window){let i=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(e){pL(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>pk(e,t,i||{},!0)}function pN(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}function pO(e,t,r,n,a){if(!e)return!1;let i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;let o=pI(t,r);if(!a){let e=n&&i.matches(n);return o(i)&&!e}let s=pR(i,o),l=-1;return!(s<0)&&(n&&(l=pR(i,pI(null,n))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(pA=new Proxy(pA,{get:(e,t,r)=>("map"===t&&console.error(pC),Reflect.get(e,t,r))})),Date.now().toString();let px={};function pP(e){let t=px[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return px[e]=n.bind(window)}function pM(...e){return pP("requestAnimationFrame")(...e)}function pL(...e){return pP("setTimeout")(...e)}var pD=((F=pD||{})[F["2D"]=0]="2D",F[F.WebGL=1]="WebGL",F[F.WebGL2=2]="WebGL2",F);let pU=e=>b?(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}:e;for(var pB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pj="u"<typeof Uint8Array?[]:new Uint8Array(256),p$=0;p$<pB.length;p$++)pj[pB.charCodeAt(p$)]=p$;var pF=function(e){var t,r=new Uint8Array(e),n=r.length,a="";for(t=0;t<n;t+=3)a+=pB[r[t]>>2],a+=pB[(3&r[t])<<4|r[t+1]>>4],a+=pB[(15&r[t+1])<<2|r[t+2]>>6],a+=pB[63&r[t+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let pH=new Map,pW=(e,t,r)=>{let n;if(!e||!(pG(e,t)||"object"==typeof e))return;let a=e.constructor.name,i=((n=pH.get(r))||(n=new Map,pH.set(r,n)),n.has(a)||n.set(a,[]),n.get(a)),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o},pq=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:pF(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(pG(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:pW(t,r,n)};return t})(e,t,r)),pG=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function pz(e,t,r,n,a){let i=[];try{let o=pN(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...o){if(!pO(this,t,r,n,!0)){let e="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=e),a&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...o])}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function pY(e,t,r,n,a,i,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let u=pN(e,o,function(e){return function(...l){let u=e.apply(this,l);if(pW(u,s,this),"tagName"in this.canvas&&!pO(this.canvas,n,a,i,!0)){let e=pq(l,s,this),n={type:t,property:o,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=pk(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(n)}return l}class pJ{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:a,errorHandler:i}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&function(e){b=e}(i),(a&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;pU(()=>{a&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:a,recordCanvas:i,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}pU(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,r,n,a),i&&"number"==typeof t){let t=pz(e,r,n,a,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):pM(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:a,width:i,height:o}=t;this.mutationCb({id:r,type:pD["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:a}]},0,0,i,o]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=pM(t)};e=pM(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){var a,i;let o,s=pz(e,t,r,n,!1),l=function(e,t,r,n,a){let i=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=pN(t.CanvasRenderingContext2D.prototype,o,function(i){return function(...s){return pO(this.canvas,r,n,a,!0)||pL(()=>{let r=pq(s,t,this);e(this.canvas,{type:pD["2D"],property:o,args:r})},0),i.apply(this,s)}});i.push(s)}catch{let r=pk(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:pD["2D"],property:o,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),u=(a=this.processMutation.bind(this),i=this.mirror,(o=[]).push(...pY(e.WebGLRenderingContext.prototype,pD.WebGL,a,t,r,n,i,e)),void 0!==e.WebGL2RenderingContext&&o.push(...pY(e.WebGL2RenderingContext.prototype,pD.WebGL2,a,t,r,n,i,e)),()=>{o.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,r){let n=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{pO(a,e,t,r,!0)||n.push(a)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:a,blockSelector:i,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(a,i,o)).forEach(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{pU(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){pM(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,pM(e)};pM(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),pM(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:a}=r[0];this.mutationCb({id:t,type:a,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{constructor(){pw(this,"idNodeMap",new Map),pw(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(H=q||(q={}))[H.NotStarted=0]="NotStarted",H[H.Running=1]="Running",H[H.Stopped=2]="Stopped";let pV={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},pK=(e={})=>{let t,r,[n,a]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,a?Math.min(a,1280):1280]},o=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:a}=i;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let i=new pJ({...e,enableManualSnapshot:n,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=i,r(i),i},...pV[e]||pV.medium}},async snapshot(e,r){(t||await o).snapshot(e,r)}}};var lZ=lZ;let pX=()=>({name:"ElementTiming",setup(){n1()&&(0,eO.browserPerformanceTimeOrigin)()&&nW("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,r=t.name,n=t.renderTime,a=t.loadTime,i={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":e};r&&(i["ui.element.paint_type"]=r),t.id&&(i["ui.element.id"]=t.id),t.element&&(i["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(i["ui.element.url"]=t.url),t.naturalWidth&&(i["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(i["ui.element.height"]=t.naturalHeight),n>0&&lZ.distribution("ui.element.render_time",n,{unit:"millisecond",attributes:i}),a>0&&lZ.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:i})}})}});function pQ(e=(0,X.getClient)()){e?.emit("endPageloadSpan")}function pZ(e){let t=(0,eL.getActiveSpan)();if(t===e)return;let r=(0,X.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,n,a)=>((0,eN._setSpanForScope)(r,t),Reflect.apply(e,n,a))}),(0,eN._setSpanForScope)(r,e)}function p0(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function p1(e){return p0(e.getAllKeys())}function p2(e){let t;function r(){var r,n;let a,i;return void 0==t&&(r=e.dbName||"sentry-offline",n=e.storeName||"queue",(a=indexedDB.open(r)).onupgradeneeded=()=>a.result.createObjectStore(n),i=p0(a),t=e=>i.then(t=>e(t.transaction(n,"readwrite").objectStore(n)))),t}return{push:async t=>{try{var n,a;let i=(0,eB.serializeEnvelope)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>p1(e).then(t=>{if(!(t.length>=a))return e.put(i,Math.max(...t,0)+1),p0(e.transaction)})))}catch{}},unshift:async t=>{try{var n,a;let i=(0,eB.serializeEnvelope)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>p1(e).then(t=>{if(!(t.length>=a))return e.put(i,Math.min(...t,0)-1),p0(e.transaction)})))}catch{}},shift:async()=>{try{let e=await r()(e=>p1(e).then(t=>{let r=t[0];if(null!=r)return p0(e.get(r)).then(t=>(e.delete(r),p0(e.transaction).then(()=>t)))}));if(e)return(0,eB.parseEnvelope)(e)}catch{}}}}function p3(e=rV){var t;return t=function(e){function t(...e){Q.DEBUG_BUILD&&z.debug.log("[Offline]:",...e)}return r=>{let n,a=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let i=r.createStore(r),o=5e3;function s(e){n&&clearTimeout(n),n=eK(setTimeout(async()=>{n=void 0;let e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){n||(s(o),o=Math.min(2*o,36e5))}async function u(e,n=!1){if(!n&&(0,eB.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};try{if(r.shouldSend&&await r.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await a.send(e),n=100;if(t){if(t.headers?.["retry-after"])n=e0(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),o=5e3,t}catch(a){var c;if(await (c=o,!(0,eB.envelopeContainsItemType)(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,a,c))))return n?await i.unshift(e):await i.push(e),l(),t("Error sending. Event queued.",a),{};throw a}}return r.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(o=5e3,s(100)),a.flush(e))}}}(e),e=>{let r=t({...e,createStore:p2});return tA.addEventListener("online",async e=>{await r.flush()}),r}}var p5=e.i(640681);let p4="window"in Y.GLOBAL_OBJ&&Y.GLOBAL_OBJ.window===Y.GLOBAL_OBJ&&"u"<typeof importScripts,p6=String(0),p8=p4?"main":"worker",p7=tA.navigator,p9="",fe="",ft="",fr=p7?.userAgent||"",fn="",fa=p7?.language||p7?.languages?.[0]||"",fi=p7?.userAgentData;function fo(e){return"pageload"===(0,eL.spanToJSON)(e).op}function fs(e){let t=(0,X.getClient)(),r=t?.getOptions(),n=r?.stackParser;return n?(0,p5.getDebugImagesForResources)(n,e):[]}function fl(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(rr&&z.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(rr&&z.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof fi&&null!==fi&&"getHighEntropyValues"in fi&&fi.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(p9=e.platform||"",ft=e.architecture||"",fn=e.model||"",fe=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];fr=`${t.brand} ${t.version}`}}).catch(e=>void 0);let fu=!1;function fc(){let e=tA.Profiler;if("function"!=typeof e){rr&&z.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){rr&&(z.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),z.debug.log("[Profiling] Disabling profiling for current user session.")),fu=!0}}function fd(e){if(fu)return rr&&z.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return rr&&z.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,X.getClient)(),r=t?.getOptions();if(!r)return rr&&z.debug.log("[Profiling] Profiling disabled, no options found."),!1;let n=r.profilesSampleRate;return fl(n)?n?!!(!0===n||Math.random()<n)||(rr&&z.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):(rr&&z.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(rr&&z.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function fp(e){return void 0!==e.profilesSampleRate}let ff=new Map;function fh(e){let t;fo(e)&&(t=1e3*(0,eO.timestampInSeconds)());let r=fc();if(!r)return;rr&&z.debug.log(`[Profiling] started profiling span: ${(0,eL.spanToJSON)(e).description}`);let n=(0,ea.uuid4)(),a=null;async function i(){if(e&&r){if(a){rr&&z.debug.log("[Profiling] profile for:",(0,eL.spanToJSON)(e).description,"already exists, returning early");return}return r.stop().then(t=>{if(o&&(tA.clearTimeout(o),o=void 0),rr&&z.debug.log(`[Profiling] stopped profiling of span: ${(0,eL.spanToJSON)(e).description}`),!t){rr&&z.debug.log(`[Profiling] profiler returned null profile for: ${(0,eL.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}a=t;if(ff.set(n,t),ff.size>30){let e=ff.keys().next().value;void 0!==e&&ff.delete(e)}}).catch(e=>{rr&&z.debug.log("[Profiling] error while stopping profiler:",e)})}}(0,X.getCurrentScope)().setContext("profile",{profile_id:n,start_timestamp:t});let o=tA.setTimeout(()=>{rr&&z.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,eL.spanToJSON)(e).description),i()},3e4),s=e.end.bind(e);e.end=function(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}}class fm{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,r=function(e){if(fu)return rr&&z.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return rr&&z.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return fl(t)?t?Math.random()<=t:(rr&&z.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(rr&&z.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());rr&&z.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!r&&rr&&z.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,ea.uuid4)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){if("trace"===this._lifecycleMode){rr&&z.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){rr&&z.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){rr&&z.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){rr&&z.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){rr&&z.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let r=this._activeRootSpanIds.size;1===r&&(rr&&z.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,rr&&z.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,X.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){rr&&z.debug.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{rr&&z.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,X.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){rr&&z.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,eL.getRootSpan)(e))return;if(!e.isRecording()){rr&&z.debug.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let r=this._activeRootSpanIds.size;1===r&&(rr&&z.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let r=this._activeRootSpanIds.size;rr&&z.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{rr&&z.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,X.getGlobalScope)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=fc();if(!e){rr&&z.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{rr&&z.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(rr&&z.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),r=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let a=[],i=n;for(;i;)a.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];r[t]=a}let n=(0,eO.browserPerformanceTimeOrigin)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,i=a-(n||a),o=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(a+(r.timestamp-i))/1e3;o[t]={stack_id:r.stackId??0,thread_id:p6,timestamp:n}}return{frames:t,stacks:r,samples:o,thread_metadata:{[p6]:{name:p8}}}}(e),a=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,ea.uuid4)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:r||(0,ea.uuid4)(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:fs(e.resources)},profile:n}}(t,this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(r);if("reason"in n){rr&&z.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason);return}this._sendProfileChunk(r),rr&&z.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){rr&&z.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,r=(0,eB.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),n=t.getDsn(),a=t.getOptions().tunnel,i=(0,eB.createEnvelope)({event_id:(0,ea.uuid4)(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&n&&{dsn:(0,eS.dsnToString)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{rr&&z.debug.error("Error while sending profile chunk envelope:",e)})}}let fg=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new fm;if(fp(t)||t.profileLifecycle||(t.profileLifecycle="manual"),fp(t)&&!t.profilesSampleRate){rr&&z.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let n=(0,eL.getActiveSpan)(),a=n&&(0,eL.getRootSpan)(n);if(fp(t)&&void 0!==t.profileSessionSampleRate&&rr&&z.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),fp(t))a&&fo(a)&&fd(a)&&fh(a),e.on("spanStart",e=>{e===(0,eL.getRootSpan)(e)&&fd(e)&&fh(e)}),e.on("beforeEnvelope",e=>{let t;if(!ff.size)return;let r=(t=[],(0,eB.forEachEnvelopeItem)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t);if(!r.length)return;let n=[];for(let e of r){let t=e?.contexts,r=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof r||!r){rr&&z.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let i=function(e){let t=ff.get(e);return t&&ff.delete(e),t}(r);if(!i){rr&&z.debug.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let o=function(e,t,r,n){return(r.samples.length<2?(rr&&z.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!r.frames.length&&(rr&&z.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,r,n){var a;let i;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let o=("string"==typeof(i=n.contexts?.trace?.trace_id)&&32!==i.length&&rr&&z.debug.log(`[Profiling] Invalid traceId: ${i} on profiled event`),"string"!=typeof i)?"":i,s="thread_metadata"in(a=r)?a:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[p6]:{name:p8}}},a=e.samples[0];if(!a)return n;let i=a.timestamp,o=(0,eO.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,l=s-(o||s);return e.samples.forEach((a,o)=>{if(void 0===a.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[o]={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:t,thread_id:p6};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:r,thread_id:p6};n.stacks[r]=u,n.samples[o]=c,r++}),n}(a),l=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,eO.timestampInSeconds)()),u="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,eO.timestampInSeconds)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||ew.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:tA.navigator.userAgent},os:{name:p9,version:fe,build_number:fr},device:{locale:fa,model:fn,manufacturer:fr,architecture:ft,is_emulator:!1},debug_meta:{images:fs(r.resources)},profile:s,transactions:[{name:n.transaction||"",id:n.event_id||(0,ea.uuid4)(),trace_id:o,active_thread_id:p6,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,r,n)}(r,a,i,e);o&&n.push(o)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,n)});else{let n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,r4.hasSpansEnabled)(t)){rr&&z.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}r.initialize(e),a&&r.notifyRootSpanActive(a),tA.setTimeout(()=>{let e=(0,eL.getActiveSpan)(),t=e&&(0,eL.getRootSpan)(e);t&&r.notifyRootSpanActive(t)},0)}}},processEvent:e=>(e?.contexts?.profile&&e.contexts&&(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":p6,"thread.name":p8}}),e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":p6,"thread.name":p8}})),e)}),f_=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{rr&&z.debug.log("Using Sidecar URL",t)},processEvent:e=>{var t;return"transaction"===(t=e).type&&t.spans&&t.contexts?.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some(({description:e})=>e?.includes("#sentry-spotlight"))?null:e},afterAllSetup:e=>{var r,n;let a,i;r=e,n=t,a=rY("fetch"),i=0,r.on("beforeEnvelope",e=>{i>3?z.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",i):a(n,{method:"POST",body:(0,eB.serializeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(i=0)},e=>{i++,z.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},fy=()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>lt(e)});function fv(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{lr(e,t.value),ln(e,t.value)}}}let fb=()=>({name:"OpenFeature",processEvent:(e,t,r)=>lt(e)});class fS{after(e,t){lr(t.flagKey,t.value),ln(t.flagKey,t.value)}error(e,t,r){lr(e.flagKey,e.defaultValue),ln(e.flagKey,e.defaultValue)}}let fE=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,ed.fill)(t,"isEnabled",fT)},processEvent:(e,t,r)=>lt(e)});function fT(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?(lr(r,n),ln(r,n)):rr&&z.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}function fw(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(lr(r,n),ln(r,n)),n}}let fR=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,ed.fill)(t,"isOn",fw),"function"==typeof t.getFeatureValue&&(0,ed.fill)(t,"getFeatureValue",fw)},processEvent:(e,t,r)=>lt(e)}))({growthbookClass:e}),fI=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{lr(e.gate.name,e.gate.value),ln(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>lt(e)});async function fC(){let e=(0,X.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await (0,r9.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let fA=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>fk(e))},addWorker:e=>fk(e)});function fk(e){e.addEventListener("message",e=>{if(function(e){if(!(0,eA.isPlainObject)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!r||!!n||!!a)&&(!t||!!((0,eA.isPlainObject)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!r||!!((0,eA.isPlainObject)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!n||!!(0,eA.isPlainObject)(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,eA.isPlainObject)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(rr&&z.debug.log("Sentry debugId web worker message received",e.data),tA._sentryDebugIds={...e.data._sentryDebugIds,...tA._sentryDebugIds}),e.data._sentryModuleMetadata&&(rr&&z.debug.log("Sentry module metadata web worker message received",e.data),tA._sentryModuleMetadata={...e.data._sentryModuleMetadata,...tA._sentryModuleMetadata}),e.data._sentryWasmImages){rr&&z.debug.log("Sentry WASM images web worker message received",e.data);let t=tA._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,eA.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));tA._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(rr&&z.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,X.getClient)();if(!t)return;let r=t.getOptions().stackParser,n=t.getOptions().attachStacktrace,a=e.reason,i=(0,eA.isPrimitive)(a)?rv(a):tR(r,a,void 0,n,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),(0,K.captureEvent)(i,{originalException:a,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),rr&&z.debug.log("Captured worker unhandled rejection",a)}(e.data._sentryWorkerError))}})}function fN({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:ry(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),rr&&z.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),rr&&z.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function fO(e,{componentStack:t},r){let n;if(null!==(n=r0.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&(0,eA.isError)(e)&&t){let r,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,r=new WeakSet,function e(t,n){if(!r.has(t)){if(t.cause)return r.add(t),e(t.cause,n);t.cause=n}}(e,n)}return(0,X.withScope)(n=>(n.setContext("react",{componentStack:t}),(0,K.captureException)(e,r)))}function fx(e){return(t,r)=>{let n=!!e,a=fO(t,r,{mechanism:{handled:n,type:"auto.function.react.error_handler"}});n&&e(t,r,a)}}e.s(["BrowserClient",()=>tx,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",()=>oV,"OpenFeatureIntegrationHook",()=>fS,"SDK_VERSION",()=>J.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>oQ.Scope,"WINDOW",()=>tA,"addBreadcrumb",()=>tK,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",()=>er,"breadcrumbsIntegration",()=>rn,"browserApiErrorsIntegration",()=>ri,"browserProfilingIntegration",()=>fg,"browserSessionIntegration",()=>ru,"browserTracingIntegration",()=>aC,"buildLaunchDarklyFlagUsedHandler",()=>fv,"captureConsoleIntegration",()=>oZ,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",()=>it,"captureMessage",()=>K.captureMessage,"captureSession",()=>K.captureSession,"chromeStackLineParser",()=>rx,"close",()=>K.close,"consoleLoggingIntegration",()=>o5,"contextLinesIntegration",()=>ug,"continueTrace",()=>r9.continueTrace,"createConsolaReporter",()=>o6,"createLangChainCallbackHandler",()=>s7,"createTransport",()=>e3,"createUserFeedbackEnvelope",()=>ur,"cultureContextIntegration",()=>rc,"dedupeIntegration",()=>eg,"defaultRequestInstrumentationOptions",()=>aE,"defaultStackLineParsers",()=>rH,"defaultStackParser",()=>rW,"diagnoseSdkConnectivity",()=>fC,"elementTimingIntegration",()=>pX,"endSession",()=>K.endSession,"eventFiltersIntegration",()=>es,"eventFromException",()=>tT,"eventFromMessage",()=>tw,"exceptionFromError",()=>ty,"extraErrorDataIntegration",()=>s9,"featureFlagsIntegration",()=>la,"feedbackAsyncIntegration",()=>oY,"feedbackIntegration",()=>oJ,"feedbackSyncIntegration",()=>oJ,"flush",()=>K.flush,"forceLoad",()=>rQ,"functionToStringIntegration",()=>ef,"geckoStackLineParser",()=>rL,"getActiveSpan",()=>eL.getActiveSpan,"getClient",()=>X.getClient,"getCurrentScope",()=>X.getCurrentScope,"getDefaultIntegrations",()=>rK,"getFeedback",()=>iL,"getGlobalScope",()=>X.getGlobalScope,"getIsolationScope",()=>X.getIsolationScope,"getReplay",()=>pE,"getRootSpan",()=>eL.getRootSpan,"getSpanDescendants",()=>eL.getSpanDescendants,"getSpanStatusFromHttpCode",()=>r7.getSpanStatusFromHttpCode,"getTraceData",()=>ac,"globalHandlersIntegration",()=>r_,"graphqlClientIntegration",()=>uT,"growthbookIntegration",()=>fR,"httpClientIntegration",()=>uu,"httpContextIntegration",()=>rE,"inboundFiltersIntegration",()=>el,"init",()=>rX,"instrumentAnthropicAiClient",()=>lp,"instrumentGoogleGenAIClient",()=>lS,"instrumentLangGraph",()=>lT,"instrumentOpenAiClient",()=>lN,"instrumentOutgoingRequests",()=>aT,"instrumentSupabaseClient",()=>lB,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",()=>fy,"lazyLoadIntegration",()=>oz,"linkedErrorsIntegration",()=>rI,"logger",()=>lJ,"makeBrowserOfflineTransport",()=>p3,"makeFetchTransport",()=>rV,"makeMultiplexedTransport",()=>oX,"metrics",()=>lZ,"moduleMetadataIntegration",()=>l5,"onLoad",()=>rZ,"openFeatureIntegration",()=>fb,"opera10StackLineParser",()=>rj,"opera11StackLineParser",()=>rF,"parameterize",()=>lY,"registerSpanErrorInstrumentation",()=>nn,"registerWebWorker",()=>fN,"replayCanvasIntegration",()=>pK,"replayIntegration",()=>pv,"reportPageLoaded",()=>pQ,"reportingObserverIntegration",()=>uo,"rewriteFramesIntegration",()=>a5,"sendFeedback",()=>iR,"setActiveSpanInBrowser",()=>pZ,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",()=>eb,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>r7.setHttpStatus,"setMeasurement",()=>ae.setMeasurement,"setTag",()=>K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",()=>un,"spanToBaggageHeader",()=>eM.spanToBaggageHeader,"spanToJSON",()=>eL.spanToJSON,"spanToTraceHeader",()=>eL.spanToTraceHeader,"spotlightBrowserIntegration",()=>f_,"startBrowserTracingNavigationSpan",()=>ak,"startBrowserTracingPageLoadSpan",()=>aA,"startInactiveSpan",()=>r9.startInactiveSpan,"startNewTrace",()=>r9.startNewTrace,"startSession",()=>K.startSession,"startSpan",()=>r9.startSpan,"startSpanManual",()=>r9.startSpanManual,"statsigIntegration",()=>fI,"supabaseIntegration",()=>lj,"suppressTracing",()=>r9.suppressTracing,"thirdPartyErrorFilterIntegration",()=>l4,"uiProfiler",()=>ut,"unleashIntegration",()=>fE,"updateSpanName",()=>eL.updateSpanName,"webWorkerIntegration",()=>fA,"winjsStackLineParser",()=>rU,"withActiveSpan",()=>r9.withActiveSpan,"withIsolationScope",()=>X.withIsolationScope,"withScope",()=>X.withScope,"zodErrorsIntegration",()=>ue],338795),e.i(338795);var fP=r0;let fM="ui.react.render",fL="ui.react.mount",fD={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fj=Symbol.for("react.forward_ref"),f$=Symbol.for("react.memo"),fF={};function fH(e){if("object"==typeof e&&null!==e&&e.$$typeof===f$)return fB;let t=e.$$typeof;return t&&fF[t]||fD}fF[fj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fF[f$]=fB;let fW=Object.defineProperty.bind(Object),fq=Object.getOwnPropertyNames.bind(Object),fG=Object.getOwnPropertySymbols?.bind(Object),fz=Object.getOwnPropertyDescriptor.bind(Object),fY=Object.getPrototypeOf.bind(Object),fJ=Object.prototype;function fV(e,t,r){if("string"!=typeof t){if(fJ){let r=fY(t);r&&r!==fJ&&fV(e,r)}let r=fq(t);fG&&(r=r.concat(fG(t)));let n=fH(e),a=fH(t);for(let i of r)if(!fU[i]&&!a?.[i]&&!n?.[i]&&!fz(e,i)){let r=fz(t,i);if(r)try{fW(e,i,r)}catch(e){}}}return e}class fK extends fP.Component{constructor(e){super(e);const{name:t,disabled:r=!1}=this.props;if(r)return;this._mountSpan=(0,r9.startInactiveSpan)({name:`<${t}>`,onlyIfParent:!0,op:fL,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,eO.timestampInSeconds)();this._updateSpan=(0,r9.withActiveSpan)(this._mountSpan,()=>(0,r9.startInactiveSpan)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,eO.timestampInSeconds)(),{name:t,includeRender:r=!0}=this.props;if(this._mountSpan&&r){let r=(0,eL.spanToJSON)(this._mountSpan).timestamp;(0,r9.withActiveSpan)(this._mountSpan,()=>{let n=(0,r9.startInactiveSpan)({onlyIfParent:!0,name:`<${t}>`,op:fM,startTime:r,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});n&&n.end(e)})}}render(){return this.props.children}}function fX(e,t){let r=t?.name||e.displayName||e.name||"unknown",n=n=>fP.createElement(fK,{...t,name:r,updateProps:n},fP.createElement(e,{...n}));return n.displayName=`profiler(${r})`,fV(n,e),n}function fQ(e,t={disabled:!1,hasRenderSpan:!0}){let[r]=fP.useState(()=>{if(!t?.disabled)return(0,r9.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:fL,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});fP.useEffect(()=>(r&&r.end(),()=>{if(r&&t.hasRenderSpan){let t=(0,eL.spanToJSON)(r).timestamp,n=(0,eO.timestampInSeconds)(),a=(0,r9.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:fM,startTime:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(n)}}),[])}Object.assign(fK,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var fZ=r0;let f0="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,f1={componentStack:null,error:null,eventId:null};class f2 extends fZ.Component{constructor(e){super(e),this.state=f1,this._openFallbackReportDialog=!0;const t=(0,X.getClient)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&un({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:r}=t,{beforeCapture:n,onError:a,showDialog:i,dialogOptions:o}=this.props;(0,X.withScope)(s=>{n&&n(s,e,r);let l=fO(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});a&&a(e,r,l),i&&(this._lastEventId=l,this._openFallbackReportDialog&&un({...o,eventId:l})),this.setState({error:e,componentStack:r,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&(this.state===f1?n(null,null,null):n(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(f1)}render(){let{fallback:e,children:t}=this.props,r=this.state;if(null===r.componentStack)return"function"==typeof t?t():t;let n="function"==typeof e?fZ.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return fZ.isValidElement(n)?n:(e&&f0&&z.debug.warn("fallback did not produce a valid ReactElement"),null)}}function f3(e,t){let r=e.displayName||e.name||"unknown",n=fZ.memo(r=>fZ.createElement(f2,{...t},fZ.createElement(e,{...r})));return n.displayName=`errorBoundary(${r})`,fV(n,e),n}let f5={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function f4(e){let t={...f5,...e};return e=>(r,n)=>{function a(e){return(r,n)=>{let a=e(r,n),i=(0,X.getCurrentScope)(),o=t.actionTransformer(n);null!=o&&tK({category:"redux.action",data:o,type:"info"});let s=t.stateTransformer(a);if(null!=s){let e=(0,X.getClient)(),t=e?.getOptions(),r=t?.normalizeDepth||3,n={state:{type:"redux",value:s}};(0,ed.addNonEnumerableProperty)(n,"__sentry_override_normalization_depth__",3+r),i.setContext("state",n)}else i.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(i,a),a}}t.attachReduxState&&(0,X.getGlobalScope)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let i=e(a(r),n);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(e,t,r){e.apply(t,[a(r[0])])}}),i}}function f6(e){let t=aC({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,match:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),i&&tA.location&&f8(n,tA.location,a,(t,r="url")=>{aA(e,{name:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r}})}),o&&r.listen&&r.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&f8(n,t,a,(t,r="url")=>{ak(e,{name:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r}})})})}}}function f8(e,t,r,n){let a=t.pathname;r({location:t,routes:e},(e,t,r)=>{if(e||!r)return n(a);let i=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),r=-1;for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.path?.startsWith("/")){r=e;break}}return t.slice(r).reduce((e,{path:t})=>{let r="/"===e||""===e?t:`/${t}`;return`${e}${r}`},"")}(r.routes||[]);return 0===i.length||"/*"===i?n(a):n(a=i,"route")})}function f7(e,t={}){let r=aC({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:a=!0}=t;return{...r,afterAllSetup(t){r.afterAllSetup(t);let i=tA.location;if(n&&i){let r=e.matchRoutes(i.pathname,e.options.parseSearch(i.search),{preload:!1,throwOnError:!1}),n=r[r.length-1],a=n?.routeId!=="__root__"?n:void 0;aA(t,{name:a?a.routeId:i.pathname,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url",...f9(a)}})}a&&e.subscribe("onBeforeNavigate",r=>{if(!r.fromLocation||r.toLocation.state===r.fromLocation.state)return;let n=e.matchRoutes(r.toLocation.pathname,r.toLocation.search,{preload:!1,throwOnError:!1}),a=n[n.length-1],i=a?.routeId!=="__root__"?a:void 0,o=tA.location,s=ak(t,{name:i?i.routeId:o.pathname,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let r=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),n=r[r.length-1],a=n?.routeId!=="__root__"?n:void 0;a&&(s.updateName(a.routeId),s.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"),s.setAttributes(f9(a)))}})})}}}function f9(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,r])=>{t[`url.path.params.${e}`]=r,t[`url.path.parameter.${e}`]=r,t[`params.${e}`]=r}),t}function he(e){let t=aC({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),hr(e,i,o,r,"reactrouter_v4",n,a)}}}function ht(e){let t=aC({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),hr(e,i,o,r,"reactrouter_v5",n,a)}}}function hr(e,t,r,n,a,i=[],o){function s(e){if(0===i.length||!o)return[e,"url"];for(let t of function e(t,r,n,a=[]){return t.some(t=>{let i=t.path?n(r,t):a.length?a[a.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===r};return i&&(a.push({route:t,match:i}),t.routes&&e(t.routes,r,n,a)),!!i}),a}(i,e,o))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=n.location?n.location.pathname:tA.location?tA.location.pathname:void 0;if(t){let[r,n]=s(t);aA(e,{name:r,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${a}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}}r&&n.listen&&n.listen((t,r)=>{if(r&&("PUSH"===r||"POP"===r)){let[r,n]=s(t.pathname);ak(e,{name:r,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${a}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}})}function hn(e){let t=e.displayName||e.name,r=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,r=function(){let e=(0,eL.getActiveSpan)(),t=e&&(0,eL.getRootSpan)(e);if(!t)return;let r=(0,eL.spanToJSON)(t).op;return"navigation"===r||"pageload"===r?t:void 0}();(0,X.getCurrentScope)().setTransactionName(e),r&&(r.updateName(e),r.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return r0.createElement(e,{...t})};return r.displayName=`sentryRoute(${t})`,fV(r,e),r}function ha(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}let hi=new WeakMap;function ho(e,t){return void 0!==e&&void 0!==t&&(!!hl.test(t)||e===t)}function hs(e){return e.split("/").filter(Boolean)}let hl=/^:[\w-]+$/;function hu(e){let t=e.split("/"),r=t.length;for(let e of(t.includes("*")&&(r+=-2),t))if("*"===e)continue;else hl.test(e)?r+=3:""===e?r+=1:r+=10;return r}let hc=!1,hd=[];function hp(){let e=hd.length;return e>0?hd[e-1]??null:null}function hf(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function hh(e){return e.endsWith("*")}function hm(e){return e.includes("/*")||e.endsWith("*")}function hg(e,t){return hh(e)&&!!t.route.children?.length||!1}function h_(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function hy(e){return"/"===e[0]?e:`/${e}`}function hv(e,t){return hc?ha(e.pathname,t):e.pathname||""}function hb(e,t,r,n,a="",i,o){let s;if(o&&i&&i.length>0){let t=function(e,t,r){if(!e||!t?.length)return null;let n=r?ha(e,r):e,a=hi.get(t);for(let e of(!a&&(a=[...t].sort((e,t)=>{let r=hu(e);return hu(t)-r}),hi.set(t,a),f0&&z.debug.log("[React Router] Sorted route manifest by specificity:",a.length,"patterns")),a))if(function(e,t){if("/"===t)return"/"===e||""===e;let r=hs(e),n=hs(t);if(n.length>0&&"*"===n[n.length-1]){let e=n.slice(0,-1);if(r.length<e.length)return!1;for(let[t,n]of e.entries())if(!ho(r[t],n))return!1;return!0}if(r.length!==n.length)return!1;for(let[e,t]of n.entries())if(!ho(r[e],t))return!1;return!0}(n,e))return f0&&z.debug.log("[React Router] Matched pathname",n,"to pattern",e),e;return f0&&z.debug.log("[React Router] No manifest match found for pathname:",n),null}(e.pathname,i,a);if(t)return[(hc?"":a)+t,"route"]}let l="url",u=function(e,t){let r=S(t,e);if(r)for(let e of r){var n;if(!(n=e.route).children&&n.element&&n.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,r);return u&&(s=hy(function e(t,r){let n=S(t,r);if(!n||0===n.length)return"";for(let i of n)if(i.route.path&&"*"!==i.route.path){var a;let n="*"===(a=i.route.path||"")[a.length-1]?a.slice(0,-1):a,o=ha(r.pathname,hy(i.pathnameBase));if(r.pathname===o)return hf(o);return hf(hf(n||"")+hy(e(t.filter(e=>e!==i.route),{pathname:o})))}return""}(r,e)),l="route"),u&&s||([s,l]=function(e,t,r,n=""){if(!e||0===e.length)return[hc?ha(t.pathname,n):t.pathname,"url"];if(!r)return[hv(t,n),"url"];let a="";for(let e of r){let r=e.route;if(!r)continue;if(r.index)return function(e,t,r){let n=e&&e.length>0?e:hc?ha(t,r):t,a="/*"===n.slice(-2)?n.slice(0,-2):n;return a.length>1&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),[a,"route"]}(a,e.pathname,n);let i=r.path;if(!i||hg(i,e))continue;let o="/"===i[0]||"/"===a[a.length-1]?i:`/${i}`;if(a=hf(a)+hy(o),hf(t.pathname)===hf(n+e.pathname)){if(h_(a)!==h_(e.pathname)&&!hh(a))return[(hc?"":n)+o,"route"];return hg(a,e)&&(a=a.slice(0,-1)),[(hc?"":n)+a,"route"]}}return[hv(t,n),"url"]}(t,e,n,a)),[s||e.pathname,l]}function hS(){let e=(0,eL.getActiveSpan)(),t=e?(0,eL.getRootSpan)(e):void 0;if(!t)return;let r=(0,eL.spanToJSON)(t).op;return"navigation"===r||"pageload"===r?t:void 0}function hE(e,t){if(e.handle&&"object"==typeof e.handle)for(let r of Object.keys(e.handle)){let n=e.handle[r];"function"!=typeof n||n.__sentry_proxied__||(e.handle[r]=function(e,t,r,n){let a=new Proxy(e,{apply(e,a,i){let o,s=function(){let e=hp();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==tA)try{let e=tA.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{f0&&z.debug.warn("[React Router] Could not access window.location")}return null}(),l=(o=hp())?o.span:hS(),u=e.apply(a,i);return function(e,t,r,n,a,i){(0,eA.isThenable)(e)?e.then(e=>{Array.isArray(e)&&n(e,t,a??void 0,i)}).catch(e=>{f0&&z.debug.warn(`Error resolving async handler '${r}' for route`,t,e)}):Array.isArray(e)&&n(e,t,a??void 0,i)}(u,t,r,n,s,l),u}});return(0,ed.addNonEnumerableProperty)(a,"__sentry_proxied__",!0),a}(n,e,r,t))}if(Array.isArray(e.children))for(let r of e.children)hE(r,t)}let hT=!1,hw=3e3,hR="",hI=new WeakSet,hC=new WeakMap,hA=new Set,hk=new WeakMap,hN=new WeakMap;function hO(e){tA?.cancelAnimationFrame?tA.cancelAnimationFrame(e):clearTimeout(e)}function hx(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function hP(e){return e.includes(":")||e.includes("*")}function hM(e,t){let r=t.children||[],n=e.filter(e=>!r.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));n.length>0&&(t.children=[...r,...n])}function hL(e,t){let r=hk.get(e);r||(r=new Set,hk.set(e,r)),r.add(t),t.finally(()=>{let r=hk.get(e);r&&r.delete(t)})}function hD(e){let t=new Promise(t=>{hN.set(e,t)});hL(e,t)}function hU(e,t,r=null,n){e.forEach(e=>{hA.add(e),hT&&hE(e,hU)}),t&&hM(e,t);let a=n??hS();if(a){let e=(0,eL.spanToJSON)(a);if(e.timestamp){f0&&z.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,i=r;if(!i&&!n&&void 0!==tA){let e=tA.location;e?.pathname&&(i={pathname:e.pathname})}i&&("pageload"===t?hY({activeRootSpan:a,location:{pathname:i.pathname},routes:Array.from(hA),allRoutes:Array.from(hA)}):"navigation"===t&&hB(a,i,Array.from(hA),!1,I))}}function hB(e,t,r,n=!1,a){let i=(0,eL.spanToJSON)(e),o=i.description,s=e?.__sentry_navigation_name_set__,l=o&&hm(o);if((!s||n||l)&&!i.timestamp){let n=a(r,t),[u,c]=hb(t,r,r,n||[],hR,C,hT),d=i.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];u&&(!o||!s&&("route"!==d||"route"===c)||"route"!==d&&"route"===c||"route"===d&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),hm(u)||"route"!==c||(0,ed.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function hj(e,t,r,n,a){let i=!1,o=!!a&&"pageload"===(0,eL.spanToJSON)(a).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!i){let t=hS();t&&"pageload"===(0,eL.spanToJSON)(t).op?o=!0:o&&("POP"!==e.historyAction||s?i=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&i){let a=hx(e.location),i=()=>{u!==a&&(u=a,l=null,hG({location:e.location,routes:t,navigationType:e.historyAction,version:r,basename:n,allRoutes:Array.from(hA)}))};if("idle"!==e.navigation.state)u!==a&&(u=null),null!==l&&hO(l),l=tA?.requestAnimationFrame?tA.requestAnimationFrame(i):setTimeout(i,0);else null!==l&&(hO(l),l=null),i()}})}function h$(e,t){return E&&T&&w&&I?function(r,n){if(hz(r),hT)for(let e of r)hE(e,hU);let a=hS();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&a&&((0,ed.addNonEnumerableProperty)(a,"__sentry_may_have_lazy_routes__",!0),hD(a));let i=e(r,hq(n,!1,a)),o=n?.basename;return"POP"===i.state.historyAction&&a&&hY({activeRootSpan:a,location:i.state.location,routes:r,basename:o,allRoutes:Array.from(hA)}),hR=o||"",hj(i,r,t,o,a),i}:(f0&&z.debug.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function hF(e,t){return E&&T&&w&&I?function(r,n){let a;if(hz(r),hT)for(let e of r)hE(e,hU);let i=hS();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&i&&((0,ed.addNonEnumerableProperty)(i,"__sentry_may_have_lazy_routes__",!0),hD(i));let o=e(r,hq(n,!0,i)),s=n?.basename,l=n?.initialEntries,u=n?.initialIndex,c=l?.length===1,d=void 0!==u&&l?.[u],p=(a=c?l[0]:d?l[u]:void 0)?"string"==typeof a?{pathname:a}:a:o.state.location,f=hS();return"POP"===o.state.historyAction&&f&&hY({activeRootSpan:f,location:p,routes:r,basename:s,allRoutes:Array.from(hA)}),hR=s||"",hj(o,r,t,s,f),o}:(f0&&z.debug.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function hH(e,t){let r=aC({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:a,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:c=!0,instrumentNavigation:d=!0,lazyRouteTimeout:p,lazyRouteManifest:f}=e;return{...r,setup(t){r.setup(t);let c=e.finalTimeout??3e4,d=(e.idleTimeout??1e3)*3,h=p??d;h===1/0?(hw=c,f0&&z.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",c,"ms to prevent indefinite hangs")):Number.isNaN(h)?(f0&&z.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",d),hw=d):h<0?(f0&&z.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",h,"falling back to:",d),hw=d):hw=h,E=n,T=a,w=i,I=s,R=o,hT=u,C=f,function(e,t=!1){S=e,hc=t}(s,l||!1)},afterAllSetup(e){r.afterAllSetup(e);let n=tA.location?.pathname;c&&n&&aA(e,{name:n,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.reactrouter_v${t}`}}),d&&hI.add(e)}}}function hW(e,t){if(!E||!T||!w||!I)return f0&&z.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let r=r=>{let n=r0.useRef(!0),{routes:a,locationArg:i}=r,o=e(a,i),s=T(),l=w(),u="string"==typeof i||i?.pathname?i:s;return E(()=>{let e="string"==typeof u?{pathname:u}:u;n.current?(hz(a),hY({activeRootSpan:hS(),location:e,routes:a,allRoutes:Array.from(hA)}),n.current=!1):hG({location:e,routes:a,navigationType:l,version:t,allRoutes:Array.from(hA)})},[l,u]),o};return(e,t)=>r0.createElement(r,{routes:e,locationArg:t})}function hq(e,t=!1,r){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let n=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let a=e?.path,i=hS()??r;if(!t){let t=e?.patch,r=e?.matches;t&&(e.patch=(e,n)=>{if(hz(n),r&&r.length>0){let t=r[r.length-1],a=t?.route;if(a){let t=Array.from(hA).find(t=>{let r=void 0!==t.id&&t.id===e,n=t===a,i=void 0!==t.path&&void 0!==a.path&&t.path===a.path;return r||n||i});t&&hM(n,t)}}let o=i?(0,eL.spanToJSON)(i):void 0;return a&&i&&o&&!o.timestamp&&"navigation"===o.op&&hB(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(hA),!0,I),t(e,n)})}let o=(async()=>{let t,r,o=(r={},hd.length>=10&&(f0&&z.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),hd.shift()),hd.push({token:r,targetPath:a,span:i}),r);try{t=await n(e)}finally{let e,t;e=hd[hd.length-1],e?.token===o&&hd.pop(),i&&(t=hN.get(i))&&(t(),hN.delete(i),i.__sentry_may_have_lazy_routes__&&(i.__sentry_may_have_lazy_routes__=!1))}let s=i?(0,eL.spanToJSON)(i):void 0;return i&&s&&!s.timestamp&&"navigation"===s.op&&a&&hB(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(hA),!1,I),t})();return i&&hL(i,o),o}}}function hG(e){let{location:t,routes:r,navigationType:n,version:a,matches:i,basename:o,allRoutes:s}=e,l=Array.isArray(i)?i:I(s||r,t,o),u=(0,X.getClient)();if(!u||!hI.has(u))return;let c=hS();if((!c||"pageload"!==(0,eL.spanToJSON)(c).op||"POP"!==n)&&("PUSH"===n||"POP"===n)&&l){let e,[n,i]=hb(t,s||r,s||r,l,o,C,hT),c=hx(t),d=hC.get(u),p=!!d&&!d.isPlaceholder&&!!(0,eL.spanToJSON)(d.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,r,n){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!n)){let t=!!e.routeName&&hm(e.routeName),n=hm(r),a=!!e.routeName&&hP(e.routeName),i=hP(r),o=r!==e.routeName&&r.length>(e.routeName?.length||0)&&!n;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!n||!a&&i||o))}}return{skip:!1,shouldUpdate:!1}}(d,c,n,p);if(f){if(h&&d){let e=d.routeName;d.isPlaceholder?(d.routeName=n,f0&&z.debug.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${n}" (will apply to real span)`)):(d.span.updateName(n),d.span.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,i),(0,ed.addNonEnumerableProperty)(d.span,"__sentry_navigation_name_set__",!0),d.routeName=n,f0&&z.debug.log(`[Tracing] Updated navigation span name from "${e}" to "${n}"`))}else f0&&z.debug.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let m={span:{end:()=>{}},routeName:n,pathname:t.pathname,locationKey:c,isPlaceholder:!0};hC.set(u,m);try{e=ak(u,{name:m.routeName,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.reactrouter_v${a}`}})}catch(e){throw hC.delete(u),e}e?(hC.set(u,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:c}),hV(e,t,r,o,"navigation")):hC.delete(u)}}function hz(e){e.forEach(e=>{(function e(t,r=new Set){return r.has(t)||(r.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,r).forEach(e=>{r.add(e)})})),r})(e).forEach(e=>{hA.add(e)})})}function hY({activeRootSpan:e,location:t,routes:r,matches:n,basename:a,allRoutes:i}){let o=Array.isArray(n)?n:I(i||r,t,a);if(o){let[n,s]=hb(t,i||r,i||r,o,a,C,hT);(0,X.getCurrentScope)().setTransactionName(n||"/"),e&&(e.updateName(n),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,s),hV(e,t,r,a,"pageload"))}else e&&hV(e,t,r,a,"pageload")}function hJ(e,t,r,n,a,i,o,s){try{let l=t.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===l&&r&&!hm(r))return;let u=Array.from(s),c=u.length>0?u:a,d=I(c,n,i);if(!d)return;let[p,f]=hb(n,c,c,d,i,C,hT),h=function(e,t,r,n,a=!1){return!!r&&(!!(!e&&a||e&&hm(e)&&"route"===n&&!hm(r))||"route"!==t&&"route"===n)}(r,l,p,f,!0),m="pageload"===o||!t.timestamp;h&&m&&(e.updateName(p),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,f))}catch(e){f0&&z.debug.warn(`Error updating span details before ending: ${e}`)}}function hV(e,t,r,n,a){let i=`__sentry_${a}_end_patched__`;if(e?.[i]||!e.end)return;let o=e.end.bind(e),s=!1;e.end=function(...i){if(s)return;s=!0;let l=i.length>0?i[0]:Date.now()/1e3,u=(0,eL.spanToJSON)(e),c=u.description,d=u.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=()=>{let t=(0,X.getClient)();if(t&&"navigation"===a){let r=hC.get(t);r&&r.span===e&&hC.delete(t)}},f=hk.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(hm(c)||"route"!==d)){let i;if(0===hw){hJ(e,u,c,t,r,n,a,hA),p(),o(l);return}let s=new Promise(e=>setTimeout(e,hw));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});i=hw===1/0?e:Promise.race([e,s])}else i=s;i.then(()=>{let i=(0,eL.spanToJSON)(e);hJ(e,i,i.description,t,r,n,a,hA),p(),o(l)}).catch(()=>{p(),o(l)});return}hJ(e,u,c,t,r,n,a,hA),p(),o(l)},(0,ed.addNonEnumerableProperty)(e,i,!0)}function hK(e,t){if(!E||!T||!w||!R||!I)return f0&&z.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
useEffect: ${E}. useLocation: ${T}. useNavigationType: ${w}.
createRoutesFromChildren: ${R}. matchRoutes: ${I}.`),e;let r=r=>{let n=r0.useRef(!0),a=T(),i=w();return E(()=>{let e=R(r.children);n.current?(hz(e),hY({activeRootSpan:hS(),location:a,routes:e,allRoutes:Array.from(hA)}),n.current=!1):hG({location:a,routes:e,navigationType:i,version:t,allRoutes:Array.from(hA)})},[a,i]),r0.createElement(e,{...r})};return fV(r,e),r}function hX(e){return hH(e,"6")}function hQ(e){return hW(e,"6")}function hZ(e){return h$(e,"6")}function h0(e){return hF(e,"6")}function h1(e){return hK(e,"6")}function h2(e){return hH(e,"7")}function h3(e){return hK(e,"7")}function h5(e){return h$(e,"7")}function h4(e){return hF(e,"7")}function h6(e){return hW(e,"7")}function h8(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch{}return t}function h7(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&(t[e]=r)})}catch{}return t}function h9(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),n=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",i=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:n}),o=e.body||void 0,s=e.cookies;return{url:i,method:e.method,query_string:me(a),headers:h7(t),cookies:s,data:o}}function me(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}async function mt(){try{r2&&z.debug.log("Flushing events..."),await (0,K.flush)(2e3),r2&&z.debug.log("Done flushing events")}catch(e){r2&&z.debug.log("Error while flushing events:\n",e)}}function mr(e){var t;"function"==typeof mn()?.waitUntil?(t=e,mn()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=Y.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=t?.get?.();r?.waitUntil&&r.waitUntil(e)}(e)}function mn(){let e=Symbol.for("__cloudflare-context__");return Y.GLOBAL_OBJ[e]?.ctx}function ma(e,t,r){(0,X.withScope)(n=>{n.setSDKProcessingMetadata({normalizedRequest:{headers:h7(t.headers),method:t.method}}),n.setContext("nextjs",{request_path:t.path,router_kind:r.routerKind,router_path:r.routePath,route_type:r.routeType}),n.setTransactionName(`${t.method} ${r.routePath}`),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),mr(mt())})}async function mi(e){let{req:t,res:r,err:n}=e,a=r?.statusCode||e.statusCode;if(a&&a<500||!e.pathname)return;if(n&&(0,ea.isAlreadyCaptured)(n)){mr(mt());let e="object"==typeof n?n.__sentry_event_id__:void 0;return"string"==typeof e?((0,X.getIsolationScope)().setLastEventId(e),e):(0,X.getIsolationScope)().lastEventId()}let i=(0,X.withScope)(e=>{if(t){let r=h9(t);e.setSDKProcessingMetadata({normalizedRequest:r})}return(0,K.captureException)(n||`_error.js called with falsy error (${n})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return mr(mt()),i}e.s(["BrowserClient",()=>tx,"ErrorBoundary",()=>f2,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",()=>oV,"OpenFeatureIntegrationHook",()=>fS,"Profiler",()=>fK,"SDK_VERSION",()=>J.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>oQ.Scope,"WINDOW",()=>tA,"addBreadcrumb",()=>tK,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",()=>er,"breadcrumbsIntegration",()=>rn,"browserApiErrorsIntegration",()=>ri,"browserProfilingIntegration",()=>fg,"browserSessionIntegration",()=>ru,"browserTracingIntegration",()=>aC,"buildLaunchDarklyFlagUsedHandler",()=>fv,"captureConsoleIntegration",()=>oZ,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",()=>it,"captureMessage",()=>K.captureMessage,"captureReactException",()=>fO,"captureSession",()=>K.captureSession,"chromeStackLineParser",()=>rx,"close",()=>K.close,"consoleLoggingIntegration",()=>o5,"contextLinesIntegration",()=>ug,"continueTrace",()=>r9.continueTrace,"createConsolaReporter",()=>o6,"createLangChainCallbackHandler",()=>s7,"createReduxEnhancer",()=>f4,"createTransport",()=>e3,"createUserFeedbackEnvelope",()=>ur,"cultureContextIntegration",()=>rc,"dedupeIntegration",()=>eg,"defaultRequestInstrumentationOptions",()=>aE,"defaultStackLineParsers",()=>rH,"defaultStackParser",()=>rW,"diagnoseSdkConnectivity",()=>fC,"elementTimingIntegration",()=>pX,"endSession",()=>K.endSession,"eventFiltersIntegration",()=>es,"eventFromException",()=>tT,"eventFromMessage",()=>tw,"exceptionFromError",()=>ty,"extraErrorDataIntegration",()=>s9,"featureFlagsIntegration",()=>la,"feedbackAsyncIntegration",()=>oY,"feedbackIntegration",()=>oJ,"feedbackSyncIntegration",()=>oJ,"flush",()=>K.flush,"forceLoad",()=>rQ,"functionToStringIntegration",()=>ef,"geckoStackLineParser",()=>rL,"getActiveSpan",()=>eL.getActiveSpan,"getClient",()=>X.getClient,"getCurrentScope",()=>X.getCurrentScope,"getDefaultIntegrations",()=>rK,"getFeedback",()=>iL,"getGlobalScope",()=>X.getGlobalScope,"getIsolationScope",()=>X.getIsolationScope,"getReplay",()=>pE,"getRootSpan",()=>eL.getRootSpan,"getSpanDescendants",()=>eL.getSpanDescendants,"getSpanStatusFromHttpCode",()=>r7.getSpanStatusFromHttpCode,"getTraceData",()=>ac,"globalHandlersIntegration",()=>r_,"graphqlClientIntegration",()=>uT,"growthbookIntegration",()=>fR,"httpClientIntegration",()=>uu,"httpContextIntegration",()=>rE,"inboundFiltersIntegration",()=>el,"init",()=>r1,"instrumentAnthropicAiClient",()=>lp,"instrumentGoogleGenAIClient",()=>lS,"instrumentLangGraph",()=>lT,"instrumentOpenAiClient",()=>lN,"instrumentOutgoingRequests",()=>aT,"instrumentSupabaseClient",()=>lB,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",()=>fy,"lazyLoadIntegration",()=>oz,"linkedErrorsIntegration",()=>rI,"logger",()=>lJ,"makeBrowserOfflineTransport",()=>p3,"makeFetchTransport",()=>rV,"makeMultiplexedTransport",()=>oX,"metrics",()=>lZ,"moduleMetadataIntegration",()=>l5,"onLoad",()=>rZ,"openFeatureIntegration",()=>fb,"opera10StackLineParser",()=>rj,"opera11StackLineParser",()=>rF,"parameterize",()=>lY,"reactErrorHandler",()=>fx,"reactRouterV3BrowserTracingIntegration",()=>f6,"reactRouterV4BrowserTracingIntegration",()=>he,"reactRouterV5BrowserTracingIntegration",()=>ht,"reactRouterV6BrowserTracingIntegration",()=>hX,"reactRouterV7BrowserTracingIntegration",()=>h2,"registerSpanErrorInstrumentation",()=>nn,"registerWebWorker",()=>fN,"replayCanvasIntegration",()=>pK,"replayIntegration",()=>pv,"reportPageLoaded",()=>pQ,"reportingObserverIntegration",()=>uo,"rewriteFramesIntegration",()=>a5,"sendFeedback",()=>iR,"setActiveSpanInBrowser",()=>pZ,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",()=>eb,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>r7.setHttpStatus,"setMeasurement",()=>ae.setMeasurement,"setTag",()=>K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",()=>un,"spanToBaggageHeader",()=>eM.spanToBaggageHeader,"spanToJSON",()=>eL.spanToJSON,"spanToTraceHeader",()=>eL.spanToTraceHeader,"spotlightBrowserIntegration",()=>f_,"startBrowserTracingNavigationSpan",()=>ak,"startBrowserTracingPageLoadSpan",()=>aA,"startInactiveSpan",()=>r9.startInactiveSpan,"startNewTrace",()=>r9.startNewTrace,"startSession",()=>K.startSession,"startSpan",()=>r9.startSpan,"startSpanManual",()=>r9.startSpanManual,"statsigIntegration",()=>fI,"supabaseIntegration",()=>lj,"suppressTracing",()=>r9.suppressTracing,"tanstackRouterBrowserTracingIntegration",()=>f7,"thirdPartyErrorFilterIntegration",()=>l4,"uiProfiler",()=>ut,"unleashIntegration",()=>fE,"updateSpanName",()=>eL.updateSpanName,"useProfiler",()=>fQ,"webWorkerIntegration",()=>fA,"winjsStackLineParser",()=>rU,"withActiveSpan",()=>r9.withActiveSpan,"withErrorBoundary",()=>f3,"withIsolationScope",()=>X.withIsolationScope,"withProfiler",()=>fX,"withScope",()=>X.withScope,"withSentryReactRouterV6Routing",()=>h1,"withSentryReactRouterV7Routing",()=>h3,"withSentryRouting",()=>hn,"wrapCreateBrowserRouterV6",()=>hZ,"wrapCreateBrowserRouterV7",()=>h5,"wrapCreateMemoryRouterV6",()=>h0,"wrapCreateMemoryRouterV7",()=>h4,"wrapUseRoutesV6",()=>hQ,"wrapUseRoutesV7",()=>h6,"zodErrorsIntegration",()=>ue],38748),e.i(38748);var mo=e.i(331912);function ms(){return G.default.env.NEXT_PHASE===mo.PHASE_PRODUCTION_BUILD}function ml(e){let t=ms(),r=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return r&&r2&&z.debug.log("Skipping span creation in Cache Components context"),t||r}function mu(){return new r6.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function mc(e,t){return ml(t)?t(mu()):(0,r9.startSpan)(e,t)}function md(e,t){if(ml(t)){let e=mu();return t(e,()=>e.end())}return(0,r9.startSpanManual)(e,t)}function mp(e){return ml()?mu():(0,r9.startInactiveSpan)(e)}function mf(...e){if("function"==typeof e[1]){let[t,r]=e;return mh(t,{},r)}{let[t,r,n]=e;return mh(t,r,n)}}async function mh(e,t,r){return(0,X.withIsolationScope)(async n=>{let a,i,o=(0,X.getClient)()?.getOptions().sendDefaultPii,s={};try{let e=await t.headers;a=e?.get("sentry-trace")??void 0,i=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{r2&&z.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return n.setTransactionName(`serverAction/${e}`),n.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,eL.getActiveSpan)()?(e,t)=>t():r9.continueTrace)({sentryTrace:a,baggage:i},async()=>{try{return await (0,r9.startSpan)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let n=await (0,lf.handleCallbackErrors)(r,t=>{r3(t)?e.setStatus({code:r7.SPAN_STATUS_ERROR,message:"not_found"}):r5(t)||(e.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:o)&&(0,X.getIsolationScope)().setExtra("server_action_result",n),t.formData&&t.formData.forEach((e,t)=>{(0,X.getIsolationScope)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),n})}finally{mr(mt())}})})}function mm(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a;if(!n?.[0])return e.apply(r,n);let[i]=n,o="nextUrl"in i?i.nextUrl.pathname:i.url,s="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(r,n);let l=t.find(e=>e.path===o);if(!l?.path||!l.schedule)return e.apply(r,n);let u=l.path,c=(0,K.captureCheckIn)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=(0,eZ.safeDateNow)()/1e3,p=()=>{(0,K.captureCheckIn)({checkInId:c,monitorSlug:u,status:"error",duration:(0,eZ.safeDateNow)()/1e3-d})};try{a=e.apply(r,n)}catch(e){throw p(),e}return"object"==typeof a&&null!==a&&"then"in a?Promise.resolve(a).then(()=>{(0,K.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,eZ.safeDateNow)()/1e3-d})},()=>{p()}):(0,K.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,eZ.safeDateNow)()/1e3-d}),a}})}function mg(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function m_(e,t,r,n){return async function(...r){let a=h9(t);(0,X.getCurrentScope)().setTransactionName(`${n.dataFetchingMethodName} (${n.dataFetcherRouteName})`),(0,X.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:a});let i=(0,eL.getActiveSpan)();i&&"/_error"!==n.requestedRouteName&&(0,eL.getRootSpan)(i).setAttribute("sentry.route_backfill",n.requestedRouteName);let{"sentry-trace":o,baggage:s}=ac();return{sentryTrace:o,baggage:s,data:await e.apply(this,r)}}}async function my(e,t){try{return await e(...t)}catch(e){throw(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function mv(e){return new Proxy(e,{apply:async(e,t,r)=>{if(ms())return e.apply(t,r);let[n]=r,{req:a,res:i}=n.ctx,o=mg(e);if(!a||!i)return o.apply(t,r);{let e=m_(o,a,i,{dataFetcherRouteName:"/_app",requestedRouteName:n.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})}function mb(e){return new Proxy(e,{apply:async(e,t,r)=>{if(ms())return e.apply(t,r);let[n]=r,{req:a,res:i}=n,o=mg(e);if(!a||!i)return o.apply(t,r);{let e=m_(o,a,i,{dataFetcherRouteName:"/_document",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,r);return s}}})}function mS(e){return new Proxy(e,{apply:async(e,t,r)=>{if(ms())return e.apply(t,r);let[n]=r,{req:a,res:i}=n,o=mg(e);if(!a||!i)return o.apply(t,r);{let e=m_(o,a,i,{dataFetcherRouteName:"/_error",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function mE(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a,i=(0,X.getIsolationScope)();try{a=t.requestAsyncStorage?.getStore()?.headers}catch{}let o=a?h8(a):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),(0,lf.handleCallbackErrors)(()=>e.apply(r,n),e=>{let r=(0,eL.getActiveSpan)(),{componentRoute:n,componentType:a,generationFunctionIdentifier:o}=t,s=!0;i.setTransactionName(`${a}.${o} (${n})`),r&&(r3(e)?(s=!1,r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"not_found"})):r5(e)?(s=!1,r.setStatus({code:r7.SPAN_STATUS_OK})):r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"})),s&&(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:o}}})},()=>{mr(mt())})}})}function mT(e){return new Proxy(e,{apply:async(e,t,r)=>{if(ms())return e.apply(t,r);let[n]=r,{req:a,res:i}=n,o=mg(e);if(!a||!i)return o.apply(t,r);{let e=m_(o,a,i,{dataFetcherRouteName:n.pathname,requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function mw(e,t){return new Proxy(e,{apply:async(e,r,n)=>{if(ms())return e.apply(r,n);let[a]=n,{req:i,res:o}=a,s=m_(mg(e),i,o,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(r,n);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})}function mR(e,t){return new Proxy(e,{apply:async(e,t,r)=>ms()?e.apply(t,r):my(mg(e),r)})}var mI=e.i(216351);function mC(e){return new Proxy(e,{apply:async(e,t,r)=>{let n="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(n&&"string"==typeof n){let e=r[0];if(e instanceof Request&&new URL(e.url).pathname.startsWith(n))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return(0,X.withIsolationScope)(n=>{let a,i,o=r[0],s=(0,X.getCurrentScope)();if(o instanceof Request){let e;n.setSDKProcessingMetadata({normalizedRequest:(e=h8(o.headers),{method:o.method,url:o.url,query_string:me(o.url),headers:e})}),a=`middleware ${o.method}`,i="url"}else a="middleware",i="component";s.setTransactionName(a);let l=(0,eL.getActiveSpan)();if(l){a="middleware",i="component";let e=(0,eL.getRootSpan)(l);e&&(0,mI.setCapturedScopesOnSpan)(e,s,n)}return(0,r9.startSpan)({name:a,op:"http.server.middleware",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},()=>(0,lf.handleCallbackErrors)(()=>e.apply(t,r),e=>{(0,K.captureException)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{mr(mt())}))})}})}function mA(e,t){e&&"object"==typeof e&&(0,ed.addNonEnumerableProperty)(e,"__sentry_event_id__",t)}function mk(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,X.withIsolationScope)(()=>{let t=(0,X.getCurrentScope)(),r="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(r){let e=(0,ni.extractTraceparentData)(r);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw mA(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,r)=>(0,X.withIsolationScope)(()=>{let n=(0,X.getCurrentScope)(),a=r?.[0]?._sentryTraceData;if(a){let e=(0,ni.extractTraceparentData)(a);n.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,r)}catch(t){let e=(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw mA(t,e),t}})}):e}function mN(e,t){let{method:r,parameterizedRoute:n,headers:a}=t;return new Proxy(e,{apply:async(e,t,a)=>{let i=(0,eL.getActiveSpan)(),o=i?(0,eL.getRootSpan)(i):void 0;return(0,X.withIsolationScope)((0,X.getIsolationScope)(),()=>(0,X.withScope)(async s=>{s.setTransactionName(`${r} ${n}`);let l=await (0,lf.handleCallbackErrors)(()=>e.apply(t,a),e=>{r5(e)||(r3(e)?(i&&(0,r7.setHttpStatus)(i,404),o&&(0,r7.setHttpStatus)(o,404)):(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{mr(mt())});try{l.status&&(i&&(0,r7.setHttpStatus)(i,l.status),o&&(0,r7.setHttpStatus)(o,l.status))}catch{}return l}))}})}function mO(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a=(0,X.getIsolationScope)(),i=t.headers?h8(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),(0,lf.handleCallbackErrors)(()=>e.apply(r,n),e=>{let r=(0,eL.getActiveSpan)(),{componentRoute:n,componentType:i}=t,o=!0;a.setTransactionName(`${i} Server Component (${n})`),r&&(r3(e)?(o=!1,r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"not_found"})):r5(e)?(o=!1,r.setStatus({code:r7.SPAN_STATUS_OK})):r.setStatus({code:r7.SPAN_STATUS_ERROR,message:"internal_error"})),o&&(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{mr(mt())})}})}e.s(["BrowserClient",()=>tx,"ErrorBoundary",()=>f2,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",()=>oV,"OpenFeatureIntegrationHook",()=>fS,"Profiler",()=>fK,"SDK_VERSION",()=>J.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>oQ.Scope,"WINDOW",()=>tA,"addBreadcrumb",()=>tK,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",()=>er,"breadcrumbsIntegration",()=>rn,"browserApiErrorsIntegration",()=>ri,"browserProfilingIntegration",()=>fg,"browserSessionIntegration",()=>ru,"browserTracingIntegration",()=>a0,"buildLaunchDarklyFlagUsedHandler",()=>fv,"captureConsoleIntegration",()=>oZ,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",()=>it,"captureMessage",()=>K.captureMessage,"captureReactException",()=>fO,"captureRequestError",()=>ma,"captureRouterTransitionStart",()=>aX,"captureSession",()=>K.captureSession,"captureUnderscoreErrorException",()=>mi,"chromeStackLineParser",()=>rx,"close",()=>K.close,"consoleLoggingIntegration",()=>o5,"contextLinesIntegration",()=>ug,"continueTrace",()=>r9.continueTrace,"createConsolaReporter",()=>o6,"createLangChainCallbackHandler",()=>s7,"createReduxEnhancer",()=>f4,"createTransport",()=>e3,"createUserFeedbackEnvelope",()=>ur,"cultureContextIntegration",()=>rc,"dedupeIntegration",()=>eg,"defaultRequestInstrumentationOptions",()=>aE,"defaultStackLineParsers",()=>rH,"defaultStackParser",()=>rW,"diagnoseSdkConnectivity",()=>fC,"elementTimingIntegration",()=>pX,"endSession",()=>K.endSession,"eventFiltersIntegration",()=>es,"eventFromException",()=>tT,"eventFromMessage",()=>tw,"exceptionFromError",()=>ty,"extraErrorDataIntegration",()=>s9,"featureFlagsIntegration",()=>la,"feedbackAsyncIntegration",()=>oY,"feedbackIntegration",()=>oJ,"feedbackSyncIntegration",()=>oJ,"flush",()=>K.flush,"forceLoad",()=>rQ,"functionToStringIntegration",()=>ef,"geckoStackLineParser",()=>rL,"getActiveSpan",()=>eL.getActiveSpan,"getClient",()=>X.getClient,"getCurrentScope",()=>X.getCurrentScope,"getDefaultIntegrations",()=>rK,"getFeedback",()=>iL,"getGlobalScope",()=>X.getGlobalScope,"getIsolationScope",()=>X.getIsolationScope,"getReplay",()=>pE,"getRootSpan",()=>eL.getRootSpan,"getSpanDescendants",()=>eL.getSpanDescendants,"getSpanStatusFromHttpCode",()=>r7.getSpanStatusFromHttpCode,"getTraceData",()=>ac,"globalHandlersIntegration",()=>r_,"graphqlClientIntegration",()=>uT,"growthbookIntegration",()=>fR,"httpClientIntegration",()=>uu,"httpContextIntegration",()=>rE,"inboundFiltersIntegration",()=>el,"init",()=>a9,"instrumentAnthropicAiClient",()=>lp,"instrumentGoogleGenAIClient",()=>lS,"instrumentLangGraph",()=>lT,"instrumentOpenAiClient",()=>lN,"instrumentOutgoingRequests",()=>aT,"instrumentSupabaseClient",()=>lB,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",()=>fy,"lazyLoadIntegration",()=>oz,"linkedErrorsIntegration",()=>rI,"logger",()=>lJ,"makeBrowserOfflineTransport",()=>p3,"makeFetchTransport",()=>rV,"makeMultiplexedTransport",()=>oX,"metrics",()=>lZ,"moduleMetadataIntegration",()=>l5,"onLoad",()=>rZ,"openFeatureIntegration",()=>fb,"opera10StackLineParser",()=>rj,"opera11StackLineParser",()=>rF,"parameterize",()=>lY,"reactErrorHandler",()=>fx,"reactRouterV3BrowserTracingIntegration",()=>f6,"reactRouterV4BrowserTracingIntegration",()=>he,"reactRouterV5BrowserTracingIntegration",()=>ht,"reactRouterV6BrowserTracingIntegration",()=>hX,"reactRouterV7BrowserTracingIntegration",()=>h2,"registerSpanErrorInstrumentation",()=>nn,"registerWebWorker",()=>fN,"replayCanvasIntegration",()=>pK,"replayIntegration",()=>pv,"reportPageLoaded",()=>pQ,"reportingObserverIntegration",()=>uo,"rewriteFramesIntegration",()=>a5,"sendFeedback",()=>iR,"setActiveSpanInBrowser",()=>pZ,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",()=>eb,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>r7.setHttpStatus,"setMeasurement",()=>ae.setMeasurement,"setTag",()=>K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",()=>un,"spanToBaggageHeader",()=>eM.spanToBaggageHeader,"spanToJSON",()=>eL.spanToJSON,"spanToTraceHeader",()=>eL.spanToTraceHeader,"spotlightBrowserIntegration",()=>f_,"startBrowserTracingNavigationSpan",()=>ak,"startBrowserTracingPageLoadSpan",()=>aA,"startInactiveSpan",()=>mp,"startNewTrace",()=>r9.startNewTrace,"startSession",()=>K.startSession,"startSpan",()=>mc,"startSpanManual",()=>md,"statsigIntegration",()=>fI,"supabaseIntegration",()=>lj,"suppressTracing",()=>r9.suppressTracing,"tanstackRouterBrowserTracingIntegration",()=>f7,"thirdPartyErrorFilterIntegration",()=>l4,"uiProfiler",()=>ut,"unleashIntegration",()=>fE,"updateSpanName",()=>eL.updateSpanName,"useProfiler",()=>fQ,"webWorkerIntegration",()=>fA,"winjsStackLineParser",()=>rU,"withActiveSpan",()=>r9.withActiveSpan,"withErrorBoundary",()=>f3,"withIsolationScope",()=>X.withIsolationScope,"withProfiler",()=>fX,"withScope",()=>X.withScope,"withSentryConfig",()=>ie,"withSentryReactRouterV6Routing",()=>h1,"withSentryReactRouterV7Routing",()=>h3,"withSentryRouting",()=>hn,"withServerActionInstrumentation",()=>mf,"wrapApiHandlerWithSentryVercelCrons",()=>mm,"wrapAppGetInitialPropsWithSentry",()=>mv,"wrapCreateBrowserRouterV6",()=>hZ,"wrapCreateBrowserRouterV7",()=>h5,"wrapCreateMemoryRouterV6",()=>h0,"wrapCreateMemoryRouterV7",()=>h4,"wrapDocumentGetInitialPropsWithSentry",()=>mb,"wrapErrorGetInitialPropsWithSentry",()=>mS,"wrapGenerationFunctionWithSentry",()=>mE,"wrapGetInitialPropsWithSentry",()=>mT,"wrapGetServerSidePropsWithSentry",()=>mw,"wrapGetStaticPropsWithSentry",()=>mR,"wrapMiddlewareWithSentry",()=>mC,"wrapPageComponentWithSentry",()=>mk,"wrapRouteHandlerWithSentry",()=>mN,"wrapServerComponentWithSentry",()=>mO,"wrapUseRoutesV6",()=>hQ,"wrapUseRoutesV7",()=>h6,"zodErrorsIntegration",()=>ue],502456)}]);
//# debugId=70641956-3a12-cbe6-0e2e-ee9184986bda