PageSourceSearch

https://alephlab.ai/_next/static/chunks/0~-dwn2nd21u4.js

js alephlab.ai collected 2026-09-24 12:23:42 UTC 325,516 bytes, 27 lines download raw bytes

1;!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]="fcd25a1e-2f9b-f42a-41e1-aa3c0f65e61f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,178046,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getObjectClassLabel:function(){return a},isPlainObject:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(e){return Object.prototype.toString.call(e)}function s(e){if("[object Object]"!==a(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},626334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return s},getProperError:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(178046);function s(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){let t;return s(e)?e:Object.defineProperty(Error((0,a.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},471569,(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}}},880333,(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}})},565754,(e,t,r)=>{"use strict";let n;function i(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 i}}),("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)},253254,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},222262,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return i}});let n=e.r(798887);function i(e,t,r){return new Promise((r,i)=>{let a=!1;e.then(e=>{a=!0,r(e)}).catch(i),(0,n.requestIdleCallback)(()=>setTimeout(()=>{a||i(t)},3800))})}("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)},57558,(e,t,r)=>{"use strict";let n;
2Object.defineProperty(r,"__esModule",{value:!0});var i={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return f},markAssetError:function(){return h}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});e.r(73355),e.r(880333);let s=e.r(565754),o=e.r(798887),l=e.r(205051),c=e.r(253254),u=e.r(222262);function d(e,t,r){let n,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let p=Symbol("ASSET_LOAD_ERROR");function h(e){return Object.defineProperty(e,p,{})}function f(e){return e&&p in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,u.resolvePromiseWithTimeout)(e,h(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function _(e,t){return g().then(r=>{if(!(t in r))throw h(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,c.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,s.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function y(e){let t=new Map,r=new Map,i=new Map,a=new Map;function s(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(h(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 l(e){let t=i.get(e);return t||i.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 h(e)})),t}return{whenEntrypoint:e=>d(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,i){return d(r,a,()=>{let a;return(0,u.resolvePromiseWithTimeout)(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(s)),Promise.all(n.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),h(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(i)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(m?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,i)=>{let a=`
3      link[rel="prefetch"][href^="${t}"],
4      link[rel="preload"][href^="${t}"],
5      script[src^="${t}"]`;if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>i(h(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,"__esMo
5dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},922013,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});class a{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 a=n.slice(1,-1),s=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),s=!0),a.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${a}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),r=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${a}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(a.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${a}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function i(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(s){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});i(this.optionalRestSlugName,a),this.optionalRestSlugName=a,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});i(this.restSlugName,a),this.restSlugName=a,n="[...]"}else{if(s)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});i(this.slugName,a),this.slugName=a,n="[]"}}this.children.has(n)||this.children.set(n,new a),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 s(e){let t=new a;
5return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},n=[];for(let i=0;i<e.length;i++){let a=t(e[i]);r[a]=i,n[i]=a}return s(n).map(t=>e[r[t]])}},869790,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let n=e.r(833333),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function s(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):i.test(e)}},35190,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return a.getSortedRouteObjects},getSortedRoutes:function(){return a.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(922013),s=e.r(869790)},823744,(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}})},400117,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=e.r(35190),i=e.r(823744);function a(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},605713,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return i}});let n=new WeakMap;function i(e,t){let r;if(!t)return{pathname:e};let i=n.get(t);i||(i=t.map(e=>e.toLowerCase()),n.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),o=i.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},943175,(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}})},637436,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/apps/web/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 i="",a=r+1;a<e.length;){var s=e.charCodeAt(a);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){i+=e[a++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=a;continue}if("("===n){var o=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(o)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=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,s=t.delimiter,o=void 0===s?"/#?":s,l=[],c=0,u=0,d="",p=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},h=function(e){var t=p(e);if(void 0!==t)return t;var n=r[u],i=n.type,a=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},f=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[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:"");
5if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(i(o),"]+?"):"(?:(?!".concat(i(r),")[^").concat(i(o),"])+?")};u<r.length;){var _=p("CHAR"),y=p("NAME"),v=p("PATTERN");if(y||v){var S=_||"";-1===a.indexOf(S)&&(d+=S,S=""),d&&(l.push(d),d=""),l.push({name:y||c++,prefix:S,suffix:"",pattern:v||g(S),modifier:p("MODIFIER")||""});continue}var E=_||p("ESCAPED_CHAR");if(E){d+=E;continue}if(d&&(l.push(d),d=""),p("OPEN")){var S=f(),b=p("NAME")||"",T=p("PATTERN")||"",w=f();h("CLOSE"),l.push({name:b||(T?c++:""),pattern:b&&!T?g(S):T,prefix:S,suffix:w,modifier:p("MODIFIER")||""});continue}h("END")}return l}function r(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,i=void 0===n?function(e){return e}:n,s=t.validate,o=void 0===s||s,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 a=e[n];if("string"==typeof a){r+=a;continue}var s=t?t[a.name]:void 0,c="?"===a.modifier||"*"===a.modifier,u="*"===a.modifier||"+"===a.modifier;if(Array.isArray(s)){if(!u)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===s.length){if(c)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var p=i(s[d],a);if(o&&!l[n].test(p))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix}continue}if("string"==typeof s||"number"==typeof s){var p=i(String(s),a);if(o&&!l[n].test(p))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix;continue}if(!c){var h=u?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(h))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,i=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],s=n.index,o=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?o[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return i(e,r)}):o[r.name]=i(n[e],r)}}(l);return{path:a,index:s,params:o}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,o=r.start,l=r.end,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,p=r.endsWith,h="[".concat(i(void 0===p?"":p),"]|$"),f="[".concat(i(void 0===d?"/#?":d),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=i(u(_));else{var y=i(u(_.prefix)),v=i(u(_.suffix));if(_.pattern)if(t&&t.push(_),y||v)if("+"===_.modifier||"*"===_.modifier){var S="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(v).concat(y,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(S)}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)s||(m+="".concat(f,"?")),m+=r.endsWith?"(?=".concat(h,")"):"$";else{var E=e[e.length-1],b="string"==typeof E?f.indexOf(E[E.length-1])>-1:void 0===E;s||(m+="(?:".concat(f,"(?=").concat(h,"))?")),b||(m+="(?=".concat(f,"|").concat(h,")"))}return new RegExp(m,a(r))}function o(e,r,n){if(e instanceof RegExp){var i;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(e.source);u;)r.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(e.source);return e}return Array.isArray(e)?(i=e.map(function(e){return o(e,r,n).source}),new RegExp("(?:".concat(i.join("|"),")"),a(n))):s(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(o(e,r,t),r,t)},e.regexpToFunction=n,e.tokensToRegexp=s,e.pathToRegexp=o})(),t.exports=e})()},300470,(e,t,r)=>{"use strict";
5Object.defineProperty(r,"__esModule",{value:!0});var n={PARAM_SEPARATOR:function(){return a},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return c},stripParameterSeparators:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="_NEXTSEP_";function s(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 o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${a}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${a}`)}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 c(e){return e.replace(RegExp(`\\)${a}`,"g"),")")}function u(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${a}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${a}`),""):e):t[r]=n;return t}},46835,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return c},safeRouteMatcher:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(637436),s=e.r(300470);function o(e,t,r){if("string"!=typeof e)return(0,a.pathToRegexp)(e,t,r);let n=(0,s.hasAdjacentParameterIssues)(e),i=n?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,a.pathToRegexp)(i,t,r)}catch(i){if(!n)try{let n=(0,s.normalizeAdjacentParameters)(e);return(0,a.pathToRegexp)(n,t,r)}catch(e){}throw i}}function l(e,t){let r=(0,s.hasAdjacentParameterIssues)(e),n=r?(0,s.normalizeAdjacentParameters)(e):e;try{let e=(0,a.compile)(n,t);if(r)return t=>(0,s.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e),n=(0,a.compile)(r,t);return e=>(0,s.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function c(e,t){let r=(0,a.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let r=e(t);return!!r&&(0,s.stripParameterSeparators)(r)}}},238838,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=e.r(308492),i=e.r(46835);function a({re:e,groups:t}){return(0,i.safeRouteMatcher)(r=>{let i=e.exec(r);if(!i)return!1;let a=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})}},s={};for(let[e,r]of Object.entries(t)){let t=i[r.pos];void 0!==t&&(r.repeat?s[e]=t.split("/").map(e=>a(e)):s[e]=a(t))}return s})}},276451,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return a}});let n=/[|\\{}()[\]^$+*?.-]/,i=/[|\\{}()[\]^$+*?.-]/g;function a(e){return n.test(e)?e.replace(i,"\\$&"):e}},485626,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return i}});let n=e.r(468702);function i(e){let[t,r,i,a]=e,{layout:s,template:o}=i,{page:l}=i;l=t===n.DEFAULT_SEGMENT_KEY?i.defaultPage:l;let c=s?.[1]||o?.[1]||l?.[1];return{page:l,segment:t,modules:i,conventionPath:c,parallelRoutes:r,staticSiblings:a}}},219693,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return u},isNormalizedAppRoute:function(){return c},parseAppRoute:function(){return function e(t,r){let n,i,o,c=t.split("/").filter(Boolean),u=[];for(let d of c){let c=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,s.getSegmentParam)(t)?t:e}catch{return e}}(d));if(c){if(r&&("route-group"===c.type||"parallel-route"===c.type))throw Object.defineProperty(new a.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,
5configurable:!0});if(u.push(c),c.interceptionMarker){let a=t.split(c.interceptionMarker);if(2!==a.length)throw Object.defineProperty(Error(`Invalid interception route: ${t}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});i=r?e(a[0],!0):e(a[0],!1),o=r?e(a[1],!0):e(a[1],!1),n=c.interceptionMarker}}}let d=u.filter(e=>"dynamic"===e.type);return{normalized:r,pathname:t,segments:u,dynamicSegments:d,interceptionMarker:n,interceptingRoute:i,interceptedRoute:o}}},parseAppRouteSegment:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(590909),s=e.r(901107),o=e.r(833333);function l(e){if(""===e)return null;let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,s.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 c(e){return e.normalized}function u(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}},295455,(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}})},931374,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return a}});let n=e.r(590909),i=e.r(295455);function a(e,t,r,a,s){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let o=[];for(let e=r;e<a.segments.length;e++){let n=a.segments[e];if("static"===n.type){let a=n.name,s=(0,i.interceptionPrefixFromParamType)(t);s&&e===r&&s===n.interceptionMarker&&(a=a.replace(n.interceptionMarker,"")),o.push(a)}else{if(!s.hasOwnProperty(n.param.paramName)){if("optional-catchall"===n.param.paramType)break;return}let e=s[n.param.paramName];Array.isArray(e)?o.push(...e):o.push(e)}}if(o.length>0)return o;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${a.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<a.segments.length){let e=a.segments[r];if("dynamic"===e.type&&!s.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?s[e.param.paramName]:(0,i.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},287772,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return c},parseMatchedParameter:function(){return h},parseParameter:function(){return p}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(590909),s=e.r(485626),o=e.r(219693),l=e.r(931374);function c(e,t,r,n){let i=structuredClone(t),c=[{tree:e,depth:0}],u=(0,o.parseAppRoute)(r,!0);for(;c.length>0;){let{tree:e,depth:t}=c.pop(),{segment:r,parallelRoutes:d}=(0,s.parseLoaderTree)(e),p=(0,o.parseAppRouteSegment)(r);if(p?.type==="dynamic"&&!i.hasOwnProperty(p.param.paramName)&&!n?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,l.resolveParamValue)(e,r,t,u,i);if(void 0!==n)i[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new a.InvariantError(`Could not resolve param value for segment: ${e}
5`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let h=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&h++,Object.values(d)))c.push({tree:e,depth:h})}return i}function u(e,t,r,n,i){let s=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(!s||0===s.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,i]};throw Object.defineProperty(new a.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let o=Array.isArray(s)?s.join("/"):s;return{param:t,value:s,treeSegment:[t,o,r,i],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?h(t[2]):h(e)}function h(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}}},188757,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(558174),s=e.r(833333),o=e.r(276451),l=e.r(874042),c=e.r(287772);function u(e,t,r){let n={},i=1,a=[];for(let u of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),l=u.match(c.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:s}=(0,c.parseMatchedParameter)(l[2]);n[t]={pos:i++,repeat:s,optional:r},a.push(`/${(0,o.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:s}=(0,c.parseMatchedParameter)(l[2]);n[e]={pos:i++,repeat:t,optional:s},r&&l[1]&&a.push(`/${(0,o.escapeStringRegexp)(l[1])}`);let u=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(u=u.substring(1)),a.push(u)}else a.push(`/${(0,o.escapeStringRegexp)(u)}`);t&&l&&l[3]&&a.push((0,o.escapeStringRegexp)(l[3]))}return{parameterizedRoute:a.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:i,groups:a}=u(e,t,r),s=i;return n||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:a}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:i,backreferenceDuplicateKeys:a}){let s,{key:l,optional:u,repeat:d}=(0,c.parseMatchedParameter)(r),h=l.replace(/\W/g,"");i&&(h=`${i}${h}`);let f=!1;(0===h.length||h.length>30)&&(f=!0),isNaN(parseInt(h.slice(0,1)))||(f=!0),f&&(h=t());let m=h in n;i?n[h]=`${i}${l}`:n[h]=l;let g=e?(0,o.escapeStringRegexp)(e):"";return s=m&&a?`\\k<${h}>`:d?`(?<${h}>.+?)`:`(?<${h}>[^/]+?)`,{key:l,pattern:u?`(?:/${g}${s})?`:`/${g}${s}`,cleanedKey:h,optional:u,repeat:d}}function h(e,t,r,n,i,u={names:{},intercepted:{}}){let d,f=(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(u=structuredClone(u),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=s.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),h=d.match(c.PARAMETER_PATTERN),y=l?h?.[1]:void 0;if(y&&h?.[2]?(e=t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,u.intercepted[h[2]]=y):e=h?.[2]&&u.intercepted[h[2]]?t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?a.NEXT_QUERY_PARAM_PREFIX:void 0,y&&h&&h[2]){let{key:t,pattern:r,cleanedKey:n,repeat:a,optional:s}=p({getSafeRouteKey:f,interceptionMarker:y,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:i});g.push(r),_.push(`/${h[1]}:${u.names[t]??n}${a?s?"*":"+":""}`),u.names[t]??=n}else if(h&&h[2]){n&&h[1]&&(g.push(`/${(0,o.escapeStringRegexp)(h[1])}`),_.push(`/${h[1]}`));let{key:t,pattern:r,cleanedKey:a,repeat:s,optional:l}=p({getSafeRouteKey:f,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:i}),c=r;n&&h[1]&&(c=c.substring(1)),g.push(c),_.push(`/:${u.names[t]??a}${s?l?"*":"+":""}`),u.names[t]??=a}else g.push(`/${(0,o.escapeStringRegexp)(d)}`),_.push(`/${d}`);r&&h&&h[3]&&(g.push((0,o.escapeStringRegexp)(h[3])),_.push(h[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:u}}
5function f(e,t){let r=h(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}=u(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:i}=h(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${i}${n?"(?:(/.*)?)":""}$`}}},80798,(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)},721814,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return n}}),e.r(608009);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)},998466,(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(911673),("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)},986566,(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}})},791586,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=e.r(238838),i=e.r(188757);function a(e,t,r){let a="",s=(0,i.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,n.getRouteMatcher)(s)(t):"")||r;a=e;let c=Object.keys(o);return c.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=o[e],i=`[${r?"...":""}${e}]`;return n&&(i=`${!t?"/":""}[${i}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},973118,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return h}});let n=e.r(886982),i=e.r(921997),a=e.r(986566),s=e.r(308492),o=e.r(608009),l=e.r(188650),c=e.r(35190),u=e.r(791586),d=e.r(188757),p=e.r(238838);function h(e,t,r){let h,f="string"==typeof t?t:(0,i.formatWithValidation)(t),m=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?f.slice(m[0].length):f;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${f}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,s.normalizeRepeatedSlashes)(g);f=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{let t=f.startsWith("#")?e.asPath:e.pathname;if(f.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}h=new URL(t,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(f,h);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,u.interpolateAs)(e.pathname,e.pathname,r);s&&(t=(0,i.formatWithValidation)({pathname:s,hash:e.hash,query:(0,a.omit)(r,o)}))}let s=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return r?[s,t||s]:s}catch(e){return r?[f]:f}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
5dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},665029,(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}})},198199,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(490740);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},100415,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(605713),i=e.r(198199),a=e.r(490740);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,a.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,i.removePathPrefix)(l.pathname,r),l.basePath=r);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],c="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,n.normalizeLocalePath)(c,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},400697,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=e.r(911673);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${r}${t}${i}${a}`}},143737,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}});let n=e.r(237072),i=e.r(490740);function a(e,t,r,a){if(!t||t===r)return e;let s=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(s,"/api")||(0,i.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},373636,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(874042),i=e.r(237072),a=e.r(400697),s=e.r(143737);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},821333,(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 i=r[n];if("query"===i){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let i=r[n];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},332829,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return i}});let n=e.r(637436);function i(e,t){let r=[],i=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),a=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(i.source),i.flags):i,r);return(e,n)=>{if("string"!=typeof e)return!1;let i=a(e);if(!i)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete i.params[e.name];return{...n,...i.params}}}},430179,(e,t,r)=>{"use strict";
5Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return a}});let n=e.r(886982),i=e.r(342102);function a(e){if(e.startsWith("/"))return(0,i.parseRelativeUrl)(e);let t=new URL(e),r=t.username,a=t.password,s=r?a?`${r}:${a}`:r:null,o=t.pathname,l=t.search;return{auth:s,hash:t.hash,hostname:t.hostname,href:t.href,pathname:o,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},558023,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/apps/web/node_modules/next/dist/compiled/cookie/");var e,r,n,i,a={};a.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},a=t.split(n),s=(r||{}).decode||e,o=0;o<a.length;o++){var l=a[o],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==i[u]&&(i[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,s))}}return i},a.serialize=function(e,t,n){var a=n||{},s=a.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!i.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
5d");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.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=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=a})()},699447,(e,t,r)=>{"use strict";function n(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(558023);return n(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},457191,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return h},prepareDestination:function(){return f}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(276451),s=e.r(430179),o=e.r(833333),l=e.r(699447),c=e.r(46835);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let i={},a=r=>{let n,a=r.key;switch(r.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[a];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return i[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}(a)]=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=>{i[e]=t.groups[e]}):"host"===r.type&&t[0]&&(i.host=t[0])),!0}return!1};return!(!r.every(e=>a(e))||n.some(e=>a(e)))&&i}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,c.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function h(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,a.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,s.parseUrl)(t),n=r.pathname;n&&(n=u(n));let i=r.href;i&&(i=u(i));let o=r.hostname;o&&(o=u(o));let l=r.hash;l&&(l=u(l));let c=r.search;c&&(c=u(c));let d=r.origin;return d&&(d=u(d)),{...r,pathname:n,hostname:o,href:i,hash:l,search:c,origin:d}}function f(e){let t,r,n=h(e),{hostname:i,query:a,search:s}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],f=[];for(let e of((0,c.safePathToRegexp)(l,f),f))d.push(e.name);if(i){let e=[];for(let t of((0,c.safePathToRegexp)(i,e),e))d.push(t.name)}let m=(0,c.safeCompile)(l,{validate:!1});for(let[r,n]of(i&&(t=(0,c.safeCompile)(i,{validate:!1})),Object.entries(a)))Array.isArray(n)?a[r]=n.map(t=>p(u(t),e.params)):"string"==typeof n&&(a[r]=p(u(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 a||(a[t]=e.params[t]);if((0,o.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=o.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[i,a]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=i,n.hash=`${a?"#":""}${a||""}`,n.search=s?p(s,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,
5configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:a,parsedDestination:n}}},962634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(332829),i=e.r(457191),a=e.r(874042),s=e.r(605713),o=e.r(819156),l=e.r(342102);function c(e,t,r,c,u,d){let p,h=!1,f=!1,m=(0,l.parseRelativeUrl)(e),g=(0,a.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.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,i.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 f=!0,!0;let n=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:c});if(m=n.parsedDestination,e=n.newUrl,Object.assign(c,n.parsedDestination.query),g=(0,a.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(e),d).pathname),t.includes(g))return h=!0,p=g,!0;if((p=u(g))!==e&&t.includes(p))return h=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(h=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(p=u(g),y=h=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:h,resolvedHref:p,externalDest:f}}},426092,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var i={createKey:function(){return X},default:function(){return Q},matchesMiddleware:function(){return F}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let s=e.r(73355),o=e.r(463936),l=e.r(874042),c=e.r(57558),u=e.r(759254),d=o._(e.r(626334)),p=e.r(400117),h=e.r(605713),f=s._(e.r(943175)),m=e.r(308492),g=e.r(869790),_=e.r(342102),y=e.r(238838),v=e.r(188757),S=e.r(921997);e.r(80798);let E=e.r(911673),b=e.r(721814),T=e.r(998466),w=e.r(819156),R=e.r(551941),I=e.r(397944),O=e.r(973118),C=e.r(665029),P=e.r(100415),A=e.r(373636),k=e.r(821333),x=e.r(188650),N=e.r(785406),M=e.r(986566),D=e.r(791586),L=e.r(591474),U=e.r(558174),B=e.r(205051),$=e.r(326796);function j(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function F(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,i=(0,R.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function W(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function H(e,t,r){let[n,i]=(0,O.resolveHref)(e,t,!0),a=(0,m.getLocationOrigin)(),s=n.startsWith(a),o=i&&i.startsWith(a);n=W(n),i=i?W(i):i;let l=s?n:(0,R.addBasePath)(n),c=r?W((0,O.resolveHref)(e,r)):i||n;return{url:l,as:o?c:(0,R.addBasePath)(c)}}function z(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 F(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),s=a||t.headers.get("x-nextjs-matched-path"),o=t.headers.get(U.MATCHED_PATH_HEADER);if(!o||s||o.includes("__next_data_catchall")||o.includes("/_error")||o.includes("/404")||(s=o),s){if(s.startsWith("/")){let t=(0,_.parseRelativeUrl)(s),o=(0,P.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),u=(0,l.removeTrailingSlash)(o.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,c.getClientBuildManifest)()]).then(([i,{__rewrites:s}])=>{let l=(0,b.addLocale)(o.pathname,o.locale);if((0,g.isDynamicRoute)(l)||!a&&i.includes((0,h.normalizeLocalePath)((0,w.removeBasePath)(l),r.router.locales).pathname)){let r=(0,P.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:void 0,parseData:!0}
5);t.pathname=l=(0,R.addBasePath)(r.pathname)}{let e=n(l,i,s,t.query,e=>z(e,i),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,l=t.pathname,Object.assign(t.query,e.parsedAs.query))}let c=i.includes(u)?u:z((0,h.normalizeLocalePath)((0,w.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,g.isDynamicRoute)(c)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(c))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:c}})}let t=(0,E.parsePath)(e),o=(0,A.formatNextPathnameInfo)({...(0,P.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${o}${t.query}${t.hash}`})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,E.parsePath)(u),t=(0,A.formatNextPathnameInfo)({...(0,P.getNextPathnameInfo)(e.pathname,{nextConfig:i,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:u})}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(962634).default;let G=Symbol("SSG_DATA_NOT_FOUND");function Y(e){try{return JSON.parse(e)}catch(e){return null}}function J({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:i,parseJSON:a,persistCache:s,isBackground:o,unstable_skipClientCache:l}){let{href:u}=new URL(e,window.location.href),d=(0,B.getDeploymentId)(),p=o=>(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(i=>!i.ok&&r>1&&i.status>=500?e(t,r-1,n):i)})(e,i?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:o?.method??"GET"}).then(t=>t.ok&&o?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:u}: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:u};if(404===t.status&&Y(r)?.notFound)return{dataHref:e,json:{notFound:G},response:t,text:r,cacheKey:u};let a=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw i||(0,c.markAssetError)(a),a}let s=t.headers.get(U.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=s&&s!==d){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw i||(0,c.markAssetError)(e),e}return{dataHref:e,json:a?Y(r):null,response:t,text:r,cacheKey:u}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[u],e)).catch(e=>{throw l||delete t[u],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,c.markAssetError)(e),e});return l&&s?p({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[u]=Promise.resolve(e)),e)):void 0!==t[u]?t[u]:t[u]=p(o?{method:"HEAD"}:{})}function X(){return Math.random().toString(36).slice(2,10)}function V({url:e,router:t}){if(e===(0,R.addBasePath)((0,b.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 Q{static{this.events=(0,f.default)()}constructor(e,t,r,{initialProps:n,pageLoader:i,App:a,wrapApp:s,Component:o,err:c,subscription:u,isFallback:d,locale:p,locales:h,defaultLocale:f,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=X(),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,S.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:i,as:a,options:s,key:o}=n;this._key=o;let{pathname:l}=(0,_.parseRelativeUrl)(i);this.isSsr&&a===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",i,a,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};const E=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[E]={Component:o,initial:!0,props:n,err:c,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=Q.events,this.pageLoader=i;const b=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,this.clc=null,this._wrapApp=s,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||!b&&!self.location.search&&0),this.state={route:E,pathname:e,query:t,asPath:b?e:r,isPreview:!!v,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const n={locale:p},i=(0,m.getURL)();this._initialMatchesMiddlewarePromise=F({router:this,locale:p,asPath:i}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?i:(0,S.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),i,n),a))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,
5configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,n,i){{if(!this._bfl_s&&!this._bfl_d){let r,a,{BloomFilter:s}=e.r(471569);try{({__routerFilterStatic:r,__routerFilterDynamic:a}=await (0,c.getClientBuildManifest)())}catch(e){if(console.error(e),i)return!0;return V({url:(0,R.addBasePath)((0,b.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let o={numItems:168,errorRate:1e-4,numBits:3221,numHashes:14,bitArray:[1,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,0,0,0,0,1,1,1,0,0,1,0,0,1,1,0,1,1,1,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,1,1,1,0,1,0,1,0,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,1,1,0,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,1,0,1,1,1,1,0,0,1,1,0,1,1,0,0,0,0,0,1,0,1,0,1,0,0,1,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,0,1,0,0,1,0,1,1,1,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,1,1,1,1,1,0,1,0,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,0,0,1,1,0,0,0,1,0,1,0,0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,0,0,0,1,1,0,1,0,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,1,1,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,0,1,0,0,0,0,1,1,0,1,1,1,0,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,1,0,1,1,1,0,0,0,1,0,0,0,1,1,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,0,1,0,1,1,1,1,0,0,1,0,0,1,1,1,1,1,0,0,0,1,1,1,0,1,1,1,1,1,1,0,1,0,0,1,1,0,0,1,0,0,0,0,1,1,0,1,0,0,1,1,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,0,1,1,0,1,0,0,1,1,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,0,1,1,0,1,1,0,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,0,0,1,0,1,0,1,0,0,1,0,0,1,0,1,1,1,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,1,0,1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,0,0,1,0,1,0,1,1,1,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,1,1,1,0,0,1,0,1,1,0,0,1,1,1,1,0,0,0,1,0,1,1,1,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,1,0,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,1,0,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,1,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,0,1,0,1,0,1,0,1,1,0,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,1,0,1,0,0,0,1,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,0,0,1,0,1,1,0,1,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,1,0,1,1,1,0,1,1,0,1,1,0,1,0,0,1,0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,1,1,0,1,1,0,0,0,1,0,1,1,1,1,0,0,1,0,1,1,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,1,1,0,1,1,1,1,0,1,0,1,0,1,1,0,0,1,0,1,0,1,1,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,0,0,1,0,0,1,1,0,1,0,1,1,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,0,1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,1,0,1,1,0,0,0,1,0,1,0,1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,1,0,0,1,0,1,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,1,1,1,0,0,1,1,0,1,1,0,1,0,1,1,0,0,1,1,0,1,0,1,0,1,0,0,0,1,1,0,1,1,1,1,0,1,0,0,0,1,1,1,0,1,0,1,0,0,0,0,1,1,0,1,1,0,0,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,1,0,1,0,1,1,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,0,0,0,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,0,1,0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,1,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1,0,1,1,1,0,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,0,1,1,1,1,0,1,0,1,0,1,0,0,1,0,0,0,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,0,0,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,1,1,0,1,1,1,1,1,0,1,1,0,0,0,0,0,0,1,0,1,1,0,1,1,0,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,0,0,1,1,1,1,0,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,0,0,0,1,0,1,1,0,0,0,0,0,0,1,0,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,0,0,1,1,1,0,0,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,0,0,0,1,0,1,0,0,1,1,0,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1,1,0,0,1,0,1,0,1,0,1,1,0,1,1,1,1,0,0,1,1,1,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,0,0,1,1,1,1,1,1,0,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,0,0,1,1,1,1,1,0,1,1,0,0,1,1,0,0,0,1,1,1,1,1,0,0,1,1,0,1,0,1,0,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,0,0,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,0,0,0,0,1,0,1,0,1,0,1,1,0,1,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,1,0,1,0,0,1,0,0,1,0,1,0,1,1,1,1,0,0,0,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,1,1,0,0,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0,1,1,0,1,1,0,0,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,0,0,1,0,0,1,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,1,1,1,1,1,0,1,1,0,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,1,0,0,0,0,1,1,0,1,1,1,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,0,1,0,1,1,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,0,0,0,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,0,1,0,0,0,1,0,0,1,1,1,0,1,0,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,1,0,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,1,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,0,1,1,0,1,1,1,0,0,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,1,0,1,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,0,0,1,1,1,0,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,0,1,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,1,1,0,0,1,1,1,0,1,0,1,1,1,0,0,1,0,0,1,0,1,1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,0,1,0,1,1,0,0,0,0,1,0,0,0,1,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,0,1,1,1,1,1,1,0,0,0,1,0,1,1,0,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,1,1,1,0,0,0,0,1,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,1,1,1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,0,1,0,1,0,1,1,0,1,1,0,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1,0,0,1,1,0,0,1,1]};!r&&o&&(r=o||void 0);let l={numItems:8,errorRate:1e-4,numBits:154,numHashes:14,bitArray:[1,0,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,1,0,0,0,1,0,1,1,0,1,0,0,0,1,1,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,0,1,1,1,1,1,0,0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,1,0,1,1,0,0,1,0,1,0]};!a&&l&&(a=l||void 0),r?.numHashes&&(this._bfl_s=new s(r.numItems,r.errorRate),this._bfl_s.import(r)),a?.numHashes&&(this._bfl_d=new s(a.numItems,a.errorRate),this._bfl_d.import(a))}let a=!1,s=!1;for(let{as:e,allowMatchCurrent:o}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),c=(0,R.addBasePath)((0,b.addLocale)(r,n||this.locale));if(o||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(a=a||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(c),[r,c])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){s=!0;break}}}if(a||s){if(i)return!0;return V({url:(0,R.addBasePath)((0,b.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,a){let s,o;
5if(!(0,x.isLocalURL)(t))return V({url:t,router:this}),!1;let p=1===i._h;p||i.shallow||await this._bfl(r,void 0,i.locale);let h=p||i._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,f={...this.state},O=!0!==this.isReady;this.isReady=!0;let C=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let P=f.locale;m.ST&&performance.mark("routeChange");let{shallow:A=!1,scroll:N=!0}=i,L={shallow:A};this._inFlightRoute&&this.clc&&(C||Q.events.emit("routeChangeError",j(),this._inFlightRoute,L),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,b.addLocale)((0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,i.locale,this.defaultLocale));let U=(0,T.removeLocale)((0,I.hasBasePath)(r)?(0,w.removeBasePath)(r):r,f.locale);this._inFlightRoute=r;let B=P!==f.locale;if(!p&&this.onlyAHashChange(U)&&!B){f.asPath=U,Q.events.emit("hashChangeStart",r,L),this.changeState(e,t,r,{...i,scroll:!1}),N&&this.scrollToHash(U);try{await this.set(f,this.components[f.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Q.events.emit("routeChangeError",e,U,L),e}return Q.events.emit("hashChangeComplete",r,L),!0}let $=(0,_.parseRelativeUrl)(t),{pathname:W,query:q}=$;try{[s,{__rewrites:o}]=await Promise.all([this.pageLoader.getPageList(),(0,c.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(U)||B||(e="replaceState");let Y=r;W=W?(0,l.removeTrailingSlash)((0,w.removeBasePath)(W)):W;let J=(0,l.removeTrailingSlash)(W),X=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[W]?.__appRouter)return V({url:r,router:this}),new Promise(()=>{});let K=!!(X&&J!==X&&(!(0,g.isDynamicRoute)(J)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(J))(X))),Z=!i.shallow&&await F({asPath:r,locale:f.locale,router:this});if(p&&Z&&(h=!1),h&&"/_error"!==W)if(i._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,R.addBasePath)((0,b.addLocale)(U,f.locale),!0),s,o,q,e=>z(e,s),this.locales);if(e.externalDest)return V({url:r,router:this}),!0;Z||(Y=e.asPath),e.matchedPage&&e.resolvedHref&&(W=e.resolvedHref,$.pathname=(0,R.addBasePath)(W),Z||(t=(0,S.formatWithValidation)($)))}else $.pathname=z(W,s),$.pathname!==W&&(W=$.pathname,$.pathname=(0,R.addBasePath)(W),Z||(t=(0,S.formatWithValidation)($)));if(!(0,x.isLocalURL)(r))return V({url:r,router:this}),!1;Y=(0,T.removeLocale)((0,w.removeBasePath)(Y),f.locale),J=(0,l.removeTrailingSlash)(W);let ee=!1;if((0,g.isDynamicRoute)(J)){let e=(0,_.parseRelativeUrl)(Y),n=e.pathname,i=(0,v.getRouteRegex)(J);ee=(0,y.getRouteMatcher)(i)(n);let a=J===n,s=a?(0,D.interpolateAs)(J,n,q):{};if(ee&&(!a||s.result))a?r=(0,S.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,M.omit)(q,s.params)})):Object.assign(q,ee);else{let e=Object.keys(i.groups).filter(e=>!q[e]&&!i.groups[e].optional);if(e.length>0&&!Z)throw Object.defineProperty(Error((a?`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/${a?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||Q.events.emit("routeChangeStart",r,L);let et="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:J,pathname:W,query:q,as:r,resolvedAs:Y,routeProps:L,locale:f.locale,isPreview:f.isPreview,hasMiddleware:Z,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:K});if(p||i.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,f.locale),"route"in n&&Z){J=W=n.route||J,L.shallow||(q=Object.assign({},n.query||{},q));let e=(0,I.hasBasePath)($.pathname)?(0,w.removeBasePath)($.pathname):$.pathname;if(ee&&W!==e&&Object.keys(ee).forEach(e=>{ee&&q[e]===ee[e]&&delete q[e]}),(0,g.isDynamicRoute)(W)){let e=!L.shallow&&n.resolvedAs?n.resolvedAs:(0,R.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,f.locale),!0);(0,I.hasBasePath)(e)&&(e=(0,w.removeBasePath)(e));let t=(0,v.getRouteRegex)(W),i=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(q,i)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,
5n.newAs,i);else return V({url:n.destination,router:this}),new Promise(()=>{});let o=n.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){i.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=z(r.pathname,s);let{url:n,as:a}=H(this,t,t);return this.change(e,n,a,i)}return V({url:t,router:this}),new Promise(()=>{})}if(f.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:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:f.locale,isPreview:f.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=i.shallow&&f.route===(n.route??J),c=i.scroll??(!p&&!l),h=a??(c?{x:0,y:0}:null),m={...f,route:J,pathname:W,query:q,asPath:U,isFallback:!1};if(p&&et){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:f.locale,isPreview:f.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,h)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Q.events.emit("routeChangeError",e,U,L),e}return!0}if(Q.events.emit("beforeHistoryChange",r,L),this.changeState(e,t,r,i),!(p&&!h&&!O&&!B&&(0,k.compareRouterStates)(m,this.state))){try{await this.set(m,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||Q.events.emit("routeChangeError",n.error,U,L),n.error;p||Q.events.emit("routeChangeComplete",r,L),c&&/#.+$/.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:X()},"",r))}async handleRouteInfoError(e,t,r,n,i,a){if(e.cancelled)throw e;if((0,c.isAssetError)(e)||a)throw Q.events.emit("routeChangeError",e,n,i),V({url:n,router:this}),j();console.error(e);try{let n,{page:i,styleSheets:a}=await this.fetchComponent("/_error"),s={props:n,Component:i,styleSheets:a,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(i,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}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,i,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:i,routeProps:a,locale:s,hasMiddleware:o,isPreview:c,unstable_skipClientCache:u,isQueryUpdating:p,isMiddlewareRewrite:f,isNotFound:m}){let g=e;try{let e=this.components[g];if(a.shallow&&e&&this.route===g)return e;let d=K({route:g,router:this});o&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u,isBackground:p},v=p&&!f?null:await q({fetchData:()=>J(y),asPath:m?"/404":i,locale:s,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),s=await this.pageLoader.getPageList(
5);if((!p||s.includes(n))&&(g=n,t=v.effect.resolvedHref,r={...r,...v.effect.parsedAs.query},i=(0,w.removeBasePath)((0,h.normalizeLocalePath)(v.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],a.shallow&&e&&this.route===g&&!o))return{...e,route:g}}if((0,C.isAPIRoute)(g))return V({url:n,router:this}),new Promise(()=>{});let E=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),b=v?.response?.headers.get("x-middleware-skip"),T=E.__N_SSG||E.__N_SSP;b&&v?.dataHref&&delete this.sdc[v.dataHref];let{props:R,cacheKey:I}=await this._getData(async()=>{if(T){if(v?.json&&!b)return{cacheKey:v.cacheKey,props:v.json};let e=v?.dataHref?v.dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:t,query:r}),asPath:i,locale:s}),n=await J({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:b?{}:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(E.Component,{pathname:t,query:r,asPath:n,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return E.__N_SSP&&y.dataHref&&I&&delete this.sdc[I],this.isPreview||!E.__N_SSG||p||J(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),E.props=R,E.route=g,E.query=r,E.resolvedAs=i,this.components[g]=E,E}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,a)}}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,i]=e.split("#",2);return!!i&&t===n&&r===i||t===n&&r!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,L.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,N.isBot)(window.navigator.userAgent))return;let i=(0,_.parseRelativeUrl)(e),a=i.pathname,{pathname:s,query:o}=i,u=s,d=await this.pageLoader.getPageList(),p=t,h=void 0!==r.locale?r.locale||void 0:this.locale,f=await F({asPath:t,locale:h,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,c.getClientBuildManifest)());let a=n((0,R.addBasePath)((0,b.addLocale)(t,this.locale),!0),d,r,i.query,e=>z(e,d),this.locales);if(a.externalDest)return;f||(p=(0,T.removeLocale)((0,w.removeBasePath)(a.asPath),this.locale)),a.matchedPage&&a.resolvedHref&&(i.pathname=s=a.resolvedHref,f||(e=(0,S.formatWithValidation)(i)))}i.pathname=z(i.pathname,d),(0,g.isDynamicRoute)(i.pathname)&&(s=i.pathname,i.pathname=s,Object.assign(o,(0,y.getRouteMatcher)((0,v.getRouteRegex)(i.pathname))((0,E.parsePath)(t).pathname)||{}),f||(e=(0,S.formatWithValidation)(i)));let m=await q({fetchData:()=>J({dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:u,query:o}),skipInterpolation:!0,asPath:p,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if(m?.effect.type==="rewrite"&&(i.pathname=m.effect.resolvedHref,s=m.effect.resolvedHref,o={...o,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,S.formatWithValidation)(i)),m?.effect.type==="redirect-external")return;let I=(0,l.removeTrailingSlash)(s);await this._bfl(t,p,r.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(I).then(t=>!!t&&J({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:h}),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,
5configurable:!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}}},994338,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}}),e.r(73355);let n=e.r(681099);e.r(514499);let i=e.r(652296);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,i.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)},652296,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Router:function(){return o.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return u.default}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(73355),s=a._(e.r(514499)),o=a._(e.r(426092)),l=e.r(774188),c=a._(e.r(626334)),u=a._(e.r(994338)),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"],h=["push","replace","reload","back","prefetch","beforePopState"];function f(){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:"E1044",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>o.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>f()[e]})}),h.forEach(e=>{d[e]=(...t)=>f()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{o.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,c.default)(e)?`${e.message}
6${e.stack}`:e+"")}})})});let m=d;function g(){let e=s.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 o.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=o.default.events,h.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)},620505,(e,t,r)=>{t.exports=e.r(652296)},427075,e=>{"use strict";let t,r,n,i,a,s,o,l,c,u,d,p,h,f,m,g,_,y,v,S,E,b,T;var w,R,I,O,C,P,A,k,x,N,M=e.i(524062),D=e.i(163019),L=e.i(732295);function U(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:L.SDK_VERSION})),version:L.SDK_VERSION}),e._metadata=i}var B=e.i(241126),$=e.i(278212),j=e.i(80663),F=e.i(858781);let W=[];function H(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function z(e,t,r){if(r[t.name]){F.DEBUG_BUILD&&j.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,W.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),W.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)}F.DEBUG_BUILD&&j.debug.log(`Integration installed: ${t.name}`)}function q(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 G=e.i(396900),Y=e.i(289784);let J=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];function X(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:J],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function V(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 F.DEBUG_BUILD&&j.debug.error(`Cannot extract url for event ${(0,G.getEventDescription)(e)}`),null}}var K=e.i(637003);let Q=new WeakMap;var Z=e.i(486123);function ee(e,t){let r=(0,Z.getFramesFromEvent)(e),n=(0,Z.getFramesFromEvent)(t);
6if(!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],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function et(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 er(e){return e.exception?.values?.[0]}var en=e.i(940143),ei=e.i(920795),ea=e.i(432891),es=e.i(760838),eo=e.i(115497);function el(e,t=[]){return[e,t]}function ec(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function eu(e){let t=(0,es.getSentryCarrier)(D.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let ed={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ep(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function eh(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,en.dsnToString)(n)},...i&&{trace:i}}}function ef(e){j.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function em(e,t){if(!t?.length||!e.description)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if((0,Y.isMatchingPattern)(e.description,n))return F.DEBUG_BUILD&&ef(e),!0;continue}if(!n.name&&!n.op)continue;let t=!n.name||(0,Y.isMatchingPattern)(e.description,n.name),i=!n.op||e.op&&(0,Y.isMatchingPattern)(e.op,n.op);if(t&&i)return F.DEBUG_BUILD&&ef(e),!0}return!1}var eg=e.i(245946);e.i(426536);var e_=e.i(843892),ey=e.i(832092),ev=e.i(241817);function eS(e,t){var r,n,i,a;let s,o=t??(a=e,eE().get(a))??[];if(0===o.length)return;let l=e.getOptions(),c=(r=l._metadata,n=l.tunnel,i=e.getDsn(),s={},r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(s.dsn=(0,en.dsnToString)(i)),el(s,[[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}]]));eE().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(c)}function eE(){return(0,es.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eb(e,t){var r,n,i,a;let s,o=t??(a=e,eT().get(a))??[];if(0===o.length)return;let l=e.getOptions(),c=(r=l._metadata,n=l.tunnel,i=e.getDsn(),s={},r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(s.dsn=(0,en.dsnToString)(i)),el(s,[[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}]]));eT().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(c)}function eT(){return(0,es.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var ew=e.i(769636),eR=e.i(170320);let eI=Symbol.for("SentryBufferFullError");function eO(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eR.rejectedSyncPromise)(eI);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eR.resolvedSyncPromise)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>setTimeout(()=>t(!1),e))]):r}}}function eC(e,t,r=Date.now()){return(e[t]||e.all||0)>r}function eP(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},a=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,r,,,a]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=n+o):i[e]=n+o;else i.all=n+o}else s?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}var eA=e.i(553005),ek=e.i(290533),ex=e.i(866438),eN=e.i(192016);let eM="Not capturing exception because it's already been captured.",eD="Discarded session because of missing or non-string release",eL=Symbol.for("SentryInternalError"),eU=Symbol.for("SentryDoNotSendEventError");function eB(e){return{message:e,[eL]:!0}}function e$(e){return{message:e,[eU]:!0}}function ej(e){return!!e&&"object"==typeof e&&eL in e}function eF(e){return!!e&&"object"==typeof e&&eU in e}function eW(e,t,r,n,i){let a,s=0,o=!1;e.on(r,()=>{s=0,clearTimeout(a),o=!1}),e.on(t,t=>{(s+=n(t))>=8e5?i(e):o||(o=!0,a=setTimeout(()=>{i(e)},5e3))}),e.on("flush",()=>{i(e)})}class eH{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eO(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,en.makeDsn)(e.dsn):F.DEBUG_BUILD&&j.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,r){let n,i,a;return t||`${n=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"",`${n}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${a={sentry_version:"7"},e.publicKey&&(a.sentry_key=e.publicKey),r&&(a.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(a).toString()}`}(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&&eW(this,"afterCaptureLog","flushLogs",eJ,eS),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eW(this,"afterCaptureMetric","flushMetrics",eY,eb)}captureException(e,t,r){let n=(0,G.uuid4)();if((0,G.checkOrSetAlreadyCaught)(e))return F.DEBUG_BUILD&&j.debug.log(eM),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,G.uuid4)(),...r},a=(0,e_.isParameterizedString)(e)?e:String(e),s=(0,e_.isPrimitive)(e),o=s?this.eventFromMessage(
6a,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,n)),s?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,G.uuid4)();if(t?.originalException&&(0,G.checkOrSetAlreadyCaught)(t.originalException))return F.DEBUG_BUILD&&j.debug.log(eM),n;let i={event_id:n,...t},a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,o=a.capturedSpanIsolationScope,l=ez(e.type);return this._process(()=>this._captureEvent(e,i,s||r,o),l),i.event_id}captureSession(e){this.sendSession(e),(0,ew.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){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];z(this,e,this._integrations),t||H(this,[e])}sendEvent(e,t={}){var r,n,i;let a,s,o;this.emit("beforeSendEvent",e,t);let l=(r=this._dsn,n=this._options._metadata,i=this._options.tunnel,a=ep(n),s=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk),o=eh(e,a,i,r),delete e.sdkProcessingMetadata,el(o,[[{type:s},e]]));for(let e of t.attachments||[])l=function(e,t){let[r,n]=e;return[r,[...n,t]]}(l,function(e){let t="string"==typeof e.data?eu(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(l).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,r,n;let i,{release:a,environment:s=ei.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!a){F.DEBUG_BUILD&&j.debug.warn(eD);return}t.release=t.release||a,t.environment=t.environment||s,e.attrs=t}else{if(!e.release&&!a){F.DEBUG_BUILD&&j.debug.warn(eD);return}e.release=e.release||a,e.environment=e.environment||s}this.emit("beforeSendSession",e);let o=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,i=ep(r),el({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,en.dsnToString)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(o)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;F.DEBUG_BUILD&&j.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 F.DEBUG_BUILD&&j.debug.error("Error while sending envelope:",e),{}}return F.DEBUG_BUILD&&j.debug.error("Transport disabled"),{}}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(r=>{r&&z(e,r,t)}),t),H(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&r)&&((0,ew.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 i=this.getOptions(),a=Object.keys(this._integrations);
6return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,ex.prepareEvent)(i,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,$.getTraceContextFromScope)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ea.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,$.getCurrentScope)(),n=(0,$.getIsolationScope)()){return F.DEBUG_BUILD&&eq(e)&&j.debug.log(`Captured error event \`${q(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{F.DEBUG_BUILD&&(eF(e)?j.debug.log(e.message):ej(e)?j.debug.warn(e.message):j.debug.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:a}=i,s=eG(e),o=eq(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===a?void 0:(0,ek.parseSampleRate)(a);if(o&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),(0,eR.rejectedSyncPromise)(e$(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=ez(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),e$("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,e_.isThenable)(e))return e.then(e=>{if(!(0,e_.isPlainObject)(e)&&null!==e)throw eB(r);return e},e=>{throw eB(`${t} rejected with ${e}`)});if(!(0,e_.isPlainObject)(e)&&null!==e)throw eB(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:s,ignoreSpans:o}=t,l=r;if(eq(l)&&i)return i(l,n);if(eG(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[eN.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&em(t,o))return null;if(s){let e=s(t);if(e)l=(0,eA.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&&{[eN.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,eg.showSpanDropWarning)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(o?.length&&em(e,o)){!function(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}(r,e);continue}if(s){let r=s(e);r?t.push(r):((0,eg.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(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,n)}}return l}(this,i,e,t),c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw e$(`${c} returned \`null\`, will not send event.`)}let a=r.getSession()||n.getSession();if(o&&a&&this._updateSessionFromEvent(a,i),s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return s&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(eF(e)||ej(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eB(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
7Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eI&&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;F.DEBUG_BUILD&&j.debug.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){F.DEBUG_BUILD&&j.debug.log("No outcomes to send");return}if(!this._dsn){F.DEBUG_BUILD&&j.debug.log("No dsn provided, will not send outcomes");return}F.DEBUG_BUILD&&j.debug.log("Sending outcomes:",t);let r=el((e=this._options.tunnel&&(0,en.dsnToString)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,ev.dateTimestampInSeconds)(),discarded_events:t}]]);this.sendEnvelope(r)}}function ez(e){return"replay_event"===e?"replay":e||"error"}function eq(e){return void 0===e.type}function eG(e){return"transaction"===e.type}function eY(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+eX(e.attributes)}function eJ(e){let t=0;return e.message&&(t+=2*e.message.length),t+eX(e.attributes)}function eX(e){if(!e)return 0;let t=0;
7return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*eV(e[0]):(0,e_.isPrimitive)(e)?t+=eV(e):t+=100}),t}function eV(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function eK(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function eQ(e,t){var r,n;let i,a,s=e0(e,t),o={type:(r=t,!(i=r?.name)&&e2(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":i),value:(n=t,a=n?.message,e2(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":a?a.error&&"string"==typeof a.error.message?a.error.message:a:"No error message")};return s.length&&(o.stacktrace={frames:s}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function eZ(e,t){return{exception:{values:[eQ(e,t)]}}}function e0(e,t){var r,n;let i=t.stacktrace||t.stack||"",a=(r=t)&&e1.test(r.message)?1:0,s="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,a,s)}catch{}return[]}let e1=/Minified React error #\d+;/i;function e2(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function e3(e,t,r,n,i){let a;if((0,e_.isErrorEvent)(t)&&t.error)return eZ(e,t.error);if((0,e_.isDOMError)(t)||(0,e_.isDOMException)(t)){if("stack"in t)a=eZ(e,t);else{let i=t.name||((0,e_.isDOMError)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;a=e5(e,s,r,n),(0,G.addExceptionTypeValue)(a,s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,e_.isError)(t)?eZ(e,t):((0,e_.isPlainObject)(t)||(0,e_.isEvent)(t)?a=function(e,t,r,n){let i=(0,$.getClient)(),a=i?.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),o={__serialized__:(0,eo.normalizeToSize)(t,a)};if(s)return{exception:{values:[eQ(e,s)]},extra:o};let l={exception:{values:[{type:(0,e_.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,K.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,e_.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,e_.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:o};if(r){let t=e0(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(a=e5(e,t,r,n),(0,G.addExceptionTypeValue)(a,`${t}`,void 0)),(0,G.addExceptionMechanism)(a,{synthetic:!0}),a)}function e5(e,t,r,n){let i={};if(n&&r){let n=e0(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,G.addExceptionMechanism)(i,{synthetic:!0})}if((0,e_.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var e4=e.i(404834);let e8=D.GLOBAL_OBJ,e6=0;function e9(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,K.getOriginalFunction)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>e9(e,t));return e.apply(this,n)}catch(e){throw e6++,setTimeout(()=>{e6--}),(0,$.withScope)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,G.addExceptionTypeValue)(e,void 0,void 0),(0,G.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,B.captureException)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,K.markFunctionWrapped)(r,e),(0,K.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function e7(){let e=(0,e4.getLocationHref)(),{referrer:t}=e8.document||{},{userAgent:r}=e8.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class te extends eH{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:e8.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);U(t,"browser",["browser"],e8.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:i,_experiments:a,enableMetrics:s}=this._options,o=s??a?.enableMetrics??!0;e8.document&&(n||i||o)&&e8.document.addEventListener("visibilitychange",()=>{"hidden"===e8.document.visibilityState&&(n&&this._flushOutcomes(),i&&eS(this),o&&eb(this))}),r&&this.on("beforeSendSession",eK)}eventFromException(e,t){var r,n;let i;return r=this._options.stackParser,n=this._options.attachStacktrace,i=e3(r,e,t?.syntheticException||void 0,n),(0,G.addExceptionMechanism)(i),i.level="error",t?.event_id&&(i.event_id=t.event_id),(0,eR.resolvedSyncPromise)(i)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let a=e5(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),(0,eR.resolvedSyncPromise)(a)}(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 tt={},tr={};function tn(e,t){tt[e]=tt[e]||[],tt[e].push(t)}function ti(e,t){if(!tr[e]){tr[e]=!0;try{t()}catch(t){F.DEBUG_BUILD&&j.debug.error(`Error while instrumenting ${e}`,t)}}}function ta(e,t){let r=e&&tt[e];
7if(r)for(let n of r)try{n(t)}catch(t){F.DEBUG_BUILD&&j.debug.error(`Error while triggering instrumentation handler.
8Type: ${e}
9Name: ${(0,Z.getFunctionName)(n)}
10Error:`,t)}}function ts(){"console"in D.GLOBAL_OBJ&&j.CONSOLE_LEVELS.forEach(function(e){e in D.GLOBAL_OBJ.console&&(0,K.fill)(D.GLOBAL_OBJ.console,e,function(t){return j.originalConsoleMethods[e]=t,function(...t){ta("console",{args:t,level:e});let r=j.originalConsoleMethods[e];r?.apply(D.GLOBAL_OBJ.console,t)}})})}let to=D.GLOBAL_OBJ;function tl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tc(e,t){let r="fetch";tn(r,e),ti(r,()=>tu(void 0,t))}function tu(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in to))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tl(to.fetch))return!0;let e=!1,t=to.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tl(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){F.DEBUG_BUILD&&j.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,K.fill)(D.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tf(t),method:th(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:tf(t),method:th(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:a},startTimestamp:1e3*(0,ev.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,e_.isRequest)(t))return new Headers(t.headers)}catch{}}(r)};return e||ta("fetch",{...s}),t.apply(D.GLOBAL_OBJ,r).then(async t=>(e?e(t):ta("fetch",{...s,endTimestamp:1e3*(0,ev.timestampInSeconds)(),response:t}),t),e=>{if(ta("fetch",{...s,endTimestamp:1e3*(0,ev.timestampInSeconds)(),error:e}),(0,e_.isError)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,K.addNonEnumerableProperty)(e,"framesToPop",1)),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(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function td(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function tp(e){let t;try{t=e.clone()}catch{return}td(t,()=>{ta("fetch-body-resolved",{endTimestamp:1e3*(0,ev.timestampInSeconds)(),response:e})})}function th(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tf(e){return"string"==typeof e?e:e?th(e,"url")?e.url:e.toString?e.toString():"":""}function tm(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tg(e,t){let r=(0,$.getClient)(),n=(0,$.getIsolationScope)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions();if(a<=0)return;let s={timestamp:(0,ev.dateTimestampInSeconds)(),...e},o=i?(0,j.consoleSandbox)(()=>i(s,t)):s;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}function t_(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function ty(e){return"isRelative"in e}function tv(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 tS(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 tE(e){return e.split(/[?#]/,1)[0]}let tb=D.GLOBAL_OBJ;function tT(e){tn("dom",e),ti("dom",tw)}
10function tw(){if(!tb.document)return;let e=ta.bind(null,"dom"),t=tR(e,!0);tb.document.addEventListener("click",t,!1),tb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tb[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,K.fill)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){let n=tR(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),(0,K.fill)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.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 tR(e,t=!1){return a=>{var s;if(!a||a._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(a);if(s=a.type,"keypress"===s&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;(0,K.addNonEnumerableProperty)(a,"_sentryCaptured",!0),o&&!o._sentryId&&(0,K.addNonEnumerableProperty)(o,"_sentryId",(0,G.uuid4)());let l="keypress"===a.type?"input":a.type;!function(e){if(e.type!==n)return!1;try{if(!e.target||e.target._sentryId!==i)return!1}catch{}return!0}(a)&&(e({event:a,name:l,global:t}),n=a.type,i=o?o._sentryId:void 0),clearTimeout(r),r=tb.setTimeout(()=>{i=void 0,n=void 0},1e3)}}let tI="__sentry_xhr_v3__";function tO(e){tn("xhr",e),ti("xhr",tC)}function tC(){if(!tb.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,ev.timestampInSeconds)(),a=(0,e_.isString)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,e_.isString)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!a||!s)return e.apply(t,r);t[tI]={method:a,url:s,request_headers:{}},"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[tI];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}ta("xhr",{endTimestamp:1e3*(0,ev.timestampInSeconds)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(o(),e.apply(t,r))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,a=t[tI];return a&&(0,e_.isString)(n)&&(0,e_.isString)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[tI];return n&&(void 0!==r[0]&&(n.body=r[0]),ta("xhr",{startTimestamp:1e3*(0,ev.timestampInSeconds)(),xhr:t})),e.apply(t,r)}})}function tP(e){let t="history";tn(t,e),ti(t,tA)}function tA(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=a,i=function(e){try{return new URL(e,tb.location.origin).toString()}catch{return e}}(String(r));if(a=i,n===i)return e.apply(this,t);ta("history",{from:n,to:i})}return e.apply(this,t)}}tb.addEventListener("popstate",()=>{let e=tb.location.href,t=a;a=e,t===e||ta("history",{from:t,to:e})}),"history"in to&&to.history&&((0,K.fill)(tb.history,"pushState",e),(0,K.fill)(tb.history,"replaceState",e))}let tk="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tx=["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"];function tN(e){return function(...t){let r=t[0];return t[0]=e9(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,Z.getFunctionName)(e)}`}}),e.apply(this,t)}}function tM(e){return function(t){return e.apply(this,[e9(t,{mechanism:{data:{handler:(0,Z.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tD(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
10=>{e in r&&"function"==typeof r[e]&&(0,K.fill)(r,e,function(t){let r={mechanism:{data:{handler:(0,Z.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,K.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,Z.getFunctionName)(n)),e9(t,r)})}),e.apply(this,t)}}let tL=null;function tU(e){let t="error";tn(t,e),ti(t,tB)}function tB(){tL=D.GLOBAL_OBJ.onerror,D.GLOBAL_OBJ.onerror=function(e,t,r,n,i){return ta("error",{column:n,error:i,line:r,msg:e,url:t}),!!tL&&tL.apply(this,arguments)},D.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let t$=null;function tj(e){let t="unhandledrejection";tn(t,e),ti(t,tF)}function tF(){t$=D.GLOBAL_OBJ.onunhandledrejection,D.GLOBAL_OBJ.onunhandledrejection=function(e){return ta("unhandledrejection",e),!t$||t$.apply(this,arguments)},D.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function tW(e){tk&&j.debug.log(`Global Handler attached: ${e}`)}function tH(){let e=(0,$.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function tz(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function tq(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function tG(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?Z.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tY=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tJ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tX=/\((\S*)(?::(\d+))(?::(\d+))\)/,tV=/at (.+?) ?\(data:(.+?),/,tK=[30,e=>{let t=e.match(tV);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=tY.exec(e);if(r){let[,e,t,n]=r;return tG(e,Z.UNKNOWN_FUNCTION,+t,+n)}let n=tJ.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tX.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=t2(n[1]||Z.UNKNOWN_FUNCTION,n[2]);return tG(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tQ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tZ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t0=[50,e=>{let t=tQ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tZ.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]||Z.UNKNOWN_FUNCTION;return[r,e]=t2(r,e),tG(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],t1=(0,Z.createStackParser)(tK,t0),t2=(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]:Z.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},t3="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,t5={};function t4(e){let t=t5[e];if(t)return t;let r=tb[e];if(tl(r))return t5[e]=r.bind(tb);let n=tb.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){t3&&j.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?t5[e]=r.bind(tb):r}function t8(...e){return t4("setTimeout")(...e)}function t6(e,t=t4("fetch")){let r=0,n=0;async function i(i){let a=i.body.length;r+=a,n++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,s);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 t5.fetch=void 0,e}finally{r-=a,n--}}return function(e,t,r=eO(e.bufferSize||64)){let n={};return{send:function(i){let a=[];if(ec(i,(t,r)=>{let i=ed[r];eC(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let s=el(i[0],a),o=t=>{ec(s,(r,n)=>{e.recordDroppedEvent(t,ed[n])})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[eu(n),e]:n.push("string"==typeof e?eu(e):e)}for(let e of r){let[t,r]=e;if(i(`
11${JSON.stringify(t)}
12`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,eo.normalize)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>
12e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&F.DEBUG_BUILD&&j.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=eP(n,e),e),e=>{throw o("network_error"),F.DEBUG_BUILD&&j.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===eI)return F.DEBUG_BUILD&&j.debug.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,eO(e.bufferSize||40))}function t9(e){let r;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=X(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=X(e,i.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,Y.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return F.DEBUG_BUILD&&j.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
13Event: ${(0,G.getEventDescription)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&q(r).some(e=>(0,Y.stringMatchesSomePattern)(e,n)))return F.DEBUG_BUILD&&j.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
14Event: ${(0,G.getEventDescription)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return F.DEBUG_BUILD&&j.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
15Event: ${(0,G.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=V(e);return!!r&&(0,Y.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return F.DEBUG_BUILD&&j.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
16Event: ${(0,G.getEventDescription)(e)}.
17Url: ${V(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=V(e);return!r||(0,Y.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return F.DEBUG_BUILD&&j.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
18Event: ${(0,G.getEventDescription)(e)}.
19Url: ${V(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=(0,K.getOriginalFunction)(this),n=Q.has((0,$.getClient)())&&void 0!==r?r:this;return t.apply(n,e)}}catch{}},setup(e){Q.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,K.fill)(e8,"setTimeout",tN),t.setInterval&&(0,K.fill)(e8,"setInterval",tN),t.requestAnimationFrame&&(0,K.fill)(e8,"requestAnimationFrame",tM),t.XMLHttpRequest&&"XMLHttpRequest"in e8&&(0,K.fill)(XMLHttpRequest.prototype,"send",tD);let e=t.eventTarget;e&&(Array.isArray(e)?e:tx).forEach(e=>{var r,n;let i;return r=e,n=t,i=e8[r]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,K.fill)(i,"addEventListener",function(e){return function(t,i,a){var s,o,l,c;try{s=i,"function"==typeof s.handleEvent&&(i.handleEvent=e9(i.handleEvent,{mechanism:{data:{handler:(0,Z.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(o=this,l=t,c=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,c)),e.apply(this,[t,e9(i,{mechanism:{data:{handler:(0,Z.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),(0,K.fill)(i,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,a,s,o,l;let c;t.console&&(r=e,tn(c="console",function(e){if((0,$.getClient)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:tm(e.level),message:(0,Y.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,Y.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);tg(t,{input:e.args,level:e.level})}),ti(c,ts)),t.dom&&tT((n=e,i=t.dom,function(e){let t,r;if((0,$.getClient)()!==n)return;let a="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(tk&&j.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof a&&(a=[a]
19);try{var o;let n=e.event,i=(o=n)&&o.target?n.target:n;t=(0,e4.htmlTreeAsString)(i,{keyAttrs:a,maxStringLength:s}),r=(0,e4.getComponentName)(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),tg(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&tO((a=e,function(e){if((0,$.getClient)()!==a)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[tI];if(!t||!r||!n)return;let{method:i,url:s,status_code:o,body:l}=n,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},u={category:"xhr",data:{method:i,url:s,status_code:o},type:"http",level:t_(o)};a.emit("beforeOutgoingRequestBreadcrumb",u,c),tg(u,c)})),t.fetch&&tc((s=e,function(e){if((0,$.getClient)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:n,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",a,i),tg(a,i)}else{let n=e.response,i={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let a={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,type:"http",level:t_(i.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",o,a),tg(o,a)}})),t.history&&tP((o=e,function(e){if((0,$.getClient)()!==o)return;let t=e.from,r=e.to,n=tS(e8.location.href),i=t?tS(t):void 0,a=tS(r);i?.path||(i=n),n.protocol===a.protocol&&n.host===a.host&&(r=a.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),tg({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,$.getClient)()===l&&tg({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,G.getEventDescription)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,tU(e=>{var t,n,i,a;let s,o,l,c,u,d,{stackParser:p,attachStacktrace:h}=tH();if((0,$.getClient)()!==r||e6>0)return;let{msg:f,url:m,line:g,column:_,error:y}=e,v=(t=e3(p,y||f,void 0,h,!1),n=m,i=g,a=_,u=(c=(l=(o=(s=t.exception=t.exception||{}).values=s.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=c.frames||[],d=function(e){if((0,e_.isString)(e)&&0!==e.length){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),r=t?t[1]:"text/javascript",n=e.includes("base64,");return`<data:${r}${n?",base64":""}>`}return e}}(n)??(0,e4.getLocationHref)(),0===u.length&&u.push({colno:a,filename:d,function:Z.UNKNOWN_FUNCTION,in_app:!0,lineno:i}),t);v.level="error",(0,B.captureEvent)(v,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),tW("onerror")),t.onunhandledrejection&&(n=e,tj(e=>{var t;let{stackParser:r,attachStacktrace:i}=tH();if((0,$.getClient)()!==n||e6>0)return;let a=function(e){if((0,e_.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}(e),s=(0,e_.isPrimitive)(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):e3(r,a,void 0,i,!0);s.level="error",(0,B.captureEvent)(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),tW("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,a){if(!i.exception?.values||!a||!(0,e_.isInstanceOf)(a.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,r,n,i,a,s,o,l){if(s.length>=n+1)return s;let c=[...s];if((0,e_.isInstanceOf)(i[a],Error)){tz(o,l);let s=t(r,i[a]),u=c.length;tq(s,a,u,l),c=e(t,r,n,i[a],a,[s,...c],s,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,e_.isInstanceOf)(i,Error)){tz(o,l);let u=t(r,i),d=c.length;tq(u,`errors[${s}]`,d,l),c=e(t,r,n,i,a,[u,...c],u,d)}}),c}(e,t,n,a.originalException,r,i.exception.values,s,0))}(eQ,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,i,a,s,o;let l,c,u,d;if(t=e,(n=r)&&(i=t,a=n,l=i.message,c=a.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&et(i,a)&&ee(i,a)&&1||(s=t,o=n,u=er(o),d=er(s),u&&d&&u.type===d.type&&u.value===d.value&&et(s,o)&&ee(s,o))))return F.DEBUG_BUILD&&j.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return r=e}}
19,{name:"HttpContext",preprocessEvent(e){if(!e8.navigator&&!e8.location&&!e8.document)return;let t=e7(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}},{name:"BrowserSession",setupOnce(){if(void 0===e8.document){tk&&j.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,B.startSession)({ignoreDuration:!0}),(0,B.captureSession)(),tP(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,B.startSession)({ignoreDuration:!0}),(0,B.captureSession)())})}}]}var t7=e.i(514499),re=e.i(805964),rt=e.i(335492);class rr{constructor(e={}){this._traceId=e.traceId||(0,rt.generateTraceId)(),this._spanId=e.spanId||(0,rt.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eg.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function rn(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}var ri=e.i(799227);class ra{constructor(e={}){this._traceId=e.traceId||(0,rt.generateTraceId)(),this._spanId=e.spanId||(0,rt.generateSpanId)(),this._startTime=e.startTimestamp||(0,ev.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?eg.TRACE_FLAG_SAMPLED:eg.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,eg.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,eg.spanTimeInputToSeconds)(e),function(e){if(!F.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,eg.spanToJSON)(e),{spanId:n}=e.spanContext(),i=(0,eg.getRootSpan)(e)===e,a=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;j.debug.log(a)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eg.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[eN.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:rn(this._events),is_segment:this._isStandaloneSpan&&(0,eg.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eg.getRootSpan)(this).spanContext().spanId:void 0,links:(0,eg.convertSpanLinksForEnvelope)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){F.DEBUG_BUILD&&j.debug.log("[Tracing] Adding an event to span:",e);let n=rs(t)?t:r||(0,ev.timestampInSeconds)(),i=rs(t)?{}:t||{},a={name:e,time:(0,eg.spanTimeInputToSeconds)(n),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,$.getClient)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,eg.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,$.getClient)();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let r=(0,ea.getDynamicSamplingContextFromSpan)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,en.dsnToString)(n)}},{beforeSendSpan:s,ignoreSpans:o}=t?.getOptions()||{},l=o?.length?e.filter(e=>!em((0,eg.spanToJSON)(e),o)):e,c=e.length-l.length;
19c&&t?.recordDroppedEvent("before_send","span",c);let u=s?e=>{let t=(0,eg.spanToJSON)(e),r=s(t);return r||((0,eg.showSpanDropWarning)(),t)}:eg.spanToJSON,d=[];for(let e of l){let t=u(e);t&&d.push([{type:"span"},t])}return el(a,d)}([this],e)):(F.DEBUG_BUILD&&j.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,ri.getCapturedScopesOnSpan)(this).scope||(0,$.getCurrentScope)()).captureEvent(t)}_convertSpanToTransaction(){if(!ro((0,eg.spanToJSON)(this)))return;this._name||(F.DEBUG_BUILD&&j.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,ri.getCapturedScopesOnSpan)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,eg.getSpanDescendants)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof ra&&t.isStandaloneSpan())}).map(e=>(0,eg.spanToJSON)(e)).filter(ro),i=this._attributes[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[eN.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],n.forEach(e=>{delete e.data[eN.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let a={contexts:{trace:(0,eg.spanToTransactionTraceContext)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,ea.getDynamicSamplingContextFromSpan)(this)},request:r,...i&&{transaction_info:{source:i}}},s=rn(this._events);return s&&Object.keys(s).length&&(F.DEBUG_BUILD&&j.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),a.measurements=s),a}}function rs(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function ro(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var rl=e.i(175143),rc=e.i(505863),ru=e.i(547504),rd=e.i(104957);let rp="__SENTRY_SUPPRESS_TRACING__";function rh(e){let t=r_();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=rg(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,$.withScope)(e.scope,t):void 0!==i?e=>rf(i,e):e=>e())(()=>{let t=(0,$.getCurrentScope)(),a=rv(t,i);return e.onlyIfParent&&!a?new rr:rm({parentSpan:a,spanArguments:r,forceTransaction:n,scope:t})})}function rf(e,t){let r=r_();return r.withActiveSpan?r.withActiveSpan(e,t):(0,$.withScope)(r=>((0,ey._setSpanForScope)(r,e||void 0),t(r)))}function rm({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,re.hasSpansEnabled)()){let n=new rr;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,ea.getDynamicSamplingContextFromSpan)(n)};(0,ea.freezeDscOnSpan)(n,e)}return n}let a=(0,$.getIsolationScope)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[rp]&&(0,eg.spanIsSampled)(e),s=a?new ra({...r,parentSpanId:n,traceId:i,sampled:a}):new rr({traceId:i});(0,eg.addChildSpanToSpan)(e,s);let o=(0,$.getClient)();return o&&(o.emit("spanStart",s),r.endTimestamp&&o.emit("spanEnd",s)),s}(e,n,t),(0,eg.addChildSpanToSpan)(e,i);else if(e){let r=(0,ea.getDynamicSamplingContextFromSpan)(e),{traceId:a,spanId:s}=e.spanContext(),o=(0,eg.spanIsSampled)(e);i=ry({traceId:a,parentSpanId:s,...t},n,o),(0,ea.freezeDscOnSpan)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:s,sampled:o}={...a.getPropagationContext(),...n.getPropagationContext()};i=ry({traceId:e,parentSpanId:s,...t},n,o),r&&(0,ea.freezeDscOnSpan)(i,r)}return!function(e){if(!F.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,eg.spanToJSON)(e),{spanId:i}=e.spanContext(),a=(0,eg.spanIsSampled)(e),s=(0,eg.getRootSpan)(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&c.push(`parent ID: ${n}`),!o){let{op:e,description:t}=(0,eg.spanToJSON)(s);c.push(`root ID: ${s.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}j.debug.log(`${l}
20  ${c.join("\n  ")}`)}(i),(0,ri.setCapturedScopesOnSpan)(i,n,a),i}function rg(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,eg.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function r_(){let e=(0,es.getMainCarrier)();return(0,rc.getAsyncContextStrategy)(e)}function ry(e,t,r){let n=(0,$.getClient)(),i=n?.getOptions()||{},{name:a=""}=e,s={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};n?.emit("beforeSampling",s,{decision:!1});let o=s.parentSampled??r,l=s.spanAttributes,c=t.getPropagationContext(),[u,d,p]=t.getScopeData().sdkProcessingMetadata[rp]?[!1]:function(e,t,r){let n,i;if(!(0,re.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let a=(0,ek.parseSampleRate)(n);if(void 0===a)return F.DEBUG_BUILD&&j.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!a)return F.DEBUG_BUILD&&j.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let s=r<a;return!s&&F.DEBUG_BUILD&&j.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,a,i]}(i,{name:a,parentSampled:o,attributes:l,parentSampleRate:(0,ek.parseSampleRate)(c.dsc?.sample_rate)},c.sampleRand),h=new ra({...e,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==d&&p?d:void 0,...l},sampled:u});return!u&&n&&(F.DEBUG_BUILD&&j.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",h),h}function rv(e,t){if(t)return t;if(null===t)return;let r=(0,ey._getSpanForScope)(e);if(!r)return;let n=(0,$.getClient)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,eg.getRootSpan)(r):r}let rS={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rE(e,t={}){let r,n,i=new Map,a=!1,s="externalFinish",o=!t.disableAutoFinish,l=[],{idleTimeout:c=rS.idleTimeout,finalTimeout:u=rS.finalTimeout,childSpanTimeout:d=rS.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:h=!0}
20=t,f=(0,$.getClient)();if(!f||!(0,re.hasSpansEnabled)()){let e=new rr,t={sample_rate:"0",sampled:"false",...(0,ea.getDynamicSamplingContextFromSpan)(e)};return(0,ea.freezeDscOnSpan)(e,t),e}let m=(0,$.getCurrentScope)(),g=(0,eg.getActiveSpan)(),_=(r=rh(e),(0,ey._setSpanForScope)((0,$.getCurrentScope)(),r),F.DEBUG_BUILD&&j.debug.log("[Tracing] Started span is an idle span"),r);function y(){n&&(clearTimeout(n),n=void 0)}function v(e){y(),n=setTimeout(()=>{!a&&0===i.size&&o&&(s="idleTimeout",_.end(e))},c)}function S(e){n=setTimeout(()=>{!a&&o&&(s="heartbeatFailed",_.end(e))},d)}function E(e){a=!0,i.clear(),l.forEach(e=>e()),(0,ey._setSpanForScope)(m,g);let t=(0,eg.spanToJSON)(_),{start_timestamp:r}=t;if(!r)return;t.data[eN.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||_.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let n=t.status;n&&"unknown"!==n||_.setStatus({code:rl.SPAN_STATUS_OK}),j.debug.log(`[Tracing] Idle span "${t.op}" finished`);let o=(0,eg.getSpanDescendants)(_).filter(e=>e!==_),d=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:rl.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),F.DEBUG_BUILD&&j.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eg.spanToJSON)(t),i=n<=e,a=r-n<=(u+c)/1e3;if(F.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);i?a||j.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):j.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&((0,eg.removeChildSpanFromSpan)(_,t),d++)}),d>0&&_.setAttribute("sentry.idle_span_discarded_spans",d)}return _.end=new Proxy(_.end,{apply(e,t,r){if(p&&p(_),t instanceof rr)return;let[n,...i]=r,a=n||(0,ev.timestampInSeconds)(),s=(0,eg.spanTimeInputToSeconds)(a),o=(0,eg.getSpanDescendants)(_).filter(e=>e!==_),l=(0,eg.spanToJSON)(_);if(!o.length||!h)return E(s),Reflect.apply(e,t,[s,...i]);let c=f.getOptions().ignoreSpans,d=o?.reduce((e,t)=>{let r=(0,eg.spanToJSON)(t);return!r.timestamp||c&&em(r,c)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=l.start_timestamp,g=Math.min(m?m+u/1e3:1/0,Math.max(m||-1/0,Math.min(s,d||1/0)));return E(g),Reflect.apply(e,t,[g,...i])}}),l.push(f.on("spanStart",e=>{var t;!(a||e===_||(0,eg.spanToJSON)(e).timestamp||e instanceof ra&&e.isStandaloneSpan())&&(0,eg.getSpanDescendants)(_).includes(e)&&(t=e.spanContext().spanId,y(),i.set(t,!0),S((0,ev.timestampInSeconds)()+d/1e3))})),l.push(f.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&v((0,ev.timestampInSeconds)()+c/1e3)}})),l.push(f.on("idleSpanEnableAutoFinish",e=>{e===_&&(o=!0,v(),i.size&&S())})),t.disableAutoFinish||v(),setTimeout(()=>{a||(_.setStatus({code:rl.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",_.end())},u),_}let rb=!1;function rT(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==M.default?M.default:0))||(e=D.GLOBAL_OBJ.process,e?.type==="renderer"))}let rw=(e,t,r,n)=>{let i,a;return s=>{if(t.value>=0&&(s||n)&&((a=t.value-(i??0))||void 0===i)){var o;i=t.value,t.delta=a,o=t.value,t.rating=o>r[1]?"poor":o>r[0]?"needs-improvement":"good",e(t)}}},rR=(e=!0)=>{let t=tb.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},rI=()=>{let e=rR();return e?.activationStart??0};function rO(e,t,r){tb.document&&tb.addEventListener(e,t,r)}function rC(e,t,r){tb.document&&tb.removeEventListener(e,t,r)}let rP=-1,rA=new Set,rk=e=>{if(("pagehide"===e.type||tb.document?.visibilityState==="hidden")&&rP>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of rA)e();isFinite(rP)||(rP="visibilitychange"===e.type?e.timeStamp:0,rC("prerenderingchange",rk,!0))}},rx=()=>{if(tb.document&&rP<0){let e=rI();rP=(tb.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(tb.document?.visibilityState!=="hidden"||tb.document?.prerendering?1/0:0),rO("visibilitychange",rk,!0),rO("pagehide",rk,!0),rO("prerenderingchange",rk,!0)}return{get firstHiddenTime(){return rP},onHidden(e){rA.add(e)}}},rN=(e,t=-1)=>{let r=rR(),n="navigate";return r&&(tb.document?.prerendering||rI()>0?n="prerender":tb.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}},rM=new WeakMap;function rD(e,t){return rM.get(e)||rM.set(e,new t),rM.get(e)}class rL{constructor(){rL.prototype.__init.call(this),rL.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 rU=(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{}},rB=e=>{let t=!1;return()=>{t||(e(),t=!0)}},r$=e=>{tb.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rj=[1800,3e3],rF=[.1,.25],rW=0,rH=1/0,rz=0,rq=e=>
20{e.forEach(e=>{e.interactionId&&(rH=Math.min(rH,e.interactionId),rW=(rz=Math.max(rz,e.interactionId))?(rz-rH)/7+1:0)})},rG=()=>s?rW:performance.interactionCount||0,rY=0;class rJ{constructor(){rJ.prototype.__init.call(this),rJ.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rY=rG(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((rG()-rY)/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 rX=e=>{let t=t=>{("pagehide"===t.type||tb.document?.visibilityState==="hidden")&&e(t)};rO("visibilitychange",t,!0),rO("pagehide",t,!0)},rV=e=>{let t=tb.requestIdleCallback||tb.setTimeout;tb.document?.visibilityState==="hidden"?e():(rO("visibilitychange",e=rB(e),{once:!0,capture:!0}),t(()=>{e(),rC("visibilitychange",e,{capture:!0})}),rX(e))},rK=[200,500];class rQ{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rZ=[2500,4e3],r0=[800,1800],r1=e=>{tb.document?.prerendering?r$(()=>r1(e)):tb.document?.readyState!=="complete"?addEventListener("load",()=>r1(e),!0):setTimeout(e)},r2={},r3={};function r5(e,t=!1){return nn("cls",e,r7,o,t)}function r4(e,t=!1){return nn("lcp",e,ne,l,t)}function r8(e){return nn("inp",e,nr,u)}function r6(e,t){var r;let n;return ni(e,t),r3[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),rU(r,e=>{r9(r,{entries:e})},n),r3[e]=!0),na(e,t)}function r9(e,t){let r=r2[e];if(r?.length)for(let n of r)try{n(t)}catch(t){t3&&j.debug.error(`Error while triggering instrumentation handler.
21Type: ${e}
22Name: ${(0,Z.getFunctionName)(n)}
23Error:`,t)}}function r7(){return((e,t={})=>{((e,t={})=>{r$(()=>{let r,n=rx(),i=rN("FCP"),a=rU("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-rI(),0),i.entries.push(t),r(!0)))});a&&(r=rw(e,i,rj,t.reportAllChanges))})})(rB(()=>{let r,n=rN("CLS",0),i=rx(),a=rD(t,rL),s=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},o=rU("layout-shift",s);o&&(r=rw(e,n,rF,t.reportAllChanges),i.onHidden(()=>{s(o.takeRecords()),r(!0)}),tb?.setTimeout?.(r))}))})(e=>{r9("cls",{metric:e}),o=e},{reportAllChanges:!0})}function ne(){return((e,t={})=>{r$(()=>{let r,n=rx(),i=rN("LCP"),a=rD(t,rQ),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(s),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-rI(),0),i.entries=[s],r())},o=rU("largest-contentful-paint",s);if(o){r=rw(e,i,rZ,t.reportAllChanges);let n=rB(()=>{s(o.takeRecords()),o.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(rV(n),rC(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])rO(e,a,{capture:!0})}})})(e=>{r9("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function nt(){return((e,t={})=>{let r=rN("TTFB"),n=rw(e,r,r0,t.reportAllChanges);r1(()=>{let e=rR();e&&(r.value=Math.max(e.responseStart-rI(),0),r.entries=[e],n(!0))})})(e=>{r9("ttfb",{metric:e}),c=e})}function nr(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=rx();r$(()=>{let n;"interactionCount"in performance||s||(s=rU("event",rq,{type:"event",buffered:!0,durationThreshold:0}));let i=rN("INP"),a=rD(t,rJ),o=e=>{rV(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},l=rU("event",o,{durationThreshold:t.durationThreshold??40});n=rw(e,i,rK,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(l.takeRecords()),n(!0)}))})})(e=>{r9("inp",{metric:e}),u=e})}function nn(e,t,r,n,i=!1){let a;return ni(e,t),r3[e]||(a=r(),r3[e]=!0),n&&t({metric:n}),na(e,t,i?a:void 0)}function ni(e,t){r2[e]=r2[e]||[],r2[e].push(t)}function na(e,t,r){return()=>{r&&r();let n=r2[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function ns(e){return"number"==typeof e&&isFinite(e)}function no(e,t,r,{...n}){let i=(0,eg.spanToJSON)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),rf(e,()=>{let e=rh({startTime:t,...n});return e&&e.end(r),e})}function nl(e){let t,r=(0,$.getClient)();if(!r)return;let{name:n,transaction:i,attributes:a,startTime:s}=e,{release:o,environment:l,sendDefaultPii:c}=r.getOptions(),u=r.getIntegrationByName("Replay"),d=u?.getReplayId(),p=(0,$.getCurrentScope)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return rh({name:n,attributes:{release:o,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":tb.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...a},startTime:s,experimental:{standalone:!0}})}function nc(){return tb.addEventListener&&tb.performance}function nu(e){return e/1e3}
23function nd(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function np(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r),n=!0}rX(()=>{i("pagehide")});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),a(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,s()})}let nh=[],nf=new Map,nm=new Map,ng={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"},n_=({metric:e})=>{if(void 0==e.value)return;let t=nu(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&ng[t.name]);if(!r)return;let{interactionId:n}=r,i=ng[r.name],a=nu((0,ev.browserPerformanceTimeOrigin)()+r.startTime),s=(0,eg.getActiveSpan)(),o=s?(0,eg.getRootSpan)(s):void 0,l=null!=n?nf.get(n):void 0,c=l?.span||o,u=c?(0,eg.spanToJSON)(c).description:(0,$.getCurrentScope)().getScopeData().transactionName,d=nl({name:l?.elementName||(0,e4.htmlTreeAsString)(r.target),transaction:u,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},startTime:a});d&&(d.addEvent("inp",{[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(a+t))};function ny(e){return e?(((0,ev.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function nv(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,ev.browserPerformanceTimeOrigin)()||nc()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":ny(e.redirectStart),"http.request.redirect_end":ny(e.redirectEnd),"http.request.worker_start":ny(e.workerStart),"http.request.fetch_start":ny(e.fetchStart),"http.request.domain_lookup_start":ny(e.domainLookupStart),"http.request.domain_lookup_end":ny(e.domainLookupEnd),"http.request.connect_start":ny(e.connectStart),"http.request.secure_connection_start":ny(e.secureConnectionStart),"http.request.connection_end":ny(e.connectEnd),"http.request.request_start":ny(e.requestStart),"http.request.response_start":ny(e.responseStart),"http.request.response_end":ny(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let nS=0,nE={};function nb(e,t,r,n,i=r){var a;let s=t["secureConnection"===(a=r)?"connectEnd":"fetch"===a?"domainLookupStart":`${a}End`],o=t[`${r}Start`];o&&s&&no(e,n+nu(o),n+nu(s),{op:`browser.${i}`,name:t.name,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let nT=({entries:e})=>{let t=(0,eg.getActiveSpan)(),r=t?(0,eg.getRootSpan)(t):void 0,n=r?(0,eg.spanToJSON)(r).description:(0,$.getCurrentScope)().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[a,s]=i?[nu(i),"load-time"]:r?[nu(r),"render-time"]:[(0,ev.timestampInSeconds)(),"entry-emission"],o="image-paint"===t?nu(Math.max(0,(r??0)-(i??0))):0,l={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.elementtiming",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.elementtiming",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component","sentry.span_start_time_source":s,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWi
23dth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=r_();if(r.startSpan)return r.startSpan(e,t);let n=rg(e),{forceTransaction:i,parentSpan:a,scope:s}=e,o=s?.clone();(0,$.withScope)(o,()=>{var r;return(void 0!==(r=a)?e=>rf(r,e):e=>e())(()=>{let r=(0,$.getCurrentScope)(),s=rv(r,a),o=e.onlyIfParent&&!s?new rr:rm({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,ey._setSpanForScope)(r,o),function(e,t,r=()=>{},n=()=>{}){var i,a,s,o;let l;try{l=e()}catch(e){throw t(e),r(),e}return i=l,a=t,s=r,o=n,(0,e_.isThenable)(i)?i.then(e=>(s(),o(e),e),e=>{throw a(e),s(),e}):(s(),o(i),i)}(()=>t(o),()=>{let{status:e}=(0,eg.spanToJSON)(o);o.isRecording()&&(!e||"ok"===e)&&o.setStatus({code:rl.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{o.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:a,onlyIfParent:!0},e=>{e.end(a+o)})})},nw="sentry_previous_trace";function nR(e){return 1===e.traceFlags}function nI(e={}){let t=e.client||(0,$.getClient)();if(!(0,B.isEnabled)()||!t)return{};let r=(0,es.getMainCarrier)(),n=(0,rc.getAsyncContextStrategy)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,$.getCurrentScope)(),a=e.span||(0,eg.getActiveSpan)(),s=a?(0,eg.spanToTraceHeader)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,rd.generateSentryTraceHeader)(t,n,r)}(i),o=a?(0,ea.getDynamicSamplingContextFromSpan)(a):(0,ea.getDynamicSamplingContextFromScope)(t,i),l=(0,ru.dynamicSamplingContextToSentryBaggageHeader)(o);if(!rd.TRACEPARENT_REGEXP.test(s))return j.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":s,baggage:l};if(e.propagateTraceparent){let e=a?(0,eg.spanToTraceparentHeader)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,rd.generateTraceparentHeader)(t,n,r)}(i);e&&(c.traceparent=e)}return c}function nO(e){return e.split(",").some(e=>e.trim().startsWith(ru.SENTRY_BAGGAGE_KEY_PREFIX))}function nC(e){return new URLSearchParams(e).toString()}function nP(e,t=j.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nC(e)];if(!e)return[void 0]}catch(r){return t3&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return t3&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function nA(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function nk(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return t3&&j.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 nx(e){try{return new URL(e,e8.location.origin).href}catch{return}}function nN(e){try{return new Headers(e)}catch{return}}let nM=new WeakMap,nD=new Map,nL={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nU(e){let{url:t}=(0,eg.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;let r=r6("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(nv(n)),setTimeout(r))})})}let nB={...rS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...nL};function n$(e,t,r){e.emit("startPageLoadSpan",t,r),(0,$.getCurrentScope)().setTransactionName(t.name);let n=e[nW];return n&&e.emit("afterStartPageLoadSpan",n),n}function nj(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let a=(0,$.getCurrentScope)();return a.setTransactionName(t.name),n&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...e7(),url:n}}),e[nW]}function nF(e){let t=e8.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let nW="_sentry_idleSpan";function nH(e,t){(0,K.addNonEnumerableProperty)(e,nW,t)}let nz="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nq=D.GLOBAL_OBJ,nG=null,nY=new Map,nJ=new Map;
23function nX(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 nV(e){if(nY.has(e))return nY.get(e)??null;try{let t=new RegExp(e);return nY.set(e,t),t}catch(t){return nz&&j.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function nK(){if(!nq?._sentryRouteManifest||"string"!=typeof nq._sentryRouteManifest)return null;let e=nq._sentryRouteManifest;if(nG&&v===e)return nG;nY.clear(),nJ.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nG=t,v=e,t}catch{return nz&&j.debug.warn("Could not extract route manifest"),null}}let nQ=e=>{let t=nK();if(!t)return;if(nJ.has(e))return nJ.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))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=nV(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}`,i=nV(t.regex);i?.test(r)&&n.push(t.path)}}return n})(e,r,n).sort((e,t)=>nX(e)-nX(t))[0];return nJ.set(e,i),i},nZ="incomplete-app-router-transaction",n0="router-patch",n1={current:void 0},n2=D.GLOBAL_OBJ,n3=D.GLOBAL_OBJ;function n5(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let n4=new WeakSet;function n8(e,t,r){n4.has(t)||(n4.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,a){if("router-patch"!==n0)return t.apply(i,a);let s=nZ,o={[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=a[0],c=M.default.env._sentryBasePath??n3._sentryBasePath,u=c&&"string"==typeof l&&!l.startsWith(c)?`${c}${l}`:l;"push"===n?(s=n5(u),o["navigation.type"]="router.push"):"replace"===n?(s=n5(u),o["navigation.type"]="router.replace"):"back"===n?o["navigation.type"]="router.back":"forward"===n&&(o["navigation.type"]="router.forward");let d=nQ(s);return r.current=nj(e,{name:d??s,attributes:{...o,[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url"}}),t.apply(i,a)}}))}))}var n6=e.i(620505);let n9=n6.default.events?n6.default:n6.default.default,n7=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ie(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.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 it(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 ir=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);D.GLOBAL_OBJ;let ii=!1,ia=D.GLOBAL_OBJ;function is(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let io=D.GLOBAL_OBJ,il="sentryReplaySession",ic="Unable to send Replay";var iu=Object.defineProperty,id=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?iu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ip=((w=ip||{})[w.Document=0]="Document",w[w.DocumentType=1]="DocumentType",w[w.Element=2]="Element",w[w.Text=3]="Text",w[w.CDATA=4]="CDATA",w[w.Comment=5]="Comment",w);function ih(e){let t=e?.host;return t?.shadowRoot===e}function im(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ig(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,i_).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 i_(e){let t;if("styleSheet"in e)try{t=ig(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,i=n[r],a=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class iy{constructor(){id(this,"idNodeMap",new Map),id(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);
23this.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 iv({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 iS({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function iE(e){return e.toLowerCase()}function ib(e){return e.toUpperCase()}let iT="__rrweb_original__";function iw(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?iE(t):null}function iR(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function iI(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 iO={};function iC(e){let t=iO[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 i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return iO[e]=n.bind(window)}function iP(...e){return iC("setTimeout")(...e)}function iA(...e){return iC("clearTimeout")(...e)}function ik(e){try{return e.contentDocument}catch(e){}}let ix=1,iN=RegExp("[^a-z0-9-_:]");function iM(){return ix++}let iD=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,iL=/^(?:[a-z+]+:)?\/\//i,iU=/^www\..*/i,iB=/^(data:)([^,]*),(.*)/i;function i$(e,t){return(e||"").replace(iD,(e,r,n,i,a,s)=>{let o=n||a||s,l=r||i||"";if(!o)return e;if(iL.test(o)||iU.test(o)||iB.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let c=t.split("/"),u=o.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let ij=/^[^ \t\n\r\u000c]+/,iF=/^[, \t\n\r\u000c]+/,iW=new WeakMap;function iH(e,t){return t&&""!==t.trim()?iz(e,t):t}function iz(e,t){let r=iW.get(e);if(r||(r=e.createElement("a"),iW.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function iq(e,t,r,n,i,a,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return iH(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return iH(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(iF),!(r>=t.length);){let a=n(ij);if(","===a.slice(-1))a=iH(e,a.substring(0,a.length-1)),i.push(a);else{let n="";a=iH(e,a);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((a+n).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,i.push((a+n).trim());break}else"("===e&&(s=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=i$(n,iz(e));return s&&s.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 i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}else if("object"===t&&"data"===r)return iH(e,n);return"function"==typeof a?a(r,n,i):n}function iG(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function iY(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:iY(e.parentNode,t,r,n+1)}function iJ(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 iX(e,t,r,n,i,a){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(a){if((l=iY(s,iJ(n,i)))<0)return!0;o=iY(s,iJ(t,r),l>=0?l:1/0)}else{if((o=iY(s,iJ(t,r)))<0)return!1;l=iY(s,iJ(n,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!a}catch(e){}return!!a}function iV(e){return null==e?"":e.toLowerCase()}function iK(e,t){let r,{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:v,maskInputFn:S,slimDOMOptions:E,dataURLOptions:b={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:O=5e3,onBlockedImageLoad:C,onStylesheetLoad:P,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:x=!1,ignoreCSSAttributes:N}=t,{preserveWhiteSpace:M=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:v={},inlineImages:S,recordCanvas:E,keepIframeSrcFn:b,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:ip.Document,childNodes:[],compatMode:e.compatMode};return{type:ip.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ip.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:i,blockSelector:a,unblockSelector:s,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskTextClass:v,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:b,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,i,a,s),R=function(e){if(e instanceof HTMLFormElement)return"form";let t=iE(e.tagName);return iN.test(t)?"div":t}(e),I={},O=e.attributes.length;for(let t=0;t<O;t++){let r=e.attributes[t];r.name&&!iG(R,r.name,r.value)&&(I[r.name]=iq(n,R,iE(r.name),r.value,e,c,T))}if("link"===R&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=ig(t)),r&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=i$(r,t.href))}if("style"===R&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=ig(e.sheet);t&&(I._cssText=i$(t,iz(n)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){let t=iw(e),r=iR(e,ib(R),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=iX(e,v,E,S,b,iv({type:t,tagName:ib(R),maskInputOptions:l}));I.value=iS({isMasked:n,element:e,value:r,maskInputFn:u})}n&&(I.checked=n)}if("option"===R&&(e.selected&&!l.select?I.selected=!0:delete I.selected),"canvas"===R&&m){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 i=t.getImageData;
23if(new Uint32Array((iT in i?i[iT]:i).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||(f=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{h.width=e.naturalWidth,h.height=e.naturalHeight,f.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?i():e.addEventListener("load",i);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?i():e.addEventListener("load",i)}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||ik(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(R)&&(r=!0)}catch(e){}return{type:ip.Element,tagName:R,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:v,inlineImages:S,recordCanvas:E,keepIframeSrcFn:b,newlyAddedElement:T,rootId:R,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=ig(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=i$(p,iz(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=iX(e,n,a,i,s,r);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=iS({isMasked:iX(e,n,a,i,s,iv({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:ip.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{doc:r,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:R});case e.CDATA_SECTION_NODE:return{type:ip.CDATA,textContent:"",rootId:R};case e.COMMENT_NODE:return{type:ip.Comment,textContent:e.textContent||"",rootId:R};default:return!1}}(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:S,dataURLOptions:b,inlineImages:T,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:x,ignoreCSSAttributes:N});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===ip.Comment)return!0;if(e.type===ip.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"===iI(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iV(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iV(e.attributes.name)||"icon"===iV(e.attributes.rel)||"apple-touch-icon"===iV(e.attributes.rel)||"shortcut icon"===iV(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&iV(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(iV(e.attributes.property).match(/^(og|twitter|fb):/)||iV(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iV(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===iV(e.attributes.name)||"googlebot"===iV(e.attributes.name)||"bingbot"===iV(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iV(e.attributes.name)||"generator"===iV(e.attributes.name)||"framework"===iV(e.attributes.name)||"publisher"===iV(e.attributes.name)||"progid"===iV(e.attributes.name)||iV(e.attributes.property).match(/^article:/)||iV(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iV(e.attributes.name)||"yandex-verification"===iV(e.attributes.name)||"csrf-token"===iV(e.attributes.name)||"p:domain_verify"===iV(e.attributes.name)||"verify-v1"===iV(e.attributes.name)||"verification"===iV(e.attributes.name)||"shopify-checkout-api-token"===iV(e.attributes.name)))return!0}}return!1}(D,E)&&(M||D.type!==ip.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?iM():-2;let L=Object.assign(D,{id:r});if(i.add(e,L),-2===r)return null;R&&R(e);let U=!m;if(L.type===ip.Element){U=U&&!L.needBlock;let t=e.shadowRoot;t&&im(t)&&(L.isShadowHost=!0)}if((L.type===ip.Document||L.type===ip.Element)&&U){E.headWhitespace&&L.type===ip.Element&&"head"===L.tagName&&(M=!1);let t={doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:S,slimDOMOptions:E,dataURLOptions:b,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:O,onBlockedImageLoad:C,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:N};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=iK(r,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=iK(r,t);
23n&&(im(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}if(e.parentNode&&ih(e.parentNode)&&im(e.parentNode)&&(L.isShadow=!0),L.type!==ip.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=iP(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{iA(n),a=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return iP(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ik(e);if(t&&I){let r=iK(t,{doc:t,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:S,slimDOMOptions:E,dataURLOptions:b,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:N});r&&I(e,r)}},O),L.type===ip.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===ip.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===iI(L.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let a=iP(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{iA(a),i=!0,t()})}(e,()=>{if(P){let t=iK(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:S,slimDOMOptions:E,dataURLOptions:b,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:R,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:N});t&&P(e,t)}},A),L.type===ip.Element&&delete L.needBlock,L}function iQ(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let iZ="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.",i0={map:{},getId:()=>(console.error(iZ),-1),getNode:()=>(console.error(iZ),null),removeNodeFromMap(){console.error(iZ)},has:()=>(console.error(iZ),!1),reset(){console.error(iZ)}};function i1(e,t,r={}){let n=null,i=0;return function(...a){let s=Date.now();i||!1!==r.leading||(i=s);let o=t-(s-i),l=this;o<=0||o>t?(n&&(function(...e){al("clearTimeout")(...e)}(n),n=null),i=s,e.apply(l,a)):n||!1===r.trailing||(n=ac(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)},o))}}function i2(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(i0=new Proxy(i0,{get:(e,t,r)=>("map"===t&&console.error(iZ),Reflect.get(e,t,r))}));let i3=Date.now;function i5(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 i4(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function i8(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function i6(e){if(!e)return null;
23try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function i9(e,t,r,n,i){if(!e)return!1;let a=i6(e);if(!a)return!1;let s=iJ(t,r);if(!i){let e=n&&a.matches(n);return s(a)&&!e}let o=iY(a,s),l=-1;return!(o<0)&&(n&&(l=iY(a,iJ(null,n))),o>-1&&l<0||o<l)}function i7(e,t){return -2===t.getId(e)}function ae(e){return!!e.changedTouches}function at(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ar(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function an(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(i3=()=>new Date().getTime());class ai{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 aa(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function as(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=aa(r);)r=t;return r}(e);return t.contains(r)}(e))}let ao={};function al(e){let t=ao[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 i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return ao[e]=n.bind(window)}function ac(...e){return al("setTimeout")(...e)}var au=((R=au||{})[R.DomContentLoaded=0]="DomContentLoaded",R[R.Load=1]="Load",R[R.FullSnapshot=2]="FullSnapshot",R[R.IncrementalSnapshot=3]="IncrementalSnapshot",R[R.Meta=4]="Meta",R[R.Custom=5]="Custom",R[R.Plugin=6]="Plugin",R),ad=((I=ad||{})[I.Mutation=0]="Mutation",I[I.MouseMove=1]="MouseMove",I[I.MouseInteraction=2]="MouseInteraction",I[I.Scroll=3]="Scroll",I[I.ViewportResize=4]="ViewportResize",I[I.Input=5]="Input",I[I.TouchMove=6]="TouchMove",I[I.MediaInteraction=7]="MediaInteraction",I[I.StyleSheetRule=8]="StyleSheetRule",I[I.CanvasMutation=9]="CanvasMutation",I[I.Font=10]="Font",I[I.Log=11]="Log",I[I.Drag=12]="Drag",I[I.StyleDeclaration=13]="StyleDeclaration",I[I.Selection=14]="Selection",I[I.AdoptedStyleSheet=15]="AdoptedStyleSheet",I[I.CustomElement=16]="CustomElement",I),ap=((O=ap||{})[O.MouseUp=0]="MouseUp",O[O.MouseDown=1]="MouseDown",O[O.Click=2]="Click",O[O.ContextMenu=3]="ContextMenu",O[O.DblClick=4]="DblClick",O[O.Focus=5]="Focus",O[O.Blur=6]="Blur",O[O.TouchStart=7]="TouchStart",O[O.TouchMove_Departed=8]="TouchMove_Departed",O[O.TouchEnd=9]="TouchEnd",O[O.TouchCancel=10]="TouchCancel",O),ah=((C=ah||{})[C.Mouse=0]="Mouse",C[C.Pen=1]="Pen",C[C.Touch=2]="Touch",C),af=((P=af||{})[P.Play=0]="Play",P[P.Pause=1]="Pause",P[P.Seeked=2]="Seeked",P[P.VolumeChange=3]="VolumeChange",P[P.RateChange=4]="RateChange",P);function am(e){try{return e.contentDocument}catch(e){}}class ag{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 a_=(e,t)=>`${e}@${t}`;class ay{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=>
23{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new ag,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!as(i))return;let a=ih(i.parentNode)?this.mirror.getId(aa(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===a||-1===s)return r.addNode(i);let o=iK(i,{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=>{at(e,this.mirror)&&!i9(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ar(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),an(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{i9(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});o&&(e.push({parentId:a,nextId:s,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!aS(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)aE(this.droppedSet,e)||aS(this.removes,e,this.mirror)?aE(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;r.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),r=n(a.value);-1!==t&&-1!==r&&(e=a)}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}a=e.previous,r.removeNode(e.value),i(e.value)}let s={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};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))},this.processMutation=e=>{if(!i7(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;i9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:iX(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,i6(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=iw(t),i=t.tagName;n=iR(t,i,r);let a=iv({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=iS({isMasked:iX(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(i9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
23if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(am(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!iG(t.tagName,r)&&(i.attributes[r]=iq(this.doc,iE(t.tagName),iE(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),a=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||a!==r.style.getPropertyPriority(n)?""===a?i.styleDiff[n]=e:i.styleDiff[n]=[e,a]:i._unchangedStyles[n]=[e,a]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(i9(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=ih(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);i9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i7(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(av(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ih(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[a_(r,n)]?av(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(ih(e.target)&&im(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(i7(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[a_(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!i9(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),an(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 av(e,t){e.delete(t),t.childNodes?.forEach(t=>av(e,t))}function aS(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 aE(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 ab=e=>m?(...t)=>{try{return e(...t)}catch(e){if(m&&!0===m(e))return()=>{};throw e}}:e,aT=[];function aw(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 aR(e,t){let r=new ay;aT.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let a=new n(ab(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function aI({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){return iQ("scroll",ab(i1(ab(s=>{let o=aw(s);if(!o||i9(o,n,i,a,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=i5(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),t)}let aO=["INPUT","TEXTAREA","SELECT"],aC=new WeakMap;function aP(e){var t=[];if(aN("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||aN("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||aN("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||aN("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 aA(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function ak({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let r=a.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),ab(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function ax(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=aR(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=i1(ab(t=>{let r=Date.now()-i;e(o.map(e=>(e.timeOffset-=r,e)),t),o=[],i=null}),s),c=ab(i1(ab(e=>{let t=aw(e),{clientX:r,clientY:a}=ae(e)?e.changedTouches[0]:e;i||(i=i3()),o.push({x:r,y:a,id:n.getId(t),timeOffset:i3()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?ad.Drag:e instanceof MouseEvent?ad.MouseMove:ad.TouchMove)}),a,{trailing:!1})),u=[iQ("mousemove",c,r),iQ("touchmove",c,r),iQ("drag",c,r)];return ab(()=>
23{u.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null;return Object.keys(ap).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(s=>{let o=iE(s),u=t=>{let o=aw(t);if(i9(o,n,i,a,!0))return;let l=null,u=s;if("pointerType"in t){switch(t.pointerType){case"mouse":l=ah.Mouse;break;case"touch":l=ah.Touch;break;case"pen":l=ah.Pen}l===ah.Touch?ap[s]===ap.MouseDown?u="TouchStart":ap[s]===ap.MouseUp&&(u="TouchEnd"):ah.Pen}else ae(t)&&(l=ah.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===ah.Touch||u.startsWith("Mouse")&&l===ah.Mouse)&&(l=null)):ap[s]===ap.Click&&(l=c,c=null);let d=ae(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(o),{clientX:h,clientY:f}=d;ab(e)({type:ap[u],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(ap[s]){case ap.MouseDown:case ap.MouseUp:o=o.replace("mouse","pointer");break;case ap.TouchStart:case ap.TouchEnd:return}l.push(iQ(o,u,t))}),ab(()=>{l.forEach(e=>e())})}(e),s=aI(e),o=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return iQ("resize",ab(i1(ab(()=>{let t=i4(),i=i8();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=aw(e),u=e.isTrusted,g=r&&ib(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>aO.indexOf(g)||i9(r,n,i,a,!0))return;let y=r;if(y.classList.contains(s)||o&&y.matches(o))return;let v=iw(r),S=iR(y,g,v),E=!1,b=iv({maskInputOptions:l,tagName:g,type:v}),T=iX(r,p,f,h,m,b);("radio"===v||"checkbox"===v)&&(E=r.checked),S=iS({isMasked:T,element:r,value:S,maskInputFn:c}),_(r,d?{text:S,isChecked:E,userTriggered:u}:{text:S,isChecked:E});let w=r.name;"radio"===v&&w&&E&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==r){let t=iS({isMasked:T,element:e,value:iR(e,g,v),maskInputFn:c});_(e,d?{text:t,isChecked:!E,userTriggered:!1}:{text:t,isChecked:!E})}})}function _(t,n){let i=aC.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){aC.set(t,n);let i=r.getId(t);ab(e)({...n,id:i})}}let y=("last"===u.input?["change"]:["input","change"]).map(e=>iQ(e,ab(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let S=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),E=[[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 S&&S.set&&y.push(...E.map(e=>(function e(t,r,n,i,a=window){let s=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){ac(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){ab(g)({target:this,isTrusted:!1})}},!1,v))),ab(()=>{y.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:s}){let o=ab(s=>i1(ab(a=>{let o=aw(a);if(!o||i9(o,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=o;e({type:s,id:i.getId(o),currentTime:l,volume:c,muted:u,playbackRate:d})}),a.media||500)),l=[iQ("play",o(af.Play),s),iQ("pause",o(af.Pause),s),iQ("seeked",o(af.Seeked),s),iQ("volumechange",o(af.VolumeChange),s),iQ("ratechange",o(af.RateChange),s)];return ab(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,a;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ab((n,i,a)=>{let[s,o]=a,{id:l,styleId:c}=aA(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:o}]}),n.apply(i,a)})});let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ab((n,i,a)=>{let[s]=a,{id:o,styleId:l}=aA(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:s}]}),n.apply(i,a)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ab((n,i,a)=>{let[s]=a,{id:o,styleId:l}=aA(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:s}),n.apply(i,a)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ab((n,i,a)=>{let[s]=a,{id:o,styleId:l}=aA(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:s}),n.apply(i,a)})}));let l={};aM("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(aM("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),aM("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),aM("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:ab((n,i,a)=>{let[s,o]=a,{id:l,styleId:c}=aA(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:[...aP(i),o||0]}]}),n.apply(i,a)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:ab((n,i,a)=>{let[s]=a,{id:o,styleId:l}=aA(i.parentStyleSheet,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...aP(i),s]}]}),n.apply(i,a)})})}),ab(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=o,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=ak(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:ab((i,s,o)=>{let[l,c,u]=o;if(r.has(l))return a.apply(s,[l,c,u]);let{id:d,styleId:p}=aA(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:aP(s.parentRule)}),i.apply(s,o)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ab((i,a,o)=>{let[l]=o;if(r.has(l))return s.apply(a,[l]);let{id:c,styleId:u}=aA(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:aP(a.parentRule)}),i.apply(a,o)})}),ab(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){let n=new a(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let s=i2(t.fonts,"add",function(t){return function(r){return ac(ab(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=a}),n.push(s),ab(()=>
23{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:s}=e,o=!0,l=ab(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:s,startOffset:o,endContainer:c,endOffset:u}=e.getRangeAt(t);i9(s,n,i,a,!0)||i9(c,n,i,a,!0)||l.push({start:r.getId(s),startOffset:o,end:r.getId(c),endOffset:u})}s({ranges:l})});return l(),iQ("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?i2(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ab(()=>{aT.forEach(e=>e.reset()),r?.disconnect(),i(),a(),s(),o(),l(),c(),u(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function aN(e){return void 0!==window[e]}function aM(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class aD{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}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 i=n.get(t);return i||-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 aL{constructor(){this.crossOriginIframeMirror=new aD(iM),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class aU{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new aD(iM),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new aD(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=am(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 au.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:au.IncrementalSnapshot,data:{source:ad.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case au.Meta:case au.Load:case au.DomContentLoaded:break;case au.Plugin:return t;case au.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case au.IncrementalSnapshot:switch(t.data.source){case ad.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)}
23),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 ad.Drag:case ad.TouchMove:case ad.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ad.ViewportResize:return!1;case ad.MediaInteraction:case ad.MouseInteraction:case ad.Scroll:case ad.CanvasMutation:case ad.Input:return this.replaceIds(t.data,e,["id"]),t;case ad.StyleSheetRule:case ad.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ad.Font:return t;case ad.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case ad.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 i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));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===ip.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class aB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class a${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(!im(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=aR({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(aI({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ac(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ak({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=am(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(i2(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&as(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var aj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aF="u"<typeof Uint8Array?[]:new Uint8Array(256),aW=0;aW<aj.length;aW++)aF[aj.charCodeAt(aW)]=aW;class aH{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class az{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ai,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:i_(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 aq{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){al("requestAnimationFrame")(...e)}
23(()=>{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 aG=new iy;function aY(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:y=!0,maskAllInputs:v,maskInputOptions:S,slimDOMOptions:E,maskAttributeFn:b,maskInputFn:T,maskTextFn:w,maxCanvasSize:R=null,packFn:I,sampling:O={},dataURLOptions:C={},mousemoveWait:P,recordDOM:A=!0,recordCanvas:k=!1,recordCrossOriginIframes:x=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:j,onMutation:F,getCanvasManager:W}=e;m=j;let H=!x||window.parent===window,z=!1;if(!H)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(H&&!r)throw Error("emit function is required");if(!H&&!z)return()=>{};void 0!==P&&void 0===O.mousemove&&(O.mousemove=P),aG.reset();let q=!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!==S?S:{},G=!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===E,headMetaDescKeywords:"all"===E}:E||{};!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&&!z&&(e=I(e)),e};g=(e,a)=>{if(e.timestamp=i3(),aT[0]?.isFrozen()&&e.type!==au.FullSnapshot&&(e.type!==au.IncrementalSnapshot||e.data.source!==ad.Mutation)&&aT.forEach(e=>e.unfreeze()),H)r?.(J(e),a);else if(z){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===au.FullSnapshot)t=e,Y=0;else if(e.type===au.IncrementalSnapshot){if(e.data.source===ad.Mutation&&e.data.isAttachIframe)return;Y++;let r=i&&Y>=i,a=n&&t&&e.timestamp-t.timestamp>n;(r||a)&&en(!0)}};let X=e=>{g({type:au.IncrementalSnapshot,data:{source:ad.Mutation,...e}})},V=e=>g({type:au.IncrementalSnapshot,data:{source:ad.Scroll,...e}}),K=e=>g({type:au.IncrementalSnapshot,data:{source:ad.CanvasMutation,...e}}),Q=new az({mutationCb:X,adoptedStyleSheetCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new aL:new aU({mirror:aG,mutationCb:X,stylesheetManager:Q,recordCrossOriginIframes:x,wrappedEmit:g});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:aG,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new aq,et=function(e,t){try{return e?e(t):new aH}catch{return console.warn("Unable to initialize CanvasManager"),new aH}}(W,{mirror:aG,win:window,mutationCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.CanvasMutation,...e}}),recordCanvas:k,blockClass:a,blockSelector:s,unblockSelector:o,maxCanvasSize:R,sampling:O.canvas,dataURLOptions:C,errorHandler:j}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new aB:new a$({mutationCb:X,scrollCb:V,bypassOptions:{onMutation:F,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskInputOptions:q,dataURLOptions:C,maskAttributeFn:b,maskTextFn:w,maskInputFn:T,recordCanvas:k,inlineImages:L,sampling:O,slimDOMOptions:G,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:B,processedNodeManager:ee,ignoreCSSAttributes:$},mirror:aG}),en=(e=!1)=>
23{if(!A)return;g({type:au.Meta,data:{href:window.location.href,width:i8(),height:i4()}},e),Q.reset(),er.init(),aT.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new iy,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:S,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:R,stylesheetLoadTimeout:I,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return iK(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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===f?{}:f,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:h,preserveWhiteSpace:S,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:R,stylesheetLoadTimeout:I,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:aG,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskAllInputs:q,maskAttributeFn:b,maskInputFn:T,maskTextFn:w,slimDOM:G,dataURLOptions:C,recordCanvas:k,inlineImages:L,onSerialize:e=>{at(e,aG)&&Z.addIframe(e),ar(e,aG)&&Q.trackLinkElement(e),an(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})=>{X({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:B,ignoreCSSAttributes:$});if(!t)return console.warn("Failed to snapshot the document");g({type:au.FullSnapshot,data:{node:t,initialOffset:i5(window)}}),aT.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,aG.getId(document))};_=en;try{let e=[],t=e=>ab(ax)({onMutation:F,mutationCb:X,mousemoveCb:(e,t)=>g({type:au.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.ViewportResize,...e}}),inputCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.Input,...e}}),mediaInteractionCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.MediaInteraction,...e}}),styleSheetRuleCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.StyleSheetRule,...e}}),styleDeclarationCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>g({type:au.IncrementalSnapshot,data:{source:ad.Font,...e}}),selectionCb:e=>{g({type:au.IncrementalSnapshot,data:{source:ad.Selection,...e}})},customElementCb:e=>{g({type:au.IncrementalSnapshot,data:{source:ad.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:q,inlineStylesheet:y,sampling:O,recordDOM:A,recordCanvas:k,inlineImages:L,userTriggeredOnInput:M,collectFonts:D,doc:e,maskAttributeFn:b,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:B,blockSelector:s,unblockSelector:o,slimDOMOptions:G,dataURLOptions:C,mirror:aG,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:$,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>g({type:au.Plugin,data:{plugin:e.name,payload:t}}
23)}))||[]},{});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(iQ("DOMContentLoaded",()=>{g({type:au.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(iQ("load",()=>{g({type:au.Load,data:{}}),"load"===N&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,m=void 0}}catch(e){console.warn(e)}}function aJ(e){return e>0x2540be3ff?e:1e3*e}function aX(e){return e>0x2540be3ff?e/1e3:e}function aV(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:au.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eo.normalize)(t,10,1e3)}}),"console"===t.category)))}function aK(e){return e.closest("button,a")||e}function aQ(e){let t=aZ(e);return t&&t instanceof Element?aK(t):t}function aZ(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}aY.mirror=aG,aY.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(A=N||(N={}))[A.NotStarted=0]="NotStarted",A[A.Running=1]="Running",A[A.Stopped=2]="Stopped";let a0=new Set([ad.Mutation,ad.StyleSheetRule,ad.StyleDeclaration,ad.AdoptedStyleSheet,ad.CanvasMutation,ad.Selection,ad.MediaInteraction]);class a1{constructor(e,t,r=aV){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=a3()},y||(y=[],(0,K.fill)(io,"open",function(e){return function(...t){if(y)try{y.forEach(e=>e())}catch{}return e.apply(io,t)}})),y.push(e),()=>{let t=y?y.indexOf(e):-1;t>-1&&y.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,i;if(r=t,n=this._ignoreSelector,!a2.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)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let a={timestamp:aX(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=aX(e)}registerScroll(e=Date.now()){this._lastScroll=aX(e)}registerClick(e){let t=aK(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=a3();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:i,clickBreadcrumb:a}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:io.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:io.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=t8(()=>this._checkClicks(),1e3)}}let a2=["A","BUTTON","INPUT"];function a3(){return Date.now()/1e3}function a5(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var a4=((k=a4||{})[k.Document=0]="Document",k[k.DocumentType=1]="DocumentType",k[k.Element=2]="Element",k[k.Text=3]="Text",k[k.CDATA=4]="CDATA",k[k.Comment=5]="Comment",k);let a8=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function a6(e,t){let r=aY.mirror.getId(e),n=r&&aY.mirror.getNode(r),i=n&&aY.mirror.getMeta(n),a=i&&i.type===a4.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>
23e.type===a4.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(a8.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}let a9={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:st(a),end:st(i),name:n,data:{size:c,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,a=st(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:st(h),end:st(a),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:p}}}};function a7(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function se(e){let t=a9[e.entryType];return t?t(e):null}function st(e){return(((0,ev.browserPerformanceTimeOrigin)()||io.performance.timeOrigin)+e)/1e3}function sr(e){let t=e.entries[e.entries.length-1];return sa(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function sn(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=aY.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return sa(e,"cumulative-layout-shift",r,t)}function si(e){let t=e.entries[e.entries.length-1];return sa(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function sa(e,t,r,n){let i=e.value,a=e.rating,s=st(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>aY.mirror.getId(e)):void 0,attributions:n}}}let ss="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,so=["log","warn","error"],sl="[Replay] ";function sc(e,t="info"){tg({category:"console",data:{logger:"replay"},level:t,message:`${sl}${e}`},{level:t})}let su=(E=!1,b=!1,T={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{E=!!e.captureExceptions,b=!!e.traceInternals}},ss?(so.forEach(e=>{T[e]=(...t)=>{j.debug[e](sl,...t),b&&sc(t.join(""),tm(e))}}),T.exception=(e,...t)=>{t.length&&T.error&&T.error(...t),j.debug.error(sl,e),E?(0,B.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):b&&sc(e,"error")},T.infoTick=(...e)=>{j.debug.log(sl,...e),b&&setTimeout(()=>sc(e[0]),0)}
23):so.forEach(e=>{T[e]=()=>void 0}),T);class sd extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sp{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 sd;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=this.events.map(e=>e.timestamp).sort()[0];return e?aJ(e):null}}class sh{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():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){ss&&su.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",a),!t.success){ss&&su.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class sf{constructor(e){this._worker=new sh(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=aJ(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 sd):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{ss&&su.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 sm{constructor(e){this._fallback=new sp,this._compression=new sf(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){ss&&su.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){ss&&su.exception(e,"Failed to add events when switching buffers.")}}}function sg(){try{return"sessionStorage"in io&&!!io.sessionStorage}catch{return!1}}function s_(e){return void 0!==e&&Math.random()<e}function sy(e){if(sg())try{io.sessionStorage.setItem(il,JSON.stringify(e))}catch{}}function sv(e){let t=Date.now(),r=e.id||(0,G.uuid4)(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:s,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function sS({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=sv({sampled:s_(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&sy(i),i}function sE(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}
23function sb(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return sE(e.started,t,n)||sE(e.lastActivity,r,n)}function sT(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!sb(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function sw({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!sg())return null;try{let e=io.sessionStorage.getItem(il);if(!e)return null;let t=JSON.parse(e);return ss&&su.infoTick("Loading existing session"),sv(t)}catch{return null}}();return i?sT(i,{sessionIdleExpire:e,maxReplayDuration:t})?(ss&&su.infoTick("Session in sessionStorage is expired, creating new one..."),sS(n,{previousSessionId:i.id})):i:(ss&&su.infoTick("Creating new session"),sS(n,{previousSessionId:r}))}function sR(e,t,r){return!!sO(e,t)&&(sI(e,t,r),!0)}async function sI(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let a=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===au.Custom)return t(e)}catch(e){return ss&&su.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,a.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(a){let t=a&&a instanceof sd,r=(0,$.getClient)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function sO(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=aJ(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(ss&&su.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function sC(e){return"transaction"===e.type}function sP(e){return"feedback"===e.type}function sA(e){return!!e.category}function sk(){let e=(0,$.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eg.getActiveSpan)();if(t){let e=(0,ea.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function sx(e,t){return t.map(({type:t,start:r,end:n,name:i,data:a})=>{let s=e.throttledAddEvent({type:au.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof s?Promise.resolve(null):s})}function sN(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,i,a,s;let o,l,c;if(ss&&e.getOptions()._experiments.traceInternals)return!1;return r=(0,$.getClient)(),o=r?.getDsn(),l=r?.getOptions().tunnel,n=t,i=o,!(!(c=tv(n))||ty(c))&&!!i&&c.host.includes(i.host)&&/(^|&|\?)sentry_key=/.test(c.search)||(a=t,!!(s=l)&&is(a)===is(s))}(e,t.name)&&e.addUpdate(()=>(sx(e,[t]),!0))}function sM(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=nC(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function sD(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function sL(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 sU(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:s,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:s,request:o,response:l}}}function sB(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function s$(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:i,warnings:a}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,a=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return a?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,a?.length&&(n._meta={warnings:a}),n}function sj(e,t){return Object.entries(e).reduce((r,[n,i])=>{let a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=i),r},{})}function sF(e,t){let r=function(e,t=io.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(io.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,Y.stringMatchesSomePattern)(r,t)}async function sW(e,t,r){try{let n=await sH(e,t,r),i=sU("resource.fetch",n);sN(r.replay,i)}catch(e){ss&&su.exception(e,"Failed to capture fetch breadcrumb")}}async function sH(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=t,{url:s,method:o,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=sF(s,r.networkDetailAllowUrls)&&!sF(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,a;let s=r?(i=r,a=t,1===i.length&&"string"!=typeof i[0]?sY(i[0],a):2===i.length?sY(i[1],a):{}):{};if(!e)return s$(s,n,void 0);let[o,l]=nP(nA(r),su),c=s$(s,n,o);return l?sL(c,l):c}(r,t.input,c):sB(c),response:await sz(d,r,t.response,u)}}async function sz(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return sB(i);let a=n?sG(n.headers,r):{};if(!n||!t&&void 0!==i)return s$(a,i,void 0);let[s,o]=await sq(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let a=e?.length&&void 0===r?sM(e):r;if(!n)return sB(a);if(t)return s$(i,a,e);return s$(i,a,void 0)}catch(e){return ss&&su.exception(e,"Failed to serialize response body"),s$(i,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return o?sL(l,o):l}async function sq(e){let t=function(e){try{return e.clone()}catch(e){ss&&su.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)=>
23{let n=t8(()=>t(Error("Timeout while trying to read response body")),500);sJ(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return ss&&su.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return ss&&su.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function sG(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function sY(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?sG(r,t):Array.isArray(r)?{}:sj(r,t):{}}async function sJ(e){return await e.text()}async function sX(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:s,xhr:o}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!sF(l,r.networkDetailAllowUrls)||sF(l,r.networkDetailDenyUrls)){let e=sB(d);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:e,response:sB(p)}}let h=o[tI],f=h?sj(h.request_headers,r.networkRequestHeaders):{},m=sj(nk(o),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?nP(s,su):[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 ss&&su.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return ss&&su.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return ss&&su.warn("Failed to get xhr response body",...t),[void 0]}(o):[void 0],S=s$(f,d,g),E=s$(m,p,y);return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:_?sL(S,_):S,response:v?sL(E,v):E}}(e,t,r),i=sU("resource.xhr",n);sN(r.replay,i)}catch(e){ss&&su.exception(e,"Failed to capture xhr breadcrumb")}}async function sV(e){try{return Promise.all(sx(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(io.performance.memory)]))}catch{return[]}}let sK=D.GLOBAL_OBJ.navigator;async function sQ({client:e,scope:t,replayId:r,event:n}){let i={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,i);let a=await (0,ex.prepareEvent)(e.getOptions(),n,i,t,e,(0,$.getIsolationScope)());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let s=e.getSdkMetadata(),{name:o,version:l,settings:c}=s?.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0",settings:c},a}async function sZ({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){var s;let o,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
24`;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:c,errorIds:u,traceIds:d,initialTimestamp:p}=n,h=(0,$.getClient)(),f=(0,$.getCurrentScope)(),m=h?.getTransport(),g=h?.getDsn();if(!h||!m||!g||!a.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:a.sampled},y=await sQ({scope:f,client:h,replayId:t,event:_});if(!y)return h.recordDroppedEvent("event_processor","replay"),ss&&su.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;let v=(s=h.getOptions().tunnel,el(eh(y,ep(y),s,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(v)}catch(t){let e=Error(ic);try{e.cause=t}catch{}throw e}if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new s0(o.statusCode);let S=eP({},o);if(eC(S,"replay"))throw new s1(S);return o}
24class s0 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class s1 extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function s2(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await sZ(e),!0}catch(r){if(r instanceof s0||r instanceof s1)throw r;if((0,B.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${ic} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{t8(async()=>{try{await s2(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let s3="__THROTTLED";class s5{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,i,a,s=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e()}function c(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function u(){return i&&clearTimeout(i),i=o(l,t),s&&void 0===a&&(a=o(l,s)),n}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==a?l():n},u}(e,t,{...r,setTimeoutImpl:t8})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let i,a=Math.floor(Date.now()/1e3);if(i=a-5,t.forEach((e,r)=>{r<i&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":s3}r=!1;let s=t.get(a)||0;return t.set(a,s+1),e(...n)}}((e,t)=>sO(this,e)?sI(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new a1(this,i)),ss){const t=e._experiments;su.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===io.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=a5({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=a5({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:i,altKey:a,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||i||a,c=1===s.length;if(!l&&c)return null;let u=(0,e4.htmlTreeAsString)(o,{maxStringLength:200})||"<unknown>",d=a6(o,u);return a5({category:"ui.keyDown",message:u,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:s}})}(t);r&&aV(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){ss&&su.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){ss&&su.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",ss&&su.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){ss&&su.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){ss&&su.log("Buffering is in progress, call `flush()` to save the replay");return}ss&&su.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=sw({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
24startBuffering(){if(this._isEnabled){ss&&su.log("Buffering is in progress, call `flush()` to save the replay");return}ss&&su.infoTick("Starting replay in buffer mode");let e=sw({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=aY({...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()){ss&&su.warn("Received replay event after session expired.");return}let i=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(a0.has(n)&&e.registerMutation(t.timestamp),n===ad.Scroll&&e.registerScroll(t.timestamp),t.data.source===ad.MouseInteraction){let{type:r,id:n}=t.data,i=aY.mirror.getNode(n);i instanceof HTMLElement&&r===ap.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!sR(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;sR(e,(t=e.getOptions(),{type:au.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,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(ss&&su.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&sy(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(sK?.userAgent??"")||/Macintosh/i.test(sK?.userAgent??"")&&sK?.maxTouchPoints&&sK?.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{ss&&su.log(`Stopping Replay${t?` triggered by ${t}`:""}`),sk(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(sg())try{io.sessionStorage.removeItem(il)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),ss&&su.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),ss&&su.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();ss&&su.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}
24checkAndHandleExpiredSession(){return this._lastActivity&&sE(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${io.location.pathname}${io.location.hash}${io.location.search}`,t=`${io.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===s3){let e=a5({category:"replay.throttled"});this.addUpdate(()=>!sR(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,eg.getActiveSpan)(),t=e&&(0,eg.getRootSpan)(e),r=(t&&(0,eg.spanToJSON)(t).data||{})[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,eg.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(['
vendor: 10,329 bytes, line 24
24var 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});
24']),URL.createObjectURL(e)}return""}();if(!t)return;ss&&su.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new sm(r)}catch(e){ss&&su.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return ss&&su.log("Using simple buffer"),new sp}({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=sw({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!sT(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{io.document.addEventListener("visibilitychange",this._handleVisibilityChange),io.addEventListener("blur",this._handleWindowBlur),io.addEventListener("focus",this._handleWindowFocus),io.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,$.getClient)();tT(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?aQ(e.event):aZ(e.event),t=(0,e4.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return a5({category:`ui.${e.name}`,...a6(t,r)})}(t);if(!i)return;let a="click"===t.name,s=a?t.event:void 0;a&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&(r=e.clickDetector,n=aQ(t.event),r.handleClick(i,n)),aV(e,i)}),tP(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(()=>(sx(e,[r]),!1)))}),(t=(0,$.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!sA(t))return;let n=(r=t,!sA(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 a5(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,eo.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 a5({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):a5(r));n&&aV(e,n)})(e,t));let n=(0,$.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,a,s;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=sM(n),a=r.getResponseHeader("content-length")?sD(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sM(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),sX(t,r,e)),a=t,"fetch"===a.category&&(s=r,s?.response)&&(!function(e,t){let{input:r,response:n}=t,i=sM(r?nA(r):void 0),a=n?sD(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),sW(t,r,e))}
24catch(e){ss&&su.exception(e,"Error when enriching network breadcrumb")}})(o,e,t))}catch{}let i=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!sC(t)&&!sP(t))return t;if(!e.checkAndHandleExpiredSession())return sk(),t;if(sP(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:au.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 ss&&su.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==ic&&!!t.exception&&!t.type&&s_(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&&sy(t)}return t},{id:"Replay"});(0,B.addEventProcessor)(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,i=n.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&aV(r,a5({category:"replay.hydrate-error",data:{url:(0,e4.getLocationHref)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!sC(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sC(t)){var i,a;let r;return void(i=e,a=t,r=i.getContext(),a.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(a.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||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&t8(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(r6(e,r))}),n.push(r4(a7(sr,e)),r5(a7(sn,e)),r8(a7(si,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{io.document.removeEventListener("visibilitychange",this._handleVisibilityChange),io.removeEventListener("blur",this._handleWindowBlur),io.removeEventListener("focus",this._handleWindowFocus),io.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||sb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){ss&&su.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:au.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(se).filter(
24Boolean).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(sx(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){ss&&su.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await sV(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await s2({replayId:e,recordingData:i,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,$.getClient)();e&&e.recordDroppedEvent(t instanceof s1?"ratelimit_backoff":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){ss&&su.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,i=r>this._options.maxReplayDuration+5e3;if(n||i){ss&&su.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&!a.hasCheckout&&ss&&su.log("Flushing initial segment without checkout.");let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sy(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,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){let e=a5({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function s4(e,t){return[...e,...t].join(",")}let s8='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',s6=["content-length","content-type","accept"],s9=!1;function s7(e){return[...s6,...e.map(e=>e.toLowerCase())]}globalThis._sentryRouteManifest='{"dynamicRoutes":[{"path":"/go/:channel/:token","regex":"^/go/([^/]+)/([^/]+)$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/auth","regex":"^/go/([^/]+)/([^/]+)/auth$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/checkout","regex":"^/go/([^/]+)/([^/]+)/checkout$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/gear","regex":"^/go/([^/]+)/([^/]+)/gear$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/kid","regex":"^/go/([^/]+)/([^/]+)/kid$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/outcomes","regex":"^/go/([^/]+)/([^/]+)/outcomes$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/pain","regex":"^/go/([^/]+)/([^/]+)/pain$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/go/:channel/:token/trial","regex":"^/go/([^/]+)/([^/]+)/trial$","paramNames":["channel","token"],"hasOptionalPrefix":false},{"path":"/ko/links/:hub*?","regex":"^/ko/links(?:/(.*))?$","paramNames":["hub"],"hasOptionalPrefix":false},{"path":"/p/:token","regex":"^/p/([^/]+)$","paramNames":["token"],"hasOptionalPrefix":false},{"path":"/report/:token","regex":"^/report/([^/]+)$","paramNames":["token"],"hasOptionalPrefix":false}],"staticRoutes":[{"path":"/"},{"path":"/privacy"},{"path":"/terms"},{"path":"/app"},{"path":"/app/billing/plans"},{"path":"/app/refund"},{"path":"/auth/reset-password"},{"path":"/auth/update-password"},{"path":"/desktop"},{"path":"/desktop/setup"},{"path":"/guide"},{"path":"/guide/cancel"},{"path":"/guide/contact"},{"path":"/guide/curriculum"},{"path":"/guide/errors"},{"path":"/guide/pricing"},{"path":"/guide/refund"},{"path":"/guide/safety"},{"path":"/guide/setup"},{"path":"/guide/setup/windows-trust"},{"path":"/ko"},{"path":"/ko/auth/reset-password"},{"path":"/ko/auth/update-password"},{"path":"/ko/login"},{"path":"/ko/signup"},{"path":"/league/invite"},{"path":"/login"},{"path":"/onboarding"},{"path":"/onboarding/adventure"},{"path":"/onboarding/adventure/intro"},{"path":"/onboarding/auth"},{"path":"/onboarding/gear"},{"path":"/onboarding/kid"},{"path":"/onboarding/outcomes"},{"path":"/onboarding/pain-points"},{"path":"/onboarding/start"},{"path":"/onboarding/trial"}
24,{"path":"/onboarding/trial/custom-checkout"},{"path":"/onboarding/trial/token-success"},{"path":"/qr"},{"path":"/signup"}],"isrRoutes":["/ko/links/:hub*?"]}',globalThis._sentryNextJsVersion="16.2.5",globalThis._sentryRewritesTunnelPath="/monitoring";let oe="/report"===(x=window.location.pathname)||x.startsWith("/report/");function ot(e){"function"==typeof e.startSessionRecording&&e.startSessionRecording()}oe||function(e){let t,r,n,i,a,s,o;ii&&(0,j.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`.")}),ii=!0,("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){e8.document&&function(e){let t=nQ(e)||e,r=ir.get(t);if(void 0!==r)return r;let n=nK();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return ir.set(t,!1),!1;let i=n.isrRoutes.includes(t);return ir.set(t,i),i}(e8.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=e8.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let l={environment:((t=M.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(n=t9(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(function(e={}){let t=((e={})=>{let t,r,n,i={name:void 0,source:void 0},a=e8.document,{enableInp:s,enableElementTiming:o,enableLongTask:l,enableLongAnimationFrame:u,_experiments:{enableInteractions:h,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:m},beforeStartSpan:g,idleTimeout:_,finalTimeout:y,childSpanTimeout:v,markBackgroundSpan:S,traceFetch:E,traceXHR:b,trackFetchStreamPerformance:T,shouldCreateSpanForRequest:w,enableHTTPTimings:R,ignoreResourceSpans:I,ignorePerformanceApiSpans:O,instrumentPageLoad:C,instrumentNavigation:P,detectRedirects:A,linkPreviousTrace:k,consistentTraceSampling:x,enableReportPageLoaded:N,onRequestSpanStart:M,onRequestSpanEnd:L}={...nB,...e};function U(e,r,s=!0){let o="pageload"===r.op,l=r.name,c=g?g(r):r,u=c.attributes||{};if(l!==c.name&&(u[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",c.attributes=u),!s){let e=(0,ev.dateTimestampInSeconds)();rh({...c,startTime:e}).end(e);return}i.name=c.name,i.source=u[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let h=rE(c,{idleTimeout:_,finalTimeout:y,childSpanTimeout:v,disableAutoFinish:o,beforeSpanEnd:r=>{t?.(),function(e,t){var r,n;let i=nc(),a=(0,ev.browserPerformanceTimeOrigin)();if(!i?.getEntries||!a)return;let s=nu(a),o=i.getEntries(),{op:l,start_timestamp:c}=(0,eg.spanToJSON)(e);o.slice(nS).forEach(r=>{let n=nu(r.startTime),i=nu(Math.max(0,r.duration));if("navigation"!==l||!c||!(s+n<c))switch(r.entryType){case"navigation":var a,o,u,d,p,h;let f,m,g;a=e,o=r,u=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{nb(a,o,e,u)}),nb(a,o,"secureConnection",u,"TLS/SSL"),nb(a,o,"fetch",u,"cache"),nb(a,o,"domainLookup",u,"DNS"),d=a,p=o,f=(h=u)+nu(p.requestStart),m=h+nu(p.responseEnd),g=h+nu(p.responseStart),p.responseEnd&&(no(d,f,m,{op:"browser.request",name:p.name,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),no(d,g,m,{op:"browser.response",name:p.name,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,Y.stringMatchesSomePattern)(t.name,a))return;let s=rR(!1),o=i+Math.max(r,nu(s?s.requestStart:0)),l=i+r,c=l+n,u={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};o!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=o),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,e_.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,e_.isPrimitive)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(u,t),o<=c&&no(e,o,c,{name:t.name,op:t.entryType,attributes:u})}(e,r,n,i,s,t.ignorePerformanceApiSpans);let a=rx(),o=r.startTime<a.firstHiddenTime;"first-paint"===r.name&&o&&(nE.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&o&&(nE.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,i,a,s){var o,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(c))return;let u={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=tS(r);d.protocol&&(u["url.scheme"]=d.protocol.split(":").pop()),d.host&&(u["server.address"]=d.host),u["url.same_origin"]=r.includes(tb.location.origin),o=t,l=u,[["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"]].forEac
24h(([e,t])=>{let r=o[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...u,...nv(t)},h=a+n;no(e,h,h+i,{name:r.replace(tb.location.origin,""),op:c,attributes:p})}(e,r,r.name,n,i,s,t.ignoreResourceSpans)}}),nS=Math.max(o.length-1,0),function(e){let t=tb.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),ns(r.rtt)&&(nE["connection.rtt"]={value:r.rtt,unit:"millisecond"})),ns(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ns(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=rR(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(nE),t.recordClsOnPageloadSpan||delete nE.cls,t.recordLcpOnPageloadSpan||delete nE.lcp,Object.entries(nE).forEach(([e,t])=>{!function(e,t,r,n=(0,eg.getActiveSpan)()){let i=n&&(0,eg.getRootSpan)(n);i&&(F.DEBUG_BUILD&&j.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",rI()),r=e,n=t,d&&n.recordLcpOnPageloadSpan&&(d.element&&r.setAttribute("lcp.element",(0,e4.htmlTreeAsString)(d.element)),d.id&&r.setAttribute("lcp.id",d.id),d.url&&r.setAttribute("lcp.url",d.url.trim().slice(0,200)),null!=d.loadTime&&r.setAttribute("lcp.loadTime",d.loadTime),null!=d.renderTime&&r.setAttribute("lcp.renderTime",d.renderTime),r.setAttribute("lcp.size",d.size)),p?.sources&&n.recordClsOnPageloadSpan&&p.sources.forEach((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,e4.htmlTreeAsString)(e.node)))),d=void 0,p=void 0,nE={}}(r,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!m,ignoreResourceSpans:I,ignorePerformanceApiSpans:O}),nH(e,void 0);let i=(0,$.getCurrentScope)(),a=i.getPropagationContext();i.setPropagationContext({...a,traceId:h.spanContext().traceId,sampled:(0,eg.spanIsSampled)(h),dsc:(0,ea.getDynamicSamplingContextFromSpan)(r)}),o&&(n=void 0)},trimIdleSpanEndTimestamp:!N});function S(){a&&["interactive","complete"].includes(a.readyState)&&e.emit("idleSpanEnableAutoFinish",h)}o&&N&&(n=h),nH(e,h),o&&!N&&a&&(a.addEventListener("readystatechange",()=>{S()}),S())}return{name:"BrowserTracing",setup(e){function i(){let e=(0,eg.getActiveSpan)(),t=e&&(0,eg.getRootSpan)(e);if(t){let e="internal_error";F.DEBUG_BUILD&&j.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:rl.SPAN_STATUS_ERROR,message:e})}}if(rb||(i.tag="sentry_tracingErrorCallback",rb=!0,tU(i),tj(i)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=nc();if(n&&(0,ev.browserPerformanceTimeOrigin)()){n.mark&&tb.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!nd("largest-contentful-paint"))return;let n=r4(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);np(e,(e,i)=>{var a,s,o,l;let c,u,d,p,h;a=r,s=t,o=i,l=e,t3&&j.debug.log(`Sending LCP span (${a})`),c=nu(((0,ev.browserPerformanceTimeOrigin)()||0)+(s?.startTime||0)),u=(0,$.getCurrentScope)().getScopeData().transactionName,d=s?(0,e4.htmlTreeAsString)(s.element):"Largest contentful paint",p={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},s&&(s.element&&(p["lcp.element"]=(0,e4.htmlTreeAsString)(s.element)),s.id&&(p["lcp.id"]=s.id),s.url&&(p["lcp.url"]=s.url),null!=s.loadTime&&(p["lcp.loadTime"]=s.loadTime),null!=s.renderTime&&(p["lcp.renderTime"]=s.renderTime),null!=s.size&&(p["lcp.size"]=s.size)),(h=nl({name:d,transaction:u,attributes:p,startTime:c}))&&(h.addEvent("lcp",{[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:a}),h.end(c)),n()})}(r):r4(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nE.lcp={value:e.value,unit:"millisecond"},d=t)},!0),a=nn("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(nE.ttfb={value:e.value,unit:"millisecond"})},nt,c),s=e?function(e){let t,r=0;if(!nd("layout-shift"))return;let n=r5(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);np(e,(e,i)=>{var a,s,o,l;
24let c,u,d,p,h;a=r,s=t,o=i,l=e,t3&&j.debug.log(`Sending CLS span (${a})`),c=s?nu(((0,ev.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,ev.timestampInSeconds)(),u=(0,$.getCurrentScope)().getScopeData().transactionName,d=s?(0,e4.htmlTreeAsString)(s.sources[0]?.node):"Layout shift",p={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[eN.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},s?.sources&&s.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=(0,e4.htmlTreeAsString)(e.node)}),(h=nl({name:d,transaction:u,attributes:p,startTime:c}))&&(h.addEvent("cls",{[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[eN.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:a}),h.end(c)),n()})}(r):r5(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nE.cls={value:e.value,unit:""},p=t)},!0);return()=>{i?.(),a(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:m||!1,client:e}),s&&function(){if(nc()&&(0,ev.browserPerformanceTimeOrigin)()){let e=r8(n_);()=>{e()}}}(),o&&nc()&&(0,ev.browserPerformanceTimeOrigin)()&&r6("element",nT),u&&D.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,eg.getActiveSpan)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=nu((0,ev.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:i}=(0,eg.spanToJSON)(t);if("navigation"===i&&n&&e<n)continue;let a=nu(r.duration),s={[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:o,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=o,s["browser.script.invoker_type"]=l,c&&(s["code.filepath"]=c),u&&(s["code.function"]=u),-1!==d&&(s["browser.script.source_char_position"]=d),no(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):l&&r6("longtask",({entries:e})=>{let t=(0,eg.getActiveSpan)();if(!t)return;let{op:r,start_timestamp:n}=(0,eg.spanToJSON)(t);for(let i of e){let e=nu((0,ev.browserPerformanceTimeOrigin)()+i.startTime),a=nu(i.duration);"navigation"===r&&n&&e<n||no(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),h&&r6("event",({entries:e})=>{let t=(0,eg.getActiveSpan)();
24if(t){for(let r of e)if("click"===r.name){let e=nu((0,ev.browserPerformanceTimeOrigin)()+r.startTime),n=nu(r.duration),i={name:(0,e4.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},a=(0,e4.getComponentName)(r.target);a&&(i.attributes["ui.component_name"]=a),no(t,e,e+n,i)}}}),A&&a){let e=()=>{r=(0,ev.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function g(){let t=e[nW];t&&!(0,eg.spanToJSON)(t).timestamp&&(tk&&j.debug.log(`[Tracing] Finishing current active span with op: ${(0,eg.spanToJSON)(t).op}`),t.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,$.getClient)()!==e)return;if(n?.isRedirect){tk&&j.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,g(),(0,$.getIsolationScope)().setPropagationContext({traceId:(0,rt.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,re.hasSpansEnabled)()?void 0:(0,rt.generateSpanId)()});let i=(0,$.getCurrentScope)();i.setPropagationContext({traceId:(0,rt.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,re.hasSpansEnabled)()?void 0:(0,rt.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),U(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,$.getClient)()!==e)return;g();let n=r.sentryTrace||nF("sentry-trace"),i=r.baggage||nF("baggage"),a=(0,rd.propagationContextFromHeaders)(n,i),s=(0,$.getCurrentScope)();s.setPropagationContext(a),(0,re.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,rt.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:e7()}),U(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{N&&n&&(n.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,a,o,l;let c,u=(0,e4.getLocationHref)();if("off"!==k&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=e8.sessionStorage?.getItem(nw);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,eg.getRootSpan)(e)!==e)return;let t=(0,$.getCurrentScope)().getPropagationContext();i=function(e,t,r){let n=(0,eg.spanToJSON)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[eN.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(tk&&j.debug.log(`Adding previous_trace ${a} link to span ${{op:n.op,...t.spanContext()}}`),t.addLink({context:a,attributes:{[eN.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!nR(a)}`)),i)}(i,e,t),n&&function(e){try{e8.sessionStorage.setItem(nw,JSON.stringify(e))}catch(e){tk&&j.debug.warn("Could not store previous trace in sessionStorage",e)}}(i)});let a=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,$.getCurrentScope)(),r=t.getPropagationContext();if(a&&r.parentSpanId){a=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(nR(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=nR(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[eN.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:i.sampleRate}})}(e,{linkPreviousTrace:k,consistentTraceSampling:x}),e8.location){if(C){let t=(0,ev.browserPerformanceTimeOrigin)();n$(e,{name:e8.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}P&&tP(({to:t,from:n})=>{var i,a;let s,o;if(void 0===n&&u?.indexOf(t)!==-1){u=void 0;return}u=void 0;let l=tv(t),c=e[nW],d=c&&A&&(i=c,a=r,s=(0,eg.spanToJSON)(i),!((o=(0,ev.dateTimestampInSeconds)())-s.start_timestamp>1.5)&&(!a||!(o-a<=1.5)));nj(e,{name:l?.pathname||e8.location.pathname,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:d})})}S&&(e8.document?e8.document.addEventListener("visibilitychange",()=>{let e=(0,eg.getActiveSpan)();if(!e)return;let t=(0,eg.getRootSpan)(e);if(e8.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eg.spanToJSON)(t);tk&&j.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:rl.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):tk&&j.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h&&(t=e,n=_,a=y,o=v,l=i,e8.document&&addEventListener("click",()=>{let e="ui.action.click",r=t[nW];
24if(r&&["navigation","pageload"].includes((0,eg.spanToJSON)(r).op)){tk&&j.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(c&&(c.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),c.end(),c=void 0),!l.name){tk&&j.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}c=rE({name:l.name,op:e,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l.source||"url"}},{idleTimeout:n,finalTimeout:a,childSpanTimeout:o})},{capture:!0})),s&&function(){let e=Object.keys(ng);function t(e){let t=e.target;if(!t)return;let r=(0,e4.htmlTreeAsString)(t),n=Math.round(e.timeStamp);if(nm.set(n,r),nm.size>50){let e=nm.keys().next().value;void 0!==e&&nm.delete(e)}}rT()&&e.forEach(e=>{tb.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,eg.getActiveSpan)(),r=t&&(0,eg.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||nf.has(t))return;let n=e.target?(0,e4.htmlTreeAsString)(e.target):function(e){let t=Math.round(e.startTime),r=nm.get(t);if(!r)for(let e=-5;e<=5;e++){let n=nm.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(nh.length>10){let e=nh.shift();nf.delete(e)}nh.push(t),nf.set(t,{span:r,elementName:n})})};r6("event",r),r6("first-input",r)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:l,onRequestSpanEnd:c}
24={...nL,...t},u="function"==typeof a?a:e=>!0,d=e=>(function(e,t){let r=(0,e4.getLocationHref)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let a=n.origin===i;return t?(0,Y.stringMatchesSomePattern)(n.toString(),t)||a&&(0,Y.stringMatchesSomePattern)(n.pathname,t):a}{let r=!!e.match(/^\/(?!\/)/);return t?(0,Y.stringMatchesSomePattern)(e,t):r}})(e,o),p={},h=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=nD.get(e.span_id);t&&(e.timestamp=t/1e3,nD.delete(e.span_id))}}),e)),i&&(tn(t="fetch-body-resolved",e=>{if(e.response){let t=nM.get(e.response);t&&e.endTimestamp&&nD.set(t,e.endTimestamp)}}),ti(t,()=>tu(tp))),tc(e=>{let t=function(e,t,r,n,i){var a,s,o,l,c,u,d,p,h,f;let m,g;if(!e.fetchData)return;let{method:_,url:y}=e.fetchData,v=(0,re.hasSpansEnabled)()&&t(y);if(e.endTimestamp&&v){let t,r=e.fetchData.__span;if(!r)return;let l=n[r];l&&(function(e,t){if(t.response){(0,rl.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:rl.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(l,e),a=l,s=e,t="object"==typeof(o=i)&&null!==o?o.onRequestSpanEnd:void 0,t?.(a,{headers:s.response?.headers,error:s.error}),delete n[r]);return}let{spanOrigin:S="auto.http.browser",propagateTraceparent:E=!1}="object"==typeof i?i:{spanOrigin:i},b=!!(0,eg.getActiveSpan)(),T=v&&b?rh((l=y,c=_,u=S,{name:(m=tv(l))?`${c} ${function(e){if(ty(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()}(m)}`:c,attributes:(d=l,p=m,h=c,f=u,g={url:d,type:"fetch","http.method":h,[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:f,[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"},p&&(ty(p)||(g["http.url"]=p.href,g["server.address"]=p.host),p.search&&(g["http.query"]=p.search),p.hash&&(g["http.fragment"]=p.hash)),g)})):new rr;if(e.fetchData.__span=T.spanContext().spanId,n[T.spanContext().spanId]=T,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r,n){var i;let a=nI({span:r,propagateTraceparent:n}),s=a["sentry-trace"],o=a.baggage,l=a.traceparent;if(!s)return;let c=t.headers||((0,e_.isRequest)(e)?e.headers:void 0);if(!c)return{...a};if(i=c,"u">typeof Headers&&(0,e_.isInstanceOf)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",s),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),o){let t=e.get("baggage");t?nO(t)||e.set("baggage",`${t},${o}`):e.set("baggage",o)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),n&&l&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=c.find(e=>"baggage"===e[0]&&nO(e[1]));return o&&!t&&e.push(["baggage",o]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],a=r&&(Array.isArray(r)?r.find(e=>nO(e)):nO(r));o&&!a&&i.push(o);let u={...c,"sentry-trace":e??s,baggage:i.length>0?i.join(","):void 0};return n&&l&&!t&&(u.traceparent=l),u}}(t,r,(0,re.hasSpansEnabled)()&&b?T:void 0,E);n&&(e.args[1]=r,r.headers=n)}let w=(0,$.getClient)();if(w){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};w.emit("beforeOutgoingRequestSpan",T,t)}return T}(e,u,d,p,{propagateTraceparent:h,onRequestSpanEnd:c}
24);if(e.response&&e.fetchData.__span&&nM.set(e.response,e.fetchData.__span),t){let r=nx(e.fetchData.url),n=r?tS(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n}),s&&nU(t),l?.(t,{headers:e.headers})}})}n&&tO(e=>{let t=function(e,t,r,n,i,a){let s=e.xhr,o=s?.[tI];if(!s||s.__sentry_own_request__||!o)return;let{url:l,method:c}=o,u=(0,re.hasSpansEnabled)()&&t(l);if(e.endTimestamp&&u){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&void 0!==o.status_code&&((0,rl.setHttpStatus)(r,o.status_code),r.end(),a?.(r,{headers:nN(nk(s)),error:e.error}),delete n[t]);return}let d=nx(l),p=d?tS(d):tS(l),h=tE(l),f=!!(0,eg.getActiveSpan)(),m=u&&f?rh({name:`${c} ${h}`,attributes:{url:l,type:"xhr","http.method":c,"http.url":d,"server.address":p?.host,[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new rr;s.__sentry_xhr_span_id__=m.spanContext().spanId,n[s.__sentry_xhr_span_id__]=m,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:a}=nI({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,a)}(s,(0,re.hasSpansEnabled)()&&f?m:void 0,i);let g=(0,$.getClient)();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}(e,u,d,p,h,c);t&&(s&&nU(t),l?.(t,{headers:nN(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:E,traceXHR:b,trackFetchStreamPerformance:T,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:R,onRequestSpanStart:M,onRequestSpanEnd:L})}}})({...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(e8.document.getElementById("__NEXT_DATA__"))n9.events.on("routeChangeStart",t=>{let r,n,i=tE(t),a=function(e){let t=e8.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,i,a=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),i=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${n}(?:/)?$`));return e.match(a)})}(i);a?(r=a,n="route"):(r=i,n="url"),nj(e,{name:r,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})});else{let t,r,n;S=(t,r)=>{let n=M.default.env._sentryBasePath??n3._sentryBasePath,i=new URL(n&&!t.startsWith(n)?`${n}${t}`:t,e8.location.href).pathname,a=nQ(i),s=a??i;"router-patch"===n0&&(n0="transition-start-hook");let o=n1.current;o?(o.updateName(s),o.setAttributes({"navigation.type":`router.${r}`,[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url"}),n1.current=void 0):nj(e,{name:s,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url","navigation.type":`router.${r}`}})},e8.addEventListener("popstate",()=>{let t=nQ(e8.location.pathname);n1.current?.isRecording()?(n1.current.updateName(t??e8.location.pathname),n1.current.setAttribute(eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t?"route":"url")):n1.current=nj(e,{name:t??e8.location.pathname,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let i=n2?.next?.router??n2?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,n8(e,i,n1),["nd","next"].forEach(t=>{let r=n2[t];r&&(n2[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&n8(e,n,n1),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(e8.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=e8.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{nz&&j.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:a}=e;return r.route=n,r.params=i,a?.pageProps&&(r.sentryTrace=a.pageProps._sentryTraceData,r.baggage=a.pageProps._sentryBaggage),r}(),a=(0,ru.parseBaggageHeader)(i),s=t||e8.location.pathname;a?.["sentry-transaction"]&&"/_error"===s&&(s=(s=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=(0,ev.browserPerformanceTimeOrigin)();n$(e,{name:s,startTime:o?o/1e3:void 0,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}(e);else{let t,r;t=nQ(e8.location.pathname),r=(0,ev.browserPerformanceTimeOrigin)(),n$(e,{name:t??e8.location.pathname,startTime:r?r/1e3:void 0,attributes:{[eN.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eN.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[eN.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url"}})}}(e)}}}()),i=ia._sentryRewriteFramesAssetPrefixPath||"",a=M.default.env._sentryAssetPrefix||ia._sentryAssetPrefix,s=M.default.env._sentryBasePath||ia._sentryBasePath,o="true"===M.default.env._experimentalThirdPartyOriginStackFrames||"true"===ia._experimentalThirdPartyOriginStackFrames,n.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in D.GLOBAL_OBJ&&!!D.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||a){let e,a,s=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?function(e,t){e=ie(e).slice(1),t=ie(t).slice(1);let r=it(e.split("/")),n=it(t.split("/")),i=Math.min(r.length,n.length),a=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){a=e;break}let s=[];for(let e=a;
24e<r.length;e++)s.push("..");return(s=s.concat(n.slice(a))).join("/")}(t,s):(e=s.length>1024?`<truncated>${s.slice(-1024)}`:s,(a=n7.exec(e))?a.slice(1):[])[2]||"";n.filename=`${r}${o}`}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=>i(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:i=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:a,basePath:s,rewriteFramesAssetPrefixPath:i,experimentalThirdPartyOriginStackFrames:o})),n),release:"e38c06242159a89b08d0bae0fae60a42462ae37e",...e};!function(e){let t="/monitoring";if(t&&e.dsn){let r=(0,en.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],a=n[2],s=`${t}?o=${i}&p=${r.projectId}`;a&&(s+=`&r=${a}`),e.tunnel=s,nz&&j.debug.log(`Tunneling events to "${s}"`)}else nz&&j.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(l),U(l,"nextjs",["nextjs","react"]),U(r={...l},"react"),(0,B.setContext)("react",{version:t7.version}),function(e={}){var t;let r,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===e8.window||e8.nw)return!1;let e=e8.chrome||e8.browser;if(!e?.runtime?.id)return!1;let t=(0,e4.getLocationHref)();return!(e8===e8.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>
24t.startsWith(`${e}://`)))}()&&(tk&&(0,j.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),i=null==e.defaultIntegrations?t9():e.defaultIntegrations,a={...e,enabled:!n&&e.enabled,stackParser:(0,Z.stackParserFromStackParserOptions)(e.stackParser||t1),integrations:function(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(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:i}),transport:e.transport||t6};!0===a.debug&&(F.DEBUG_BUILD?j.debug.enable():(0,j.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,$.getCurrentScope)().update(a.initialScope),t=r=new te(a),(0,$.getCurrentScope)().setClient(t),r.init()}(r);let u=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;u.id="NextClient404Filter",(0,B.addEventProcessor)(u);let h=e=>"transaction"===e.type&&e.transaction===nZ?null:e;h.id="IncompleteTransactionFilter",(0,B.addEventProcessor)(h);let f=(e,t)=>{var r;return(r=t?.originalException,(0,e_.isError)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};f.id="NextRedirectErrorFilter",(0,B.addEventProcessor)(f);try{(0,$.getGlobalScope)().setTag("turbopack",!0)}catch{}}({dsn:"https://54b842965068a6ac059bc4400fabeaa3@o4510172453601280.ingest.us.sentry.io/4510230412066816",enabled:!0,sendDefaultPii:!0,integrations:[new class e{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:s,_experiments:o={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:S=[],maskAttributes:E=["title","placeholder","aria-label"],unmask:b=[],block:T=[],unblock:w=[],ignore:R=[],maskFn:I,beforeAddRecordingEvent:O,beforeErrorSampling:C,onError:P}={}){this.name="Replay";const A=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:s4(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:s4(t,[]),blockSelector:s4(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:s4(n,[]),ignoreSelector:s4(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:b,block:T,unblock:w,ignore:R});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:E,maskAllText:l,privacyOptions:A,key:e,value:t,el:r}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:s,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:s7(y),networkResponseHeaders:s7(v),beforeAddRecordingEvent:O,beforeErrorSampling:C,onError:P,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${s8}`:s8,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&rT())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return s9}set _isInitialized(e){s9=e}afterAllSetup(e){rT()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
24startBuffering(){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,i,a,s=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,ek.parseSampleRate)(r.replaysSessionSampleRate),a=(0,ek.parseSampleRate)(r.replaysOnErrorSampleRate),null==i&&null==a&&(0,j.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n);this._replay=new s5({options:s,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}({maskAllText:!0,blockAllMedia:!0})],enableLogs:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,ignoreErrors:["Java object is gone",/window\.webkit\.messageHandlers/],environment:M.default.env.NEXT_PUBLIC_VERCEL_ENV||M.default.env.ENVIRONMENT||"development"});let or="phc_npGWVa040qteWWgeqrsP1dUGX8NWbFhOkQAsNF3ikW6";oe||e.A(467287).then(async({default:t})=>{try{let t=window;t.__ph_exception_autocapture_loaded__||(await e.A(748947).catch(()=>void 0),t.__ph_exception_autocapture_loaded__=!0)}catch{}let r=(()=>{try{if(RegExp(`(?:^|;\\s*)ph_${or}_posthog=`).test(document.cookie))return;let e=document.cookie.match(/(?:^|;\s*)ph-distinct-id=([^;
24]+)/);if(!e)return;let t=decodeURIComponent(e[1]);return/^[A-Za-z0-9_:.-]{1,128}$/.test(t)?t:void 0}catch{return}})();t.init(or,{api_host:"/ingest",ui_host:"https://us.posthog.com",...r?{bootstrap:{distinctID:r}}:{},capture_exceptions:!0,defaults:"2025-05-24",autocapture:{dom_event_allowlist:["click"],element_allowlist:["button","a","input"],css_selector_allowlist:["button","a[href]",'input[type="submit"]','input[type="button"]','[role="button"]']},capture_dead_clicks:!0,capture_pageview:"history_change",__add_tracing_headers:[window.location.host],advanced_disable_flags:!1,debug:"true"===M.default.env.NEXT_PUBLIC_POSTHOG_DEBUG,disable_session_recording:!1,capture_performance:!1,person_profiles:"always",enable_recording_console_log:!0,cross_subdomain_cookie:!1,disable_surveys:!0,disable_web_experiments:!0}),t.onFeatureFlags(e=>{try{ot(t)}catch{}});try{ot(t)}catch{}}),e.s(["onRouterTransitionStart",0,function(e,t){S&&S(e,t)}],427075)}]);
25
26//# debugId=fcd25a1e-2f9b-f42a-41e1-aa3c0f65e61f
27//# sourceMappingURL=0ugmbtg279t~u.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.