imposium-js-sdk 3.5.6 → 3.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/.prettierignore +13 -0
  2. package/CODESTEWARDS.md +12 -0
  3. package/README.md +14 -15
  4. package/coverage/base.css +224 -0
  5. package/coverage/block-navigation.js +87 -0
  6. package/coverage/cobertura-coverage.xml +1574 -0
  7. package/coverage/coverage-final.json +13 -0
  8. package/coverage/coverage-summary.json +14 -0
  9. package/coverage/favicon.png +0 -0
  10. package/coverage/index.html +176 -0
  11. package/coverage/junit.xml +355 -0
  12. package/coverage/lcov-report/base.css +224 -0
  13. package/coverage/lcov-report/block-navigation.js +87 -0
  14. package/coverage/lcov-report/favicon.png +0 -0
  15. package/coverage/lcov-report/index.html +176 -0
  16. package/coverage/lcov-report/prettify.css +1 -0
  17. package/coverage/lcov-report/prettify.js +2 -0
  18. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  19. package/coverage/lcov-report/sorter.js +210 -0
  20. package/coverage/lcov-report/src/Entry.ts.html +205 -0
  21. package/coverage/lcov-report/src/client/Client.ts.html +1468 -0
  22. package/coverage/lcov-report/src/client/DirectDeliveryPipe.ts.html +658 -0
  23. package/coverage/lcov-report/src/client/http/API.ts.html +526 -0
  24. package/coverage/lcov-report/src/client/http/index.html +116 -0
  25. package/coverage/lcov-report/src/client/index.html +131 -0
  26. package/coverage/lcov-report/src/index.html +116 -0
  27. package/coverage/lcov-report/src/scaffolding/ExceptionPipe.ts.html +430 -0
  28. package/coverage/lcov-report/src/scaffolding/Exceptions.ts.html +616 -0
  29. package/coverage/lcov-report/src/scaffolding/GoogleAnalytics.ts.html +424 -0
  30. package/coverage/lcov-report/src/scaffolding/Helpers.ts.html +412 -0
  31. package/coverage/lcov-report/src/scaffolding/Version.ts.html +118 -0
  32. package/coverage/lcov-report/src/scaffolding/index.html +176 -0
  33. package/coverage/lcov-report/src/video/FallbackPlayer.ts.html +133 -0
  34. package/coverage/lcov-report/src/video/Player.ts.html +1663 -0
  35. package/coverage/lcov-report/src/video/VideoPlayer.ts.html +679 -0
  36. package/coverage/lcov-report/src/video/index.html +146 -0
  37. package/coverage/lcov.info +1426 -0
  38. package/coverage/prettify.css +1 -0
  39. package/coverage/prettify.js +2 -0
  40. package/coverage/sort-arrow-sprite.png +0 -0
  41. package/coverage/sorter.js +210 -0
  42. package/coverage/src/Entry.ts.html +205 -0
  43. package/coverage/src/client/Client.ts.html +1468 -0
  44. package/coverage/src/client/DirectDeliveryPipe.ts.html +658 -0
  45. package/coverage/src/client/http/API.ts.html +526 -0
  46. package/coverage/src/client/http/index.html +116 -0
  47. package/coverage/src/client/index.html +131 -0
  48. package/coverage/src/index.html +116 -0
  49. package/coverage/src/scaffolding/ExceptionPipe.ts.html +430 -0
  50. package/coverage/src/scaffolding/Exceptions.ts.html +616 -0
  51. package/coverage/src/scaffolding/GoogleAnalytics.ts.html +424 -0
  52. package/coverage/src/scaffolding/Helpers.ts.html +412 -0
  53. package/coverage/src/scaffolding/Version.ts.html +118 -0
  54. package/coverage/src/scaffolding/index.html +176 -0
  55. package/coverage/src/video/FallbackPlayer.ts.html +133 -0
  56. package/coverage/src/video/Player.ts.html +1663 -0
  57. package/coverage/src/video/VideoPlayer.ts.html +679 -0
  58. package/coverage/src/video/index.html +146 -0
  59. package/eslint-report.xml +1 -0
  60. package/examples/web/.eslintrc.json +10 -14
  61. package/lib/imposium.js +18815 -61068
  62. package/lib/imposium.js.map +1 -1
  63. package/lib/imposium.min.js +1 -1
  64. package/lib/imposium.min.js.LICENSE.txt +15 -2
  65. package/lib/imposium.min.js.map +1 -1
  66. package/package.json +40 -11
  67. package/tsconfig.eslint.json +8 -0
  68. package/vitest.config.ts +37 -0
  69. package/.eslintrc.js +0 -168
  70. package/CODEOWNERS +0 -1
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see imposium.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Imposium",[],t):"object"==typeof exports?exports.Imposium=t():e.Imposium=t()}(self,()=>(()=>{var e={34:(e,t,n)=>{"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},44:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(6421),s=r.defineIntegration((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){r.supportsNativeFetch()&&r.addFetchInstrumentationHandler(n=>{if(r.getClient()!==e)return;const{response:o,args:i,error:s,virtualError:c}=n,[u,f]=i;o&&function(e,t,n,o,i){if(l(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,o);let s,c,u,l;p()&&([s,u]=a("Cookie",e),[c,l]=a("Set-Cookie",n));const f=d({url:e.url,method:e.method,status:n.status,requestHeaders:s,responseHeaders:c,requestCookies:u,responseCookies:l,error:i,type:"fetch"});r.captureEvent(f)}}(t,u,o,f,s||c)},!1)}(e,t),function(e,t){"XMLHttpRequest"in r.GLOBAL_OBJ&&o.addXhrInstrumentationHandler(n=>{if(r.getClient()!==e)return;const{error:s,virtualError:a}=n,c=n.xhr,f=c[o.SENTRY_XHR_DATA_KEY];if(!f)return;const{method:g,request_headers:m}=f;try{!function(e,t,n,o,i){if(l(e,t.status,t.responseURL)){let e,s,a;if(p()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(s=u(e))}catch{}try{a=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch{}e=o}const c=d({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:s,error:i,type:"xhr"});r.captureEvent(c)}}(t,c,g,m,s||a)}catch(e){i.DEBUG_BUILD&&r.debug.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function a(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=u(t))}catch{}return[n,r]}function c(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function u(e){return e.split("; ").reduce((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function l(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(o=e.failedRequestTargets,i=n,o.some(e=>"string"==typeof e?i.includes(e):e.test(i)))&&!r.isSentryRequestUrl(n,r.getClient());var o,i}function d(e){const t=r.getClient(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,o=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,s={message:i,exception:{values:[{type:"Error",value:i,stacktrace:o?{frames:o}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:c(e.responseHeaders)}}};return r.addExceptionMechanism(s,{type:`auto.http.client.${e.type}`,handled:!1}),s}function p(){const e=r.getClient();return!!e&&Boolean(e.getOptions().sendDefaultPii)}t.httpClientIntegration=s},67:(e,t,n)=>{"use strict";n(7145)},81:(e,t,n)=>{"use strict";var r=n(9565),o=n(9306),i=n(8551),s=n(6823),a=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(o(n))return i(r(n,e));throw new c(s(e)+" is not iterable")}},99:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class n{constructor(){n.prototype.__init.call(this),n.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.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)}}t.LayoutShiftManager=n},132:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670),s=1e6,a="window"in r.GLOBAL_OBJ&&r.GLOBAL_OBJ.window===r.GLOBAL_OBJ&&"undefined"==typeof importScripts,c=String(0),u=a?"main":"worker",l=i.WINDOW.navigator;let d="",p="",f="",g=l?.userAgent||"",m="";const h=l?.language||l?.languages?.[0]||"",_=l?.userAgentData;var S;function y(e){return function(e){return!("thread_metadata"in e)}(e)?E(e):e}function T(e,t,n,s){if("transaction"!==s.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const a=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&o.DEBUG_BUILD&&r.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(s),u=y(n),l=t||("number"==typeof s.start_timestamp?1e3*s.start_timestamp:1e3*r.timestampInSeconds()),_="number"==typeof s.timestamp?1e3*s.timestamp:1e3*r.timestampInSeconds();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:s.release||"",environment:s.environment||r.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:i.WINDOW.navigator.userAgent},os:{name:d,version:p,build_number:g},device:{locale:h,model:m,manufacturer:g,architecture:f,is_emulator:!1},debug_meta:{images:v(n.resources)},profile:u,transactions:[{name:s.transaction||"",id:s.event_id||r.uuid4(),trace_id:a,active_thread_id:c,relative_start_ns:"0",relative_end_ns:(1e6*(_-l)).toFixed(0)}]}}function E(e){let t,n=0;const o={samples:[],stacks:[],frames:[],thread_metadata:{[c]:{name:u}}},i=e.samples[0];if(!i)return o;const a=i.timestamp,l=r.browserPerformanceTimeOrigin(),d="number"==typeof performance.timeOrigin?performance.timeOrigin:l||0,p=d-(l||d);return e.samples.forEach((r,i)=>{if(void 0===r.stackId)return void 0===t&&(t=n,o.stacks[t]=[],n++),void(o.samples[i]={elapsed_since_start_ns:((r.timestamp+p-a)*s).toFixed(0),stack_id:t,thread_id:c});let u=e.stacks[r.stackId];const l=[];for(;u;){l.push(u.frameId);const t=e.frames[u.frameId];t&&void 0===o.frames[u.frameId]&&(o.frames[u.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),u=void 0===u.parentId?void 0:e.stacks[u.parentId]}const d={elapsed_since_start_ns:((r.timestamp+p-a)*s).toFixed(0),stack_id:n,thread_id:c};o.stacks[n]=l,o.samples[i]=d,n++}),o}function v(e){const t=r.getClient(),n=t?.getOptions(),o=n?.stackParser;return o?r.getDebugImagesForResources(o,e):[]}function b(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(o.DEBUG_BUILD&&r.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0||e>1)||(o.DEBUG_BUILD&&r.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof(S=_)&&null!==S&&"getHighEntropyValues"in S&&_.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(d=e.platform||"",f=e.architecture||"",m=e.model||"",p=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];g=`${t.brand} ${t.version}`}}).catch(e=>{});let I=!1;const A=new Map;t.MAX_PROFILE_DURATION_MS=3e4,t.PROFILER_THREAD_ID_STRING=c,t.PROFILER_THREAD_NAME=u,t.addProfileToGlobalCache=function(e,t){if(A.set(e,t),A.size>30){const e=A.keys().next().value;void 0!==e&&A.delete(e)}},t.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e},t.applyDebugMetadata=v,t.attachProfiledThreadToEvent=function(e){return e?.contexts?.profile&&e.contexts?(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":c,"thread.name":u}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":c,"thread.name":u}}),e):e},t.convertJSSelfProfileToSampledFormat=E,t.createProfileChunkPayload=function(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const o=function(e){const t=[];for(let n=0;n<e.frames.length;n++){const r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}const n=[];for(let t=0;t<e.stacks.length;t++){const r=e.stacks[t];if(!r)continue;const o=[];let i=r;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=o}const o=r.browserPerformanceTimeOrigin(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,s=i-(o||i),a=[];for(let t=0;t<e.samples.length;t++){const n=e.samples[t];if(!n)continue;const r=(i+(n.timestamp-s))/1e3;a[t]={stack_id:n.stackId??0,thread_id:c,timestamp:r}}return{frames:t,stacks:n,samples:a,thread_metadata:{[c]:{name:u}}}}(e),i=t.getOptions(),s=t.getSdkMetadata?.()?.sdk;return{chunk_id:r.uuid4(),client_sdk:{name:s?.name??"sentry.javascript.browser",version:s?.version??"0.0.0"},profiler_id:n||r.uuid4(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:v(e.resources)},profile:o}},t.createProfilePayload=T,t.createProfilingEvent=function(e,t,n,i){return function(e){return e.samples.length<2?(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?T(e,t,n,i):null},t.enrichWithThreadInformation=y,t.findProfiledTransactionsFromEnvelope=function(e){const t=[];return r.forEachEnvelopeItem(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t},t.getActiveProfilesCount=function(){return A.size},t.hasLegacyProfiling=function(e){return void 0!==e.profilesSampleRate},t.isAutomatedPageLoadSpan=function(e){return"pageload"===r.spanToJSON(e).op},t.isValidSampleRate=b,t.shouldProfileSession=function(e){if(I)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if("trace"!==e.profileLifecycle)return!1;const t=e.profileSessionSampleRate;return b(t)?t?Math.random()<=t:(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(o.DEBUG_BUILD&&r.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)},t.shouldProfileSpanLegacy=function(e){if(I)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=r.getClient(),n=t?.getOptions();if(!n)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling disabled, no options found."),!1;const i=n.profilesSampleRate;return b(i)?i?!!(!0===i||Math.random()<i)||(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1):(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(o.DEBUG_BUILD&&r.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)},t.startJSSelfProfile=function(){const e=i.WINDOW.Profiler;if("function"!=typeof e)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){o.DEBUG_BUILD&&(r.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),r.debug.log("[Profiling] Disabling profiling for current user session.")),I=!0}},t.takeProfileFromGlobalCache=function(e){const t=A.get(e);return t&&A.delete(e),t},t.validateProfileChunk=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}},135:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742);t.whenActivated=e=>{r.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},139:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7742),i="__sentry_xhr_v3__";function s(){if(!o.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const o=new Error,s=1e3*r.timestampInSeconds(),a=r.isString(n[0])?n[0].toUpperCase():void 0,c=function(e){if(r.isString(e))return e;try{return e.toString()}catch{}}(n[1]);if(!a||!c)return e.apply(t,n);t[i]={method:a,url:c,request_headers:{}},"POST"===a&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const u=()=>{const e=t[i];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*r.timestampInSeconds(),startTimestamp:s,xhr:t,virtualError:o};r.triggerHandlers("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(u(),e.apply(t,n))}):t.addEventListener("readystatechange",u),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[o,s]=n,a=t[i];return a&&r.isString(o)&&r.isString(s)&&(a.request_headers[o.toLowerCase()]=s),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const o=t[i];if(!o)return e.apply(t,n);void 0!==n[0]&&(o.body=n[0]);const s={startTimestamp:1e3*r.timestampInSeconds(),xhr:t};return r.triggerHandlers("xhr",s),e.apply(t,n)}})}t.SENTRY_XHR_DATA_KEY=i,t.addXhrInstrumentationHandler=function(e){r.addHandler("xhr",e),r.maybeInstrument("xhr",s)},t.instrumentXHR=s},145:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(647);t.getTraceMetaTags=function(e){return Object.entries(e||r.getTraceData()).map(([e,t])=>`<meta name="${e}" content="${t}"/>`).join("\n")}},153:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532);function o(e,t,n,a,c,u,l,d){if(u.length>=n+1)return u;let p=[...u];if(r.isInstanceOf(a[c],Error)){i(l,d);const r=e(t,a[c]),u=p.length;s(r,c,u,d),p=o(e,t,n,a[c],c,[r,...p],r,u)}return Array.isArray(a.errors)&&a.errors.forEach((a,u)=>{if(r.isInstanceOf(a,Error)){i(l,d);const r=e(t,a),f=p.length;s(r,`errors[${u}]`,f,d),p=o(e,t,n,a,c,[r,...p],r,f)}}),p}function i(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function s(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}t.applyAggregateErrorsToEvent=function(e,t,n,i,s,a){if(!s.exception?.values||!a||!r.isInstanceOf(a.originalException,Error))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=o(e,t,i,a.originalException,n,s.exception.values,c,0))}},170:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(6159),i=n(5908),s=n(4815),a=n(7695),c=n(9562),u=n(5208),l=n(8998),d=n(6748);t.wrapTransportError=function(e){e.onerror&&o.fill(e,"onerror",e=>function(t){return function(e){try{a.captureError(e,"transport")}catch{}}(t),e.call(this,t)})},t.wrapTransportOnClose=function(e){e.onclose&&o.fill(e,"onclose",e=>function(...t){return s.cleanupPendingSpansForTransport(this),u.cleanupSessionDataForTransport(this),e.call(this,...t)})},t.wrapTransportOnMessage=function(e){e.onmessage&&o.fill(e,"onmessage",e=>function(t,n){if(d.isJsonRpcRequest(t)){if("initialize"===t.method)try{const e=c.extractSessionDataFromInitializeRequest(t);u.storeSessionDataForTransport(this,e)}catch{}const o=r.getIsolationScope().clone();return r.withIsolationScope(o,()=>{const r=l.buildMcpServerSpanConfig(t,this,n),o=i.startInactiveSpan(r);return s.storeSpanForRequest(this,t.id,o,t.method),i.withActiveSpan(o,()=>e.call(this,t,n))})}return d.isJsonRpcNotification(t)?l.createMcpNotificationSpan(t,this,n,()=>e.call(this,t,n)):e.call(this,t,n)})},t.wrapTransportSend=function(e){e.send&&o.fill(e,"send",e=>async function(...t){const[n]=t;if(d.isJsonRpcNotification(n))return l.createMcpOutgoingNotificationSpan(n,this,()=>e.call(this,...t));if(d.isJsonRpcResponse(n)&&null!==n.id&&void 0!==n.id){if(n.error&&function(e){try{if(e&&"object"==typeof e&&"code"in e&&"message"in e){const t=e;if(-32603===t.code||t.code>=-32099&&t.code<=-32e3){const e=new Error(t.message);e.name=`JsonRpcError_${t.code}`,a.captureError(e,"protocol")}}}catch{}}(n.error),d.isValidContentItem(n.result)&&(n.result.protocolVersion||n.result.serverInfo))try{const e=c.extractSessionDataFromInitializeResponse(n.result);u.updateSessionDataForTransport(this,e)}catch{}s.completeSpanWithResults(this,n.id,n.result)}return e.call(this,...t)})}},197:e=>{"use strict";e.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')},213:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7670),i=n(6750);function s(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function a(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=s(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}function c(e){return s(e.getAllKeys())}function u(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),s(e.transaction)}))}function l(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),s(e.transaction)}))}function d(e){return e(e=>c(e).then(t=>{const n=t[0];if(null!=n)return s(e.get(n)).then(t=>(e.delete(n),s(e.transaction).then(()=>t)))}))}function p(e){let t;function n(){return null==t&&(t=a(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const o=await r.serializeEnvelope(t);await u(n(),o,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const o=await r.serializeEnvelope(t);await l(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await d(n());if(e)return r.parseEnvelope(e)}catch{}}}}t.createStore=a,t.makeBrowserOfflineTransport=function(e=i.makeFetchTransport){return function(e){return t=>{const n=e({...t,createStore:p});return o.WINDOW.addEventListener("online",async e=>{await n.flush()}),n}}(r.makeOfflineTransport(e))},t.push=u,t.shift=d,t.unshift=l},230:(e,t,n)=>{"use strict";var r=n(6518),o=n(9306),i=n(6194),s=n(6223),a=TypeError;r({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=i(this),n=arguments.length<2,r=n?void 0:arguments[1];if(o(e),s(t,function(o,i){n?(n=!1,r=o):r=e(r,o,i,t)}),n)throw new a("Reduce of empty map with no initial value");return r}})},238:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3754),o=n(1811),i=n(9188),s=n(7687),a=n(4583);function c(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.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}t._enhanceEventWithSdkInfo=c,t.createEventEnvelope=function(e,t,n,r){const o=i.getSdkMetadataForEnvelopeHeader(n),s=e.type&&"replay_event"!==e.type?e.type:"event";c(e,n?.sdk);const a=i.createEventEnvelopeHeaders(e,o,r,t);delete e.sdkProcessingMetadata;const u=[{type:s},e];return i.createEnvelope(a,[u])},t.createSessionEnvelope=function(e,t,n,r){const s=i.getSdkMetadataForEnvelopeHeader(n),a={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:o.dsnToString(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return i.createEnvelope(a,[c])},t.createSpanEnvelope=function(e,t){const n=r.getDynamicSamplingContextFromSpan(e[0]),c=t?.getDsn(),u=t?.getOptions().tunnel,l={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!u&&c&&{dsn:o.dsnToString(c)}},{beforeSendSpan:d,ignoreSpans:p}=t?.getOptions()||{},f=p?.length?e.filter(e=>!s.shouldIgnoreSpan(a.spanToJSON(e),p)):e,g=e.length-f.length;g&&t?.recordDroppedEvent("before_send","span",g);const m=d?e=>{const t=a.spanToJSON(e);return d(t)||(a.showSpanDropWarning(),t)}:a.spanToJSON,h=[];for(const e of f){const t=m(e);t&&h.push(i.createSpanEnvelopeItem(t))}return i.createEnvelope(l,h)}},242:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(238),s=n(2751),a=n(5110),c=n(8913),u=n(4583),l=n(6869),d=n(3754),p=n(8346),f=n(8945),g=n(4284);class m{constructor(e={}){this._traceId=e.traceId||c.generateTraceId(),this._spanId=e.spanId||c.generateSpanId(),this._startTime=e.startTimestamp||l.timestampInSeconds(),this._links=e.links,this._attributes={},this.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[s.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(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.TRACE_FLAG_SAMPLED:u.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=u.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=u.spanTimeInputToSeconds(e),p.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[s.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:f.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&u.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?u.getRootSpan(this).spanContext().spanId:void 0,links:u.convertSpanLinksForEnvelope(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o.DEBUG_BUILD&&a.debug.log("[Tracing] Adding an event to span:",e);const r=h(t)?t:n||l.timestampInSeconds(),i=h(t)?{}:t||{},s={name:e,time:u.spanTimeInputToSeconds(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=r.getClient();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==u.getRootSpan(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=r.getClient();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(i.createSpanEnvelope([this],e)):(o.DEBUG_BUILD&&a.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&(g.getCapturedScopesOnSpan(this).scope||r.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!_(u.spanToJSON(this)))return;this._name||(o.DEBUG_BUILD&&a.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=g.getCapturedScopesOnSpan(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=u.getSpanDescendants(this).filter(e=>e!==this&&!function(e){return e instanceof m&&e.isStandaloneSpan()}(e)).map(e=>u.spanToJSON(e)).filter(_),i=this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],r.forEach(e=>{delete e.data[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});const c={contexts:{trace:u.spanToTransactionTraceContext(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:d.getDynamicSamplingContextFromSpan(this)},request:n,...i&&{transaction_info:{source:i}}},l=f.timedEventsToMeasurements(this._events);return l&&Object.keys(l).length&&(o.DEBUG_BUILD&&a.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function h(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function _(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}t.SentrySpan=m},251:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1811),o=n(9188);t.createCheckInEnvelope=function(e,t,n,i,s){const a={sent_at:(new Date).toISOString()};n?.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),i&&s&&(a.dsn=r.dsnToString(s)),t&&(a.trace=t);const c=function(e){return[{type:"check_in"},e]}(e);return o.createEnvelope(a,[c])}},262:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7990),o=n(8974),i=n(9183),s=n(2430),a=n(2751),c=n(5110),u=n(6940),l=n(8532),d=n(5363),p=n(5908),f=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],g=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],m={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},h=["select","insert","upsert","update","delete"];function _(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function S(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function y(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function T(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&m[n]||"filter",`${o}(${e}, ${r.join(".")})`}function E(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>p.startSpan({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:d.SPAN_STATUS_ERROR}),i.captureException(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:d.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:d.SPAN_STATUS_ERROR}),e.end(),i.captureException(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}function v(e){S(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){const o=h,s=t,c=y(s.method,s.headers);if(!o.includes(c))return Reflect.apply(e,t,n);if(!s?.url?.pathname||"string"!=typeof s.url.pathname)return Reflect.apply(e,t,n);const f=s.url.pathname.split("/"),g=f.length>0?f[f.length-1]:"",m=[];for(const[e,t]of s.url.searchParams.entries())m.push(T(e,t));const _=Object.create(null);if(l.isPlainObject(s.body))for(const[e,t]of Object.entries(s.body))_[e]=t;const S=`${"select"===c?"":`${c}${_?"(...) ":""}`}${m.join(" ")} from(${g})`,E={"db.table":g,"db.schema":s.schema,"db.url":s.url.origin,"db.sdk":s.headers["X-Client-Info"],"db.system":"postgresql","db.operation":c,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return m.length&&(E["db.query"]=m),Object.keys(_).length&&(E["db.body"]=_),p.startSpan({name:S,attributes:E},o=>Reflect.apply(e,t,[]).then(e=>{if(o&&(e&&"object"==typeof e&&"status"in e&&d.setHttpStatus(o,e.status||500),o.end()),e.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};m.length&&(n.query=m),Object.keys(_).length&&(n.body=_),i.captureException(t,e=>(e.addEventProcessor(e=>(u.addExceptionMechanism(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}const t={type:"supabase",category:`db.${c}`,message:S},n={};return m.length&&(n.query=m),Object.keys(_).length&&(n.body=_),Object.keys(n).length&&(t.data=n),r.addBreadcrumb(t),e},e=>{throw o&&(d.setHttpStatus(o,500),o.end()),e}).then(...n))}}),_(e.prototype.then))}const b=e=>{var t;e?(S((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){const r=Reflect.apply(e,t,n);return function(e){for(const t of h)S(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){const i=Reflect.apply(e,n,r),s=i.constructor;return o.DEBUG_BUILD&&c.debug.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),v(s),i}}),_(e.prototype[t]))}(r.constructor),r}}),_(t.prototype.from)),function(e){const t=e.auth;if(t&&!S(e.auth)){for(const n of f){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=E(r))}for(const n of g){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=E(r,!0))}_(e.auth)}}(e)):o.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided.")},I=s.defineIntegration(e=>{return t=e.supabaseClient,{setupOnce(){b(t)},name:"Supabase"};var t});t.DB_OPERATIONS_TO_INSTRUMENT=h,t.FILTER_MAPPINGS=m,t.extractOperation=y,t.instrumentSupabaseClient=b,t.supabaseIntegration=I,t.translateFiltersIntoMethods=T},280:(e,t,n)=>{"use strict";var r=n(6518),o=n(7751),i=n(6395),s=n(550),a=n(916).CONSTRUCTOR,c=n(3438),u=o("Promise"),l=i&&!a;r({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},283:(e,t,n)=>{"use strict";var r=n(9504),o=n(9039),i=n(4901),s=n(9297),a=n(3724),c=n(350).CONFIGURABLE,u=n(3706),l=n(1181),d=l.enforce,p=l.get,f=String,g=Object.defineProperty,m=r("".slice),h=r("".replace),_=r([].join),S=a&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),y=String(String).split("String"),T=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+h(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?g(e,"name",{value:t,configurable:!0}):e.name=t),S&&n&&s(n,"arity")&&e.length!==n.arity&&g(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=_(y,"string"==typeof t?t:"")),e};Function.prototype.toString=T(function(){return i(this)&&p(this).source||u(this)},"toString")},298:(e,t,n)=>{"use strict";var r=n(2195),o=n(5397),i=n(8480).f,s=n(7680),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return s(a)}}(e):i(o(e))}},327:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6342),o=n(6339),i=n(7872),s=n(7670),a=n(800),c=n(6750),u=n(7558),l=n(4288),d=n(7227),p=n(6127),f=n(4598),g=n(1673),m=n(4449),h=n(8968),_=n(2357),S=n(5196),y=n(5201),T=n(2855),E=n(44),v=n(966),b=n(7533),I=n(2992),A=n(7143),R=n(6532),O=n(7299),N=n(3646),C=n(2244),w=n(644),k=n(213),P=n(4012),x=n(8195),M=n(8299),U=n(7416),L=n(9202),D=n(4544),B=n(7418),F=n(1895),j=n(9550),G=n(2279);t.feedbackAsyncIntegration=r.feedbackAsyncIntegration,t.feedbackIntegration=o.feedbackSyncIntegration,t.feedbackSyncIntegration=o.feedbackSyncIntegration,t.SDK_VERSION=i.SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=i.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.Scope=i.Scope,t.addBreadcrumb=i.addBreadcrumb,t.addEventProcessor=i.addEventProcessor,t.addIntegration=i.addIntegration,t.captureConsoleIntegration=i.captureConsoleIntegration,t.captureEvent=i.captureEvent,t.captureException=i.captureException,t.captureFeedback=i.captureFeedback,t.captureMessage=i.captureMessage,t.captureSession=i.captureSession,t.close=i.close,t.consoleLoggingIntegration=i.consoleLoggingIntegration,t.continueTrace=i.continueTrace,t.createConsolaReporter=i.createConsolaReporter,t.createTransport=i.createTransport,t.dedupeIntegration=i.dedupeIntegration,t.endSession=i.endSession,t.eventFiltersIntegration=i.eventFiltersIntegration,t.extraErrorDataIntegration=i.extraErrorDataIntegration,t.featureFlagsIntegration=i.featureFlagsIntegration,t.flush=i.flush,t.functionToStringIntegration=i.functionToStringIntegration,t.getActiveSpan=i.getActiveSpan,t.getClient=i.getClient,t.getCurrentScope=i.getCurrentScope,t.getGlobalScope=i.getGlobalScope,t.getIsolationScope=i.getIsolationScope,t.getRootSpan=i.getRootSpan,t.getSpanDescendants=i.getSpanDescendants,t.getSpanStatusFromHttpCode=i.getSpanStatusFromHttpCode,t.getTraceData=i.getTraceData,t.inboundFiltersIntegration=i.inboundFiltersIntegration,t.instrumentAnthropicAiClient=i.instrumentAnthropicAiClient,t.instrumentGoogleGenAIClient=i.instrumentGoogleGenAIClient,t.instrumentOpenAiClient=i.instrumentOpenAiClient,t.instrumentSupabaseClient=i.instrumentSupabaseClient,t.isEnabled=i.isEnabled,t.isInitialized=i.isInitialized,t.lastEventId=i.lastEventId,t.logger=i.logger,t.makeMultiplexedTransport=i.makeMultiplexedTransport,t.metrics=i.metrics,t.moduleMetadataIntegration=i.moduleMetadataIntegration,t.parameterize=i.parameterize,t.registerSpanErrorInstrumentation=i.registerSpanErrorInstrumentation,t.rewriteFramesIntegration=i.rewriteFramesIntegration,t.setContext=i.setContext,t.setCurrentClient=i.setCurrentClient,t.setExtra=i.setExtra,t.setExtras=i.setExtras,t.setHttpStatus=i.setHttpStatus,t.setMeasurement=i.setMeasurement,t.setTag=i.setTag,t.setTags=i.setTags,t.setUser=i.setUser,t.spanToBaggageHeader=i.spanToBaggageHeader,t.spanToJSON=i.spanToJSON,t.spanToTraceHeader=i.spanToTraceHeader,t.startInactiveSpan=i.startInactiveSpan,t.startNewTrace=i.startNewTrace,t.startSession=i.startSession,t.startSpan=i.startSpan,t.startSpanManual=i.startSpanManual,t.supabaseIntegration=i.supabaseIntegration,t.suppressTracing=i.suppressTracing,t.thirdPartyErrorFilterIntegration=i.thirdPartyErrorFilterIntegration,t.updateSpanName=i.updateSpanName,t.withActiveSpan=i.withActiveSpan,t.withIsolationScope=i.withIsolationScope,t.withScope=i.withScope,t.zodErrorsIntegration=i.zodErrorsIntegration,t.WINDOW=s.WINDOW,t.BrowserClient=a.BrowserClient,t.makeFetchTransport=c.makeFetchTransport,t.chromeStackLineParser=u.chromeStackLineParser,t.defaultStackLineParsers=u.defaultStackLineParsers,t.defaultStackParser=u.defaultStackParser,t.geckoStackLineParser=u.geckoStackLineParser,t.opera10StackLineParser=u.opera10StackLineParser,t.opera11StackLineParser=u.opera11StackLineParser,t.winjsStackLineParser=u.winjsStackLineParser,t.eventFromException=l.eventFromException,t.eventFromMessage=l.eventFromMessage,t.exceptionFromError=l.exceptionFromError,t.createUserFeedbackEnvelope=d.createUserFeedbackEnvelope,t.forceLoad=p.forceLoad,t.getDefaultIntegrations=p.getDefaultIntegrations,t.init=p.init,t.onLoad=p.onLoad,t.showReportDialog=f.showReportDialog,t.breadcrumbsIntegration=g.breadcrumbsIntegration,t.globalHandlersIntegration=m.globalHandlersIntegration,t.httpContextIntegration=h.httpContextIntegration,t.linkedErrorsIntegration=_.linkedErrorsIntegration,t.browserApiErrorsIntegration=S.browserApiErrorsIntegration,t.lazyLoadIntegration=y.lazyLoadIntegration,t.reportingObserverIntegration=T.reportingObserverIntegration,t.httpClientIntegration=E.httpClientIntegration,t.contextLinesIntegration=v.contextLinesIntegration,t.graphqlClientIntegration=b.graphqlClientIntegration,t.getReplay=I.getReplay,t.replayIntegration=I.replayIntegration,t.replayCanvasIntegration=A.replayCanvasIntegration,t.getFeedback=R.getFeedback,t.sendFeedback=R.sendFeedback,t.defaultRequestInstrumentationOptions=O.defaultRequestInstrumentationOptions,t.instrumentOutgoingRequests=O.instrumentOutgoingRequests,t.browserTracingIntegration=N.browserTracingIntegration,t.startBrowserTracingNavigationSpan=N.startBrowserTracingNavigationSpan,t.startBrowserTracingPageLoadSpan=N.startBrowserTracingPageLoadSpan,t.reportPageLoaded=C.reportPageLoaded,t.setActiveSpanInBrowser=w.setActiveSpanInBrowser,t.makeBrowserOfflineTransport=k.makeBrowserOfflineTransport,t.browserProfilingIntegration=P.browserProfilingIntegration,t.spotlightBrowserIntegration=x.spotlightBrowserIntegration,t.browserSessionIntegration=M.browserSessionIntegration,t.buildLaunchDarklyFlagUsedHandler=U.buildLaunchDarklyFlagUsedHandler,t.launchDarklyIntegration=U.launchDarklyIntegration,t.OpenFeatureIntegrationHook=L.OpenFeatureIntegrationHook,t.openFeatureIntegration=L.openFeatureIntegration,t.unleashIntegration=D.unleashIntegration,t.growthbookIntegration=B.growthbookIntegration,t.statsigIntegration=F.statsigIntegration,t.diagnoseSdkConnectivity=j.diagnoseSdkConnectivity,t.registerWebWorker=G.registerWebWorker,t.webWorkerIntegration=G.webWorkerIntegration},350:(e,t,n)=>{"use strict";var r=n(3724),o=n(9297),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},393:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}},397:(e,t,n)=>{"use strict";var r=n(7751);e.exports=r("document","documentElement")},421:e=>{"use strict";e.exports={}},431:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(2430),i=n(5110),s=n(561),a=o.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return r.DEBUG_BUILD&&i.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function c(e,t){return!(!t||!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!l(e,t)&&!!u(e,t))))}(e,t)&&!function(e,t){const n=d(t),r=d(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!l(e,t)&&!!u(e,t)))}(e,t))}function u(e,t){let n=s.getFramesFromEvent(e),r=s.getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function l(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function d(e){return e.exception?.values?.[0]}t._shouldDropEvent=c,t.dedupeIntegration=a},436:(e,t,n)=>{"use strict";var r,o,i,s,a=n(6518),c=n(6395),u=n(8574),l=n(4576),d=n(9167),p=n(9565),f=n(6840),g=n(2967),m=n(687),h=n(7633),_=n(9306),S=n(4901),y=n(34),T=n(679),E=n(2293),v=n(9225).set,b=n(1955),I=n(3138),A=n(1103),R=n(8265),O=n(1181),N=n(550),C=n(916),w=n(6043),k="Promise",P=C.CONSTRUCTOR,x=C.REJECTION_EVENT,M=C.SUBCLASSING,U=O.getterFor(k),L=O.set,D=N&&N.prototype,B=N,F=D,j=l.TypeError,G=l.document,H=l.process,W=w.f,$=W,z=!!(G&&G.createEvent&&l.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!y(e)||!S(t=e.then))&&t},Y=function(e,t){var n,r,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Z(t),t.rejection=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),o=!0)),n===e.promise?u(new j("Promise-chain cycle")):(r=V(n))?p(r,n,c,u):c(n)):u(i)}catch(e){l&&!o&&l.exit(),u(e)}},J=function(e,t){e.notified||(e.notified=!0,b(function(){for(var n,r=e.reactions;n=r.get();)Y(n,e);e.notified=!1,t&&!e.rejection&&X(e)}))},K=function(e,t,n){var r,o;z?((r=G.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!x&&(o=l["on"+e])?o(r):e===q&&I("Unhandled promise rejection",n)},X=function(e){p(v,l,function(){var t,n=e.facade,r=e.value;if(Q(e)&&(t=A(function(){u?H.emit("unhandledRejection",r,n):K(q,n,r)}),e.rejection=u||Q(e)?2:1,t.error))throw t.value})},Q=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){p(v,l,function(){var t=e.facade;u?H.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var r=V(t);r?b(function(){var n={done:!1};try{p(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,J(e,!1))}catch(t){te({done:!1},t,e)}}};if(P&&(F=(B=function(e){T(this,F),_(e),p(r,this);var t=U(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){L(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new R,rejection:!1,state:0,value:null})}).prototype=f(F,"then",function(e,t){var n=U(this),r=W(E(this,B));return n.parent=!0,r.ok=!S(e)||e,r.fail=S(t)&&t,r.domain=u?H.domain:void 0,0===n.state?n.reactions.add(r):b(function(){Y(r,n)}),r.promise}),o=function(){var e=new r,t=U(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},w.f=W=function(e){return e===B||e===i?new o(e):$(e)},!c&&S(N)&&D!==Object.prototype)){s=D.then,M||f(D,"then",function(e,t){var n=this;return new B(function(e,t){p(s,n,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(e){}g&&g(D,F)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:B}),i=d.Promise,m(B,k,!1,!0),h(k)},507:(e,t,n)=>{"use strict";var r=n(9565);e.exports=function(e,t,n){for(var o,i,s=n?e:e.iterator,a=e.next;!(o=r(a,s)).done;)if(void 0!==(i=t(o.value)))return i}},511:(e,t,n)=>{"use strict";var r=n(9167),o=n(9297),i=n(1951),s=n(4913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},537:(e,t,n)=>{"use strict";var r=n(550),o=n(4428),i=n(916).CONSTRUCTOR;e.exports=i||!o(function(e){r.all(e).then(void 0,function(){})})},550:(e,t,n)=>{"use strict";var r=n(4576);e.exports=r.Promise},561:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/\(error: (.*)\)/,r=/captureMessage|captureException/;function o(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,o=0)=>{const s=[],a=e.split("\n");for(let e=r;e<a.length;e++){let r=a[e];r.length>1024&&(r=r.slice(0,1024));const i=n.test(r)?r.replace(n,"$1"):r;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){s.push(t);break}}if(s.length>=50+o)break}}return i(s.slice(o))}}function i(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(s(t).function||"")&&t.pop(),t.reverse(),r.test(s(t).function||"")&&(t.pop(),r.test(s(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||s(t).filename,function:e.function||"?"}))}function s(e){return e[e.length-1]||{}}const a="<anonymous>";t.UNKNOWN_FUNCTION="?",t.createStackParser=o,t.getFramesFromEvent=function(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}},t.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||a}catch{return a}},t.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?o(...e):e},t.stripSentryFramesAndReverse=i},616:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},632:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8368),a=n(6425),c=n(6612),u=o(n(3685).zS,[]),l=function(){function e(){}return e.gaPlacement="",e.initialize=function(t){try{var n=new Date,r=JSON.parse(localStorage.getItem(e.CACHE_KEY))||{};if(e.gaPlacement=t,r.uuid&&r.expiry>=(new Date).valueOf())return void(e.CLIENT_ID=r.uuid);r.uuid=(0,c.generateUUID)(),r.expiry=n.setFullYear(n.getFullYear()+2),localStorage.setItem(e.CACHE_KEY,JSON.stringify(r)),e.CLIENT_ID=r.uuid}catch(t){e.CLIENT_ID=(0,c.generateUUID)()}},e.send=function(t){var n,o,c=e.BASE_URL,u=document.referrer;t=r({v:"1",ds:e.gaPlacement,cid:e.CLIENT_ID,z:"".concat(Math.round((new Date).getTime()/1e3))},t),""!==u&&(t.dr=u);try{for(var l=i(Object.keys(t)),d=l.next();!d.done;d=l.next()){var p=d.value,f=c===e.BASE_URL?"?":"&";c+="".concat(f).concat(p,"=").concat(encodeURIComponent(t[p]))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}a.default.get(c).catch(function(){s.default.logWarning("analytics","requestFailed")})},e.BASE_URL=u.baseUrl,e.CACHE_KEY=u.cacheKey,e.CLIENT_ID=u.cidPlaceholder,e}();t.default=l},644:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);t.setActiveSpanInBrowser=function(e){const t=r.getActiveSpan();if(t===e)return;const n=r.getCurrentScope();e.end=new Proxy(e.end,{apply:(e,o,i)=>(r._INTERNAL_setSpanForScope(n,t),Reflect.apply(e,o,i))}),r._INTERNAL_setSpanForScope(n,e)}},647:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2810),o=n(3220),i=n(9564),s=n(9183),a=n(5110),c=n(4583),u=n(3754),l=n(5684),d=n(3336);t.getTraceData=function(e={}){const t=e.client||i.getClient();if(!s.isEnabled()||!t)return{};const n=o.getMainCarrier(),p=r.getAsyncContextStrategy(n);if(p.getTraceData)return p.getTraceData(e);const f=e.scope||i.getCurrentScope(),g=e.span||c.getActiveSpan(),m=g?c.spanToTraceHeader(g):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return d.generateSentryTraceHeader(t,r,n)}(f),h=g?u.getDynamicSamplingContextFromSpan(g):u.getDynamicSamplingContextFromScope(t,f),_=l.dynamicSamplingContextToSentryBaggageHeader(h);if(!d.TRACEPARENT_REGEXP.test(m))return a.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const S={"sentry-trace":m,baggage:_};if(e.propagateTraceparent){const e=g?c.spanToTraceparentHeader(g):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return d.generateTraceparentHeader(t,r,n)}(f);e&&(S.traceparent=e)}return S}},655:(e,t,n)=>{"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},677:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7742);let i,s,a;function c(){if(!o.WINDOW.document)return;const e=r.triggerHandlers.bind(null,"dom"),t=u(e,!0);o.WINDOW.document.addEventListener("click",t,!1),o.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=o.WINDOW,i=n[t]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(r.fill(i,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=u(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch{}return t.call(this,n,r,o)}}),r.fill(i,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function u(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const c=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,c))return;r.addNonEnumerableProperty(n,"_sentryCaptured",!0),c&&!c._sentryId&&r.addNonEnumerableProperty(c,"_sentryId",r.uuid4());const u="keypress"===n.type?"input":n.type;(function(e){if(e.type!==s)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0})(n)||(e({event:n,name:u,global:t}),s=n.type,a=c?c._sentryId:void 0),clearTimeout(i),i=o.WINDOW.setTimeout(()=>{a=void 0,s=void 0},1e3)}}t.addClickKeypressInstrumentationHandler=function(e){r.addHandler("dom",e),r.maybeInstrument("dom",c)},t.instrumentDOM=c},679:(e,t,n)=>{"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},687:(e,t,n)=>{"use strict";var r=n(4913).f,o=n(9297),i=n(8227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},699:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(9204),i=n(9188),s=n(561),a=r.defineIntegration(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{i.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})},processEvent(t){const n=function(e){const t=s.getFramesFromEvent(e);if(t)return t.filter(e=>!!e.filename&&null!=(e.lineno??e.colno)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(c)).map(e=>e.slice(c.length)):[])}(t);if(n&&n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),c="_sentryBundlerPluginAppKey:";t.thirdPartyErrorFilterIntegration=a},741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},747:(e,t,n)=>{"use strict";var r=n(6699),o=n(6193),i=n(4659),s=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(s?s(e,t):r(e,"stack",o(n,a)))}},750:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(2990);let i=-1;const s=e=>{"hidden"===r.WINDOW.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,a())},a=()=>{removeEventListener("visibilitychange",s,!0),removeEventListener("prerenderingchange",s,!0)};t.getVisibilityWatcher=()=>{if(r.WINDOW.document&&i<0){const e=o.getActivationStart(),t=r.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;i=t??("hidden"!==r.WINDOW.document?.visibilityState||r.WINDOW.document?.prerendering?1/0:0),addEventListener("visibilitychange",s,!0),addEventListener("prerenderingchange",s,!0)}return{get firstHiddenTime(){return i}}}},757:(e,t,n)=>{"use strict";var r=n(7751),o=n(4901),i=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,a(e))}},763:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(9491),i=n(2990),s=n(5476),a=n(1559),c=n(135),u=[800,1800],l=e=>{r.WINDOW.document?.prerendering?c.whenActivated(()=>l(e)):"complete"!==r.WINDOW.document?.readyState?addEventListener("load",()=>l(e),!0):setTimeout(e)};t.TTFBThresholds=u,t.onTTFB=(e,t={})=>{const n=a.initMetric("TTFB"),r=o.bindReporter(e,n,u,t.reportAllChanges);l(()=>{const e=s.getNavigationEntry();e&&(n.value=Math.max(e.responseStart-i.getActivationStart(),0),n.entries=[e],r(!0))})}},784:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CHATS_CREATE_METHOD="chats.create",t.CHAT_PATH="chat",t.GOOGLE_GENAI_INSTRUMENTED_METHODS=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],t.GOOGLE_GENAI_INTEGRATION_NAME="Google_GenAI",t.GOOGLE_GENAI_SYSTEM_NAME="google_genai"},800:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(4288),i=n(7670);class s extends r.Client{constructor(e){const t=a(e),n=i.WINDOW.SENTRY_SDK_SOURCE||r.getSDKSource();r.applySdkMetadata(t,"browser",["browser"],n),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:o,sendClientReports:s,enableLogs:c,_experiments:u}=this._options;i.WINDOW.document&&(s||c||u?.enableMetrics)&&i.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===i.WINDOW.document.visibilityState&&(s&&this._flushOutcomes(),c&&r._INTERNAL_flushLogsBuffer(this),u?.enableMetrics&&r._INTERNAL_flushMetricsBuffer(this))}),o&&this.on("beforeSendSession",r.addAutoIpAddressToSession)}eventFromException(e,t){return o.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return o.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function a(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:i.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}t.BrowserClient=s,t.applyDefaultOptions=a},851:(e,t,n)=>{"use strict";var r=n(6955),o=n(5966),i=n(4117),s=n(6269),a=n(8227)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[r(e)]}},875:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(3609),i=r.defineIntegration(()=>({name:"FeatureFlags",processEvent:(e,t,n)=>o._INTERNAL_copyFlagsFromScopeToEvent(e),addFeatureFlag(e,t){o._INTERNAL_insertFlagToScope(e,t),o._INTERNAL_addFeatureFlagToActiveSpan(e,t)}}));t.featureFlagsIntegration=i},916:(e,t,n)=>{"use strict";var r=n(4576),o=n(550),i=n(4901),s=n(2796),a=n(3706),c=n(8227),u=n(4215),l=n(6395),d=n(9519),p=o&&o.prototype,f=c("species"),g=!1,m=i(r.PromiseRejectionEvent),h=s("Promise",function(){var e=a(o),t=e!==String(o);if(!t&&66===d)return!0;if(l&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[f]=r,!(g=n.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||m)});e.exports={CONSTRUCTOR:h,REJECTION_EVENT:m,SUBCLASSING:g}},963:e=>{"use strict";e.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","pollTimeout":"Polling timeout exceeded.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},966:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.GLOBAL_OBJ,i=r.defineIntegration((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=o.document,i=o.location&&r.stripUrlQueryAndFragment(o.location.href);if(!n||!i)return e;const a=e.exception?.values;if(!a?.length)return e;const c=n.documentElement.innerHTML;if(!c)return e;const u=["<!DOCTYPE html>","<html>",...c.split("\n"),"</html>"];return a.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>s(e,u,i,t)))}),e}(e,t)}});function s(e,t,n,o){return e.filename===n&&e.lineno&&t.length?(r.addContextToFrame(t,e,o),e):e}t.applySourceContextToFrame=s,t.contextLinesIntegration=i},1015:(e,t,n)=>{"use strict";var r=n(8418);e.exports=r},1072:(e,t,n)=>{"use strict";var r=n(1828),o=n(8727);e.exports=Object.keys||function(e){return r(e,o)}},1088:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(6395),s=n(350),a=n(4901),c=n(3994),u=n(2787),l=n(2967),d=n(687),p=n(6699),f=n(6840),g=n(8227),m=n(6269),h=n(7657),_=s.PROPER,S=s.CONFIGURABLE,y=h.IteratorPrototype,T=h.BUGGY_SAFARI_ITERATORS,E=g("iterator"),v="keys",b="values",I="entries",A=function(){return this};e.exports=function(e,t,n,s,g,h,R){c(n,t,s);var O,N,C,w=function(e){if(e===g&&U)return U;if(!T&&e&&e in x)return x[e];switch(e){case v:case b:case I:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",P=!1,x=e.prototype,M=x[E]||x["@@iterator"]||g&&x[g],U=!T&&M||w(g),L="Array"===t&&x.entries||M;if(L&&(O=u(L.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===y||(l?l(O,y):a(O[E])||f(O,E,A)),d(O,k,!0,!0),i&&(m[k]=A)),_&&g===b&&M&&M.name!==b&&(!i&&S?p(x,"name",b):(P=!0,U=function(){return o(M,this)})),g)if(N={values:w(b),keys:h?U:w(v),entries:w(I)},R)for(C in N)(T||P||!(C in x))&&f(x,C,N[C]);else r({target:t,proto:!0,forced:T||P},N);return i&&!R||x[E]===U||f(x,E,U,{name:g}),m[t]=U,N}},1096:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(2751),i=n(4583),s=n(5363),a=n(8532),c=n(1228),u=n(5684),l=n(7392),d=n(5908),p=n(647),f=n(9635);function g(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}function m(e,t,n,r){const o=p.getTraceData({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,c=o.traceparent;if(!i)return;const u=t.headers||(a.isRequest(e)?e.headers:void 0);if(u){if(l=u,"undefined"!=typeof Headers&&a.isInstanceOf(l,Headers)){const e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&c&&!e.get("traceparent")&&e.set("traceparent",c),s){const t=e.get("baggage");t?h(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(u)){const e=[...u];u.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]),r&&c&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);const t=u.find(e=>"baggage"===e[0]&&h(e[1]));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,n="baggage"in u?u.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],a=n&&(Array.isArray(n)?n.find(e=>h(e)):h(n));s&&!a&&o.push(s);const l={...u,"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0};return r&&c&&!t&&(l.traceparent=c),l}}return{...o};var l}function h(e){return e.split(",").some(e=>e.trim().startsWith(u.SENTRY_BAGGAGE_KEY_PREFIX))}function _(e,t,n){const r=f.parseStringToURLObject(e);return{name:r?`${t} ${f.getSanitizedUrlStringFromUrlObject(r)}`:t,attributes:S(e,r,t,n)}}function S(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(f.isURLObjectRelative(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}t._addTracingHeadersToFetchRequest=m,t._callOnRequestSpanEnd=g,t.instrumentFetchRequest=function(e,t,n,o,a){if(!e.fetchData)return;const{method:u,url:p}=e.fetchData,f=c.hasSpansEnabled()&&t(p);if(e.endTimestamp&&f){const t=e.fetchData.__span;if(!t)return;const n=o[t];return void(n&&(function(e,t){if(t.response){s.setHttpStatus(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),g(n,e,a),delete o[t]))}const{spanOrigin:h="auto.http.browser",propagateTraceparent:S=!1}="object"==typeof a?a:{spanOrigin:a},y=!!i.getActiveSpan(),T=f&&y?d.startInactiveSpan(_(p,u,h)):new l.SentryNonRecordingSpan;if(e.fetchData.__span=T.spanContext().spanId,o[T.spanContext().spanId]=T,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},r=m(t,n,c.hasSpansEnabled()&&y?T:void 0,S);r&&(e.args[1]=n,n.headers=r)}const E=r.getClient();if(E){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};E.emit("beforeOutgoingRequestSpan",T,t)}return T}},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},1148:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(3969).GLOBAL_OBJ,s=a;function a(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function c(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}t.isNativeFunction=c,t.supportsDOMError=function(){try{return new DOMError(""),!0}catch{return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch{return!1}},t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch{return!1}},t.supportsFetch=s,t.supportsHistory=function(){return"history"in i&&!!i.history},t.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(c(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=c(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.DEBUG_BUILD&&o.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},t.supportsReferrerPolicy=function(){if(!a())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}},t.supportsReportingObserver=function(){return"ReportingObserver"in i}},1155:(e,t,n)=>{"use strict";n(6099),n(3792),n(6033),n(6385),n(1517),n(1379),n(3777),n(4190),n(2359),n(6097),n(7254),n(7036),n(7273),n(7415),n(9929),n(7583),n(5122),n(230),n(7268),n(9733);var r=n(9167);e.exports=r.Map.of},1179:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(2430),i=n(5110),s=n(7389),a=n(6940),c=n(9721),u=[/^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$/],l=o.defineIntegration((e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=p(e,r)},processEvent(n,o,u){if(!t){const n=u.getOptions();t=p(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&c.stringMatchesSomePattern(n,t)}(e,t.ignoreTransactions))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${a.getEventDescription(e)}`),!0}else{if(function(e,t){return!!t?.length&&s.getPossibleEventMessages(e).some(e=>c.stringMatchesSomePattern(e,t))}(e,t.ignoreErrors))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${a.getEventDescription(e)}`),!0;if(function(e){return!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${a.getEventDescription(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=f(e);return!!n&&c.stringMatchesSomePattern(n,t)}(e,t.denyUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${a.getEventDescription(e)}.\nUrl: ${f(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=f(e);return!n||c.stringMatchesSomePattern(n,t)}(e,t.allowUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${a.getEventDescription(e)}.\nUrl: ${f(e)}`),!0}return!1}(n,t)?null:n}}}),d=o.defineIntegration((e={})=>({...l(e),name:"InboundFilters"}));function p(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function f(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return r.DEBUG_BUILD&&i.debug.error(`Cannot extract url for event ${a.getEventDescription(e)}`),null}}t.eventFiltersIntegration=l,t.inboundFiltersIntegration=d},1181:(e,t,n)=>{"use strict";var r,o,i,s=n(8622),a=n(4576),c=n(34),u=n(6699),l=n(9297),d=n(7629),p=n(6119),f=n(421),g="Object already initialized",m=a.TypeError,h=a.WeakMap;if(s||d.state){var _=d.state||(d.state=new h);_.get=_.get,_.has=_.has,_.set=_.set,r=function(e,t){if(_.has(e))throw new m(g);return t.facade=e,_.set(e,t),t},o=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var S=p("state");f[S]=!0,r=function(e,t){if(l(e,S))throw new m(g);return t.facade=e,u(e,S,t),t},o=function(e){return l(e,S)?e[S]:{}},i=function(e){return l(e,S)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},1188:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.observe=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}}},1228:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564);t.hasSpansEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||r.getClient()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},1281:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7670);t.baggageHeaderHasSentryValues=function(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))},t.createHeadersSafely=function(e){try{return new Headers(e)}catch{return}},t.getFullURL=function(e){try{return new URL(e,r.WINDOW.location.origin).href}catch{return}},t.isPerformanceResourceTiming=function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}},1291:(e,t,n)=>{"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},1296:(e,t,n)=>{"use strict";var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},1303:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=n(6748);t.extractPromptResultAttributes=function(e){const t={};if(!o.isValidContentItem(e))return t;if("string"==typeof e.description&&(t[r.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=e.description),Array.isArray(e.messages)){t[r.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=e.messages.length;const n=e.messages;for(const[e,r]of n.entries()){if(!o.isValidContentItem(r))continue;const i=1===n.length?"mcp.prompt.result":`mcp.prompt.result.${e}`;if(((e,r)=>{if("string"==typeof r){const o=1===n.length?`${i}.message_${e}`:`${i}.${e}`;t[o]=r}})("role",r.role),o.isValidContentItem(r.content)){const e=r.content;if("string"==typeof e.text){const r=1===n.length?`${i}.message_content`:`${i}.content`;t[r]=e.text}}}}return t},t.extractToolResultAttributes=function(e){if(!o.isValidContentItem(e))return{};const t=Array.isArray(e.content)?function(e){const t={[r.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:e.length};for(const[n,r]of e.entries()){if(!o.isValidContentItem(r))continue;const i=1===e.length?"mcp.tool.result":`mcp.tool.result.${n}`,s=(e,n)=>{"string"==typeof n&&(t[`${i}.${e}`]=n)};s("content_type",r.type),s("mime_type",r.mimeType),s("uri",r.uri),s("name",r.name),"string"==typeof r.text&&(t[`${i}.content`]=r.text),"string"==typeof r.data&&(t[`${i}.data_size`]=r.data.length);const a=r.resource;o.isValidContentItem(a)&&(s("resource_uri",a.uri),s("resource_mime_type",a.mimeType))}return t}(e.content):{};return"boolean"==typeof e.isError&&(t[r.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=e.isError),t}},1312:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(2430),i=n(5110),s=n(8532),a=n(8585),c=n(6159),u=n(9721),l=o.defineIntegration((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!s.isError(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,u=d(t.originalException,r,o);if(u){const t={...e.contexts},r=a.normalize(u,n);return s.isPlainObject(r)&&(c.addNonEnumerableProperty(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}});function d(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=s.isError(i)||"string"==typeof i?u.truncate(`${i}`,n):i}if(t&&void 0!==e.cause)if(s.isError(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:d(e.cause,!1,n)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=s.isError(n)?n.toString():n}}return o}catch(e){r.DEBUG_BUILD&&i.debug.error("Unable to extract extra data from the Error object:",e)}return null}t.extraErrorDataIntegration=l},1319:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670);t.checkAndWarnIfIsEmbeddedBrowserExtension=function(){return!!function(){if(void 0===i.WINDOW.window)return!1;const e=i.WINDOW;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=r.getLocationHref();return!(i.WINDOW===i.WINDOW.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>n.startsWith(`${e}://`)))}()&&(o.DEBUG_BUILD&&r.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)}},1321:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(2751),s=n(5363),a=n(5908),c=n(2434),u=n(2856),l=n(6354),d=n(784),p=n(9033),f=n(3940);function g(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function m(e,t){if("contents"in t){const n=t.contents,r=u.getTruncatedJsonString(n);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}if("message"in t){const n=t.message,r=u.getTruncatedJsonString(n);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}if("history"in t){const n=t.history,r=u.getTruncatedJsonString(n);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}}function h(e,t,n,r){const h=t===d.CHATS_CREATE_METHOD;return new Proxy(e,{apply(e,_,S){const y=S[0],T=function(e,t,n){const r={[c.GEN_AI_SYSTEM_ATTRIBUTE]:d.GOOGLE_GENAI_SYSTEM_NAME,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:u.getFinalOperationName(e),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=g(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[c.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[c.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[c.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[c.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[c.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[c.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.map(e=>e.functionDeclarations);r[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else r[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=g({},n);return r}(t,y,n),E=T[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",v=u.getFinalOperationName(t);return f.isStreamingMethod(t)?a.startSpanManual({name:`${v} ${E} stream-response`,op:u.getSpanOperation(t),attributes:T},async i=>{try{r.recordInputs&&y&&m(i,y);const t=await e.apply(n,S);return p.instrumentStream(t,i,Boolean(r.recordOutputs))}catch(e){throw i.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),i.end(),e}}):a.startSpan({name:h?`${v} ${E} create`:`${v} ${E}`,op:u.getSpanOperation(t),attributes:T},i=>(r.recordInputs&&y&&m(i,y),l.handleCallbackErrors(()=>e.apply(n,S),e=>{o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{h||function(e,t,n){if(t&&"object"==typeof t){if(t.usageMetadata&&"object"==typeof t.usageMetadata){const n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}}}(i,e,r.recordOutputs)})))}})}function _(e,t="",n){return new Proxy(e,{get:(e,r,o)=>{const i=Reflect.get(e,r,o),s=u.buildMethodPath(t,String(r));if("function"==typeof i&&f.shouldInstrument(s)){if(s===d.CHATS_CREATE_METHOD){const t=h(i,s,e,n);return function(...e){const r=t(...e);return r&&"object"==typeof r?_(r,d.CHAT_PATH,n):r}}return h(i,s,e,n)}return"function"==typeof i?i.bind(e):i&&"object"==typeof i?_(i,s,n):i}})}t.extractModel=g,t.instrumentGoogleGenAIClient=function(e,t){const n=Boolean(r.getClient()?.getOptions().sendDefaultPii);return _(e,"",{recordInputs:n,recordOutputs:n,...t})}},1348:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6940),o=n(6869);function i(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||o.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:r.uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}t.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),i(e,n)},t.makeSession=function(e){const t=o.timestampInSeconds(),n={sid:r.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&i(n,e),n},t.updateSession=i},1353:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(2751),s=n(5363),a=n(5908),c=n(2434),u=n(2856),l=n(1472),d=n(6073),p=n(7620);function f(e,t){if("messages"in t){const n=u.getTruncatedJsonString(t.messages);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}if("input"in t){const n=u.getTruncatedJsonString(t.input);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}}function g(e,t,n,u){return async function(...g){const m=u||function(){const e=r.getCurrentScope().getClient(),t=e?.getIntegrationByName(l.OPENAI_INTEGRATION_NAME),n=!!t&&Boolean(e?.getOptions().sendDefaultPii);return{recordInputs:t?.options?.recordInputs??n,recordOutputs:t?.options?.recordOutputs??n}}(),h=function(e,t){const n={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:p.getOperationName(t),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],r=[...Array.isArray(t.tools)?t.tools:[],...t.web_search_options&&"object"==typeof t.web_search_options?[{type:"web_search_options",...t.web_search_options}]:[]];r.length>0&&(n[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(r))}if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(n[c.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(n[c.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"frequency_penalty"in t&&(n[c.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=t.frequency_penalty),"presence_penalty"in t&&(n[c.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presence_penalty),"stream"in t&&(n[c.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream)}else n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return n}(g,t),_=h[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",S=p.getOperationName(t),y=g[0];return y&&"object"==typeof y&&!0===y.stream?a.startSpanManual({name:`${S} ${_} stream-response`,op:p.getSpanOperation(t),attributes:h},async r=>{try{m.recordInputs&&g[0]&&"object"==typeof g[0]&&f(r,g[0]);const t=await e.apply(n,g);return d.instrumentStream(t,r,m.recordOutputs??!1)}catch(e){throw r.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),r.end(),e}}):a.startSpan({name:`${S} ${_}`,op:p.getSpanOperation(t),attributes:h},async r=>{try{m.recordInputs&&g[0]&&"object"==typeof g[0]&&f(r,g[0]);const t=await e.apply(n,g);return function(e,t,n){if(!t||"object"!=typeof t)return;const r=t;if(p.isChatCompletionResponse(r)){if(function(e,t,n){if(p.setCommonResponseAttributes(e,t.id,t.model,t.created),t.usage&&p.setTokenUsageAttributes(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const r=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(r.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(r)}),n){const n=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}}}(e,r,n),n&&r.choices?.length){const t=r.choices.map(e=>e.message?.content||"");e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t)})}}else p.isResponsesApiResponse(r)&&(function(e,t,n){if(p.setCommonResponseAttributes(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[c.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify([t.status])}),t.usage&&p.setTokenUsageAttributes(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){const n=t;if(Array.isArray(n.output)&&n.output.length>0){const t=n.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);t.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(t)})}}}(e,r,n),n&&r.output_text&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.output_text}))}(r,t,m.recordOutputs),t}catch(e){throw o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e}})}}function m(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=p.buildMethodPath(t,String(r));return"function"==typeof o&&p.shouldInstrument(i)?g(o,i,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?m(o,i,n):o}})}t.instrumentOpenAiClient=function(e,t){return m(e,"",t)}},1362:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},1379:(e,t,n)=>{"use strict";var r=n(6518),o=n(6194),i=n(2248),s=i.get,a=i.has,c=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,i=o(this);return a(i,e)?(n=s(i,e),"update"in t&&(n=t.update(n,e,i),c(i,e,n)),n):(r=t.insert(e,i),c(i,e,r),r)}})},1469:(e,t,n)=>{"use strict";var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1472:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],r=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...n];t.INSTRUMENTED_METHODS=["responses.create","chat.completions.create"],t.OPENAI_INTEGRATION_NAME="OpenAI",t.RESPONSES_TOOL_CALL_EVENT_TYPES=n,t.RESPONSE_EVENT_TYPES=r},1481:(e,t,n)=>{"use strict";var r=n(6518),o=n(6043);r({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},1485:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2501),o=n(9564),i=n(1929),s=n(9640),a=n(5013),c=n(7274),u=n(6940),l=n(8585),d=n(9721),p=n(6869);function f(e,t){const{environment:n,release:o,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||r.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i);const a=e.request;a?.url&&(a.url=d.truncate(a.url,s))}function g(e,t){const n=c.getFilenameToDebugIdMap(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function m(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}function h(e,t){if(!t)return e;const n=e?e.clone():new s.Scope;return n.update(t),n}const _=["user","level","extra","contexts","tags","fingerprint","propagationContext"];t.applyClientOptions=f,t.applyDebugIds=g,t.applyDebugMeta=m,t.parseEventHintOrCaptureContext=function(e){if(e)return function(e){return e instanceof s.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>_.includes(e))}(e)?{captureContext:e}:e},t.prepareEvent=function(e,t,n,r,s,c){const{normalizeDepth:d=3,normalizeMaxBreadth:_=1e3}=e,S={...t,event_id:t.event_id||n.event_id||u.uuid4(),timestamp:t.timestamp||p.dateTimestampInSeconds()},y=n.integrations||e.integrations.map(e=>e.name);f(S,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(S,y),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&g(S,e.stackParser);const T=h(r,n.captureContext);n.mechanism&&u.addExceptionMechanism(S,n.mechanism);const E=s?s.getEventProcessors():[],v=o.getGlobalScope().getScopeData();if(c){const e=c.getScopeData();a.mergeScopeData(v,e)}if(T){const e=T.getScopeData();a.mergeScopeData(v,e)}const b=[...n.attachments||[],...v.attachments];b.length&&(n.attachments=b),a.applyScopeDataToEvent(S,v);const I=[...E,...v.eventProcessors];return i.notifyEventProcessors(I,S,n).then(e=>(e&&m(e),"number"==typeof d&&d>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:l.normalize(e.data,t,n)}}))},...e.user&&{user:l.normalize(e.user,t,n)},...e.contexts&&{contexts:l.normalize(e.contexts,t,n)},...e.extra&&{extra:l.normalize(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=l.normalize(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:l.normalize(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=l.normalize(e.contexts.flags,3,n)),r}(e,d,_):e))}},1499:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UncaughtError=t.HTTPError=t.PlayerConfigurationError=t.ClientConfigurationError=t.ModerationError=t.RenderError=t.ImposiumError=void 0;var s=n(2121),a=i(n(963),[]),c="moderation",u="clientConfiguration",l="playerConfiguration",d="network",p="uncaught",f=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="",o.version=s.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(e){o.storyId=e},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.type=r,o}return o(t,e),t}(Error);t.ImposiumError=f;var g=function(e){function t(n,r){var o=e.call(this,n,"render")||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Error rendering dynamic video\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(f);t.RenderError=g;var m=function(e){function t(n,r){var o=e.call(this,a[c][n],c)||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Failed to pass moderation\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.experienceId=r||"<not_set>",o}return o(t,e),t}(f);t.ModerationError=m;var h=function(e){function t(n,r){var o=e.call(this,a[u][n],u)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid client configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(f);t.ClientConfigurationError=h;var _=function(e){function t(n,r){var o=e.call(this,a[l][n],l)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid player configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.eventName=r||"<not_set>",o}return o(t,e),t}(f);t.PlayerConfigurationError=_;var S=function(e){function t(n,r,o){var i,s=this;return(s=e.call(this,a[d][n],d)||this).experienceId=null,s.axiosError=null,s.log=function(){console.error("".concat(s.logHeader,"\n \nReason: HTTP error\n \nMessage: ").concat(s.message,"\n \nExperience ID: ").concat(s.experienceId,"\n \nNetwork Error: ").concat(s.axiosError," "))},Error.captureStackTrace&&Error.captureStackTrace(s,t),(null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.data)&&"object"==typeof o.response.data&&"error"in o.response.data&&(s.message=o.response.data.error),s.experienceId=r||"<not_set>",s.axiosError=o||"<not_set>",s}return o(t,e),t}(f);t.HTTPError=S;var y=function(e){function t(n,r){var o=e.call(this,a[p][n],p)||this;return o.uncaughtError=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Unknown\n \nMessage: ").concat(o.message,"\n \nError: "),o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,t),o.uncaughtError=r,o}return o(t,e),t}(f);t.UncaughtError=y},1510:(e,t,n)=>{"use strict";var r=n(6518),o=n(7751),i=n(9297),s=n(655),a=n(5745),c=n(1296),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=s(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,l[n]=t,n}})},1517:(e,t,n)=>{"use strict";var r=n(6518),o=n(6194),i=n(2248).remove;r({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),n=!0,r=0,s=arguments.length;r<s;r++)e=i(t,arguments[r]),n=n&&e;return!!n}})},1535:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(561),s={},a={};t.addHandler=function(e,t){s[e]=s[e]||[],s[e].push(t)},t.maybeInstrument=function(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.DEBUG_BUILD&&o.debug.error(`Error while instrumenting ${e}`,t)}}},t.resetInstrumentationHandlers=function(){Object.keys(s).forEach(e=>{s[e]=void 0})},t.triggerHandlers=function(e,t){const n=e&&s[e];if(n)for(const s of n)try{s(t)}catch(t){r.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${i.getFunctionName(s)}\nError:`,t)}}},1548:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new WeakMap;t.initUnique=function(e,t){return n.get(e)||n.set(e,new t),n.get(e)}},1559:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(7295),i=n(2990),s=n(5476);t.initMetric=(e,t=-1)=>{const n=s.getNavigationEntry();let a="navigate";return n&&(r.WINDOW.document?.prerendering||i.getActivationStart()>0?a="prerender":r.WINDOW.document?.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:o.generateUniqueID(),navigationType:a}}},1604:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7742),i=n(3851);t.extractNetworkProtocol=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}},t.getBrowserPerformanceAPI=function(){return o.WINDOW.addEventListener&&o.WINDOW.performance},t.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},t.listenForWebVitalReportEvents=function(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n),r=!0}i.onHidden(()=>{o("pagehide")});const s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),s(),a())}),a=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,a()})},t.msToSec=function(e){return e/1e3},t.startAndEndSpan=function(e,t,n,{...o}){const i=r.spanToJSON(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r.withActiveSpan(e,()=>{const e=r.startInactiveSpan({startTime:t,...o});return e&&e.end(n),e})},t.startStandaloneWebVitalSpan=function(e){const t=r.getClient();if(!t)return;const{name:n,transaction:i,attributes:s,startTime:a}=e,{release:c,environment:u,sendDefaultPii:l}=t.getOptions(),d=t.getIntegrationByName("Replay"),p=d?.getReplayId(),f=r.getCurrentScope(),g=f.getUser(),m=void 0!==g?g.email||g.id||g.ip_address:void 0;let h;try{h=f.getScopeData().contexts.profile.profile_id}catch{}const _={release:c,environment:u,user:m||void 0,profile_id:h||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":o.WINDOW.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...s};return r.startInactiveSpan({name:n,attributes:_,startTime:a,experimental:{standalone:!0}})},t.supportsWebVital=function(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}},1625:(e,t,n)=>{"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1632:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LCPEntryManager=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},1673:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(6421),s=n(7670),a=r.defineIntegration((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&r.addConsoleInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:r.severityLevelFromString(t.level),message:r.safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${r.safeJoin(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}r.addBreadcrumb(n,{input:t.args,level:t.level})}}(e)),t.dom&&o.addClickKeypressInstrumentationHandler(function(e,t){return function(n){if(r.getClient()!==e)return;let o,s,a="object"==typeof t?t.serializeAttribute:void 0,c="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;c&&c>1024&&(i.DEBUG_BUILD&&r.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${c} was configured. Sentry will use 1024 instead.`),c=1024),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;o=r.htmlTreeAsString(t,{keyAttrs:a,maxStringLength:c}),s=r.getComponentName(t)}catch{o="<unknown>"}if(0===o.length)return;const u={category:`ui.${n.name}`,message:o};s&&(u.data={"ui.component_name":s}),r.addBreadcrumb(u,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&o.addXhrInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,s=t.xhr[o.SENTRY_XHR_DATA_KEY];if(!n||!i||!s)return;const{method:a,url:c,status_code:u,body:l}=s,d={method:a,url:c,status_code:u},p={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:i},f={category:"xhr",data:d,type:"http",level:r.getBreadcrumbLogLevelFromHttpStatusCode(u)};e.emit("beforeOutgoingRequestBreadcrumb",f,p),r.addBreadcrumb(f,p)}}(e)),t.fetch&&r.addFetchInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const{startTimestamp:n,endTimestamp:o}=t;if(o&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,s={data:t.error,input:t.args,startTimestamp:n,endTimestamp:o},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),r.addBreadcrumb(a,s)}else{const i=t.response,s={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const a={input:t.args,response:i,startTimestamp:n,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:r.getBreadcrumbLogLevelFromHttpStatusCode(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),r.addBreadcrumb(c,a)}}}(e)),t.history&&o.addHistoryInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;let n=t.from,o=t.to;const i=r.parseUrl(s.WINDOW.location.href);let a=n?r.parseUrl(n):void 0;const c=r.parseUrl(o);a?.path||(a=i),i.protocol===c.protocol&&i.host===c.host&&(o=c.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),r.addBreadcrumb({category:"navigation",data:{from:n,to:o}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){r.getClient()===e&&r.addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:r.getEventDescription(t)},{event:t})}}(e))}}});t.breadcrumbsIntegration=a},1689:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(8745),s=n(7680),a=n(6043),c=n(9306),u=n(1103),l=o.Promise,d=!1;r({target:"Promise",stat:!0,forced:!l||!l.try||u(function(){l.try(function(e){d=8===e},8)}).error||!d},{try:function(e){var t=arguments.length>1?s(arguments,1):[],n=a.f(this),r=u(function(){return i(c(e),void 0,t)});return(r.error?n.reject:n.resolve)(r.value),n.promise}})},1811:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e){const t=s.exec(e);if(!t)return void o.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",a="",u="",l=""]=t.slice(1);let d="",p=l;const f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return c({host:a,pass:i,path:d,projectId:p,port:u,protocol:n,publicKey:r})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.match(i);return t?.[1]}t.dsnFromString=a,t.dsnToString=function(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`},t.extractOrgIdFromClient=function(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=u(n)),r},t.extractOrgIdFromDsnHost=u,t.makeDsn=function(e){const t="string"==typeof e?a(e):c(e);if(t&&function(e){if(!r.DEBUG_BUILD)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},1828:(e,t,n)=>{"use strict";var r=n(9504),o=n(9297),i=n(5397),s=n(9617).indexOf,a=n(421),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(a,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~s(l,n)||c(l,n));return l}},1857:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSDKSource=function(){return"npm"},t.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},1872:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(3754),i=n(4583);t._getTraceInfoFromScope=function(e,t){return t?r.withScope(t,()=>{const n=i.getActiveSpan(),s=n?i.spanToTraceContext(n):r.getTraceContextFromScope(t);return[n?o.getDynamicSamplingContextFromSpan(n):o.getDynamicSamplingContextFromScope(e,t),s]}):[void 0,void 0]}},1894:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseCookie=function(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<r){n=e.lastIndexOf(";",r-1)+1;continue}const i=e.slice(n,r).trim();if(void 0===t[i]){let n=e.slice(r+1,o).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[i]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[i]=n}}n=o+1}return t}},1895:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.defineIntegration(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{r._INTERNAL_insertFlagToScope(e.gate.name,e.gate.value),r._INTERNAL_addFeatureFlagToActiveSpan(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>r._INTERNAL_copyFlagsFromScopeToEvent(e)}));t.statsigIntegration=o},1901:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4486),o=Symbol.for("SentryBufferFullError");t.SENTRY_BUFFER_FULL_ERROR=o,t.makePromiseBuffer=function(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return r.rejectedSyncPromise(o);const s=i();return t.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(e){if(!t.size)return r.resolvedSyncPromise(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const o=[n,new Promise(t=>setTimeout(()=>t(!1),e))];return Promise.race(o)}}}},1929:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(8532),s=n(4486);function a(e,t,n,s){const c=n[s];if(!e||!c)return e;const u=c({...e},t);return r.DEBUG_BUILD&&null===u&&o.debug.log(`Event processor "${c.id||"?"}" dropped event`),i.isThenable(u)?u.then(e=>a(e,t,n,s+1)):a(u,t,n,s+1)}t.notifyEventProcessors=function(e,t,n,r=0){try{const o=a(t,n,e,r);return i.isThenable(o)?o:s.resolvedSyncPromise(o)}catch(e){return s.rejectedSyncPromise(e)}}},1951:(e,t,n)=>{"use strict";var r=n(8227);t.f=r},1955:(e,t,n)=>{"use strict";var r,o,i,s,a,c=n(4576),u=n(3389),l=n(6080),d=n(9225).set,p=n(8265),f=n(9544),g=n(4265),m=n(7860),h=n(8574),_=c.MutationObserver||c.WebKitMutationObserver,S=c.document,y=c.process,T=c.Promise,E=u("queueMicrotask");if(!E){var v=new p,b=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=v.get();)try{t()}catch(e){throw v.head&&r(),e}e&&e.enter()};f||h||m||!_||!S?!g&&T&&T.resolve?((s=T.resolve(void 0)).constructor=T,a=l(s.then,s),r=function(){a(b)}):h?r=function(){y.nextTick(b)}:(d=l(d,c),r=function(){d(b)}):(o=!0,i=S.createTextNode(""),new _(b).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),E=function(e){v.head||r(),v.add(e)}}e.exports=E},2003:(e,t,n)=>{"use strict";var r=n(6518),o=n(6395),i=n(916).CONSTRUCTOR,s=n(550),a=n(7751),c=n(4901),u=n(6840),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(s)){var d=a("Promise").prototype.catch;l.catch!==d&&u(l,"catch",d,{unsafe:!0})}},2028:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1362);function i(e){return new URLSearchParams(e).toString()}t.getBodyString=function(e,t=r.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(n){return o.DEBUG_BUILD&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.DEBUG_BUILD&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]},t.getFetchRequestArgBody=function(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body},t.parseXhrResponseHeaders=function(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return o.DEBUG_BUILD&&r.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}},t.serializeFormData=i},2106:(e,t,n)=>{"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},2121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printVersion=t.version=void 0,t.version="3.5.6",t.printVersion=function(){console.log("%cPowered By%c Imposium%c v".concat("3.5.6","%c https://imposium.com"),"text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},2140:(e,t,n)=>{"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},2181:(e,t,n)=>{"use strict";var r=n(5648);e.exports=r},2195:(e,t,n)=>{"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},2211:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2215:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(1894),i=n(9764),s={cookies:!0,data:!0,headers:!0,query_string:!0,url:!0},a=r.defineIntegration((e={})=>{const t={...s,...e.include};return{name:"RequestData",processEvent(e,n,r){const{sdkProcessingMetadata:o={}}=e,{normalizedRequest:s,ipAddress:a}=o,u={...t,ip:t.ip??r.getOptions().sendDefaultPii};return s&&function(e,t,n,r){if(e.request={...e.request,...c(t,r)},r.ip){const r=t.headers&&i.getClientIPAddress(t.headers)||n.ipAddress;r&&(e.user={...e.user,ip_address:r})}}(e,s,{ipAddress:a},u),e}}});function c(e,t){const n={},r={...e.headers};if(t.headers&&(n.headers=r,t.cookies||delete r.cookie,t.ip||i.ipHeaderNames.forEach(e=>{delete r[e]})),n.method=e.method,t.url&&(n.url=e.url),t.cookies){const t=e.cookies||(r?.cookie?o.parseCookie(r.cookie):void 0);n.cookies=t||{}}return t.query_string&&(n.query_string=e.query_string),t.data&&(n.data=e.data),n}t.requestDataIntegration=a},2230:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CLIENT_ADDRESS_ATTRIBUTE="client.address",t.CLIENT_PORT_ATTRIBUTE="client.port",t.MCP_FUNCTION_ORIGIN_VALUE="auto.function.mcp_server",t.MCP_LOGGING_DATA_TYPE_ATTRIBUTE="mcp.logging.data_type",t.MCP_LOGGING_LEVEL_ATTRIBUTE="mcp.logging.level",t.MCP_LOGGING_LOGGER_ATTRIBUTE="mcp.logging.logger",t.MCP_LOGGING_MESSAGE_ATTRIBUTE="mcp.logging.message",t.MCP_METHOD_NAME_ATTRIBUTE="mcp.method.name",t.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE="mcp.notification.client_to_server",t.MCP_NOTIFICATION_ORIGIN_VALUE="auto.mcp.notification",t.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE="mcp.notification.server_to_client",t.MCP_PROMPT_NAME_ATTRIBUTE="mcp.prompt.name",t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE="mcp.prompt.result.description",t.MCP_PROMPT_RESULT_MESSAGE_CONTENT_ATTRIBUTE="mcp.prompt.result.message_content",t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE="mcp.prompt.result.message_count",t.MCP_PROMPT_RESULT_PREFIX="mcp.prompt.result",t.MCP_PROTOCOL_VERSION_ATTRIBUTE="mcp.protocol.version",t.MCP_REQUEST_ARGUMENT="mcp.request.argument",t.MCP_REQUEST_ID_ATTRIBUTE="mcp.request.id",t.MCP_RESOURCE_URI_ATTRIBUTE="mcp.resource.uri",t.MCP_ROUTE_SOURCE_VALUE="route",t.MCP_SERVER_NAME_ATTRIBUTE="mcp.server.name",t.MCP_SERVER_OP_VALUE="mcp.server",t.MCP_SERVER_TITLE_ATTRIBUTE="mcp.server.title",t.MCP_SERVER_VERSION_ATTRIBUTE="mcp.server.version",t.MCP_SESSION_ID_ATTRIBUTE="mcp.session.id",t.MCP_TOOL_NAME_ATTRIBUTE="mcp.tool.name",t.MCP_TOOL_RESULT_CONTENT_ATTRIBUTE="mcp.tool.result.content",t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE="mcp.tool.result.content_count",t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE="mcp.tool.result.is_error",t.MCP_TOOL_RESULT_PREFIX="mcp.tool.result",t.MCP_TRANSPORT_ATTRIBUTE="mcp.transport",t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE="network.protocol.version",t.NETWORK_TRANSPORT_ATTRIBUTE="network.transport"},2244:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);t.reportPageLoaded=function(e=r.getClient()){e?.emit("endPageloadSpan")}},2248:(e,t,n)=>{"use strict";var r=n(9504),o=Map.prototype;e.exports={Map,set:r(o.set),get:r(o.get),has:r(o.has),remove:r(o.delete),proto:o}},2256:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(9188),s=n(8119),a=100,c=5e3;t.MIN_DELAY=a,t.START_DELAY=c,t.makeOfflineTransport=function(e){function t(...e){r.DEBUG_BUILD&&o.debug.log("[Offline]:",...e)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let u,l=c;function d(e){u&&clearTimeout(u),u=setTimeout(async()=>{u=void 0;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),f(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e),"number"!=typeof u&&u.unref&&u.unref()}function p(){u||(d(l),l=Math.min(2*l,36e5))}async function f(e,u=!1){if(!u&&i.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await o.push(e),d(a),{};try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=a;if(t)if(t.headers?.["retry-after"])o=s.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return d(o),l=c,t}catch(r){if(await function(e,t,r){return!i.envelopeContainsItemType(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,r))}(e,r,l))return u?await o.unshift(e):await o.push(e),p(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&p(),{send:f,flush:e=>(void 0===e&&(l=c,d(a)),r.flush(e))}}}},2279:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670),s="WebWorker",a=r.defineIntegration(({worker:e})=>({name:s,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>c(e))},addWorker:e=>c(e)}));function c(e){e.addEventListener("message",e=>{var t;t=e.data,r.isPlainObject(t)&&!0===t._sentryMessage&&"_sentryDebugIds"in t&&(r.isPlainObject(t._sentryDebugIds)||void 0===t._sentryDebugIds)&&(e.stopImmediatePropagation(),o.DEBUG_BUILD&&r.debug.log("Sentry debugId web worker message received",e.data),i.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...i.WINDOW._sentryDebugIds})})}t.INTEGRATION_NAME=s,t.registerWebWorker=function({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})},t.webWorkerIntegration=a},2293:(e,t,n)=>{"use strict";var r=n(8551),o=n(5548),i=n(4117),s=n(8227)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||i(n=r(a)[s])?t:o(n)}},2357:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(4288),i=r.defineIntegration((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,s){const a=s.getOptions();r.applyAggregateErrorsToEvent(o.exceptionFromError,a.stackParser,n,t,e,i)}}});t.linkedErrorsIntegration=i},2359:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0),r=s(t,function(e,r){if(n(e,r,t))return{value:e}},!0);return r&&r.value}})},2360:(e,t,n)=>{"use strict";var r,o=n(8551),i=n(6801),s=n(8727),a=n(421),c=n(397),u=n(4055),l=n(6119),d="prototype",p="script",f=l("IE_PROTO"),g=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},h=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;_="undefined"!=typeof document?document.domain&&r?h(r):(t=u("iframe"),n="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):h(r);for(var o=s.length;o--;)delete _[d][s[o]];return _()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=o(e),n=new g,g[d]=null,n[f]=e):n=_(),void 0===t?n:i.f(n,t)}},2430:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(5110),s=[];function a(e,t,n){if(n[t.name])o.DEBUG_BUILD&&i.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}o.DEBUG_BUILD&&i.debug.log(`Integration installed: ${t.name}`)}}t.addIntegration=function(e){const t=r.getClient();t?t.addIntegration(e):o.DEBUG_BUILD&&i.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},t.afterSetupIntegrations=function(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)},t.defineIntegration=function(e){return e},t.getIntegrationsToSetup=function(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)},t.installedIntegrations=s,t.setupIntegration=a,t.setupIntegrations=function(e,t){const n={};return t.forEach(t=>{t&&a(e,t,n)}),n}},2434:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE="anthropic.response.timestamp",t.GEN_AI_OPERATION_NAME_ATTRIBUTE="gen_ai.operation.name",t.GEN_AI_PROMPT_ATTRIBUTE="gen_ai.prompt",t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE="gen_ai.request.available_tools",t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE="gen_ai.request.frequency_penalty",t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE="gen_ai.request.max_tokens",t.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE="gen_ai.request.messages",t.GEN_AI_REQUEST_MODEL_ATTRIBUTE="gen_ai.request.model",t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE="gen_ai.request.presence_penalty",t.GEN_AI_REQUEST_STREAM_ATTRIBUTE="gen_ai.request.stream",t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE="gen_ai.request.temperature",t.GEN_AI_REQUEST_TOP_K_ATTRIBUTE="gen_ai.request.top_k",t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE="gen_ai.request.top_p",t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE="gen_ai.response.finish_reasons",t.GEN_AI_RESPONSE_ID_ATTRIBUTE="gen_ai.response.id",t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE="gen_ai.response.model",t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE="gen_ai.response.stop_reason",t.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE="gen_ai.response.streaming",t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE="gen_ai.response.text",t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="gen_ai.response.tool_calls",t.GEN_AI_SYSTEM_ATTRIBUTE="gen_ai.system",t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_creation_input_tokens",t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_read_input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE="gen_ai.usage.input_tokens.cached",t.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE="gen_ai.usage.input_tokens.cache_write",t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE="gen_ai.usage.output_tokens",t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE="gen_ai.usage.total_tokens",t.OPENAI_OPERATIONS={CHAT:"chat",RESPONSES:"responses"},t.OPENAI_RESPONSE_ID_ATTRIBUTE="openai.response.id",t.OPENAI_RESPONSE_MODEL_ATTRIBUTE="openai.response.model",t.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE="openai.response.timestamp",t.OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE="openai.usage.completion_tokens",t.OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE="openai.usage.prompt_tokens"},2501:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEFAULT_ENVIRONMENT="production"},2507:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3872),i=n(1604),s=({entries:e})=>{const t=r.getActiveSpan(),n=t?r.getRootSpan(t):void 0,o=n?r.spanToJSON(n).description:r.getCurrentScope().getScopeData().transactionName;e.forEach(e=>{const t=e;if(!t.identifier)return;const n=t.name,s=t.renderTime,a=t.loadTime,[c,u]=a?[i.msToSec(a),"load-time"]:s?[i.msToSec(s),"render-time"]:[r.timestampInSeconds(),"entry-emission"],l="image-paint"===n?i.msToSec(Math.max(0,(s??0)-(a??0))):0,d={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.elementtiming",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.elementtiming",[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component","sentry.span_start_time_source":u,"sentry.transaction_name":o,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||"unknown","element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":s,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};r.startSpan({name:`element[${t.identifier}]`,attributes:d,startTime:c,onlyIfParent:!0},e=>{e.end(c+l)})})};t._onElementTiming=s,t.startTrackingElementTiming=function(){return i.getBrowserPerformanceAPI()&&r.browserPerformanceTimeOrigin()?o.addPerformanceInstrumentationHandler("element",s):()=>{}}},2511:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2955),s=n(6321),a=n(632),c=n(8368),u=n(7481),l=n(1499),d=n(6612),p=o(n(3685).Sn,[]),f=function(){function e(t){var n=this;this.clientConfig=void 0,this.gaProperty="",this.directDeliveryPipe=void 0,this.player=void 0,this.renderHistory=p.emptyHistory,this.eventDelegateRefs=(0,d.cloneWithKeys)(e.eventNames),this.playerIsFallback=!1,this.setup=function(e){var t=p.defaultConfig,o=n.clientConfig||p.defaultConfig,s=new Map,f=null;try{if("object"!=typeof e)throw new l.ClientConfigurationError("badConfig",null);if(!e.hasOwnProperty("storyId")||"string"!=typeof e.storyId)throw new l.ClientConfigurationError("storyId",null);if(!e.hasOwnProperty("accessToken")||"string"!=typeof e.accessToken)throw new l.ClientConfigurationError("accessToken",null);(0,d.prepConfig)(e,t),n.clientConfig=r(r({},o),e),f=new i.default(n.clientConfig.accessToken,n.clientConfig.environment,n.clientConfig.storyId,n.clientConfig.compositionId),s.set("experienceCreated",function(e){return n.experienceCreated(e)}),s.set("gotExperience",function(e){return n.gotExperience(e)}),s.set("internalError",function(e){return n.internalError(e)}),n.directDeliveryPipe=new u.default({api:f,clientDelegates:s,environment:n.clientConfig.environment}),f.getGAProperty().then(function(e){var t=e.gaTrackingId;"string"==typeof t&&t.length>0&&(a.default.initialize(n.clientConfig.gaPlacement),n.gaProperty=t,void 0!==n.player&&n.player.setGaProperty(t))}).catch(function(e){var t=new l.HTTPError("httpFailure",null,e);c.default.trapError(t,n.clientConfig.storyId,null)})}catch(t){var g=e&&e.storyId?e.storyId:"";c.default.trapError(t,g)}},this.bindPlayer=function(e,t){if(void 0===t&&(t=!1),n.clientConfig){var r=n.clientConfig.storyId;n.playerIsFallback=t,n.player=e,e.setStoryId(r),n.gaProperty&&e.setGaProperty(n.gaProperty)}},this.on=function(t,r){var o=n,i=o.eventDelegateRefs,s=o.eventDelegateRefs.ERROR;if(n.clientConfig){var a=n.clientConfig.storyId;try{if(!(0,d.isFunc)(r))throw new l.ClientConfigurationError("invalidCallbackType",t);if(!(0,d.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);i[t]=r}catch(e){c.default.trapError(e,a,s)}}},this.off=function(t){void 0===t&&(t="");var r=n,o=r.eventDelegateRefs,i=r.eventDelegateRefs.ERROR;if(n.clientConfig){var s=n.clientConfig.storyId;try{if(t){if(!(0,d.keyExists)(e.eventNames,t))throw new l.ClientConfigurationError("invalidEventName",t);o[t]=null}else Object.keys(e.eventNames).forEach(function(e){o[e]=null})}catch(e){c.default.trapError(e,s,i)}}},this.captureAnalytics=function(e){void 0===e&&(e=null);var t=n.eventDelegateRefs.ERROR;if(n.clientConfig){var r=n.clientConfig.storyId;try{if(!(e instanceof HTMLVideoElement))throw new l.PlayerConfigurationError("invalidPlayerRef",null);n.bindPlayer(new s.default(e),!0)}catch(e){c.default.trapError(e,r,t)}}},this.getExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.clientConfig.storyId,s=r.eventDelegateRefs,a=s.GOT_EXPERIENCE,u=s.ERROR;try{if(null===o&&!(0,d.isFunc)(a))throw new l.ClientConfigurationError("badConfigOnGet",e.eventNames.GOT_EXPERIENCE);t.length>p.uuidLength&&(t=t.substring(0,p.uuidLength)),n.directDeliveryPipe.getExperience(t)}catch(e){c.default.trapError(e,i,u)}}},this.createExperience=function(t,r){if(void 0===r&&(r=!0),n.clientConfig){var o=n,i=o.player,s=o.playerIsFallback,a=o.clientConfig.storyId,u=o.eventDelegateRefs,p=u.GOT_EXPERIENCE,f=u.UPLOAD_PROGRESS,g=u.ERROR;try{if((null===i||s)&&!(0,d.isFunc)(p))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.createExperience(t,r,f)}catch(e){c.default.trapError(e,a,g)}}},this.renderExperience=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,s=r.clientConfig.storyId,a=r.eventDelegateRefs,u=a.GOT_EXPERIENCE,p=a.UPLOAD_PROGRESS,f=a.ERROR;try{if((null===o||i)&&!(0,d.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(t,p)}catch(e){c.default.trapError(e,s,f)}}},this.renderExperienceFromId=function(t){if(n.clientConfig){var r=n,o=r.player,i=r.playerIsFallback,s=r.clientConfig.storyId,a=r.eventDelegateRefs,u=a.GOT_EXPERIENCE,p=a.UPLOAD_PROGRESS,f=a.ERROR;try{if((null===o||i)&&!(0,d.isFunc)(u))throw new l.ClientConfigurationError("bagConfigOnPostRender",e.eventNames.GOT_EXPERIENCE);n.directDeliveryPipe.fetchExperience(null,p,1,t)}catch(e){c.default.trapError(e,s,f)}}},this.updateHistory=function(e,t){n.renderHistory[e]!==t&&(n.renderHistory[e]=t)},this.experienceCreated=function(e){var t=n.eventDelegateRefs.EXPERIENCE_CREATED,r=e.id;(0,d.isFunc)(t)&&t(e),n.updateHistory("prevExperienceId",r)},this.gotExperience=function(e){var t=n,r=t.player,o=t.clientConfig.storyId,i=t.eventDelegateRefs,s=i.GOT_EXPERIENCE,a=i.ERROR,u=e.id,p=e.moderation_status;try{if("rejected"===p)throw new l.ModerationError("rejection",u);(0,d.isFunc)(s)&&s(e),void 0!==r&&r.experienceGenerated(e),n.updateHistory("prevExperienceId",u),n.updateHistory("prevMessage","")}catch(e){c.default.trapError(e,o,a)}},this.internalError=function(e){var t=n,r=t.clientConfig.storyId,o=t.eventDelegateRefs.ERROR;c.default.trapError(e,r,o)},this.setup(t)}return e.eventNames=p.eventNames,e}();t.default=f},2529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2591:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670);n(3396),n(7558),n(1673),n(5196),n(8299),n(4449),n(8968),n(2357);const s="sentry_previous_trace",a="sentry.previous_trace";function c(e,t,n){const i=r.spanToJSON(t),s={spanContext:t.spanContext(),startTimestamp:i.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(i.data?.[r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return s;const c=e.spanContext;return c.traceId===i.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(o.DEBUG_BUILD&&r.debug.log(`Adding previous_trace ${c} link to span ${{op:i.op,...t.spanContext()}}`),t.addLink({context:c,attributes:{[r.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(a,`${c.traceId}-${c.spanId}-${d(c)?1:0}`)),s)}function u(e){try{i.WINDOW.sessionStorage.setItem(s,JSON.stringify(e))}catch(e){o.DEBUG_BUILD&&r.debug.warn("Could not store previous trace in sessionStorage",e)}}function l(){try{const e=i.WINDOW.sessionStorage?.getItem(s);return JSON.parse(e)}catch{return}}function d(e){return 1===e.traceFlags}t.PREVIOUS_TRACE_KEY=s,t.PREVIOUS_TRACE_MAX_DURATION=3600,t.PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE=a,t.addPreviousTraceSpanLink=c,t.getPreviousTraceFromSessionStorage=l,t.linkTraces=function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const o="session-storage"===t;let i=o?l():void 0;e.on("spanStart",e=>{if(r.getRootSpan(e)!==e)return;const t=r.getCurrentScope().getPropagationContext();i=c(i,e,t),o&&u(i)});let s=!0;n&&e.on("beforeSampling",e=>{if(!i)return;const t=r.getCurrentScope(),n=t.getPropagationContext();s&&n.parentSpanId?s=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(d(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=d(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[r.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:i.sampleRate})})},t.spanContextSampled=d,t.storePreviousTraceInSessionStorage=u},2603:(e,t,n)=>{"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},2652:(e,t,n)=>{"use strict";var r=n(6080),o=n(9565),i=n(8551),s=n(6823),a=n(4209),c=n(6198),u=n(1625),l=n(81),d=n(851),p=n(9539),f=TypeError,g=function(e,t){this.stopped=e,this.result=t},m=g.prototype;e.exports=function(e,t,n){var h,_,S,y,T,E,v,b=n&&n.that,I=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),R=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),N=r(t,b),C=function(e){return h&&p(h,"normal"),new g(!0,e)},w=function(e){return I?(i(e),O?N(e[0],e[1],C):N(e[0],e[1])):O?N(e,C):N(e)};if(A)h=e.iterator;else if(R)h=e;else{if(!(_=d(e)))throw new f(s(e)+" is not iterable");if(a(_)){for(S=0,y=c(e);y>S;S++)if((T=w(e[S]))&&u(m,T))return T;return new g(!1)}h=l(e,_)}for(E=A?e.next:h.next;!(v=o(E,h)).done;){try{T=w(v.value)}catch(e){p(h,"throw",e)}if("object"==typeof T&&T&&u(m,T))return T}return new g(!1)}},2675:(e,t,n)=>{"use strict";n(6761),n(1510),n(7812),n(3110),n(9773)},2744:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},2751:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",t.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",t.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME="sentry.custom_span_name",t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",t.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE="sentry.previous_trace_sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",t.SEMANTIC_ATTRIBUTE_URL_FULL="url.full",t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE="sentry.link.type"},2777:(e,t,n)=>{"use strict";var r=n(9565),o=n(34),i=n(757),s=n(5966),a=n(4270),c=n(8227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,c=s(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2787:(e,t,n)=>{"use strict";var r=n(9297),o=n(4901),i=n(8981),s=n(6119),a=n(2211),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},2796:(e,t,n)=>{"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n===l||n!==u&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},2810:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(5475);t.getAsyncContextStrategy=function(e){const t=r.getSentryCarrier(e);return t.acs?t.acs:o.getStackAsyncContextStrategy()},t.setAsyncContextStrategy=function(e){const t=r.getMainCarrier();r.getSentryCarrier(t).acs=e}},2812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},2833:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getBreadcrumbLogLevelFromHttpStatusCode=function(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}},2839:(e,t,n)=>{"use strict";var r=n(4576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},2843:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1604);function i(e){return e?((r.browserPerformanceTimeOrigin()||performance.timeOrigin)+e)/1e3:e}t.resourceTimingToSpanAttributes=function(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=o.extractNetworkProtocol(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return r.browserPerformanceTimeOrigin()||o.getBrowserPerformanceAPI()?.timeOrigin?(n={...t,"http.request.redirect_start":i(e.redirectStart),"http.request.redirect_end":i(e.redirectEnd),"http.request.worker_start":i(e.workerStart),"http.request.fetch_start":i(e.fetchStart),"http.request.domain_lookup_start":i(e.domainLookupStart),"http.request.domain_lookup_end":i(e.domainLookupEnd),"http.request.connect_start":i(e.connectStart),"http.request.secure_connection_start":i(e.secureConnectionStart),"http.request.connection_end":i(e.connectEnd),"http.request.request_start":i(e.requestStart),"http.request.response_start":i(e.responseStart),"http.request.response_end":i(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}},2855:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.GLOBAL_OBJ,i=new WeakMap,s=r.defineIntegration((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(i.has(r.getClient()))for(const t of e)r.withScope(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let o="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;o=[e.crashId||"",e.reason||""].join(" ").trim()||o}else o=t.body.message||o}r.captureMessage(`${n}: ${o}`)})}return{name:"ReportingObserver",setupOnce(){r.supportsReportingObserver()&&new o.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){i.set(e,!0)}}});t.reportingObserverIntegration=s},2856:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2434),o=n(7697);function i(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}t.buildMethodPath=function(e,t){return e?`${e}.${t}`:t},t.getFinalOperationName=i,t.getSpanOperation=function(e){return`gen_ai.${i(e)}`},t.getTruncatedJsonString=function(e){if("string"==typeof e)return e;if(Array.isArray(e)){const t=o.truncateGenAiMessages(e);return JSON.stringify(t)}return JSON.stringify(e)},t.setTokenUsageAttributes=function(e,t,n,o,i){if(void 0!==t&&e.setAttributes({[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==n&&e.setAttributes({[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n}),void 0!==t||void 0!==n||void 0!==o||void 0!==i){const s=(t??0)+(n??0)+(o??0)+(i??0);e.setAttributes({[r.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:s})}}},2918:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9025),o=n(561);t.callFrameToStackFrame=function(e,t,n){const i=t?t.replace(/^file:\/\//,""):void 0,s=e.location.columnNumber?e.location.columnNumber+1:void 0,a=e.location.lineNumber?e.location.lineNumber+1:void 0;return{filename:i,module:n(i),function:e.functionName||o.UNKNOWN_FUNCTION,colno:s,lineno:a,in_app:i?r.filenameIsInApp(i):void 0}},t.watchdogTimer=function(e,t,n,r){const o=e();let i=!1,s=!0;return setInterval(()=>{const e=o.getTimeMs();!1===i&&e>t+n&&(i=!0,s&&r()),e<t+n&&(i=!1)},20),{poll:()=>{o.reset()},enabled:e=>{s=e}}}},2955:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6765),s=n(6425),a=n(6612),c=o(n(3685).FH,[]);t.default=function(e,t,n,o){var u;void 0===o&&(o=null);var l=this;this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise(function(e,t){l.http.get("/story/".concat(l.storyId,"/property")).then(function(t){e(t.data)}).catch(function(e){t(e)})})},this.get=function(e){return new Promise(function(t,n){l.http.get("/story/".concat(l.storyId,"/experience/").concat(e,"?r=").concat(Math.random())).then(function(e){t(e.data)}).catch(function(e){n(e)})})},this.fetch=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=(0,a.inventoryToFormData)(l.storyId,e,l.compositionId),i={onUploadProgress:function(e){return l.uploadProgress(e,n)}};return o.append("id",t),new Promise(function(e,t){l.http.post("/experience/fetch",o,i).then(function(t){e(t.data)}).catch(function(e){t(e)})})},this.create=function(e,t,n,r){void 0===r&&(r=null);var o=t?"/experience/render":"/experience",i=(0,a.inventoryToFormData)(l.storyId,e,l.compositionId),s={onUploadProgress:function(e){return l.uploadProgress(e,r)}};return i.append("id",n),new Promise(function(e,t){l.http.post(o,i,s).then(function(t){e(t.data)}).catch(function(e){t(e)})})},this.getAuthHeader=function(e){var t,n,r=c.jwt,o=c.hmac;try{return(0,i.default)(e),(t={})[r]=e,t}catch(t){return(n={})[o]=e,n}},this.uploadProgress=function(e,t){if(void 0===t&&(t=null),t){var n=e.loaded,r=e.total;t(Math.round(n/r*100))}};var d=c.version,p=c.currentVersion;this.storyId=n,this.compositionId=o,this.http=s.default.create({baseURL:c[t],headers:r(r({},this.getAuthHeader(e)),(u={},u[d]=p,u))})}},2958:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(153),i=n(3395),s=r.defineIntegration((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,s){const a=s.getOptions();o.applyAggregateErrorsToEvent(i.exceptionFromError,a.stackParser,n,t,e,r)}}});t.linkedErrorsIntegration=s},2967:(e,t,n)=>{"use strict";var r=n(6706),o=n(34),i=n(7750),s=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),s(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},2979:(e,t)=>{function n(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n;t.fmt=r,t.parameterize=n},2989:(e,t,n)=>{"use strict";e.exports=n(1155)},2990:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5476);t.getActivationStart=()=>{const e=r.getNavigationEntry();return e?.activationStart??0}},2992:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=r.GLOBAL_OBJ,s="sentryReplaySession",a="Unable to send Replay",c=15e4,u=5e3,l=2e7;var d=Object.defineProperty,p=(e,t,n)=>((e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),f=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(f||{});function g(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function m(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function h(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,_).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}var t}function _(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=h(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class S{constructor(){p(this,"idNodeMap",new Map),p(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function y({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function T({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function E(e){return e.toLowerCase()}function v(e){return e.toUpperCase()}const b="__rrweb_original__";function I(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?E(t):null}function A(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function R(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const O={};function N(e){const t=O[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return O[e]=r.bind(window)}function C(...e){return N("setTimeout")(...e)}function w(...e){return N("clearTimeout")(...e)}function k(e){try{return e.contentDocument}catch(e){}}let P=1;const x=new RegExp("[^a-z0-9-_:]");function M(){return P++}let U,L;const D=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,B=/^(?:[a-z+]+:)?\/\//i,F=/^www\..*/i,j=/^(data:)([^,]*),(.*)/i;function G(e,t){return(e||"").replace(D,(e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(B.test(a)||F.test(a))return`url(${c}${a}${c})`;if(j.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`})}const H=/^[^ \t\n\r\u000c]+/,W=/^[, \t\n\r\u000c]+/,$=new WeakMap;function z(e,t){return t&&""!==t.trim()?q(e,t):t}function q(e,t){let n=$.get(e);if(n||(n=e.createElement("a"),$.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function V(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?z(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(W),!(n>=t.length);){let i=r(H);if(","===i.slice(-1))i=z(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=z(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?G(r,q(e)):"object"===t&&"data"===n?z(e,r):"function"==typeof i?i(n,r,o):r:z(e,r):r}function Y(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function J(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:J(e.parentNode,t,n,r+1):-1}function K(e,t){return n=>{const r=n;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 n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function X(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const 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 a=-1,c=-1;if(i){if(c=J(s,K(r,o)),c<0)return!0;a=J(s,K(t,n),c>=0?c:1/0)}else{if(a=J(s,K(t,n)),a<0)return!1;c=J(s,K(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(e){}return!!i}function Q(e){return null==e?"":e.toLowerCase()}function Z(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:_=!0,maskInputOptions:S={},maskAttributeFn:O,maskTextFn:N,maskInputFn:P,slimDOMOptions:D,dataURLOptions:B={},inlineImages:F=!1,recordCanvas:j=!1,onSerialize:H,onIframeLoad:W,iframeLoadTimeout:$=5e3,onBlockedImageLoad:z,onStylesheetLoad:J,stylesheetLoadTimeout:K=5e3,keepIframeSrcFn:ee=()=>!1,newlyAddedElement:te=!1}=t;let{preserveWhiteSpace:ne=!0}=t;const re=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:m={},maskTextFn:_,maskInputFn:S,dataURLOptions:R={},inlineImages:O,recordCanvas:N,keepIframeSrcFn:C,newlyAddedElement:w=!1}=t,P=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:f.Document,childNodes:[],compatMode:e.compatMode}:{type:f.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:f.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:P};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:m=!1,rootId:_,maskTextClass:S,unmaskTextClass:R,maskTextSelector:O,unmaskTextSelector:N}=t,C=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=E(e.tagName);return x.test(t)?"div":t}(e);let P={};const M=e.attributes.length;for(let t=0;t<M;t++){const r=e.attributes[t];r.name&&!Y(w,r.name,r.value)&&(P[r.name]=V(n,w,E(r.name),r.value,e,c))}if("link"===w&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=h(t)),r&&(P.rel=null,P.href=null,P.crossorigin=null,P._cssText=G(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=h(e.sheet);t&&(P._cssText=G(t,q(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=I(t),r=A(t,v(w),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=X(t,S,O,R,N,y({type:n,tagName:v(w),maskInputOptions:a}));P.value=T({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(P.checked=o)}if("option"===w&&(e.selected&&!a.select?P.selected=!0:delete P.selected),"canvas"===w&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=b in o?o[b]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(P.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(P.rr_dataURL=t)}if("img"===w&&d){U||(U=n.createElement("canvas"),L=U.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{U.width=t.naturalWidth,U.height=t.naturalHeight,L.drawImage(t,0,0),P.rr_dataURL=U.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?P.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"!==w&&"video"!==w||(P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(P.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(P.rr_scrollTop=e.scrollTop)),C){const{width:t,height:n}=e.getBoundingClientRect();P={class:P.class,rr_width:`${t}px`,rr_height:`${n}px`}}let D;"iframe"!==w||g(P.src)||(C||k(e)||(P.rr_src=P.src),delete P.src);try{customElements.get(w)&&(D=!0)}catch(e){}return{type:f.Element,tagName:w,attributes:P,childNodes:[],isSVG:(B=e,Boolean("svg"===B.tagName||B.ownerSVGElement)||void 0),needBlock:C,rootId:_,isCustom:D};var B}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:g,maskAttributeFn:c,maskInputOptions:m,maskInputFn:S,dataURLOptions:R,inlineImages:O,recordCanvas:N,keepIframeSrcFn:C,newlyAddedElement:w,rootId:P,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const g="STYLE"===d||void 0,m="SCRIPT"===d||void 0,_="TEXTAREA"===d||void 0;if(g&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=h(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=G(p,q(t.doc))}m&&(p="SCRIPT_PLACEHOLDER");const S=X(e,r,i,o,s,n);return g||m||_||!p||!S||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),_&&p&&(c.textarea||S)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=T({isMasked:X(e,r,i,o,s,y({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})),{type:f.Text,textContent:p||"",isStyle:g,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:m,maskInputFn:S,rootId:P});case e.CDATA_SECTION_NODE:return{type:f.CDATA,textContent:"",rootId:P};case e.COMMENT_NODE:return{type:f.Comment,textContent:e.textContent||"",rootId:P};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:_,maskInputOptions:S,maskAttributeFn:O,maskTextFn:N,maskInputFn:P,dataURLOptions:B,inlineImages:F,recordCanvas:j,keepIframeSrcFn:ee,newlyAddedElement:te});if(!re)return console.warn(e,"not serialized"),null;let oe;oe=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===f.Comment)return!0;if(e.type===f.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"===R(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Q(e.attributes.name)||"icon"===Q(e.attributes.rel)||"apple-touch-icon"===Q(e.attributes.rel)||"shortcut icon"===Q(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Q(e.attributes.property).match(/^(og|twitter|fb):/)||Q(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Q(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Q(e.attributes.name)||"googlebot"===Q(e.attributes.name)||"bingbot"===Q(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Q(e.attributes.name)||"generator"===Q(e.attributes.name)||"framework"===Q(e.attributes.name)||"publisher"===Q(e.attributes.name)||"progid"===Q(e.attributes.name)||Q(e.attributes.property).match(/^article:/)||Q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Q(e.attributes.name)||"yandex-verification"===Q(e.attributes.name)||"csrf-token"===Q(e.attributes.name)||"p:domain_verify"===Q(e.attributes.name)||"verify-v1"===Q(e.attributes.name)||"verification"===Q(e.attributes.name)||"shopify-checkout-api-token"===Q(e.attributes.name)))return!0}}return!1}(re,D)&&(ne||re.type!==f.Text||re.isStyle||re.textContent.replace(/^\s+|\s+$/gm,"").length)?M():-2;const ie=Object.assign(re,{id:oe});if(r.add(e,ie),-2===oe)return null;H&&H(e);let se=!p;if(ie.type===f.Element){se=se&&!ie.needBlock;const t=e.shadowRoot;t&&m(t)&&(ie.isShadowHost=!0)}if((ie.type===f.Document||ie.type===f.Element)&&se){D.headWhitespace&&ie.type===f.Element&&"head"===ie.tagName&&(ne=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:_,maskInputOptions:S,maskAttributeFn:O,maskTextFn:N,maskInputFn:P,slimDOMOptions:D,dataURLOptions:B,inlineImages:F,recordCanvas:j,preserveWhiteSpace:ne,onSerialize:H,onIframeLoad:W,iframeLoadTimeout:$,onBlockedImageLoad:z,onStylesheetLoad:J,stylesheetLoadTimeout:K,keepIframeSrcFn:ee},g=e.childNodes?Array.from(e.childNodes):[];for(const e of g){const n=Z(e,t);n&&ie.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Z(n,t);r&&(m(e.shadowRoot)&&(r.isShadow=!0),ie.childNodes.push(r))}}if(e.parentNode&&g(e.parentNode)&&m(e.parentNode)&&(ie.isShadow=!0),ie.type!==f.Element||"iframe"!==ie.tagName||ie.needBlock||function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=C(()=>{i||(t(),i=!0)},n);return void e.addEventListener("load",()=>{w(r),i=!0,t()})}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return C(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=k(e);if(t&&W){const n=Z(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:_,maskInputOptions:S,maskAttributeFn:O,maskTextFn:N,maskInputFn:P,slimDOMOptions:D,dataURLOptions:B,inlineImages:F,recordCanvas:j,preserveWhiteSpace:ne,onSerialize:H,onIframeLoad:W,iframeLoadTimeout:$,onStylesheetLoad:J,stylesheetLoadTimeout:K,keepIframeSrcFn:ee});n&&W(e,n)}},$),ie.type===f.Element&&"img"===ie.tagName&&!e.complete&&ie.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&z)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&z(t,ie,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return ie.type===f.Element&&"link"===ie.tagName&&"string"==typeof ie.attributes.rel&&("stylesheet"===ie.attributes.rel||"preload"===ie.attributes.rel&&"string"==typeof ie.attributes.href&&"css"===R(ie.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=C(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{w(i),o=!0,t()})}(e,()=>{if(J){const t=Z(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:_,maskInputOptions:S,maskAttributeFn:O,maskTextFn:N,maskInputFn:P,slimDOMOptions:D,dataURLOptions:B,inlineImages:F,recordCanvas:j,preserveWhiteSpace:ne,onSerialize:H,onIframeLoad:W,iframeLoadTimeout:$,onStylesheetLoad:J,stylesheetLoadTimeout:K,keepIframeSrcFn:ee});t&&J(e,t)}},K),ie.type===f.Element&&delete ie.needBlock,ie}function ee(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const te="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.";let ne={map:{},getId:()=>(console.error(te),-1),getNode:()=>(console.error(te),null),removeNodeFromMap(){console.error(te)},has:()=>(console.error(te),!1),reset(){console.error(te)}};function re(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(function(...e){ve("clearTimeout")(...e)}(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=be(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)},a))}}function oe(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){be(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>oe(e,t,i||{},!0)}function ie(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ne=new Proxy(ne,{get:(e,t,n)=>("map"===t&&console.error(te),Reflect.get(e,t,n))}));let se=Date.now;function ae(e){const 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 ce(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ue(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function le(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function de(e,t,n,r,o){if(!e)return!1;const i=le(e);if(!i)return!1;const s=K(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=J(i,s);let c=-1;return!(a<0)&&(r&&(c=J(i,K(null,r))),a>-1&&c<0||a<c)}function pe(e,t){return-2===t.getId(e)}function fe(e,t){if(g(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||fe(e.parentNode,t))}function ge(e){return Boolean(e.changedTouches)}function me(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function he(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function _e(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(se=()=>(new Date).getTime());class Se{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){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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 ye(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Te(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=ye(n);)n=t;return n}(e);return t.contains(n)}(e))}const Ee={};function ve(e){const t=Ee[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Ee[e]=r.bind(window)}function be(...e){return ve("setTimeout")(...e)}var Ie=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ie||{}),Ae=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ae||{}),Re=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Re||{}),Oe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Oe||{}),Ne=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ne||{});function Ce(e){try{return e.contentDocument}catch(e){}}function we(e){return"__ln"in e}class ke{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&we(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&we(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.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){const 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--)}}const Pe=(e,t)=>`${e}@${t}`;class xe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new ke,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Te(o))return;const i=g(o.parentNode)?this.mirror.getId(ye(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=Z(o,{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=>{me(e,this.mirror)&&!de(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),he(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),_e(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{de(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:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Ue(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Le(this.droppedSet,e)||Ue(this.removes,e,this.mirror)?Le(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const 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=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).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(!pe(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;de(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:X(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,le(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=I(t),o=t.tagName;r=A(t,o,n);const i=y({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=T({isMasked:X(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(de(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Ce(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Y(t.tagName,n)&&(o.attributes[n]=V(this.doc,E(t.tagName),E(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(de(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=g(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);de(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||pe(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Me(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||fe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Pe(n,r)]?Me(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!g(e.target)||!m(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(pe(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Pe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);de(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),_e(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"].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 Me(e,t){e.delete(t),t.childNodes?.forEach(t=>Me(e,t))}function Ue(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function Le(e,t){return 0!==e.size&&De(e,t)}function De(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||De(e,n))}let Be;const Fe=e=>Be?(...t)=>{try{return e(...t)}catch(e){if(Be&&!0===Be(e))return()=>{};throw e}}:e,je=[];function Ge(e){try{if("composedPath"in e){const 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 He(e,t){const n=new xe;je.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(Fe(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function We({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return ee("scroll",Fe(re(Fe(s=>{const a=Ge(s);if(!a||de(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=ae(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}const $e=["INPUT","TEXTAREA","SELECT"],ze=new WeakMap;function qe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:g,unmaskTextSelector:m}){function h(e){let n=Ge(e);const l=e.isTrusted,h=n&&v(n.tagName);if("OPTION"===h&&(n=n.parentElement),!n||!h||$e.indexOf(h)<0||de(n,r,o,i,!0))return;const S=n;if(S.classList.contains(s)||a&&S.matches(a))return;const E=I(n);let b=A(S,h,E),R=!1;const O=y({maskInputOptions:c,tagName:h,type:E}),N=X(n,p,g,f,m,O);"radio"!==E&&"checkbox"!==E||(R=n.checked),b=T({isMasked:N,element:n,value:b,maskInputFn:u}),_(n,d?{text:b,isChecked:R,userTriggered:l}:{text:b,isChecked:R});const C=n.name;"radio"===E&&C&&R&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach(e=>{if(e!==n){const t=T({isMasked:N,element:e,value:A(e,h,E),maskInputFn:u});_(e,d?{text:t,isChecked:!R,userTriggered:!1}:{text:t,isChecked:!R})}})}function _(t,r){const o=ze.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){ze.set(t,r);const o=n.getId(t);Fe(e)({...r,id:o})}}const S=("last"===l.input?["change"]:["input","change"]).map(e=>ee(e,Fe(h),t)),E=t.defaultView;if(!E)return()=>{S.forEach(e=>e())};const b=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),R=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&S.push(...R.map(e=>oe(e[0],e[1],{set(){Fe(h)({target:this,isTrusted:!1})}},!1,E))),Fe(()=>{S.forEach(e=>e())})}function Ve(e){return function(e,t){if(Xe("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Xe("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Xe("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Xe("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ye(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Je({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Fe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function Ke(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=He(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=re(Fe(t=>{const n=Date.now()-s;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],s=null}),i),u=Fe(re(Fe(e=>{const t=Ge(e),{clientX:n,clientY:o}=ge(e)?e.changedTouches[0]:e;s||(s=se()),a.push({x:n,y:o,id:r.getId(t),timeOffset:se()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ae.Drag:e instanceof MouseEvent?Ae.MouseMove:Ae.TouchMove)}),o,{trailing:!1})),l=[ee("mousemove",u,n),ee("touchmove",u,n),ee("drag",u,n)];return Fe(()=>{l.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(Re).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(s=>{let a=E(s);const l=(t=>s=>{const a=Ge(s);if(de(a,r,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=Oe.Mouse;break;case"touch":c=Oe.Touch;break;case"pen":c=Oe.Pen}c===Oe.Touch?Re[t]===Re.MouseDown?l="TouchStart":Re[t]===Re.MouseUp&&(l="TouchEnd"):Oe.Pen}else ge(s)&&(c=Oe.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Oe.Touch||l.startsWith("Mouse")&&c===Oe.Mouse)&&(c=null)):Re[t]===Re.Click&&(c=u,u=null);const d=ge(s)?s.changedTouches[0]:s;if(!d)return;const p=n.getId(a),{clientX:f,clientY:g}=d;Fe(e)({type:Re[l],id:p,x:f,y:g,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(Re[s]){case Re.MouseDown:case Re.MouseUp:a=a.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}c.push(ee(a,l,t))}),Fe(()=>{c.forEach(e=>e())})}(e),s=We(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ee("resize",Fe(re(Fe(()=>{const t=ce(),o=ue();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),c=qe(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Fe(s=>re(Fe(i=>{const a=Ge(i);if(!a||de(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),i.media||500)),c=[ee("play",a(Ne.Play),s),ee("pause",a(Ne.Pause),s),ee("seeked",a(Ne.Seeked),s),ee("volumechange",a(Ne.VolumeChange),s),ee("ratechange",a(Ne.RateChange),s)];return Fe(()=>{c.forEach(e=>e())})}(e);let l=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Fe((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Ye(o,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(o,i)})});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Fe((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Ye(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)})}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Fe((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Ye(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Fe((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Ye(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)})}));const c={};Qe("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Qe("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Qe("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Qe("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Fe((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Ye(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...Ve(o),a||0]}]}),r.apply(o,i)})}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Fe((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Ye(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Ve(o),s]}]}),r.apply(o,i)})})}),Fe(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=Je(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Fe((o,s,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(s,[c,u,l]);const{id:d,styleId:p}=Ye(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Ve(s.parentRule)}),o.apply(s,a)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Fe((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=Ye(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Ve(i.parentRule)}),o.apply(i,a)})}),Fe(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=ie(t.fonts,"add",function(t){return function(n){return be(Fe(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=i}),r.push(s),Fe(()=>{r.forEach(e=>e())})}(e)));const g=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=Fe(()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=s;de(a,r,o,i,!0)||de(l,r,o,i,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}s({ranges:c})});return c(),ee("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?ie(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}}):()=>{}}(e),h=[];for(const t of e.plugins)h.push(t.observer(t.callback,n,t.options));return Fe(()=>{je.forEach(e=>e.reset()),r?.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),p(),f(),g(),m(),h.forEach(e=>e())})}function Xe(e){return void 0!==window[e]}function Qe(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ze{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);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 et{constructor(){this.crossOriginIframeMirror=new Ze(M),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ze(M),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ze(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);const n=Ce(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Ie.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ie.IncrementalSnapshot,data:{source:Ae.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ie.Meta:case Ie.Load:case Ie.DomContentLoaded:return!1;case Ie.Plugin:return t;case Ie.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ie.IncrementalSnapshot:switch(t.data.source){case Ae.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),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 Ae.Drag:case Ae.TouchMove:case Ae.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ae.ViewportResize:return!1;case Ae.MediaInteraction:case Ae.MouseInteraction:case Ae.Scroll:case Ae.CanvasMutation:case Ae.Input:return this.replaceIds(t.data,e,["id"]),t;case Ae.StyleSheetRule:case Ae.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ae.Font:return t;case Ae.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Ae.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,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}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===f.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class nt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class rt{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(!m(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=He({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(We({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),be(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Je({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=Ce(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(ie(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Te(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ot="undefined"==typeof Uint8Array?[]:new Uint8Array(256),it=0;it<64;it++)ot["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(it)]=it;class st{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class at{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Se,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;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:_(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ct{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){ve("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let ut,lt;try{if(2!==Array.from([1],e=>2*e)[0]){const 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)}const dt=new S;function pt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:h,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:T,maskTextFn:E,maxCanvasSize:v=null,packFn:b,sampling:I={},dataURLOptions:A={},mousemoveWait:R,recordDOM:O=!0,recordCanvas:N=!1,recordCrossOriginIframes:C=!1,recordAfter:w=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:P=!1,inlineImages:x=!1,plugins:M,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:D,onMutation:B,getCanvasManager:F}=e;Be=D;const j=!C||window.parent===window;let G=!1;if(!j)try{window.parent.document&&(G=!1)}catch(e){G=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!G)return()=>{};void 0!==R&&void 0===I.mousemove&&(I.mousemove=R),dt.reset();const H=!0===m?{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!==h?h:{},W=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let $;!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 new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let z=0;const q=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return b&&!G&&(e=b(e)),e};ut=(e,o)=>{const i=e;if(i.timestamp=se(),!je[0]?.isFrozen()||i.type===Ie.FullSnapshot||i.type===Ie.IncrementalSnapshot&&i.data.source===Ae.Mutation||je.forEach(e=>e.unfreeze()),j)t?.(q(i),o);else if(G){const e={type:"rrweb",event:q(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Ie.FullSnapshot)$=i,z=0;else if(i.type===Ie.IncrementalSnapshot){if(i.data.source===Ae.Mutation&&i.data.isAttachIframe)return;z++;const e=r&&z>=r,t=n&&$&&i.timestamp-$.timestamp>n;(e||t)&&re(!0)}};const V=e=>{ut({type:Ie.IncrementalSnapshot,data:{source:Ae.Mutation,...e}})},Y=e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.Scroll,...e}}),J=e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.CanvasMutation,...e}}),K=new at({mutationCb:V,adoptedStyleSheetCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new et:new tt({mirror:dt,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:C,wrappedEmit:ut});for(const e of M||[])e.getMirror&&e.getMirror({nodeMirror:dt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new ct,te=function(e,t){try{return e?e(t):new st}catch{return console.warn("Unable to initialize CanvasManager"),new st}}(F,{mirror:dt,win:window,mutationCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.CanvasMutation,...e}}),recordCanvas:N,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:v,sampling:I.canvas,dataURLOptions:A,errorHandler:D}),ne="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nt:new rt({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:B,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:H,dataURLOptions:A,maskAttributeFn:y,maskTextFn:E,maskInputFn:T,recordCanvas:N,inlineImages:x,sampling:I,slimDOMOptions:W,iframeManager:X,stylesheetManager:K,canvasManager:te,keepIframeSrcFn:U,processedNodeManager:Q},mirror:dt}),re=(e=!1)=>{if(!O)return;ut({type:Ie.Meta,data:{href:window.location.href,width:ue(),height:ce()}},e),K.reset(),ne.init(),je.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new S,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:g=!1,maskAttributeFn:m,maskTextFn:h,maskInputFn:_,slimDOM:y=!1,dataURLOptions:T,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:I,onBlockedImageLoad:A,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:N=()=>!1}=t||{};return Z(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===g?{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===g?{}:g,maskAttributeFn:m,maskTextFn:h,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:T,inlineImages:p,recordCanvas:f,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:I,onBlockedImageLoad:A,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:N,newlyAddedElement:!1})}(document,{mirror:dt,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskAllInputs:H,maskAttributeFn:y,maskInputFn:T,maskTextFn:E,slimDOM:W,dataURLOptions:A,recordCanvas:N,inlineImages:x,onSerialize:e=>{me(e,dt)&&X.addIframe(e),he(e,dt)&&K.trackLinkElement(e),_e(e)&&ne.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&te.addWindow(e.contentWindow),ne.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:U});if(!t)return console.warn("Failed to snapshot the document");ut({type:Ie.FullSnapshot,data:{node:t,initialOffset:ae(window)}}),je.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,dt.getId(document))};lt=re;try{const e=[],t=e=>Fe(Ke)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>ut({type:Ie.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.ViewportResize,...e}}),inputCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.Input,...e}}),mediaInteractionCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.MediaInteraction,...e}}),styleSheetRuleCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.StyleSheetRule,...e}}),styleDeclarationCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>ut({type:Ie.IncrementalSnapshot,data:{source:Ae.Font,...e}}),selectionCb:e=>{ut({type:Ie.IncrementalSnapshot,data:{source:Ae.Selection,...e}})},customElementCb:e=>{ut({type:Ie.IncrementalSnapshot,data:{source:Ae.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:g,sampling:I,recordDOM:O,recordCanvas:N,inlineImages:x,userTriggeredOnInput:k,collectFonts:P,doc:e,maskAttributeFn:y,maskInputFn:T,maskTextFn:E,keepIframeSrcFn:U,blockSelector:i,unblockSelector:s,slimDOMOptions:W,dataURLOptions:A,mirror:dt,iframeManager:X,stylesheetManager:K,shadowDomManager:ne,processedNodeManager:Q,canvasManager:te,ignoreCSSAttributes:L,plugins:M?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>ut({type:Ie.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});X.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{re(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ee("DOMContentLoaded",()=>{ut({type:Ie.DomContentLoaded,data:{}}),"DOMContentLoaded"===w&&n()})),e.push(ee("load",()=>{ut({type:Ie.Load,data:{}}),"load"===w&&n()},window))),()=>{e.forEach(e=>e()),Q.destroy(),lt=void 0,Be=void 0}}catch(e){console.warn(e)}}var ft,gt;function mt(e){return e>9999999999?e:1e3*e}function ht(e){return e>9999999999?e/1e3:e}function _t(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ie.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:r.normalize(t,10,1e3)}}),"console"===t.category)))}function St(e){return e.closest("button,a")||e}function yt(e){const t=Tt(e);return t&&t instanceof Element?St(t):t}function Tt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Et;pt.mirror=dt,pt.takeFullSnapshot=function(e){if(!lt)throw new Error("please take full snapshot after start recording");lt(e)},(gt=ft||(ft={}))[gt.NotStarted=0]="NotStarted",gt[gt.Running=1]="Running",gt[gt.Stopped=2]="Stopped";const vt=new Set([Ae.Mutation,Ae.StyleSheetRule,Ae.StyleDeclaration,Ae.AdoptedStyleSheet,Ae.CanvasMutation,Ae.Selection,Ae.MediaInteraction]);class bt{constructor(e,t,n=_t){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=n}addListeners(){const e=(t=()=>{this._lastMutation=At()},Et||(Et=[],r.fill(i,"open",function(e){return function(...t){if(Et)try{Et.forEach(e=>e())}catch{}return e.apply(i,t)}})),Et.push(t),()=>{const e=Et?Et.indexOf(t):-1;e>-1&&Et.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!It.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:ht(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ht(e)}registerScroll(e=Date.now()){this._lastScroll=ht(e)}registerClick(e){const t=St(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=At();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:a}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:i.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};return void this._addBreadcrumbEvent(t,o)}if(s>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:i.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=o.setTimeout(()=>this._checkClicks(),1e3)}}const It=["A","BUTTON","INPUT"];function At(){return Date.now()/1e3}function Rt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ot=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ot||{});const Nt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ct(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Nt.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function wt(e,t){const n=pt.mirror.getId(e),r=n&&pt.mirror.getNode(n),o=r&&pt.mirror.getMeta(r),i=o&&function(e){return e.type===Ot.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===Ot.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:Ct(i.attributes)}}:{}}}const kt={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Mt(i),end:Mt(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Mt(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:g,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:Mt(f),end:Mt(i),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function Pt(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function xt(e){const t=kt[e.entryType];return t?t(e):null}function Mt(e){return((r.browserPerformanceTimeOrigin()||i.performance.timeOrigin)+e)/1e3}function Ut(e){const t=e.entries[e.entries.length-1];return Ft(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Lt(e){return void 0!==e.sources}function Dt(e){const t=[],n=[];for(const r of e.entries)if(Lt(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=pt.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Ft(e,"cumulative-layout-shift",n,t)}function Bt(e){const t=e.entries[e.entries.length-1];return Ft(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Ft(e,t,n,r){const o=e.value,i=e.rating,s=Mt(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(e=>pt.mirror.getId(e)):void 0,attributions:r}}}const jt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Gt=["log","warn","error"],Ht="[Replay] ";function Wt(e,t="info"){r.addBreadcrumb({category:"console",data:{logger:"replay"},level:t,message:`${Ht}${e}`},{level:t})}const $t=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return jt?(Gt.forEach(e=>{n[e]=(...n)=>{r.debug[e](Ht,...n),t&&Wt(n.join(""),r.severityLevelFromString(e))}}),n.exception=(o,...i)=>{i.length&&n.error&&n.error(...i),r.debug.error(Ht,o),e?r.captureException(o,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Wt(o,"error")},n.infoTick=(...e)=>{r.debug.log(Ht,...e),t&&setTimeout(()=>Wt(e[0]),0)}):Gt.forEach(e=>{n[e]=()=>{}}),n}();class zt extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class qt{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){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>l)throw new zt;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?mt(e):null}}class Vt{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){jt&&$t.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return jt&&$t.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class Yt{constructor(e){this._worker=new Vt(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){const t=mt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>l?Promise.reject(new zt):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{jt&&$t.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Jt{constructor(e){this._fallback=new qt,this._compression=new Yt(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){return void(jt&&$t.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){jt&&$t.exception(e,"Failed to add events when switching buffers.")}}}function Kt(){try{return"sessionStorage"in i&&!!i.sessionStorage}catch{return!1}}function Xt(e){return void 0!==e&&Math.random()<e}function Qt(e){if(Kt())try{i.sessionStorage.setItem(s,JSON.stringify(e))}catch{}}function Zt(e){const t=Date.now();return{id:e.id||r.uuid4(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function en({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return Xt(e)?"session":!!t&&"buffer"}(e,t),i=Zt({sampled:o,previousSessionId:r});return n&&Qt(i),i}function tn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function nn(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return tn(e.started,t,r)||tn(e.lastActivity,n,r)}function rn(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!nn(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function on({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!Kt())return null;try{const e=i.sessionStorage.getItem(s);if(!e)return null;const t=JSON.parse(e);return jt&&$t.infoTick("Loading existing session"),Zt(t)}catch{return null}}();return o?rn(o,{sessionIdleExpire:e,maxReplayDuration:t})?(jt&&$t.infoTick("Session in sessionStorage is expired, creating new one..."),en(r,{previousSessionId:o.id})):o:(jt&&$t.infoTick("Creating new session"),en(r,{previousSessionId:n}))}function sn(e,t,n){return!!cn(e,t)&&(an(e,t,n),!0)}async function an(e,t,n){const{eventBuffer:o}=e;if(!o||o.waitForCheckout&&!n)return null;const i="buffer"===e.recordingMode;try{n&&i&&o.clear(),n&&(o.hasCheckout=!0,o.waitForCheckout=!1);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Ie.Custom}(e))return t(e)}catch(e){return jt&&$t.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await o.addEvent(r)}catch(t){const n=t&&t instanceof zt,s=n?"addEventSizeExceeded":"addEvent",a=r.getClient();if(a){const e=n?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(e,"replay")}if(n&&i)return o.clear(),o.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s})}}function cn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=mt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(jt&&$t.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function un(e){return!e.type}function ln(e){return"transaction"===e.type}function dn(e){return"feedback"===e.type}function pn(e){return!!e.category}function fn(){const e=r.getCurrentScope().getPropagationContext().dsc;e&&delete e.replay_id;const t=r.getActiveSpan();t&&delete r.getDynamicSamplingContextFromSpan(t).replay_id}function gn(e,t){return t.map(({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:Ie.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function mn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!jt||!e.getOptions()._experiments.traceInternals)&&r.isSentryRequestUrl(t,r.getClient())}(e,t.name)||e.addUpdate(()=>(gn(e,[t]),!0)))}function hn(e){if(!e)return;const 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){const n=o.serializeFormData(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function _n(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Sn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function yn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:c}}}function Tn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function En(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>c,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,c);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function vn(e,t){return Object.entries(e).reduce((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function bn(e,t){const n=function(e,t=i.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(i.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return r.stringMatchesSomePattern(n,t)}function In(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function An(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?In(n,t):Array.isArray(n)?{}:vn(n,t):{}}function Rn(e){const t=r.getClient();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hn(r),i=n.getResponseHeader("content-length")?_n(n.getResponseHeader("content-length")):function(e,t){try{return hn("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:a,xhr:c}=t,{url:u,method:l,status_code:d=0,request_body_size:p,response_body_size:f}=e.data;if(!u)return null;if(!c||!bn(u,n.networkDetailAllowUrls)||bn(u,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:s,url:u,method:l,statusCode:d,request:Tn(p),response:Tn(f)};const g=c[o.SENTRY_XHR_DATA_KEY],m=g?vn(g.request_headers,n.networkRequestHeaders):{},h=vn(o.parseXhrResponseHeaders(c),n.networkResponseHeaders),[_,S]=n.networkCaptureBodies?o.getBodyString(a,$t):[void 0],[y,T]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return jt&&$t.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return jt&&$t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return jt&&$t.warn("Failed to get xhr response body",...t),[void 0]}(c):[void 0],E=En(m,p,_),v=En(h,f,y);return{startTimestamp:i,endTimestamp:s,url:u,method:l,statusCode:d,request:S?Sn(E,S):E,response:T?Sn(v,T):v}}(e,t,n),i=yn("resource.xhr",r);mn(n.replay,i)}catch(e){jt&&$t.exception(e,"Failed to capture xhr breadcrumb")}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(function(e,t){const{input:n,response:r}=t,i=hn(n?o.getFetchRequestArgBody(n):void 0),s=r?_n(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:a,method:c,status_code:u=0,request_body_size:l,response_body_size:d}=e.data,p=bn(a,n.networkDetailAllowUrls)&&!bn(a,n.networkDetailDenyUrls),f=p?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?(a=t,1===(s=n).length&&"string"!=typeof s[0]?An(s[0],a):2===s.length?An(s[1],a):{}):{};var s,a;if(!e)return En(i,r,void 0);const c=o.getFetchRequestArgBody(n),[u,l]=o.getBodyString(c,$t),d=En(i,r,u);return l?Sn(d,l):d}(n,t.input,l):Tn(l),g=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return Tn(i);const s=r?In(r.headers,n):{};if(!r||!t&&void 0!==i)return En(s,i,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){jt&&$t.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const r=o.setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(jt&&$t.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(jt&&$t.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),u=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&void 0===n?hn(e):n;return r?En(o,i,t?e:void 0):Tn(i)}catch(e){return jt&&$t.exception(e,"Failed to serialize response body"),En(o,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return c?Sn(u,c):u}(p,n,t.response,d);return{startTimestamp:i,endTimestamp:s,url:a,method:c,statusCode:u,request:f,response:g}}(e,t,n),i=yn("resource.fetch",r);mn(n.replay,i)}catch(e){jt&&$t.exception(e,"Failed to capture fetch breadcrumb")}}(t,n,e))}catch(e){jt&&$t.exception(e,"Error when enriching network breadcrumb")}}(c,e,t))}catch{}}function On(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Nn=r.GLOBAL_OBJ.navigator;function Cn(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(jt&&$t.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(vt.has(n)&&e.registerMutation(t.timestamp),n===Ae.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ae.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=pt.mirror.getNode(r);o instanceof HTMLElement&&n===Re.Click&&e.registerClick(o)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!sn(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){t&&e.session&&0===e.session.segmentId&&sn(e,function(e){const t=e.getOptions();return{type:Ie.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}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(jt&&$t.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Qt(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}class wn extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class kn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Pn(e,t={count:0,interval:5e3}){const{recordingData:n,onError:i}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:o,timestamp:i,session:s}){const c=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:l,traceIds:d,initialTimestamp:p}=o,f=r.getClient(),g=r.getCurrentScope(),m=f?.getTransport(),h=f?.getDsn();if(!(f&&m&&h&&s.sampled))return Promise.resolve({});const _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:l,trace_ids:d,urls:u,replay_id:t,segment_id:n,replay_type:s.sampled},S=await async function({client:e,scope:t,replayId:n,event:o}){const i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",o,i);const s=await r.prepareEvent(e.getOptions(),o,i,t,e,r.getIsolationScope());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u,settings:l}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},s}({scope:g,client:f,replayId:t,event:_});if(!S)return f.recordDroppedEvent("event_processor","replay"),jt&&$t.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete S.sdkProcessingMetadata;const y=function(e,t,n,o){return r.createEnvelope(r.createEventEnvelopeHeaders(e,r.getSdkMetadataForEnvelopeHeader(e),o,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(S,c,h,f.getOptions().tunnel);let T;try{T=await m.send(y)}catch(e){const t=new Error(a);try{t.cause=e}catch{}throw t}if("number"==typeof T.statusCode&&(T.statusCode<200||T.statusCode>=300))throw new wn(T.statusCode);const E=r.updateRateLimits({},T);if(r.isRateLimited(E,"replay"))throw new kn(E);return T}(e),!0}catch(n){if(n instanceof wn||n instanceof kn)throw n;if(r.setContext("Replays",{_retryCount:t.count}),i&&i(n),t.count>=3){const e=new Error(`${a} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{o.setTimeout(async()=>{try{await Pn(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const xn="__THROTTLED";class Mn{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,n){return r.debounce(e,t,{...n,setTimeoutImpl:o.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(s),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":xn}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}((e,t)=>function(e,t,n){return cn(e,t)?an(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:s}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:s?s.join(","):""}:void 0;if(a&&(this.clickDetector=new bt(this,a)),jt){const t=e._experiments;$t.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===i.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=Rt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Rt({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:o,altKey:i,key:s,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!s)return null;const c=t||o||i,u=1===s.length;if(!c&&u)return null;const l=r.htmlTreeAsString(a,{maxStringLength:200})||"<unknown>";return Rt({category:"ui.keyDown",message:l,data:{...wt(a,l).data,metaKey:t,shiftKey:n,ctrlKey:o,altKey:i,key:s}})}(t);n&&_t(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){jt&&$t.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",jt&&$t.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):jt&&$t.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(jt&&$t.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(jt&&$t.log("Buffering is in progress, call `flush()` to save the replay"));jt&&$t.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=on({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(jt&&$t.log("Buffering is in progress, call `flush()` to save the replay"));jt&&$t.infoTick("Starting replay in buffer mode");const e=on({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{const e=this._canvas;this._stopRecording=pt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Cn(this),.../iPhone|iPad|iPod/i.test(Nn?.userAgent??"")||/Macintosh/i.test(Nn?.userAgent??"")&&Nn?.maxTouchPoints&&Nn?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.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{jt&&$t.log("Stopping Replay"+(t?` triggered by ${t}`:"")),fn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(Kt())try{i.sessionStorage.removeItem(s)}catch{}}(),n.session=void 0}catch(e){this.handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),jt&&$t.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),jt&&$t.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();jt&&$t.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}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||!1!==this.session?.sampled)return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&tn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${i.location.pathname}${i.location.hash}${i.location.search}`,t=`${i.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){const n=this._throttledAddEvent(e,t);if(n===xn){const e=Rt({category:"replay.throttled"});this.addUpdate(()=>!sn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||r.getActiveSpan(),t=e&&r.getRootSpan(e),n=(t&&r.spanToJSON(t).data||{})[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return r.spanToJSON(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;jt&&$t.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Jt(n)}catch(e){jt&&$t.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return jt&&$t.log("Using simple buffer"),new qt}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=on({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!rn(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{i.document.addEventListener("visibilitychange",this._handleVisibilityChange),i.addEventListener("blur",this._handleWindowBlur),i.addEventListener("focus",this._handleWindowFocus),i.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=r.getClient();o.addClickKeypressInstrumentationHandler((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,o=null;try{o=t?yt(e.event):Tt(e.event),n=r.htmlTreeAsString(o,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:o,message:n}}(e);return Rt({category:`ui.${e.name}`,...wt(t,n)})}(t);if(!n)return;const o="click"===t.name,i=o?t.event:void 0;var s,a,c;!(o&&e.clickDetector&&i?.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(s=e.clickDetector,a=n,c=yt(t.event),s.handleClick(a,c)),_t(e,n)})(e)),o.addHistoryInstrumentationHandler(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(gn(e,[n]),!1)))}}(e)),function(e){const t=r.getClient();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!pn(t))return;const n=function(e){return!pn(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Rt(e);let n=!1;const o=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>u?(n=!0,`${e.slice(0,u)}…`):e;if("object"==typeof e)try{const t=r.normalize(e,7);return JSON.stringify(t).length>u?(n=!0,`${JSON.stringify(t,null,2).slice(0,u)}…`):t}catch{}return e});return Rt({...e,data:{...e.data,arguments:o,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Rt(e)}(t);n&&_t(e,n)}(e,t))}(e),Rn(e);const n=function(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!un(t)&&!ln(t)&&!dn(t))return t;if(!e.checkAndHandleExpiredSession())return fn(),t;if(dn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:Ie.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return jt&&$t.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==a&&!(!t.exception||t.type)&&Xt(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"})}(e);r.addEventProcessor(n),t&&(t.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&un(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&_t(e,Rt({category:"replay.hydrate-error",data:{url:r.getLocationHref()}}))}(e,t)}}(e)),t.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!un(t)&&!ln(t))return;const r=n.statusCode;!r||r<200||r>=300||(ln(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&o.setTimeout(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}(e)),t.on("createDsc",t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.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 n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push(o.addPerformanceInstrumentationHandler(e,n))}),r.push(o.addLcpInstrumentationHandler(Pt(Ut,e)),o.addClsInstrumentationHandler(Pt(Dt,e)),o.addInpInstrumentationHandler(Pt(Bt,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{i.document.removeEventListener("visibilitychange",this._handleVisibilityChange),i.removeEventListener("blur",this._handleWindowBlur),i.removeEventListener("focus",this._handleWindowFocus),i.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(nn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):jt&&$t.log("Document has become active, but session has expired"))}_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:Ie.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(xt).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(gn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const 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(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(gn(e,[On(i.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Pn({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=r.getClient();if(t){const n=e instanceof kn?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else jt&&$t.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(jt&&$t.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return jt&&$t.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&jt&&$t.log("Flushing initial segment without checkout.");const 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&&Qt(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,o=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||o){const e=Rt({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Un(e,t){return[...e,...t].join(",")}const Ln='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Dn=["content-length","content-type","accept"];let Bn=!1;class Fn{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:o=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:_=[],networkCaptureBodies:S=!0,networkRequestHeaders:y=[],networkResponseHeaders:T=[],mask:E=[],maskAttributes:v=["title","placeholder","aria-label"],unmask:b=[],block:I=[],unblock:A=[],ignore:R=[],maskFn:O,beforeAddRecordingEvent:N,beforeErrorSampling:C,onError:w}={}){this.name="Replay";const k=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Un(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Un(t,[]),blockSelector:Un(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Un(r,[]),ignoreSelector:Un(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:E,unmask:b,block:I,unblock:A,ignore:R});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:v,maskAllText:u,privacyOptions:k,key:e,value:t,el:n}),...k,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(c.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(o,36e5),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:g,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:_,networkCaptureBodies:S,networkRequestHeaders:jn(y),networkResponseHeaders:jn(T),beforeAddRecordingEvent:N,beforeErrorSampling:C,onError:w,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ln}`:Ln),this._isInitialized&&r.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Bn}set _isInitialized(e){Bn=e}afterAllSetup(e){r.isBrowser()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),o={sessionSampleRate:0,errorSampleRate:0,...e},i=r.parseSampleRate(n.replaysSessionSampleRate),s=r.parseSampleRate(n.replaysOnErrorSampleRate);return null==i&&null==s&&r.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(o.sessionSampleRate=i),null!=s&&(o.errorSampleRate=s),o}(this._initialOptions,e);this._replay=new Mn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function jn(e){return[...Dn,...e.map(e=>e.toLowerCase())]}t.getReplay=function(){const e=r.getClient();return e?.getIntegrationByName("Replay")},t.replayIntegration=e=>new Fn(e)},3053:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(5110),i=n(4548),s=n(3969);async function a(e){try{o.debug.log("Flushing events..."),await r.flush(e),o.debug.log("Done flushing events")}catch(e){o.debug.log("Error while flushing events:\n",e)}}t.flushIfServerless=async function(e={}){const{timeout:t=2e3}=e;"cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil?e.cloudflareWaitUntil(a(t)):"cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil?e.cloudflareCtx.waitUntil(a(t)):s.GLOBAL_OBJ[Symbol.for("@vercel/request-context")]?i.vercelWaitUntil(a(t)):"undefined"!=typeof process&&(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await a(t)}},3090:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(5110);function s(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}const a={startProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?s(t)?t._profiler.start():o.DEBUG_BUILD&&i.debug.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&i.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?s(t)?t._profiler.stop():o.DEBUG_BUILD&&i.debug.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&i.debug.warn("ProfilingIntegration is not available")}};t.profiler=a},3110:(e,t,n)=>{"use strict";var r=n(6518),o=n(7751),i=n(8745),s=n(9565),a=n(9504),c=n(9039),u=n(4901),l=n(757),d=n(7680),p=n(6933),f=n(4495),g=String,m=o("JSON","stringify"),h=a(/./.exec),_=a("".charAt),S=a("".charCodeAt),y=a("".replace),T=a(1.1.toString),E=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,I=!f||c(function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))}),A=c(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")}),R=function(e,t){var n=d(arguments),r=p(t);if(u(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(u(r)&&(t=s(r,this,g(e),t)),!l(t))return t},i(m,null,n)},O=function(e,t,n){var r=_(n,t-1),o=_(n,t+1);return h(v,e)&&!h(b,o)||h(b,e)&&!h(v,r)?"\\u"+T(S(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:I||A},{stringify:function(e,t,n){var r=d(arguments),o=i(I?R:m,null,r);return A&&"string"==typeof o?y(o,E,O):o}})},3138:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},3155:(e,t)=>{function n(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=r.exec(t);return n?n.slice(1):[]}function i(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const o=n>=0?e[n]:"/";o&&(t=`${o}/${t}`,r="/"===o.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function s(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function a(e){const t=c(e),r="/"===e.slice(-1);let o=n(e.split("/").filter(e=>!!e),!t).join("/");return o||t||(o="."),o&&r&&(o+="/"),(t?"/":"")+o}function c(e){return"/"===e.charAt(0)}t.basename=function(e,t){let n=o(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},t.dirname=function(e){const t=o(e),n=t[0]||"";let r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},t.isAbsolute=c,t.join=function(...e){return a(e.join("/"))},t.normalizePath=a,t.relative=function(e,t){e=i(e).slice(1),t=i(t).slice(1);const n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length);let a=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){a=e;break}let c=[];for(let e=a;e<n.length;e++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.resolve=i},3167:(e,t,n)=>{"use strict";var r=n(4901),o=n(34),i=n(2967);e.exports=function(e,t,n){var s,a;return i&&r(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&i(e,a),e}},3179:(e,t,n)=>{"use strict";var r=n(2140),o=n(6955);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},3181:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5135);let o=0;class i{constructor(){i.prototype.__init.call(this),i.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){o=r.getInteractionCount(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((r.getInteractionCount()-o)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}t.InteractionManager=i},3220:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6102),o=n(3969);function i(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}t.getGlobalSingleton=function(e,t,n=o.GLOBAL_OBJ){const i=n.__SENTRY__=n.__SENTRY__||{},s=i[r.SDK_VERSION]=i[r.SDK_VERSION]||{};return s[e]||(s[e]=t())},t.getMainCarrier=function(){return i(o.GLOBAL_OBJ),o.GLOBAL_OBJ},t.getSentryCarrier=i},3232:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SEVERITY_TEXT_TO_SEVERITY_NUMBER={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},3317:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},3324:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2751);t.convertSpanJsonToTransactionEvent=function(e){return{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&&{[r.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}},t.convertTransactionEventToSpanJson=function(e){const{trace_id:t,parent_span_id:n,span_id:o,status:i,origin:s,data:a,op:c}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:c,parent_span_id:n,span_id:o??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[r.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:a?.[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}},3336:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5110),o=n(5684),i=n(1811),s=n(393),a=n(8913),c=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function u(e){if(!e)return;const t=e.match(c);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}t.TRACEPARENT_REGEXP=c,t.extractTraceparentData=u,t.generateSentryTraceHeader=function(e=a.generateTraceId(),t=a.generateSpanId(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`},t.generateTraceparentHeader=function(e=a.generateTraceId(),t=a.generateSpanId(),n){return`00-${e}-${t}-${n?"01":"00"}`},t.propagationContextFromHeaders=function(e,t){const n=u(e),r=o.baggageHeaderToDynamicSamplingContext(t);if(!n?.traceId)return{traceId:a.generateTraceId(),sampleRand:Math.random()};const i=function(e,t){const n=s.parseSampleRate(t?.sample_rand);if(void 0!==n)return n;const r=s.parseSampleRate(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,r);r&&(r.sample_rand=i.toString());const{traceId:c,parentSpanId:l,parentSampled:d}=n;return{traceId:c,parentSpanId:l,sampled:d,dsc:r||{},sampleRand:i}},t.shouldContinueTrace=function(e,t){const n=i.extractOrgIdFromClient(e);return t&&n&&t!==n?(r.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!e.getOptions().strictTraceContinuation||!(t&&!n||!t&&n)||(r.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}},3362:(e,t,n)=>{"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},3389:(e,t,n)=>{"use strict";var r=n(4576),o=n(3724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},3392:(e,t,n)=>{"use strict";var r=n(9504),o=0,i=Math.random(),s=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},3395:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532),o=n(6940),i=n(8585),s=n(6159);function a(e,t){return e(t.stack||"",1)}function c(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=a(e,t);return r.length&&(n.stacktrace={frames:r}),n}function u(e,t,n,o){if(r.isError(n))return[n,void 0];if(t.synthetic=!0,r.isPlainObject(n)){const t=e?.getOptions().normalizeDepth,a={__serialized__:i.normalizeToSize(n,t)},c=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(n);if(c)return[c,a];const u=function(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=s.extractExceptionKeysForMessage(e);if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const n=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}(n),l=o?.syntheticException||new Error(u);return l.message=u,[l,a]}const a=o?.syntheticException||new Error(n);return a.message=`${n}`,[a,void 0]}t.eventFromMessage=function(e,t,n="info",i,s){const c={event_id:i?.event_id,level:n};if(s&&i?.syntheticException){const n=a(e,i.syntheticException);n.length&&(c.exception={values:[{value:t,stacktrace:{frames:n}}]},o.addExceptionMechanism(c,{synthetic:!0}))}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return c.logentry={message:e,params:n},c}return c.message=t,c},t.eventFromUnknownInput=function(e,t,n,r){const i=r?.data&&r.data.mechanism||{handled:!0,type:"generic"},[s,a]=u(e,i,n,r),l={exception:{values:[c(t,s)]}};return a&&(l.extra=a),o.addExceptionTypeValue(l,void 0,void 0),o.addExceptionMechanism(l,i),{...l,event_id:r?.event_id}},t.exceptionFromError=c,t.parseStackFrames=a},3396:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3872),o=n(4624),i=n(2507),s=n(1604),a=n(677),c=n(8577),u=n(4666),l=n(139),d=n(2028),p=n(2843),f=n(8412);t.addClsInstrumentationHandler=r.addClsInstrumentationHandler,t.addInpInstrumentationHandler=r.addInpInstrumentationHandler,t.addLcpInstrumentationHandler=r.addLcpInstrumentationHandler,t.addPerformanceInstrumentationHandler=r.addPerformanceInstrumentationHandler,t.addTtfbInstrumentationHandler=r.addTtfbInstrumentationHandler,t.addPerformanceEntries=o.addPerformanceEntries,t.startTrackingInteractions=o.startTrackingInteractions,t.startTrackingLongAnimationFrames=o.startTrackingLongAnimationFrames,t.startTrackingLongTasks=o.startTrackingLongTasks,t.startTrackingWebVitals=o.startTrackingWebVitals,t.startTrackingElementTiming=i.startTrackingElementTiming,t.extractNetworkProtocol=s.extractNetworkProtocol,t.addClickKeypressInstrumentationHandler=a.addClickKeypressInstrumentationHandler,t.addHistoryInstrumentationHandler=c.addHistoryInstrumentationHandler,t.clearCachedImplementation=u.clearCachedImplementation,t.fetch=u.fetch,t.getNativeImplementation=u.getNativeImplementation,t.setTimeout=u.setTimeout,t.SENTRY_XHR_DATA_KEY=l.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=l.addXhrInstrumentationHandler,t.getBodyString=d.getBodyString,t.getFetchRequestArgBody=d.getFetchRequestArgBody,t.parseXhrResponseHeaders=d.parseXhrResponseHeaders,t.serializeFormData=d.serializeFormData,t.resourceTimingToSpanAttributes=p.resourceTimingToSpanAttributes,t.registerInpInteractionListener=f.registerInpInteractionListener,t.startTrackingINP=f.startTrackingINP},3438:(e,t,n)=>{"use strict";var r=n(8551),o=n(34),i=n(6043);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},3451:(e,t,n)=>{"use strict";var r=n(6518),o=n(9504),i=n(421),s=n(34),a=n(9297),c=n(4913).f,u=n(8480),l=n(298),d=n(4124),p=n(3392),f=n(2744),g=!1,m=p("meta"),h=0,_=function(e){c(e,m,{value:{objectID:"O"+h++,weakData:{}}})},S=e.exports={enable:function(){S.enable=function(){},g=!0;var e=u.f,t=o([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!d(e))return"F";if(!t)return"E";_(e)}return e[m].objectID},getWeakData:function(e,t){if(!a(e,m)){if(!d(e))return!0;if(!t)return!1;_(e)}return e[m].weakData},onFreeze:function(e){return f&&g&&d(e)&&!a(e,m)&&_(e),e}};i[m]=!0},3506:(e,t,n)=>{"use strict";var r=n(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},3513:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.replaceExports=function(e,t,n){const r=e[t];if("function"==typeof r){try{e[t]=n}catch(r){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0,enumerable:!0})}if(e.default===r)try{e.default=n}catch(t){Object.defineProperty(e,"default",{value:n,writable:!0,configurable:!0,enumerable:!0})}}}},3517:(e,t,n)=>{"use strict";var r=n(9504),o=n(9039),i=n(4901),s=n(6955),a=n(7751),c=n(3706),u=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),f=!d.test(u),g=function(e){if(!i(e))return!1;try{return l(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,c(e))}catch(e){return!0}};m.sham=!0,e.exports=!l||o(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0})||e})?m:g},3518:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(7751),a=n(6043),c=n(1103),u=n(2652),l=n(537),d="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,n=s("AggregateError"),r=a.f(t),l=r.resolve,p=r.reject,f=c(function(){var r=i(t.resolve),s=[],a=0,c=1,f=!1;u(e,function(e){var i=a++,u=!1;c++,o(r,t,e).then(function(e){u||f||(f=!0,l(e))},function(e){u||f||(u=!0,s[i]=e,--c||p(new n(s,d)))})}),--c||p(new n(s,d))});return f.error&&p(f.value),r.promise}})},3551:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969),o=n(1535);let i=null;function s(){i=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return o.triggerHandlers("unhandledrejection",t),!i||i.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}t.addGlobalUnhandledRejectionInstrumentationHandler=function(e){const t="unhandledrejection";o.addHandler(t,e),o.maybeInstrument(t,s)}},3609:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(5110),s=n(4583),a="flag.evaluation.";function c(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r)return void(o.DEBUG_BUILD&&i.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const s=e.findIndex(e=>e.flag===t);-1!==s&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}t._INTERNAL_FLAG_BUFFER_SIZE=100,t._INTERNAL_MAX_FLAGS_PER_SPAN=10,t._INTERNAL_addFeatureFlagToActiveSpan=function(e,t,n=10){if("boolean"!=typeof t)return;const r=s.getActiveSpan();if(!r)return;const o=s.spanToJSON(r).data;(`${a}${e}`in o||Object.keys(o).filter(e=>e.startsWith(a)).length<n)&&r.setAttribute(`${a}${e}`,t)},t._INTERNAL_copyFlagsFromScopeToEvent=function(e){const t=r.getCurrentScope().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e},t._INTERNAL_insertFlagToScope=function(e,t,n=100){const o=r.getCurrentScope().getScopeData().contexts;o.flags||(o.flags={values:[]}),c(o.flags.values,e,t,n)},t._INTERNAL_insertToFlagBuffer=c},3646:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(6421),s=n(7670),a=n(9233),c=n(2591),u=n(7299),l="BrowserTracing",d={...r.TRACING_DEFAULTS,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:{},...u.defaultRequestInstrumentationOptions};function p(e,t,n){e.emit("startPageLoadSpan",t,n),r.getCurrentScope().setTransactionName(t.name);const o=h(e);return o&&e.emit("afterStartPageLoadSpan",o),o}function f(e,t,n){const{url:o,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const a=r.getCurrentScope();return a.setTransactionName(t.name),o&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...s.getHttpRequestData(),url:o}}),h(e)}function g(e){const t=s.WINDOW.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}const m="_sentry_idleSpan";function h(e){return e[m]}function _(e,t){r.addNonEnumerableProperty(e,m,t)}t.BROWSER_TRACING_INTEGRATION_ID=l,t.browserTracingIntegration=(e={})=>{const t={name:void 0,source:void 0},n=s.WINDOW.document,{enableInp:m,enableElementTiming:S,enableLongTask:y,enableLongAnimationFrame:T,_experiments:{enableInteractions:E,enableStandaloneClsSpans:v,enableStandaloneLcpSpans:b},beforeStartSpan:I,idleTimeout:A,finalTimeout:R,childSpanTimeout:O,markBackgroundSpan:N,traceFetch:C,traceXHR:w,trackFetchStreamPerformance:k,shouldCreateSpanForRequest:P,enableHTTPTimings:x,ignoreResourceSpans:M,ignorePerformanceApiSpans:U,instrumentPageLoad:L,instrumentNavigation:D,detectRedirects:B,linkPreviousTrace:F,consistentTraceSampling:j,enableReportPageLoaded:G,onRequestSpanStart:H,onRequestSpanEnd:W}={...d,...e};let $,z,q;function V(e,i,s=!0){const a="pageload"===i.op,c=i.name,u=I?I(i):i,l=u.attributes||{};if(c!==u.name&&(l[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",u.attributes=l),!s){const e=r.dateTimestampInSeconds();return void r.startInactiveSpan({...u,startTime:e}).end(e)}t.name=u.name,t.source=l[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const d=r.startIdleSpan(u,{idleTimeout:A,finalTimeout:R,childSpanTimeout:O,disableAutoFinish:a,beforeSpanEnd:t=>{$?.(),o.addPerformanceEntries(t,{recordClsOnPageloadSpan:!v,recordLcpOnPageloadSpan:!b,ignoreResourceSpans:M,ignorePerformanceApiSpans:U}),_(e,void 0);const n=r.getCurrentScope(),i=n.getPropagationContext();n.setPropagationContext({...i,traceId:d.spanContext().traceId,sampled:r.spanIsSampled(d),dsc:r.getDynamicSamplingContextFromSpan(t)}),a&&(q=void 0)},trimIdleSpanEndTimestamp:!G});function p(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",d)}a&&G&&(q=d),_(e,d),a&&!G&&n&&(n.addEventListener("readystatechange",()=>{p()}),p())}return{name:l,setup(e){if(r.registerSpanErrorInstrumentation(),$=o.startTrackingWebVitals({recordClsStandaloneSpans:v||!1,recordLcpStandaloneSpans:b||!1,client:e}),m&&o.startTrackingINP(),S&&o.startTrackingElementTiming(),T&&r.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?o.startTrackingLongAnimationFrames():y&&o.startTrackingLongTasks(),E&&o.startTrackingInteractions(),B&&n){const e=()=>{z=r.timestampInSeconds()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=h(e);t&&!r.spanToJSON(t).timestamp&&(i.DEBUG_BUILD&&r.debug.log(`[Tracing] Finishing current active span with op: ${r.spanToJSON(t).op}`),t.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(n,o)=>{if(r.getClient()!==e)return;if(o?.isRedirect)return i.DEBUG_BUILD&&r.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void V(e,{op:"navigation.redirect",...n},!1);z=void 0,t(),r.getIsolationScope().setPropagationContext({traceId:r.generateTraceId(),sampleRand:Math.random(),propagationSpanId:r.hasSpansEnabled()?void 0:r.generateSpanId()});const s=r.getCurrentScope();s.setPropagationContext({traceId:r.generateTraceId(),sampleRand:Math.random(),propagationSpanId:r.hasSpansEnabled()?void 0:r.generateSpanId()}),s.setSDKProcessingMetadata({normalizedRequest:void 0}),V(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(n,o={})=>{if(r.getClient()!==e)return;t();const i=o.sentryTrace||g("sentry-trace"),a=o.baggage||g("baggage"),c=r.propagationContextFromHeaders(i,a),u=r.getCurrentScope();u.setPropagationContext(c),r.hasSpansEnabled()||(u.getPropagationContext().propagationSpanId=r.generateSpanId()),u.setSDKProcessingMetadata({normalizedRequest:s.getHttpRequestData()}),V(e,{op:"pageload",...n})}),e.on("endPageloadSpan",()=>{G&&q&&(q.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),q.end())})},afterAllSetup(e){let n=r.getLocationHref();if("off"!==F&&c.linkTraces(e,{linkPreviousTrace:F,consistentTraceSampling:j}),s.WINDOW.location){if(L){const t=r.browserPerformanceTimeOrigin();p(e,{name:s.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}D&&o.addHistoryInstrumentationHandler(({to:t,from:o})=>{if(void 0===o&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const i=r.parseStringToURLObject(t),a=h(e),c=a&&B&&function(e,t){const n=r.spanToJSON(e),o=r.dateTimestampInSeconds();return!(o-n.start_timestamp>1.5)&&!(t&&o-t<=1.5)}(a,z);f(e,{name:i?.pathname||s.WINDOW.location.pathname,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:c})})}N&&a.registerBackgroundTabDetection(),E&&function(e,t,n,o,a){let c;s.WINDOW.document&&addEventListener("click",()=>{const s="ui.action.click",u=h(e);if(u){const e=r.spanToJSON(u).op;if(["navigation","pageload"].includes(e))return void(i.DEBUG_BUILD&&r.debug.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}c&&(c.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),c.end(),c=void 0),a.name?c=r.startIdleSpan({name:a.name,op:s,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:o}):i.DEBUG_BUILD&&r.debug.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)},{capture:!0})}(e,A,R,O,t),m&&o.registerInpInteractionListener(),u.instrumentOutgoingRequests(e,{traceFetch:C,traceXHR:w,trackFetchStreamPerformance:k,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:P,enableHTTPTimings:x,onRequestSpanStart:H,onRequestSpanEnd:W})}}},t.getMetaContent=g,t.startBrowserTracingNavigationSpan=f,t.startBrowserTracingPageLoadSpan=p},3685:e=>{"use strict";e.exports=JSON.parse('{"Sn":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","environment":"production","gaPlacement":"web"},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"FH":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"e$":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"zS":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"xY":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},3706:(e,t,n)=>{"use strict";var r=n(9504),o=n(4901),i=n(7629),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},3717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3724:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3754:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2501),o=n(9564),i=n(2751),s=n(5684),a=n(1811),c=n(1228),u=n(6159),l=n(4583),d=n(4284),p="_frozenDsc";function f(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},i={environment:n.environment||r.DEFAULT_ENVIRONMENT,release:n.release,public_key:o,trace_id:e,org_id:a.extractOrgIdFromClient(t)};return t.emit("createDsc",i),i}function g(e){const t=o.getClient();if(!t)return{};const n=l.getRootSpan(e),r=l.spanToJSON(n),a=r.data,u=n.spanContext().traceState,g=u?.get("sentry.sample_rate")??a[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??a[i.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function m(e){return"number"!=typeof g&&"string"!=typeof g||(e.sample_rate=`${g}`),e}const h=n[p];if(h)return m(h);const _=u?.get("sentry.dsc"),S=_&&s.baggageHeaderToDynamicSamplingContext(_);if(S)return m(S);const y=f(e.spanContext().traceId,t),T=a[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],E=r.description;return"url"!==T&&E&&(y.transaction=E),c.hasSpansEnabled()&&(y.sampled=String(l.spanIsSampled(n)),y.sample_rand=u?.get("sentry.sample_rand")??d.getCapturedScopesOnSpan(n).scope?.getPropagationContext().sampleRand.toString()),m(y),t.emit("createDsc",y,n),y}t.freezeDscOnSpan=function(e,t){const n=e;u.addNonEnumerableProperty(n,p,t)},t.getDynamicSamplingContextFromClient=f,t.getDynamicSamplingContextFromScope=function(e,t){const n=t.getPropagationContext();return n.dsc||f(n.traceId,e)},t.getDynamicSamplingContextFromSpan=g,t.spanToBaggageHeader=function(e){const t=g(e);return s.dynamicSamplingContextToSentryBaggageHeader(t)}},3777:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0);return!1!==s(t,function(e,r){if(!n(e,r,t))return!1},!0)}})},3792:(e,t,n)=>{"use strict";var r=n(5397),o=n(6469),i=n(6269),s=n(1181),a=n(4913).f,c=n(1088),u=n(2529),l=n(6395),d=n(3724),p="Array Iterator",f=s.set,g=s.getterFor(p);e.exports=c(Array,"Array",function(e,t){f(this,{type:p,target:r(e),index:0,kind:t})},function(){var e=g(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&d&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},3807:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){const 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){const e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){const t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const e=[];return this._cache.forEach(t=>e.push(t)),e}}},3851:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742);t.onHidden=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==r.WINDOW.document?.visibilityState||e(t)};r.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},3872:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1362),i=n(9462),s=n(8879),a=n(6505),c=n(1188),u=n(763),l={},d={};let p,f,g,m;function h(e,t){const n=l[e];if(n?.length)for(const i of n)try{i(t)}catch(t){o.DEBUG_BUILD&&r.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${r.getFunctionName(i)}\nError:`,t)}}function _(){return i.onCLS(e=>{h("cls",{metric:e}),p=e},{reportAllChanges:!0})}function S(){return a.onLCP(e=>{h("lcp",{metric:e}),f=e},{reportAllChanges:!0})}function y(){return u.onTTFB(e=>{h("ttfb",{metric:e}),g=e})}function T(){return s.onINP(e=>{h("inp",{metric:e}),m=e})}function E(e,t,n,r,o=!1){let i;return v(e,t),d[e]||(i=n(),d[e]=!0),r&&t({metric:r}),b(e,t,o?i:void 0)}function v(e,t){l[e]=l[e]||[],l[e].push(t)}function b(e,t,n){return()=>{n&&n();const r=l[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}t.addClsInstrumentationHandler=function(e,t=!1){return E("cls",e,_,p,t)},t.addInpInstrumentationHandler=function(e){return E("inp",e,T,m)},t.addLcpInstrumentationHandler=function(e,t=!1){return E("lcp",e,S,f,t)},t.addPerformanceInstrumentationHandler=function(e,t){return v(e,t),d[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),c.observe(e,t=>{h(e,{entries:t})},t)}(e),d[e]=!0),b(e,t)},t.addTtfbInstrumentationHandler=function(e){return E("ttfb",e,y,g)},t.isPerformanceEventTiming=function(e){return"duration"in e}},3913:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5740),o=n(2501),i=n(9564),s=n(8974),a=n(238),c=n(2430),u=n(7373),l=n(6098),d=n(1348),p=n(3754),f=n(4841),g=n(5110),m=n(1811),h=n(9188),_=n(7389),S=n(8532),y=n(9090),T=n(6940),E=n(393),v=n(1485),b=n(7687),I=n(4583),A=n(4486),R=n(3324),O="Not capturing exception because it's already been captured.",N="Discarded session because of missing or non-string release",C=Symbol.for("SentryInternalError"),w=Symbol.for("SentryDoNotSendEventError");function k(e){return{message:e,[C]:!0}}function P(e){return{message:e,[w]:!0}}function x(e){return!!e&&"object"==typeof e&&C in e}function M(e){return!!e&&"object"==typeof e&&w in e}function U(e,t,n,r,o){let i,s=0;e.on(n,()=>{s=0,clearTimeout(i)}),e.on(t,t=>{s+=r(t),s>=8e5?o(e):(clearTimeout(i),i=setTimeout(()=>{o(e)},5e3))}),e.on("flush",()=>{o(e)})}function L(e){return void 0===e.type}function D(e){return"transaction"===e.type}function B(e){let t=0;return e.name&&(t+=2*e.name.length),"string"==typeof e.value?t+=2*e.value.length:t+=8,t+j(e.attributes)}function F(e){let t=0;return e.message&&(t+=2*e.message.length),t+j(e.attributes)}function j(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*G(e[0]):S.isPrimitive(e)?t+=G(e):t+=100}),t}function G(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}t.Client=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=m.makeDsn(e.dsn):s.DEBUG_BUILD&&g.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=r.getEnvelopeEndpointWithUrlEncodedAuth(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&&U(this,"afterCaptureLog","flushLogs",F,u._INTERNAL_flushLogsBuffer),this._options._experiments?.enableMetrics&&U(this,"afterCaptureMetric","flushMetrics",B,l._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const r=T.uuid4();if(T.checkOrSetAlreadyCaught(e))return s.DEBUG_BUILD&&g.debug.log(O),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:T.uuid4(),...n},i=S.isParameterizedString(e)?e:String(e),s=S.isPrimitive(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=T.uuid4();if(t?.originalException&&T.checkOrSetAlreadyCaught(t.originalException))return s.DEBUG_BUILD&&g.debug.log(O),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||n,c)),o.event_id}captureSession(e){this.sendSession(e),d.updateSession(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){const 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){const t=this._integrations[e.name];c.setupIntegration(this,e,this._integrations),t||c.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=a.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=h.addItemToEnvelope(n,h.createAttachmentEnvelopeItem(e));this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(s.DEBUG_BUILD&&g.debug.warn(N));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(s.DEBUG_BUILD&&g.debug.warn(N));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=a.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;s.DEBUG_BUILD&&g.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.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 s.DEBUG_BUILD&&g.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&g.debug.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=c.setupIntegrations(this,e),c.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(d.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),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,n,r){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),v.prepareEvent(o,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:i.getTraceContextFromScope(n),...e.contexts};const r=p.getDynamicSamplingContextFromScope(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=i.getCurrentScope(),r=i.getIsolationScope()){return s.DEBUG_BUILD&&L(e)&&g.debug.log(`Captured error event \`${_.getPossibleEventMessages(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(M(e)?g.debug.log(e.message):x(e)?g.debug.warn(e.message):g.debug.warn(e))})}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=D(e),a=L(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?void 0:E.parseSampleRate(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),A.rejectedSyncPromise(P(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d="replay_event"===c?"replay":c;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),P("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:a}=t;let c=n;if(L(c)&&o)return o(c,r);if(D(c)){if(s||a){const t=R.convertTransactionEventToSpanJson(c);if(a?.length&&b.shouldIgnoreSpan(t,a))return null;if(s){const e=s(t);e?c=y.merge(n,R.convertSpanJsonToTransactionEvent(e)):I.showSpanDropWarning()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(a?.length&&b.shouldIgnoreSpan(e,a))b.reparentChildSpans(n,e);else if(s){const n=s(e);n?t.push(n):(I.showSpanDropWarning(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(i){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(c,r)}}return c}(this,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(S.isThenable(e))return e.then(e=>{if(!S.isPlainObject(e)&&null!==e)throw k(n);return e},e=>{throw k(`${t} rejected with ${e}`)});if(!S.isPlainObject(e)&&null!==e)throw k(n);return e}(n,u)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw P(`${u} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(s&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(M(e)||x(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),k(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&g.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&g.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&g.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&g.debug.log("Sending outcomes:",e);const t=f.createClientReportEnvelope(e,this._options.tunnel&&m.dsnToString(this._dsn));this.sendEnvelope(t)}}},3925:(e,t,n)=>{"use strict";var r=n(34);e.exports=function(e){return r(e)||null===e}},3940:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(784);t.isStreamingMethod=function(e){return e.includes("Stream")||e.endsWith("generateContentStream")||e.endsWith("sendMessageStream")},t.shouldInstrument=function(e){if(r.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(e))return!0;const t=e.split(".").pop();return r.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(t)}},3969:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=globalThis;t.GLOBAL_OBJ=n},3994:(e,t,n)=>{"use strict";var r=n(7657).IteratorPrototype,o=n(2360),i=n(6980),s=n(687),a=n(6269),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),s(e,l,!1,!0),a[l]=c,e}},4012:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670),s=n(7434),a=n(8826),c=n(132),u=r.defineIntegration(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions();if(c.hasLegacyProfiling(t)||t.profileLifecycle||(t.profileLifecycle="manual"),c.hasLegacyProfiling(t)&&!t.profilesSampleRate)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling disabled, no profiling options found."));const n=r.getActiveSpan(),u=n&&r.getRootSpan(n);if(c.hasLegacyProfiling(t)&&void 0!==t.profileSessionSampleRate&&o.DEBUG_BUILD&&r.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),c.hasLegacyProfiling(t))u&&c.isAutomatedPageLoadSpan(u)&&c.shouldProfileSpanLegacy(u)&&a.startProfileForSpan(u),e.on("spanStart",e=>{e===r.getRootSpan(e)&&c.shouldProfileSpanLegacy(e)&&a.startProfileForSpan(e)}),e.on("beforeEnvelope",e=>{if(!c.getActiveProfilesCount())return;const t=c.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;const n=[];for(const e of t){const t=e?.contexts,i=t?.profile?.profile_id,s=t?.profile?.start_timestamp;if("string"!=typeof i){o.DEBUG_BUILD&&r.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!i){o.DEBUG_BUILD&&r.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const a=c.takeProfileFromGlobalCache(i);if(!a){o.DEBUG_BUILD&&r.debug.log(`[Profiling] Could not retrieve profile for span: ${i}`);continue}const u=c.createProfilingEvent(i,s,a,e);u&&n.push(u)}c.addProfilesToEnvelope(e,n)});else{const n=c.shouldProfileSession(t);if(n||o.DEBUG_BUILD&&r.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),"trace"===t.profileLifecycle){if(!r.hasSpansEnabled(t))return void(o.DEBUG_BUILD&&r.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));const a=new s.BrowserTraceLifecycleProfiler;a.initialize(e,n),u&&a.notifyRootSpanActive(u),i.WINDOW.setTimeout(()=>{const e=r.getActiveSpan(),t=e&&r.getRootSpan(e);t&&a.notifyRootSpanActive(t)},0)}}},processEvent:e=>c.attachProfiledThreadToEvent(e)}));t.browserProfilingIntegration=u},4038:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(9759),i=n(3551),s=n(5110),a=n(4583),c=n(5363);let u=!1;t.registerSpanErrorInstrumentation=function(){function e(){const e=a.getActiveSpan(),t=e&&a.getRootSpan(e);if(t){const e="internal_error";r.DEBUG_BUILD&&s.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}u||(e.tag="sentry_tracingErrorCallback",u=!0,o.addGlobalErrorInstrumentationHandler(e),i.addGlobalUnhandledRejectionInstrumentationHandler(e))}},4055:(e,t,n)=>{"use strict";var r=n(4576),o=n(34),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},4082:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5740),o=n(1811),i=n(9188);function s(e,t){let n;return i.forEachEnvelopeItem(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function a(e,t){return i.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}t.eventFromEnvelope=s,t.makeMultiplexedTransport=function(e,t){return n=>{const i=e(n),c=new Map;function u(t,i){const a=i?`${t}:${i}`:t;let u=c.get(a);if(!u){const l=o.dsnFromString(t);if(!l)return;const d=r.getEnvelopeEndpointWithUrlEncodedAuth(l,n.tunnel);u=i?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=s(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,i)({...n,url:d}):e({...n,url:d}),c.set(a,u)}return[t,u]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){return s(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?u(e,void 0):u(e.dsn,e.release)).filter(e=>!!e),r=n.length?n:[["",i]],o=await Promise.all(r.map(([t,n])=>n.send(a(e,t))));return o[0]},flush:async function(e){const t=[...c.values(),i];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},4117:e=>{"use strict";e.exports=function(e){return null==e}},4124:(e,t,n)=>{"use strict";var r=n(9039),o=n(34),i=n(2195),s=n(5652),a=Object.isExtensible,c=r(function(){a(1)});e.exports=c||s?function(e){return!!o(e)&&(!s||"ArrayBuffer"!==i(e))&&(!a||a(e))}:a},4190:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(2248),a=n(6223),c=s.Map,u=s.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0),r=new c;return a(t,function(e,o){n(e,o,t)&&u(r,o,e)}),r}})},4208:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(8532),i=n(9721);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function a(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function c(e){const t=new Set;for(const n of e.issues){const e=a(n.path);e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${i.truncate(n.join(", "),100)}`}function u(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(i=r.originalException,o.isError(i)&&"ZodError"===i.name&&Array.isArray(i.issues))&&0!==r.originalException.issues.length))return n;var i;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(s);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:c(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=r.defineIntegration((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>u(t,e.saveZodIssuesAsAttachment,n,r)}});t.applyZodErrorsToEvent=u,t.flattenIssue=s,t.flattenIssuePath=a,t.formatIssueMessage=c,t.zodErrorsIntegration=l},4209:(e,t,n)=>{"use strict";var r=n(8227),o=n(6269),i=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},4213:(e,t,n)=>{"use strict";var r=n(3724),o=n(9504),i=n(9565),s=n(9039),a=n(1072),c=n(3717),u=n(8773),l=n(8981),d=n(7055),p=Object.assign,f=Object.defineProperty,g=o([].concat);e.exports=!p||s(function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!==p({},e)[n]||a(p({},t)).join("")!==o})?function(e,t){for(var n=l(e),o=arguments.length,s=1,p=c.f,f=u.f;o>s;)for(var m,h=d(arguments[s++]),_=p?g(a(h),p(h)):a(h),S=_.length,y=0;S>y;)m=_[y++],r&&!i(f,h,m)||(n[m]=h[m]);return n}:p},4215:(e,t,n)=>{"use strict";var r=n(4576),o=n(2839),i=n(2195),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},4265:(e,t,n)=>{"use strict";var r=n(2839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},4270:(e,t,n)=>{"use strict";var r=n(9565),o=n(4901),i=n(34),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!i(a=r(n,e)))return a;if(o(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!i(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},4284:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6159),o=n(3969),i="_sentryScope",s="_sentryIsolationScope";function a(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}t.getCapturedScopesOnSpan=function(e){const t=e;return{scope:t[i],isolationScope:a(t[s])}},t.setCapturedScopesOnSpan=function(e,t,n){e&&(r.addNonEnumerableProperty(e,s,function(e){try{const t=o.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(n)),r.addNonEnumerableProperty(e,i,t))}},4288:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);function o(e,t){const n=s(e,t),r={type:u(t),value:l(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function i(e,t){return{exception:{values:[o(e,t)]}}}function s(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&a.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch{}return[]}const a=/Minified React error #\d+;/i;function c(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function u(e){const t=e?.name;return!t&&c(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function l(e){const t=e?.message;return c(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function d(e,t,n,a,c){let u;if(r.isErrorEvent(t)&&t.error)return i(e,t.error);if(r.isDOMError(t)||r.isDOMException(t)){const o=t;if("stack"in t)u=i(e,t);else{const t=o.name||(r.isDOMError(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;u=p(e,i,n,a),r.addExceptionTypeValue(u,i)}return"code"in o&&(u.tags={...u.tags,"DOMException.code":`${o.code}`}),u}return r.isError(t)?i(e,t):r.isPlainObject(t)||r.isEvent(t)?(u=function(e,t,n,i){const a=r.getClient(),c=a?.getOptions().normalizeDepth,u=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),l={__serialized__:r.normalizeToSize(t,c)};if(u)return{exception:{values:[o(e,u)]},extra:l};const d={exception:{values:[{type:r.isEvent(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:f(t,{isUnhandledRejection:i})}]},extra:l};if(n){const t=s(e,n);t.length&&(d.exception.values[0].stacktrace={frames:t})}return d}(e,t,n,c),r.addExceptionMechanism(u,{synthetic:!0}),u):(u=p(e,t,n,a),r.addExceptionTypeValue(u,`${t}`,void 0),r.addExceptionMechanism(u,{synthetic:!0}),u)}function p(e,t,n,o){const i={};if(o&&n){const o=s(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]}),r.addExceptionMechanism(i,{synthetic:!0})}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function f(e,{isUnhandledRejection:t}){const n=r.extractExceptionKeysForMessage(e),o=t?"promise rejection":"exception";return r.isErrorEvent(e)?`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``:r.isEvent(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${o}`:`Object captured as ${o} with keys: ${n}`}t.eventFromException=function(e,t,n,o){const i=d(e,t,n?.syntheticException||void 0,o);return r.addExceptionMechanism(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),r.resolvedSyncPromise(i)},t.eventFromMessage=function(e,t,n="info",o,i){const s=p(e,t,o?.syntheticException||void 0,i);return s.level=n,o?.event_id&&(s.event_id=o.event_id),r.resolvedSyncPromise(s)},t.eventFromUnknownInput=d,t.exceptionFromError=o,t.extractMessage=l,t.extractType=u},4376:(e,t,n)=>{"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4428:(e,t,n)=>{"use strict";var r=n(8227)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4449:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(4288),s=n(7670),a=r.defineIntegration((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){r.addGlobalErrorInstrumentationHandler(t=>{const{stackParser:n,attachStacktrace:o}=u();if(r.getClient()!==e||s.shouldIgnoreOnError())return;const{msg:a,url:c,line:l,column:d,error:p}=t,f=function(e,t,n,o){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[],l=o,d=n,p=function(e){if(r.isString(e)&&0!==e.length){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/);return`<data:${t?t[1]:"text/javascript"}${e.includes("base64,")?",base64":""}>`}return e.slice(0,1024)}}(t)??r.getLocationHref();return 0===u.length&&u.push({colno:l,filename:p,function:r.UNKNOWN_FUNCTION,in_app:!0,lineno:d}),e}(i.eventFromUnknownInput(n,p||a,void 0,o,!1),c,l,d);f.level="error",r.captureEvent(f,{originalException:p,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),c("onerror")),t.onunhandledrejection&&(function(e){r.addGlobalUnhandledRejectionInstrumentationHandler(t=>{const{stackParser:n,attachStacktrace:o}=u();if(r.getClient()!==e||s.shouldIgnoreOnError())return;const a=function(e){if(r.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}(t),c=r.isPrimitive(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:i.eventFromUnknownInput(n,a,void 0,o,!0);c.level="error",r.captureEvent(c,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),c("onunhandledrejection"))}}});function c(e){o.DEBUG_BUILD&&r.debug.log(`Global Handler attached: ${e}`)}function u(){const e=r.getClient();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}t.globalHandlersIntegration=a},4450:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(9188),s=n(1901),a=n(8119);t.DEFAULT_TRANSPORT_BUFFER_SIZE=64,t.createTransport=function(e,t,n=s.makePromiseBuffer(e.bufferSize||64)){let c={};return{send:function(u){const l=[];if(i.forEachEnvelopeItem(u,(t,n)=>{const r=i.envelopeItemTypeToDataCategory(n);a.isRateLimited(c,r)?e.recordDroppedEvent("ratelimit_backoff",r):l.push(t)}),0===l.length)return Promise.resolve({});const d=i.createEnvelope(u[0],l),p=t=>{i.forEachEnvelopeItem(d,(n,r)=>{e.recordDroppedEvent(t,i.envelopeItemTypeToDataCategory(r))})};return n.add(()=>t({body:i.serializeEnvelope(d)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&r.DEBUG_BUILD&&o.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=a.updateRateLimits(c,e),e),e=>{throw p("network_error"),r.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===s.SENTRY_BUFFER_FULL_ERROR)return r.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}},4469:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LANGCHAIN_INTEGRATION_NAME="LangChain",t.LANGCHAIN_ORIGIN="auto.ai.langchain",t.ROLE_MAP={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},4486:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532);class o{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new o((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new o((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&(r.isThenable(t)?t.then(n,o):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},o=e=>{t(2,e)};try{e(n,o)}catch(e){o(e)}}}t.SyncPromise=o,t.rejectedSyncPromise=function(e){return new o((t,n)=>{n(e)})},t.resolvedSyncPromise=function(e){return new o(t=>{t(e)})}},4495:(e,t,n)=>{"use strict";var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4514:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(6159),s=n(7695);function a(e,t){i.fill(e,t,e=>function(n,...i){const s=i[i.length-1];if("function"!=typeof s)return e.call(this,n,...i);const a=function(e,t,n){return function(...i){try{return c.call(this,e,t,n,i)}catch(t){return r.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",t),e.apply(this,i)}}}(s,t,n);return e.call(this,n,...i.slice(0,-1),a)})}function c(e,t,n,r){try{const o=e.apply(this,r);return o&&"object"==typeof o&&"function"==typeof o.then?Promise.resolve(o).catch(e=>{throw u(e,t,n),e}):o}catch(e){throw u(e,t,n),e}}function u(e,t,n){try{const r={};"tool"===t?(r.tool_name=n,"ProtocolValidationError"===e.name||e.message.includes("validation")||e.message.includes("protocol")?s.captureError(e,"validation",r):"ServerTimeoutError"===e.name||e.message.includes("timed out")||e.message.includes("timeout")?s.captureError(e,"timeout",r):s.captureError(e,"tool_execution",r)):"resource"===t?(r.resource_uri=n,s.captureError(e,"resource_execution",r)):"prompt"===t&&(r.prompt_name=n,s.captureError(e,"prompt_execution",r))}catch(e){}}function l(e){a(e,"tool")}function d(e){a(e,"resource")}function p(e){a(e,"prompt")}t.wrapAllMCPHandlers=function(e){l(e),d(e),p(e)},t.wrapPromptHandlers=p,t.wrapResourceHandlers=d,t.wrapToolHandlers=l},4544:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=r.defineIntegration(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;r.fill(t,"isEnabled",s)},processEvent:(e,t,n)=>r._INTERNAL_copyFlagsFromScopeToEvent(e)}));function s(e){return function(...t){const n=t[0],i=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof i?(r._INTERNAL_insertFlagToScope(n,i),r._INTERNAL_addFeatureFlagToActiveSpan(n,i)):o.DEBUG_BUILD&&r.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${i} (${typeof i})`),i}}t.unleashIntegration=i},4548:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969);t.vercelWaitUntil=function(e){const t=r.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4583:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2810),o=n(3220),i=n(9564),s=n(2751),a=n(5363),c=n(4284),u=n(6159),l=n(8913),d=n(6869),p=n(3336),f=n(5110),g=n(4865);let m=!1;function h(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:1===n,attributes:o,...r})):void 0}function _(e){return"number"==typeof e?S(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?S(e.getTime()):d.timestampInSeconds()}function S(e){return e>9999999999?e/1e3:e}function y(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:a,status:c,links:u}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:_(o),timestamp:_(a)||void 0,status:E(c),op:r[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:h(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function T(e){const{traceFlags:t}=e.spanContext();return 1===t}function E(e){if(e&&e.code!==a.SPAN_STATUS_UNSET)return e.code===a.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const v="_sentryChildSpans",b="_sentryRootSpan";t.TRACE_FLAG_NONE=0,t.TRACE_FLAG_SAMPLED=1,t.addChildSpanToSpan=function(e,t){const n=e[b]||e;u.addNonEnumerableProperty(t,b,n),e[v]?e[v].add(t):u.addNonEnumerableProperty(e,v,new Set([t]))},t.convertSpanLinksForEnvelope=h,t.getActiveSpan=function(){const e=o.getMainCarrier(),t=r.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():g._getSpanForScope(i.getCurrentScope())},t.getRootSpan=function(e){return e[b]||e},t.getSpanDescendants=function(e){const t=new Set;return function e(n){if(!t.has(n)&&T(n)){t.add(n);const r=n[v]?Array.from(n[v]):[];for(const t of r)e(t)}}(e),Array.from(t)},t.getStatusMessage=E,t.removeChildSpanFromSpan=function(e,t){e[v]&&e[v].delete(t)},t.showSpanDropWarning=function(){m||(f.consoleSandbox(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),m=!0)},t.spanIsSampled=T,t.spanTimeInputToSeconds=_,t.spanToJSON=y,t.spanToTraceContext=function(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:y(e).parent_span_id,i=c.getCapturedScopesOnSpan(e).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||l.generateSpanId():t,trace_id:n}},t.spanToTraceHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),r=T(e);return p.generateSentryTraceHeader(t,n,r)},t.spanToTraceparentHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),r=T(e);return p.generateTraceparentHeader(t,n,r)},t.spanToTransactionTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=y(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}},t.updateSpanName=function(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},4598:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670);t.showReportDialog=function(e={}){const t=i.WINDOW.document,n=t?.head||t?.body;if(!n)return void(o.DEBUG_BUILD&&r.debug.error("[showReportDialog] Global document not defined"));const s=r.getCurrentScope(),a=r.getClient(),c=a?.getDsn();if(!c)return void(o.DEBUG_BUILD&&r.debug.error("[showReportDialog] DSN not configured"));const u={...e,user:{...s.getUser(),...e.user},eventId:e.eventId||r.lastEventId()},l=i.WINDOW.document.createElement("script");l.async=!0,l.crossOrigin="anonymous",l.src=r.getReportDialogEndpoint(c,u);const{onLoad:d,onClose:p}=u;if(d&&(l.onload=d),p){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{p()}finally{i.WINDOW.removeEventListener("message",e)}};i.WINDOW.addEventListener("message",e)}n.appendChild(l)}},4619:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(5363),i=n(8424);t.handleResponseError=function(e,t){t.error&&(e.setStatus({code:o.SPAN_STATUS_ERROR,message:t.error.type||"unknown_error"}),r.captureException(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))},t.shouldInstrument=function(e){return i.ANTHROPIC_AI_INSTRUMENTED_METHODS.includes(e)}},4624:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7742),i=n(4882),s=n(3872),a=n(9986),c=n(2843),u=n(1604),l=n(2990),d=n(5476),p=n(750);let f,g,m=0,h={};function _(e,t,n,o,i,s){if(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&r.stringMatchesSomePattern(t.name,s))return;const a=d.getNavigationEntry(!1),c=u.msToSec(a?a.requestStart:0),l=i+Math.max(n,c),p=i+n,f=p+o,g={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};l!==p&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=l),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,o]of Object.entries(n))if(o&&r.isPrimitive(o))e[`sentry.browser.measure.detail.${t}`]=o;else if(void 0!==o)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(o)}catch{}return}if(r.isPrimitive(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(g,t),l<=f&&u.startAndEndSpan(e,l,f,{name:t.name,op:t.entryType,attributes:g})}function S(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{y(e,t,r,n)}),y(e,t,"secureConnection",n,"TLS/SSL"),y(e,t,"fetch",n,"cache"),y(e,t,"domainLookup",n,"DNS"),function(e,t,n){const o=n+u.msToSec(t.requestStart),i=n+u.msToSec(t.responseEnd),s=n+u.msToSec(t.responseStart);t.responseEnd&&(u.startAndEndSpan(e,o,i,{op:"browser.request",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),u.startAndEndSpan(e,s,i,{op:"browser.response",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,n)}function y(e,t,n,o,i=n){const s=function(e){return"secureConnection"===e?"connectEnd":"fetch"===e?"domainLookupStart":`${e}End`}(n),a=t[s],c=t[`${n}Start`];c&&a&&u.startAndEndSpan(e,o+u.msToSec(c),o+u.msToSec(a),{op:`browser.${i}`,name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function T(e,t,n,i,s,a,l){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const d=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l?.includes(d))return;const p={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},f=r.parseUrl(n);f.protocol&&(p["url.scheme"]=f.protocol.split(":").pop()),f.host&&(p["server.address"]=f.host),p["url.same_origin"]=n.includes(o.WINDOW.location.origin),E(t,p,[["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"]]);const g={...p,...c.resourceTimingToSpanAttributes(t)},m=a+i,h=m+s;u.startAndEndSpan(e,m,h,{name:n.replace(o.WINDOW.location.origin,""),op:d,attributes:g})}function E(e,t,n){n.forEach(([n,r])=>{const o=e[n];null!=o&&("number"==typeof o&&o<2147483647||"string"==typeof o)&&(t[r]=o)})}t._addMeasureSpans=_,t._addNavigationSpans=S,t._addResourceSpans=T,t._setResourceRequestAttributes=E,t.addPerformanceEntries=function(e,t){const n=u.getBrowserPerformanceAPI(),i=r.browserPerformanceTimeOrigin();if(!n?.getEntries||!i)return;const s=u.msToSec(i),a=n.getEntries(),{op:c,start_timestamp:y}=r.spanToJSON(e);a.slice(m).forEach(n=>{const r=u.msToSec(n.startTime),o=u.msToSec(Math.max(0,n.duration));if(!("navigation"===c&&y&&s+r<y))switch(n.entryType){case"navigation":S(e,n,s);break;case"mark":case"paint":case"measure":{_(e,n,r,o,s,t.ignorePerformanceApiSpans);const i=p.getVisibilityWatcher(),a=n.startTime<i.firstHiddenTime;"first-paint"===n.name&&a&&(h.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&a&&(h.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":T(e,n,n.name,r,o,s,t.ignoreResourceSpans)}}),m=Math.max(a.length-1,0),function(e){const t=o.WINDOW.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),u.isMeasurementValue(n.rtt)&&(h["connection.rtt"]={value:n.rtt,unit:"millisecond"})),u.isMeasurementValue(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),u.isMeasurementValue(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===c&&(function(e){const t=d.getNavigationEntry(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(h),t.recordClsOnPageloadSpan||delete h.cls,t.recordLcpOnPageloadSpan||delete h.lcp,Object.entries(h).forEach(([e,t])=>{r.setMeasurement(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",l.getActivationStart()),function(e,t){f&&t.recordLcpOnPageloadSpan&&(f.element&&e.setAttribute("lcp.element",r.htmlTreeAsString(f.element)),f.id&&e.setAttribute("lcp.id",f.id),f.url&&e.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&e.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&e.setAttribute("lcp.renderTime",f.renderTime),e.setAttribute("lcp.size",f.size)),g?.sources&&t.recordClsOnPageloadSpan&&g.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,r.htmlTreeAsString(t.node)))}(e,t)),f=void 0,g=void 0,h={}},t.startTrackingInteractions=function(){s.addPerformanceInstrumentationHandler("event",({entries:e})=>{const t=r.getActiveSpan();if(t)for(const n of e)if("click"===n.name){const e=u.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),o=u.msToSec(n.duration),i={name:r.htmlTreeAsString(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},s=r.getComponentName(n.target);s&&(i.attributes["ui.component_name"]=s),u.startAndEndSpan(t,e,e+o,i)}})},t.startTrackingLongAnimationFrames=function(){new PerformanceObserver(e=>{const t=r.getActiveSpan();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=u.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),{start_timestamp:o,op:i}=r.spanToJSON(t);if("navigation"===i&&o&&e<o)continue;const s=u.msToSec(n.duration),a={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:l,invokerType:d,sourceURL:p,sourceFunctionName:f,sourceCharPosition:g}=c;a["browser.script.invoker"]=l,a["browser.script.invoker_type"]=d,p&&(a["code.filepath"]=p),f&&(a["code.function"]=f),-1!==g&&(a["browser.script.source_char_position"]=g),u.startAndEndSpan(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})},t.startTrackingLongTasks=function(){s.addPerformanceInstrumentationHandler("longtask",({entries:e})=>{const t=r.getActiveSpan();if(!t)return;const{op:n,start_timestamp:o}=r.spanToJSON(t);for(const i of e){const e=u.msToSec(r.browserPerformanceTimeOrigin()+i.startTime),s=u.msToSec(i.duration);"navigation"===n&&o&&e<o||u.startAndEndSpan(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})},t.startTrackingWebVitals=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const c=u.getBrowserPerformanceAPI();if(c&&r.browserPerformanceTimeOrigin()){c.mark&&o.WINDOW.performance.mark("sentry-tracing-init");const r=t?a.trackLcpAsStandaloneSpan(n):s.addLcpInstrumentationHandler(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(h.lcp={value:e.value,unit:"millisecond"},f=t)},!0),u=s.addTtfbInstrumentationHandler(({metric:e})=>{e.entries[e.entries.length-1]&&(h.ttfb={value:e.value,unit:"millisecond"})}),l=e?i.trackClsAsStandaloneSpan(n):s.addClsInstrumentationHandler(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(h.cls={value:e.value,unit:""},g=t)},!0);return()=>{r?.(),u(),l?.()}}return()=>{}}},4628:(e,t,n)=>{"use strict";var r=n(6518),o=n(6043);r({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},4659:(e,t,n)=>{"use strict";var r=n(9039),o=n(6980);e.exports=!r(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},4666:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1362),i=n(7742),s={};function a(e){const t=s[e];if(t)return t;let n=i.WINDOW[e];if(r.isNativeFunction(n))return s[e]=n.bind(i.WINDOW);const a=i.WINDOW.document;if(a&&"function"==typeof a.createElement)try{const t=a.createElement("iframe");t.hidden=!0,a.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),a.head.removeChild(t)}catch(t){o.DEBUG_BUILD&&r.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?s[e]=n.bind(i.WINDOW):n}t.clearCachedImplementation=function(e){s[e]=void 0},t.fetch=function(...e){return a("fetch")(...e)},t.getNativeImplementation=a,t.setTimeout=function(...e){return a("setTimeout")(...e)}},4668:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new Map;t.toolCallSpanMap=n},4702:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6744),o=n(3969);t.isBrowser=function(){return"undefined"!=typeof window&&(!r.isNodeEnv()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},4746:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(2751),s=n(5363),a=n(5908),c=n(2434),u=n(2856),l=n(6354),d=n(8230),p=n(4619);function f(e,t){if("messages"in t){const n=u.getTruncatedJsonString(t.messages);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}if("input"in t){const n=u.getTruncatedJsonString(t.input);e.setAttributes({[c.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}"prompt"in t&&e.setAttributes({[c.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function g(e,t,n){throw o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function m(e,t,n,r){return new Proxy(e,{apply(s,m,h){const _=function(e,t){const n={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:u.getFinalOperationName(t),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(n[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(n[c.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(n[c.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(n[c.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(n[c.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(n[c.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(n[c.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return n}(h,t),S=_[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",y=u.getFinalOperationName(t),T="object"==typeof h[0]?h[0]:void 0,E=Boolean(T?.stream),v="messages.stream"===t;return E||v?function(e,t,n,r,o,i,s,l,p,m,h){const _={name:`${i} ${o[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"} stream-response`,op:u.getSpanOperation(s),attributes:o};return m&&!h?a.startSpanManual(_,async t=>{try{p.recordInputs&&l&&f(t,l);const o=await e.apply(n,r);return d.instrumentAsyncIterableStream(o,t,p.recordOutputs??!1)}catch(e){return g(e,t,s)}}):a.startSpanManual(_,e=>{try{p.recordInputs&&l&&f(e,l);const o=t.apply(n,r);return d.instrumentMessageStream(o,e,p.recordOutputs??!1)}catch(t){return g(t,e,s)}})}(e,s,n,h,_,y,t,T,r,E,v):a.startSpan({name:`${y} ${S}`,op:u.getSpanOperation(t),attributes:_},e=>(r.recordInputs&&T&&f(e,T),l.handleCallbackErrors(()=>s.apply(n,h),e=>{o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},t=>function(e,t,n){t&&"object"==typeof t&&("type"in t&&"error"===t.type?p.handleResponseError(e,t):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[c.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[c.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[c.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[c.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&u.setTokenUsageAttributes(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}(e,t,r.recordOutputs))))}})}function h(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=u.buildMethodPath(t,String(r));return"function"==typeof o&&p.shouldInstrument(i)?m(o,i,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?h(o,i,n):o}})}t.instrumentAnthropicAiClient=function(e,t){const n=Boolean(r.getClient()?.getOptions().sendDefaultPii);return h(e,"",{recordInputs:n,recordOutputs:n,...t})}},4815:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(5363),i=n(4827),s=n(1303),a=new WeakMap;function c(e){let t=a.get(e);return t||(t=new Map,a.set(e,t)),t}t.cleanupPendingSpansForTransport=function(e){const t=a.get(e);if(t){for(const[,e]of t)e.span.setStatus({code:o.SPAN_STATUS_ERROR,message:"cancelled"}),e.span.end();t.clear()}},t.completeSpanWithResults=function(e,t,n){const o=c(e),a=o.get(t);if(a){const{span:e,method:c}=a;if("tools/call"===c){const t=s.extractToolResultAttributes(n),o=r.getClient(),a=Boolean(o?.getOptions().sendDefaultPii),c=i.filterMcpPiiFromSpanData(t,a);e.setAttributes(c)}else if("prompts/get"===c){const t=s.extractPromptResultAttributes(n),o=r.getClient(),a=Boolean(o?.getOptions().sendDefaultPii),c=i.filterMcpPiiFromSpanData(t,a);e.setAttributes(c)}e.end(),o.delete(t)}},t.storeSpanForRequest=function(e,t,n,r){c(e).set(t,{span:n,method:r,startTime:Date.now()})}},4827:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=new Set([r.CLIENT_ADDRESS_ATTRIBUTE,r.CLIENT_PORT_ATTRIBUTE,r.MCP_LOGGING_MESSAGE_ATTRIBUTE,r.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE,r.MCP_PROMPT_RESULT_MESSAGE_CONTENT_ATTRIBUTE,r.MCP_RESOURCE_URI_ATTRIBUTE,r.MCP_TOOL_RESULT_CONTENT_ATTRIBUTE]);t.filterMcpPiiFromSpanData=function(e,t){return t?e:Object.entries(e).reduce((e,[t,n])=>(function(e){return!!o.has(e)||!!e.startsWith(`${r.MCP_REQUEST_ARGUMENT}.`)||!(!e.startsWith(`${r.MCP_TOOL_RESULT_PREFIX}.`)&&!e.startsWith(`${r.MCP_PROMPT_RESULT_PREFIX}.`)||e.endsWith("_count")||e.endsWith("_error")||e.endsWith(".is_error"))}(t)||(e[t]=n),e),{})}},4841:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9188),o=n(6869);t.createClientReportEnvelope=function(e,t,n){const i=[{type:"client_report"},{timestamp:n||o.dateTimestampInSeconds(),discarded_events:e}];return r.createEnvelope(t?{dsn:t}:{},[i])}},4842:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(251),o=n(3913),i=n(9564),s=n(8974),a=n(4038),c=n(5110),u=n(6940),l=n(3395),d=n(4486),p=n(1872);class f extends o.Client{constructor(e){a.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){const n=l.eventFromUnknownInput(this,this._options.stackParser,e,t);return n.level="error",d.resolvedSyncPromise(n)}eventFromMessage(e,t="info",n){return d.resolvedSyncPromise(l.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){return g(t),super.captureException(e,t,n)}captureEvent(e,t,n){return!e.type&&e.exception?.values&&e.exception.values.length>0&&g(t),super.captureEvent(e,t,n)}captureCheckIn(e,t,n){const o="checkInId"in e&&e.checkInId?e.checkInId:u.uuid4();if(!this._isEnabled())return s.DEBUG_BUILD&&c.debug.warn("SDK not enabled, will not capture check-in."),o;const i=this.getOptions(),{release:a,environment:l,tunnel:d}=i,f={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:a,environment:l};"duration"in e&&(f.duration=e.duration),t&&(f.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});const[g,m]=p._getTraceInfoFromScope(this,n);m&&(f.contexts={trace:m});const h=r.createCheckInEnvelope(f,g,this.getSdkMetadata(),d,this.getDsn());return s.DEBUG_BUILD&&c.debug.log("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(h),o}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:e.contexts?.runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}}function g(e){const t=i.getIsolationScope().getScopeData().sdkProcessingMetadata.requestSession;if(t){const n=e?.mechanism?.handled??!0;n&&"crashed"!==t.status?t.status="errored":n||(t.status="crashed")}}t.ServerRuntimeClient=f},4865:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6159),o="_sentrySpan";t._getSpanForScope=function(e){return e[o]},t._setSpanForScope=function(e,t){t?r.addNonEnumerableProperty(e,o,t):delete e[o]}},4867:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7990),o=n(9564),i=n(5770),s=n(2430),a=n(5110),c=n(9499),u=n(9721),l=n(3969),d=s.defineIntegration((e={})=>{const t=new Set(e.levels||a.CONSOLE_LEVELS);return{name:"Console",setup(e){i.addConsoleInstrumentationHandler(({args:n,level:r})=>{o.getClient()===e&&t.has(r)&&p(r,n)})}}});function p(e,t){const n={category:"console",data:{arguments:t,logger:"console"},level:c.severityLevelFromString(e),message:f(t)};if("assert"===e){if(!1!==t[0])return;{const e=t.slice(1);n.message=e.length>0?`Assertion failed: ${f(e)}`:"Assertion failed",n.data.arguments=e}}r.addBreadcrumb(n,{input:t,level:e})}function f(e){return"util"in l.GLOBAL_OBJ&&"function"==typeof l.GLOBAL_OBJ.util.format?l.GLOBAL_OBJ.util.format(...e):u.safeJoin(e," ")}t.addConsoleBreadcrumb=p,t.consoleIntegration=d},4882:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1362),i=n(3872),s=n(1604);function a(e,t,n,i){o.DEBUG_BUILD&&r.debug.log(`Sending CLS span (${e})`);const a=t?s.msToSec((r.browserPerformanceTimeOrigin()||0)+t.startTime):r.timestampInSeconds(),c=r.getCurrentScope().getScopeData().transactionName,u=t?r.htmlTreeAsString(t.sources[0]?.node):"Layout shift",l={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};t?.sources&&t.sources.forEach((e,t)=>{l[`cls.source.${t+1}`]=r.htmlTreeAsString(e.node)});const d=s.startStandaloneWebVitalSpan({name:u,transaction:c,attributes:l,startTime:a});d&&(d.addEvent("cls",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),d.end(a))}t._sendStandaloneClsSpan=a,t.trackClsAsStandaloneSpan=function(e){let t,n=0;if(!s.supportsWebVital("layout-shift"))return;const r=i.addClsInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);s.listenForWebVitalReportEvents(e,(e,o)=>{a(n,t,o,e),r()})}},4901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4913:(e,t,n)=>{"use strict";var r=n(3724),o=n(5917),i=n(8686),s=n(8551),a=n(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?i?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},5003:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(5770),s=n(2430),a=n(5110),c=n(6940),u=n(9499),l=n(9721),d=n(3969),p=s.defineIntegration((e={})=>{const t=e.levels||a.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.GLOBAL_OBJ&&i.addConsoleInstrumentationHandler(({args:i,level:s})=>{r.getClient()===e&&t.includes(s)&&function(e,t,n){const i={level:u.severityLevelFromString(t),extra:{arguments:e}};r.withScope(r=>{if(r.addEventProcessor(e=>(e.logger="console",c.addExceptionMechanism(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${l.safeJoin(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),o.captureMessage(t,i)}return}const s=e.find(e=>e instanceof Error);if(s)return void o.captureException(s,i);const a=l.safeJoin(e," ");o.captureMessage(a,i)})}(i,s,n)})}}});t.captureConsoleIntegration=p},5013:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3754),o=n(9090),i=n(4583);function s(e,t,n){e[t]=o.merge(e[t],n,1)}t.applyScopeDataToEvent=function(e,t){const{fingerprint:n,span:o,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),o&&function(e,t){e.contexts={trace:i.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const n=i.getRootSpan(t),o=i.spanToJSON(n).description;o&&!e.transaction&&"transaction"===e.type&&(e.transaction=o)}(e,o),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)},t.mergeAndOverwriteScopeData=s,t.mergeScopeData=function(e,t){const{extra:n,tags:r,user:i,contexts:a,level:c,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:d,eventProcessors:p,attachments:f,propagationContext:g,transactionName:m,span:h}=t;s(e,"extra",n),s(e,"tags",r),s(e,"user",i),s(e,"contexts",a),e.sdkProcessingMetadata=o.merge(e.sdkProcessingMetadata,u,2),c&&(e.level=c),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...g}}},5031:(e,t,n)=>{"use strict";var r=n(7751),o=n(9504),i=n(8480),s=n(3717),a=n(8551),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=s.f;return n?c(t,n(e)):t}},5110:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(8974),i=n(3969),s={};function a(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(e=>{const r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function c(){return l().enabled}function u(e,...t){o.DEBUG_BUILD&&c()&&a(()=>{i.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function l(){return o.DEBUG_BUILD?r.getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const d={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}};t.CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],t.consoleSandbox=a,t.debug=d,t.originalConsoleMethods=s},5122:(e,t,n)=>{"use strict";var r=n(6518),o=n(6194),i=n(2652),s=n(2248).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),n=arguments.length,r=0;r<n;)i(arguments[r++],function(e,n){s(t,e,n)},{AS_ENTRIES:!0});return t}})},5135:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1188);let o=0,i=1/0,s=0;const a=e=>{e.forEach(e=>{e.interactionId&&(i=Math.min(i,e.interactionId),s=Math.max(s,e.interactionId),o=s?(s-i)/7+1:0)})};let c;t.getInteractionCount=()=>c?o:performance.interactionCount||0,t.initInteractionCountPolyfill=()=>{"interactionCount"in performance||c||(c=r.observe("event",a,{type:"event",buffered:!0,durationThreshold:0}))}},5196:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7670),i=["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"],s=r.defineIntegration((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&r.fill(o.WINDOW,"setTimeout",a),t.setInterval&&r.fill(o.WINDOW,"setInterval",a),t.requestAnimationFrame&&r.fill(o.WINDOW,"requestAnimationFrame",c),t.XMLHttpRequest&&"XMLHttpRequest"in o.WINDOW&&r.fill(XMLHttpRequest.prototype,"send",u);const e=t.eventTarget;e&&(Array.isArray(e)?e:i).forEach(e=>function(e,t){const n=o.WINDOW,i=n[e]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(r.fill(i,"addEventListener",function(n){return function(i,s,a){try{"function"==typeof s.handleEvent&&(s.handleEvent=o.wrap(s.handleEvent,{mechanism:{data:{handler:r.getFunctionName(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,i,s),n.apply(this,[i,o.wrap(s,{mechanism:{data:{handler:r.getFunctionName(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),r.fill(i,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}}))}(e,t))}}});function a(e){return function(...t){const n=t[0];return t[0]=o.wrap(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${r.getFunctionName(e)}`}}),e.apply(this,t)}}function c(e){return function(t){return e.apply(this,[o.wrap(t,{mechanism:{data:{handler:r.getFunctionName(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function u(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&r.fill(n,e,function(t){const n={mechanism:{data:{handler:r.getFunctionName(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=r.getOriginalFunction(t);return i&&(n.mechanism.data.handler=r.getFunctionName(i)),o.wrap(t,n)})}),e.apply(this,t)}}t.browserApiErrorsIntegration=s},5201:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7670),i={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},s=o.WINDOW;t.lazyLoadIntegration=async function(e,t){const n=i[e],a=s.Sentry=s.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const c=a[e];if("function"==typeof c&&!("_isShim"in c))return c;const u=function(e){const t=r.getClient(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${r.SDK_VERSION}/${e}.min.js`,n).toString()}(n),l=o.WINDOW.document.createElement("script");l.src=u,l.crossOrigin="anonymous",l.referrerPolicy="strict-origin",t&&l.setAttribute("nonce",t);const d=new Promise((e,t)=>{l.addEventListener("load",()=>e()),l.addEventListener("error",t)}),p=o.WINDOW.document.currentScript,f=o.WINDOW.document.body||o.WINDOW.document.head||p?.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);f.appendChild(l);try{await d}catch{throw new Error(`Error when loading integration: ${e}`)}const g=a[e];if("function"!=typeof g)throw new Error(`Could not load integration: ${e}`);return g}},5208:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new WeakMap;t.cleanupSessionDataForTransport=function(e){n.delete(e)},t.getClientInfoForTransport=function(e){return n.get(e)?.clientInfo},t.getProtocolVersionForTransport=function(e){return n.get(e)?.protocolVersion},t.getSessionDataForTransport=function(e){return n.get(e)},t.storeSessionDataForTransport=function(e,t){e.sessionId&&n.set(e,t)},t.updateSessionDataForTransport=function(e,t){if(e.sessionId){const r=n.get(e)||{};n.set(e,{...r,...t})}}},5236:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1811),o=n(9188);function i(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}t.createLogContainerEnvelopeItem=i,t.createLogEnvelope=function(e,t,n,s){const a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&s&&(a.dsn=r.dsnToString(s)),o.createEnvelope(a,[i(e)])}},5296:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7373),o=n(2979);function i(e,t,n,o,i){r._INTERNAL_captureLog({level:e,message:t,attributes:n,severityNumber:i},o)}t.fmt=o.fmt,t.debug=function(e,t,{scope:n}={}){i("debug",e,t,n)},t.error=function(e,t,{scope:n}={}){i("error",e,t,n)},t.fatal=function(e,t,{scope:n}={}){i("fatal",e,t,n)},t.info=function(e,t,{scope:n}={}){i("info",e,t,n)},t.trace=function(e,t,{scope:n}={}){i("trace",e,t,n)},t.warn=function(e,t,{scope:n}={}){i("warn",e,t,n)}},5303:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6102);t.applySdkMetadata=function(e,t,n=[t],o="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${o}:@sentry/${e}`,version:r.SDK_VERSION})),version:r.SDK_VERSION}),e._metadata=i}},5363:(e,t)=>{function n(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SPAN_STATUS_ERROR=2,t.SPAN_STATUS_OK=1,t.SPAN_STATUS_UNSET=0,t.getSpanStatusFromHttpCode=n,t.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);const r=n(t);"unknown_error"!==r.message&&e.setStatus(r)}},5397:(e,t,n)=>{"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},5475:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7320),o=n(9640),i=n(8532),s=n(3220);class a{constructor(e,t){let n,r;n=e||new o.Scope,r=t||new o.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return i.isThenable(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function c(){const e=s.getMainCarrier(),t=s.getSentryCarrier(e);return t.stack=t.stack||new a(r.getDefaultCurrentScope(),r.getDefaultIsolationScope())}function u(e){return c().withScope(e)}function l(e,t){const n=c();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return c().withScope(()=>e(c().getIsolationScope()))}t.AsyncContextStack=a,t.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},5476:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742);t.getNavigationEntry=(e=!0)=>{const t=r.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},5548:(e,t,n)=>{"use strict";var r=n(3517),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},5610:(e,t,n)=>{"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5648:(e,t,n)=>{"use strict";n(2675);var r=n(9167);e.exports=r.Symbol.keyFor},5652:(e,t,n)=>{"use strict";var r=n(9039);e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},5684:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(8532),s="sentry-",a=/^sentry-/;function c(e){if(e&&(i.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=u(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):u(e)}function u(e){return e.split(",").map(e=>{const t=e.indexOf("=");return-1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function l(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>8192?(r.DEBUG_BUILD&&o.debug.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}t.MAX_BAGGAGE_STRING_LENGTH=8192,t.SENTRY_BAGGAGE_KEY_PREFIX=s,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=a,t.baggageHeaderToDynamicSamplingContext=function(e){const t=c(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>(t.match(a)&&(e[t.slice(7)]=n),e),{});return Object.keys(n).length>0?n:void 0},t.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e)return l(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{}))},t.objectToBaggageHeader=l,t.parseBaggageHeader=c},5740:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1811);function o(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}t.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`},t.getReportDialogEndpoint=function(e,t){const n=r.makeDsn(e);if(!n)return"";const i=`${o(n)}embed/error-page/`;let s=`dsn=${r.dsnToString(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(s+=`&name=${encodeURIComponent(e.name)}`),e.email&&(s+=`&email=${encodeURIComponent(e.email)}`)}else s+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${i}?${s}`}},5745:(e,t,n)=>{"use strict";var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5770:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5110),o=n(6159),i=n(3969),s=n(1535);function a(){"console"in i.GLOBAL_OBJ&&r.CONSOLE_LEVELS.forEach(function(e){e in i.GLOBAL_OBJ.console&&o.fill(i.GLOBAL_OBJ.console,e,function(t){return r.originalConsoleMethods[e]=t,function(...t){const n={args:t,level:e};s.triggerHandlers("console",n);const o=r.originalConsoleMethods[e];o?.apply(i.GLOBAL_OBJ.console,t)}})})}t.addConsoleInstrumentationHandler=function(e){const t="console";s.addHandler(t,e),s.maybeInstrument(t,a)}},5870:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9635),o=n(2230),i=n(6332);function s(e,t){const n={};switch(e){case"notifications/cancelled":t?.requestId&&(n["mcp.cancelled.request_id"]=String(t.requestId)),t?.reason&&(n["mcp.cancelled.reason"]=String(t.reason));break;case"notifications/message":t?.level&&(n[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(t.level)),t?.logger&&(n[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(t.logger)),void 0!==t?.data&&(n[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof t.data,"string"==typeof t.data?n[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]=t.data:n[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]=JSON.stringify(t.data));break;case"notifications/progress":t?.progressToken&&(n["mcp.progress.token"]=String(t.progressToken)),"number"==typeof t?.progress&&(n["mcp.progress.current"]=t.progress),"number"==typeof t?.total&&(n["mcp.progress.total"]=t.total,"number"==typeof t?.progress&&(n["mcp.progress.percentage"]=t.progress/t.total*100)),t?.message&&(n["mcp.progress.message"]=String(t.message));break;case"notifications/resources/updated":if(t?.uri){n[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(t.uri);const e=r.parseStringToURLObject(String(t.uri));e&&!r.isURLObjectRelative(e)&&(n["mcp.resource.protocol"]=e.protocol.replace(":",""))}break;case"notifications/initialized":n["mcp.lifecycle.phase"]="initialization_complete",n["mcp.protocol.ready"]=1}return n}t.buildTypeSpecificAttributes=function(e,t,n){if("request"===e){const e=t,r=i.extractTargetInfo(e.method,n||{});return{...void 0!==e.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(e.id)},...r.attributes,...i.getRequestArguments(e.method,n||{})}}return s(t.method,n||{})},t.getNotificationAttributes=s},5873:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(9204),i=n(9188),s=r.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{i.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})}}));t.moduleMetadataIntegration=s},5908:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2810),o=n(3220),i=n(9564),s=n(8974),a=n(2751),c=n(5684),u=n(5110),l=n(6354),d=n(1228),p=n(393),f=n(8913),g=n(4865),m=n(4583),h=n(3336),_=n(3754),S=n(8346),y=n(9816),T=n(7392),E=n(242),v=n(5363),b=n(4284),I="__SENTRY_SUPPRESS_TRACING__";function A(e,t){const n=C();return n.withActiveSpan?n.withActiveSpan(e,t):i.withScope(n=>(g._setSpanForScope(n,e||void 0),t(n)))}function R(e){return i.withScope(t=>(t.setPropagationContext({traceId:f.generateTraceId(),sampleRand:Math.random()}),s.DEBUG_BUILD&&u.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),A(null,e)))}function O({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!d.hasSpansEnabled()){const r=new T.SentryNonRecordingSpan;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,..._.getDynamicSamplingContextFromSpan(r)};_.freezeDscOnSpan(r,e)}return r}const o=i.getIsolationScope();let s;if(e&&!n)s=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[I]&&m.spanIsSampled(e),a=s?new E.SentrySpan({...n,parentSpanId:r,traceId:o,sampled:s}):new T.SentryNonRecordingSpan({traceId:o});m.addChildSpanToSpan(e,a);const c=i.getClient();return c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a)),a}(e,r,t),m.addChildSpanToSpan(e,s);else if(e){const n=_.getDynamicSamplingContextFromSpan(e),{traceId:o,spanId:i}=e.spanContext(),a=m.spanIsSampled(e);s=w({traceId:o,parentSpanId:i,...t},r,a),_.freezeDscOnSpan(s,n)}else{const{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};s=w({traceId:e,parentSpanId:i,...t},r,a),n&&_.freezeDscOnSpan(s,n)}return S.logSpanStart(s),b.setCapturedScopesOnSpan(s,r,o),s}function N(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=m.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function C(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e)}function w(e,t,n){const r=i.getClient(),o=r?.getOptions()||{},{name:c=""}=e,l={spanAttributes:{...e.attributes},spanName:c,parentSampled:n};r?.emit("beforeSampling",l,{decision:!1});const d=l.parentSampled??n,f=l.spanAttributes,g=t.getPropagationContext(),[m,h,_]=t.getScopeData().sdkProcessingMetadata[I]?[!1]:y.sampleSpan(o,{name:c,parentSampled:d,attributes:f,parentSampleRate:p.parseSampleRate(g.dsc?.sample_rate)},g.sampleRand),S=new E.SentrySpan({...e,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==h&&_?h:void 0,...f},sampled:m});return!m&&r&&(s.DEBUG_BUILD&&u.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",S),S}function k(e,t){if(t)return t;if(null===t)return;const n=g._getSpanForScope(e);if(!n)return;const r=i.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?m.getRootSpan(n):n}function P(e){return void 0!==e?t=>A(e,t):e=>e()}t.continueTrace=(e,t)=>{const n=o.getMainCarrier(),s=r.getAsyncContextStrategy(n);if(s.continueTrace)return s.continueTrace(e,t);const{sentryTrace:a,baggage:u}=e,l=i.getClient(),d=c.baggageHeaderToDynamicSamplingContext(u);return l&&!h.shouldContinueTrace(l,d?.org_id)?R(t):i.withScope(e=>{const n=h.propagationContextFromHeaders(a,u);return e.setPropagationContext(n),t()})},t.startInactiveSpan=function(e){const t=C();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=N(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>i.withScope(e.scope,t):void 0!==o?e=>A(o,e):e=>e())(()=>{const t=i.getCurrentScope(),s=k(t,o);return e.onlyIfParent&&!s?new T.SentryNonRecordingSpan:O({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})})},t.startNewTrace=R,t.startSpan=function(e,t){const n=C();if(n.startSpan)return n.startSpan(e,t);const r=N(e),{forceTransaction:o,parentSpan:s,scope:a}=e,c=a?.clone();return i.withScope(c,()=>P(s)(()=>{const n=i.getCurrentScope(),a=k(n,s),c=e.onlyIfParent&&!a?new T.SentryNonRecordingSpan:O({parentSpan:a,spanArguments:r,forceTransaction:o,scope:n});return g._setSpanForScope(n,c),l.handleCallbackErrors(()=>t(c),()=>{const{status:e}=m.spanToJSON(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:v.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{c.end()})}))},t.startSpanManual=function(e,t){const n=C();if(n.startSpanManual)return n.startSpanManual(e,t);const r=N(e),{forceTransaction:o,parentSpan:s,scope:a}=e,c=a?.clone();return i.withScope(c,()=>P(s)(()=>{const n=i.getCurrentScope(),a=k(n,s),c=e.onlyIfParent&&!a?new T.SentryNonRecordingSpan:O({parentSpan:a,spanArguments:r,forceTransaction:o,scope:n});return g._setSpanForScope(n,c),l.handleCallbackErrors(()=>t(c,()=>c.end()),()=>{const{status:e}=m.spanToJSON(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:v.SPAN_STATUS_ERROR,message:"internal_error"})})}))},t.suppressTracing=function(e){const t=C();return t.suppressTracing?t.suppressTracing(e):i.withScope(t=>{t.setSDKProcessingMetadata({[I]:!0});const n=e();return t.setSDKProcessingMetadata({[I]:void 0}),n})},t.withActiveSpan=A},5917:(e,t,n)=>{"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:(e,t,n)=>{"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},5985:(e,t,n)=>{"use strict";e.exports=n(7267)},6008:(e,t,n)=>{"use strict";var r=n(1015);e.exports=r},6011:(e,t)=>{function n(e){const t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function r(e){const t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n&&(t[e]=n)})}catch{}return t}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const o=["auth","token","secret","cookie","-user","password","key"];function i(e){if(e)try{const t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}t.extractQueryParamsFromUrl=i,t.headersToDict=r,t.httpHeadersToSpanAttributes=function(e,t=!1){const n={};try{Object.entries(e).forEach(([e,r])=>{if(void 0!==r){const i=e.toLowerCase();if(!t&&o.some(e=>i.includes(e)))return;const s=`http.request.header.${i.replace(/-/g,"_")}`;Array.isArray(r)?n[s]=r.map(e=>null!=e?String(e):e).join(";"):"string"==typeof r&&(n[s]=r)}})}catch{}return n},t.httpRequestToRequestData=function(e){const t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),o=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),s=e.url||"",a=function({url:e,protocol:t,host:n}){return e?.startsWith("http")?e:e&&n?`${t}://${n}${e}`:void 0}({url:s,host:n,protocol:o}),c=e.body||void 0,u=e.cookies;return{url:a,method:e.method,query_string:i(s),headers:r(t),cookies:u,data:c}},t.winterCGHeadersToDict=n,t.winterCGRequestToRequestData=function(e){const t=n(e.headers);return{method:e.method,url:e.url,query_string:i(e.url),headers:t}}},6033:(e,t,n)=>{"use strict";n(8523)},6043:(e,t,n)=>{"use strict";var r=n(9306),o=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},6073:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(5363),i=n(2434),s=n(1472),a=n(7620);function c(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}function u(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&c(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function l(e,t,n,i){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");if(e instanceof Error)return i.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),void r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const a=e;if(s.RESPONSE_EVENT_TYPES.includes(a.type)){if(n&&("response.output_item.done"===a.type&&"item"in a&&t.responsesApiToolCalls.push(a.item),"response.output_text.delta"===a.type&&"delta"in a&&a.delta))t.responseTexts.push(a.delta);else if("response"in a){const{response:e}=a;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created_at??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),n&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(a.type)}t.instrumentStream=async function*(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)a.isChatCompletionChunk(o)?u(o,r,n):a.isResponsesApiStreamEvent(o)&&l(o,r,n,t),yield o}finally{a.setCommonResponseAttributes(t,r.responseId,r.responseModel,r.responseTimestamp),a.setTokenUsageAttributes(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),r.finishReasons.length&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.responseTexts.join("")});const e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];e.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(e)}),t.end()}}},6080:(e,t,n)=>{"use strict";var r=n(7476),o=n(9306),i=n(616),s=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},6097:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0),r=s(t,function(e,r){if(n(e,r,t))return{key:r}},!0);return r&&r.key}})},6098:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(9564),i=n(8974),s=n(5013),a=n(5110),c=n(4865),u=n(6869),l=n(1872),d=n(8844);function p(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function f(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function g(e,t){const n=_(),r=h(e);void 0===r?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=100&&m(e,r))}function m(e,t){const n=t??h(e)??[];if(0===n.length)return;const r=e.getOptions(),o=d.createMetricEnvelope(n,r._metadata,r.tunnel,e.getDsn());_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function h(e){return _().get(e)}function _(){return r.getGlobalSingleton("clientToMetricBufferMap",()=>new WeakMap)}t._INTERNAL_captureMetric=function(e,t){const n=t?.scope??o.getCurrentScope(),r=t?.captureSerializedMetric??g,d=n?.getClient()??o.getClient();if(!d)return void(i.DEBUG_BUILD&&a.debug.warn("No client available to capture metric."));const{release:m,environment:h,_experiments:_}=d.getOptions();if(!_?.enableMetrics)return void(i.DEBUG_BUILD&&a.debug.warn("metrics option not enabled, metric will not be captured."));const[,S]=l._getTraceInfoFromScope(d,n),y={...e.attributes},{user:{id:T,email:E,username:v}}=function(e){const t=o.getGlobalScope().getScopeData();return s.mergeScopeData(t,o.getIsolationScope().getScopeData()),s.mergeScopeData(t,e.getScopeData()),t}(n);f(y,"user.id",T,!1),f(y,"user.email",E,!1),f(y,"user.name",v,!1),f(y,"sentry.release",m),f(y,"sentry.environment",h);const{name:b,version:I}=d.getSdkMetadata()?.sdk??{};f(y,"sentry.sdk.name",b),f(y,"sentry.sdk.version",I);const A=d.getIntegrationByName("Replay"),R=A?.getReplayId(!0);f(y,"sentry.replay_id",R),R&&"buffer"===A?.getRecordingMode()&&f(y,"sentry._internal.replay_is_buffering",!0);const O={...e,attributes:y},N=_?.beforeSendMetric?_.beforeSendMetric(O):O;if(!N)return void(i.DEBUG_BUILD&&a.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const C={};for(const e in N.attributes)void 0!==N.attributes[e]&&(C[e]=p(N.attributes[e]));const w=c._getSpanForScope(n),k=w?w.spanContext().traceId:S?.trace_id,P=w?w.spanContext().spanId:void 0,x={timestamp:u.timestampInSeconds(),trace_id:k,span_id:P,name:N.name,type:N.type,unit:N.unit,value:N.value,attributes:C};i.DEBUG_BUILD&&a.debug.log("[Metric]",x),r(d,x),d.emit("afterCaptureMetric",O)},t._INTERNAL_captureSerializedMetric=g,t._INTERNAL_flushMetricsBuffer=m,t._INTERNAL_getMetricBuffer=h,t.metricAttributeToSerializedMetricAttribute=p},6099:(e,t,n)=>{"use strict";var r=n(2140),o=n(6840),i=n(3179);r||o(Object.prototype,"toString",i,{unsafe:!0})},6102:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SDK_VERSION="10.22.0"},6119:(e,t,n)=>{"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},6127:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(800),i=n(1673),s=n(5196),a=n(8299),c=n(4449),u=n(8968),l=n(2357),d=n(7558),p=n(6750),f=n(1319);function g(e){return[r.inboundFiltersIntegration(),r.functionToStringIntegration(),s.browserApiErrorsIntegration(),i.breadcrumbsIntegration(),c.globalHandlersIntegration(),l.linkedErrorsIntegration(),r.dedupeIntegration(),u.httpContextIntegration(),a.browserSessionIntegration()]}t.forceLoad=function(){},t.getDefaultIntegrations=g,t.init=function(e={}){const t=!e.skipBrowserExtensionCheck&&f.checkAndWarnIfIsEmbeddedBrowserExtension(),n={...e,enabled:!t&&e.enabled,stackParser:r.stackParserFromStackParserOptions(e.stackParser||d.defaultStackParser),integrations:r.getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?g():e.defaultIntegrations}),transport:e.transport||p.makeFetchTransport};return r.initAndBind(o.BrowserClient,n)},t.onLoad=function(e){e()}},6159:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(7900),i=n(5110),s=n(8532),a=n(9721);function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.DEBUG_BUILD&&i.debug.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch{}}function l(e){if(s.isError(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(s.isEvent(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&s.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return s.isElement(e)?o.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function f(e,t){if(null===e||"object"!=typeof e)return e;const n=t.get(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach(e=>{n.push(f(e,t))}),n}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const n={};return t.set(e,n),Object.keys(e).forEach(r=>{const o=e[r];void 0!==o&&(n[r]=f(o,t))}),n}return e}t.addNonEnumerableProperty=c,t.convertToPlainObject=l,t.dropUndefinedKeys=function(e){return f(e,new Map)},t.extractExceptionKeysForMessage=function(e,t=40){const n=Object.keys(l(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return a.truncate(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:a.truncate(r,t)}return""},t.fill=function(e,t,n){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const s=n(o);"function"==typeof s&&u(s,o);try{e[t]=s}catch{r.DEBUG_BUILD&&i.debug.log(`Failed to replace method "${t}" in object`,e)}},t.getOriginalFunction=function(e){return e.__sentry_original__},t.markFunctionWrapped=u,t.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case s.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t}},6167:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(6043),a=n(1103),c=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{allSettled:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,l=a(function(){var n=i(t.resolve),s=[],a=0,u=1;c(e,function(e){var i=a++,c=!1;u++,o(n,t,e).then(function(e){c||(c=!0,s[i]={status:"fulfilled",value:e},--u||r(s))},function(e){c||(c=!0,s[i]={status:"rejected",reason:e},--u||r(s))})}),--u||r(s)});return l.error&&u(l.value),n.promise}})},6193:(e,t,n)=>{"use strict";var r=n(9504),o=Error,i=r("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},6194:(e,t,n)=>{"use strict";var r=n(2248).has;e.exports=function(e){return r(e),e}},6198:(e,t,n)=>{"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},6223:(e,t,n)=>{"use strict";var r=n(9504),o=n(507),i=n(2248),s=i.Map,a=i.proto,c=r(a.forEach),u=r(a.entries),l=u(new s).next;e.exports=function(e,t,n){return n?o({iterator:u(e),next:l},function(e){return t(e[1],e[0])}):c(e,t)}},6269:e=>{"use strict";e.exports={}},6279:(e,t,n)=>{"use strict";var r=n(6840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},6321:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.experienceGenerated=function(e){var t=e.id;n.setExperienceId(t)},n}return o(t,e),t}(n(9722).default);t.default=i},6332:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o={"tools/call":{targetField:"name",targetAttribute:r.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:r.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};t.extractTargetInfo=function(e,t){const n=o[e];if(!n)return{attributes:{}};const r=n.targetField&&"string"==typeof t?.[n.targetField]?t[n.targetField]:void 0;return{target:r,attributes:r&&n.targetAttribute?{[n.targetAttribute]:r}:{}}},t.getRequestArguments=function(e,t){const n={},i=o[e];if(!i)return n;if(i.captureArguments&&i.argumentsField&&t?.[i.argumentsField]){const e=t[i.argumentsField];if("object"==typeof e&&null!==e)for(const[t,o]of Object.entries(e))n[`${r.MCP_REQUEST_ARGUMENT}.${t.toLowerCase()}`]=JSON.stringify(o)}return i.captureUri&&t?.uri&&(n[`${r.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(t.uri)),i.captureName&&t?.name&&(n[`${r.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(t.name)),n}},6339:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6532),o=r.buildFeedbackIntegration({getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration});t.feedbackSyncIntegration=o},6342:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6532),o=n(5201),i=r.buildFeedbackIntegration({lazyLoadIntegration:o.lazyLoadIntegration});t.feedbackAsyncIntegration=i},6354:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532);t.handleCallbackErrors=function(e,t,n=()=>{},o=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return function(e,t,n,o){return r.isThenable(e)?e.then(e=>(n(),o(e),e),e=>{throw t(e),n(),e}):(n(),o(e),e)}(i,t,n,o)}},6375:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.AI_MODEL_ID_ATTRIBUTE="ai.model.id",t.AI_MODEL_PROVIDER_ATTRIBUTE="ai.model.provider",t.AI_PROMPT_ATTRIBUTE="ai.prompt",t.AI_PROMPT_MESSAGES_ATTRIBUTE="ai.prompt.messages",t.AI_PROMPT_TOOLS_ATTRIBUTE="ai.prompt.tools",t.AI_RESPONSE_OBJECT_ATTRIBUTE="ai.response.object",t.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE="ai.response.providerMetadata",t.AI_RESPONSE_TEXT_ATTRIBUTE="ai.response.text",t.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="ai.response.toolCalls",t.AI_SCHEMA_ATTRIBUTE="ai.schema",t.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE="ai.telemetry.functionId",t.AI_TOOL_CALL_ARGS_ATTRIBUTE="ai.toolCall.args",t.AI_TOOL_CALL_ID_ATTRIBUTE="ai.toolCall.id",t.AI_TOOL_CALL_NAME_ATTRIBUTE="ai.toolCall.name",t.AI_TOOL_CALL_RESULT_ATTRIBUTE="ai.toolCall.result",t.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE="ai.usage.cachedInputTokens",t.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE="ai.usage.completionTokens",t.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE="ai.usage.promptTokens",t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE="gen_ai.response.model",t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.input_tokens",t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE="gen_ai.usage.output_tokens"},6385:(e,t,n)=>{"use strict";var r=n(6518),o=n(2248);r({target:"Map",stat:!0,forced:!0},{of:n(7500)(o.Map,o.set,!0)})},6395:e=>{"use strict";e.exports=!1},6398:(e,t,n)=>{"use strict";n(67),n(3792),n(6099),n(3362),n(6167),n(3518),n(1689),n(4628),n(9391),n(7764);var r=n(9167);e.exports=r.Promise},6421:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},6425:(e,t,n)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:s,toStringTag:a}=Symbol,c=(u=Object.create(null),e=>{const t=o.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,f=d("undefined");function g(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const m=l("ArrayBuffer"),h=d("string"),_=d("function"),S=d("number"),y=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||s in e)},E=l("Date"),v=l("File"),b=l("Blob"),I=l("FileList"),A=l("URLSearchParams"),[R,O,N,C]=["ReadableStream","Request","Response","Headers"].map(l);function w(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(g(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function k(e,t){if(g(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,x=e=>!f(e)&&e!==P,M=(U="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>U&&e instanceof U);var U;const L=l("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B=l("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};w(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},j=l("AsyncFunction"),G=(H="function"==typeof setImmediate,W=_(P.postMessage),H?setImmediate:W?($=`axios@${Math.random()}`,z=[],P.addEventListener("message",({source:e,data:t})=>{e===P&&t===$&&z.length&&z.shift()()},!1),e=>{z.push(e),P.postMessage($,"*")}):e=>setTimeout(e));var H,W,$,z;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||G;var V={isArray:p,isArrayBuffer:m,isBuffer:g,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=c(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:h,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:T,isEmptyObject:e=>{if(!y(e)||g(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:R,isRequest:O,isResponse:N,isHeaders:C,isUndefined:f,isDate:E,isFile:v,isBlob:b,isRegExp:B,isFunction:_,isStream:e=>y(e)&&_(e.pipe),isURLSearchParams:A,isTypedArray:M,isFileList:I,forEach:w,merge:function e(){const{caseless:t,skipUndefined:n}=x(this)&&this||{},r={},o=(o,i)=>{const s=t&&k(r,i)||i;T(r[s])&&T(o)?r[s]=e(r[s],o):T(o)?r[s]=e({},o):p(o)?r[s]=o.slice():n&&f(o)||(r[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&w(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:o}={})=>(w(t,(t,o)=>{n&&_(t)?e[o]=r(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!S(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[s]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:F,freezeMethods:e=>{F(e,(t,n)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];_(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:P,isContextDefined:x,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[a]&&e[s])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(g(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return w(e,(e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:j,isThenable:e=>e&&(y(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:G,asap:q,isIterable:e=>null!=e&&_(e[s])};function Y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const J=Y.prototype,K={};function X(e){return V.isPlainObject(e)||V.isArray(e)}function Q(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map(function(e,t){return e=Q(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K[e]={value:e}}),Object.defineProperties(Y,K),Object.defineProperty(J,"isAxiosError",{value:!0}),Y.from=(e,t,n,r,o,i)=>{const s=Object.create(J);V.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return Y.call(s,a,c,n,r,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const ee=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function te(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!a&&V.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(X)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(a=V.toArray(e)))return n=Q(n),a.forEach(function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===s?Z([n],r,i):null===s?n:n+"[]",c(e))}),!1;return!!X(e)||(t.append(Z(o,n,i),c(e)),!1)}const l=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:X});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),V.forEach(n,function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),l.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ie;V.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,function(t){null!==t&&e(t)})}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,pe=le&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ge=le&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:fe,hasStandardBrowserEnv:pe,navigator:de,origin:ge}),...ue};function he(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&V.isArray(r)?r.length:i,a?(V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&V.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const _e={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);if(o&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(he(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,{visitor:function(e,t,n,r){return me.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});var Se=_e;const ye=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Te=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function ve(e){return!1===e||null==e?e:V.isArray(e)?e.map(ve):String(e)}function be(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class Ie{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ee(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ve(e))}const i=(e,t)=>V.forEach(e,(e,n)=>o(e,n,t));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ye[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(V.isObject(e)&&V.isIterable(e)){let n,r,o={};for(const t of e){if(!V.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?V.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ee(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!be(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ee(e)){const o=V.findKey(n,e);!o||t&&!be(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!be(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,(r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=ve(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=ve(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Te]=this[Te]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(e);t[r]||(function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),V.freezeMethods(Ie);var Ae=Ie;function Re(e,t){const n=this||Se,r=t||n,o=Ae.from(r.headers);let i=r.data;return V.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Oe(e){return!(!e||!e.__CANCEL__)}function Ne(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}function Ce(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}V.inherits(Ne,Y,{__CANCEL__:!0});const we=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,d=0;for(;l!==i;)d+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(n,i){let s,a,c=0,u=1e3/i;const l=(n,i=Date.now())=>{c=i,s=null,a&&(clearTimeout(a),a=null),(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=u?l(e,t):(s=e,a||(a=setTimeout(()=>{a=null,l(s)},u-n)))},()=>s&&l(s)]}(0,n)},ke=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pe=e=>(...t)=>V.asap(()=>e(...t));var xe=me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,Me=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&a.push(`path=${r}`),V.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),V.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ue(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Ae?{...e}:e;function De(e,t){t=t||{};const n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n,o){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function s(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(Le(e),Le(t),0,!0)};return V.forEach(Object.keys({...e,...t}),function(r){const i=c[r]||o,s=i(e[r],t[r],r);V.isUndefined(s)&&i!==a||(n[r]=s)}),n}var Be=e=>{const t=De({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ae.from(s),t.url=se(Ue(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),V.isFormData(n))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(V.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(me.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||!1!==r&&xe(t.url))){const e=o&&i&&Me.read(i);e&&s.set(o,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Be(e);let o=r.data;const i=Ae.from(r.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function g(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function h(){if(!m)return;const r=Ae.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ce(function(e){t(e),g()},function(e){n(e),g()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(h)},m.onabort=function(){m&&(n(new Y("Request aborted",Y.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new Y(t&&t.message?t.message:"Network Error",Y.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([c,l]=we(f,!0),m.addEventListener("progress",c)),p&&m.upload&&([a,u]=we(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ne(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===me.protocols.indexOf(_)?n(new Y("Unsupported protocol "+_+":",Y.ERR_BAD_REQUEST,e)):m.send(o||null)})},je=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new Ne(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>V.asap(s),a}};const Ge=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},He=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ge(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:We}=V,$e=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:ze,TextEncoder:qe}=V.global,Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ye=e=>{e=V.merge.call({skipUndefined:!0},$e,e);const{fetch:t,Request:n,Response:r}=e,o=t?We(t):"function"==typeof fetch,i=We(n),s=We(r);if(!o)return!1;const a=o&&We(ze),c=o&&("function"==typeof qe?(u=new qe,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const l=i&&a&&Ve(()=>{let e=!1;const t=new n(me.origin,{body:new ze,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&Ve(()=>V.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:s,data:a,signal:u,cancelToken:f,timeout:g,onDownloadProgress:m,onUploadProgress:h,responseType:_,headers:S,withCredentials:y="same-origin",fetchOptions:T}=Be(e),E=t||fetch;_=_?(_+"").toLowerCase():"text";let v=je([u,f&&f.toAbortSignal()],g),b=null;const I=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let A;try{if(h&&l&&"get"!==s&&"head"!==s&&0!==(A=await(async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new n(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(S,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(V.isFormData(a)&&(e=t.headers.get("content-type"))&&S.setContentType(e),t.body){const[e,n]=ke(A,we(Pe(h)));a=He(t.body,65536,e,n)}}V.isString(y)||(y=y?"include":"omit");const t=i&&"credentials"in n.prototype,u={...T,signal:v,method:s.toUpperCase(),headers:S.normalize().toJSON(),body:a,duplex:"half",credentials:t?y:void 0};b=i&&new n(o,u);let f=await(i?E(b,T):E(o,u));const g=d&&("stream"===_||"response"===_);if(d&&(m||g&&I)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=V.toFiniteNumber(f.headers.get("content-length")),[n,o]=m&&ke(t,we(Pe(m),!0))||[];f=new r(He(f.body,65536,n,()=>{o&&o(),I&&I()}),e)}_=_||"text";let R=await p[V.findKey(p,_)||"text"](f,e);return!g&&I&&I(),await new Promise((t,n)=>{Ce(t,n,{data:R,headers:Ae.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:b})})}catch(t){if(I&&I(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,b),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,b)}}},Je=new Map,Ke=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s,a,c=i.length,u=Je;for(;c--;)s=i[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:Ye(t)),u=a;return a};Ke();const Xe={http:null,xhr:Fe,fetch:{get:Ke}};V.forEach(Xe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,Ze=e=>V.isFunction(e)||null===e||!1===e;var et=function(e,t){e=V.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=e[s],o=r,!Ze(r)&&(o=Xe[(n=String(r)).toLowerCase()],void 0===o))throw new Y(`Unknown adapter '${n}'`);if(o&&(V.isFunction(o)||(o=o.get(t))))break;i[n||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Y("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function nt(e){return tt(e),e.headers=Ae.from(e.headers),e.data=Re.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||Se.adapter,e)(e).then(function(t){return tt(e),t.data=Re.call(e,e.transformResponse,t),t.headers=Ae.from(t.headers),t},function(t){return Oe(t)||(tt(e),t&&t.response&&(t.response.data=Re.call(e,e.transformResponse,t.response),t.response.headers=Ae.from(t.response.headers))),Promise.reject(t)})}const rt="1.13.1",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const it={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+rt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var st={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}},validators:ot};const at=st.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=De(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&st.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:st.assertOptions(r,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),st.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ae.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[nt.bind(this),void 0];for(e.unshift(...s),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let p=t;for(;d<l;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=nt.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return se(Ue((e=De(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,n){return this.request(De(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(De(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Ne(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt(function(t){e=t}),cancel:e}}}var dt=lt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var ft=pt;const gt=function e(t){const n=new ut(t),o=r(ut.prototype.request,n);return V.extend(o,ut.prototype,n,{allOwnKeys:!0}),V.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(De(t,n))},o}(Se);gt.Axios=ut,gt.CanceledError=Ne,gt.CancelToken=dt,gt.isCancel=Oe,gt.VERSION=rt,gt.toFormData=te,gt.AxiosError=Y,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=De,gt.AxiosHeaders=Ae,gt.formToJSON=e=>he(V.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=et,gt.HttpStatusCode=ft,gt.default=gt,e.exports=gt},6468:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(9504),s=n(2796),a=n(6840),c=n(3451),u=n(2652),l=n(679),d=n(4901),p=n(4117),f=n(34),g=n(9039),m=n(4428),h=n(687),_=n(3167);e.exports=function(e,t,n){var S=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),T=S?"set":"add",E=o[e],v=E&&E.prototype,b=E,I={},A=function(e){var t=i(v[e]);a(v,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s(e,!d(E)||!(y||v.forEach&&!g(function(){(new E).entries().next()}))))b=n.getConstructor(t,e,S,T),c.enable();else if(s(e,!0)){var R=new b,O=R[T](y?{}:-0,1)!==R,N=g(function(){R.has(1)}),C=m(function(e){new E(e)}),w=!y&&g(function(){for(var e=new E,t=5;t--;)e[T](t,t);return!e.has(-0)});C||((b=t(function(e,t){l(e,v);var n=_(new E,e,b);return p(t)||u(t,n[T],{that:n,AS_ENTRIES:S}),n})).prototype=v,v.constructor=b),(N||w)&&(A("delete"),A("has"),S&&A("get")),(w||O)&&A(T),y&&v.clear&&delete v.clear}return I[e]=b,r({global:!0,constructor:!0,forced:b!==E},I),h(b,e),y||n.setStrong(b,e,S),b}},6469:(e,t,n)=>{"use strict";var r=n(8227),o=n(2360),i=n(4913).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},6499:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(6043),a=n(1103),c=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{all:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,l=a(function(){var n=i(t.resolve),s=[],a=0,l=1;c(e,function(e){var i=a++,c=!1;l++,o(n,t,e).then(function(e){c||(c=!0,s[i]=e,--l||r(s))},u)}),--l||r(s)});return l.error&&u(l.value),n.promise}})},6505:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(9491),i=n(2990),s=n(750),a=n(1559),c=n(1548),u=n(1632),l=n(1188),d=n(9212),p=n(135),f=n(7185),g=[2500,4e3];t.LCPThresholds=g,t.onLCP=(e,t={})=>{p.whenActivated(()=>{const n=s.getVisibilityWatcher(),p=a.initMetric("LCP");let m;const h=c.initUnique(t,u.LCPEntryManager),_=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)h._processEntry(t),t.startTime<n.firstHiddenTime&&(p.value=Math.max(t.startTime-i.getActivationStart(),0),p.entries=[t],m())},S=l.observe("largest-contentful-paint",_);if(S){m=o.bindReporter(e,p,g,t.reportAllChanges);const n=d.runOnce(()=>{_(S.takeRecords()),S.disconnect(),m(!0)});for(const e of["keydown","click","visibilitychange"])r.WINDOW.document&&addEventListener(e,()=>f.whenIdleOrHidden(n),{capture:!0,once:!0})}})}},6518:(e,t,n)=>{"use strict";var r=n(4576),o=n(7347).f,i=n(6699),s=n(6840),a=n(9433),c=n(7740),u=n(2796);e.exports=function(e,t){var n,l,d,p,f,g=e.target,m=e.global,h=e.stat;if(n=m?r:h?r[g]||a(g,{}):r[g]&&r[g].prototype)for(l in t){if(p=t[l],d=e.dontCallGetSet?(f=o(n,l))&&f.value:n[l],!u(m?l:g+(h?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),s(n,l,p,e)}}},6532:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.GLOBAL_OBJ,i=o.document,s=o.navigator,a="Report a Bug",c=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=r.getClient();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&r.getCurrentScope().setTags(e.tags);const o=r.captureFeedback({source:"api",url:r.getLocationHref(),...e},t);return new Promise((e,t)=>{const r=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),i=n.on("afterSendEvent",(n,s)=>{if(n.event_id===o)return clearTimeout(r),i(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(o):t(403===s?.statusCode?"Unable to send feedback. This could be because this domain is not in your list of allowed domains.":"Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},u="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function l(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function d(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}const p="rgba(88, 74, 192, 1)",f={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:p,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},g={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:p,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function m(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}var h,_,S,y,T,E,v,b={},I=[],A=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,R=Array.isArray;function O(e,t){for(var n in t)e[n]=t[n];return e}function N(e){var t=e.parentNode;t&&t.removeChild(e)}function C(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?h.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return w(e,s,r,o,null)}function w(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++S:o,__i:-1,__u:0};return null==o&&null!=_.vnode&&_.vnode(i),i}function k(e){return e.children}function P(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function M(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=O({},o)).__v=o.__v+1,_.vnode&&_.vnode(r),z(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?x(o):i,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&U(r),r}function U(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return U(e)}}function L(e){(!e.__d&&(e.__d=!0)&&y.push(e)&&!D.__r++||T!==_.debounceRendering)&&((T=_.debounceRendering)||E)(D)}function D(){var e,t,n,r=[],o=[];for(y.sort(v);e=y.shift();)e.__d&&(n=y.length,t=M(e,r,o)||t,0===n||y.length>n?(q(r,t,o),o.length=r.length=0,t=void 0,y.sort(v)):t&&_.__c&&_.__c(t,I));t&&q(r,t,o),D.__r=0}function B(e,t,n,r,o,i,s,a,c,u,l){var d,p,f,g,m,h=r&&r.__k||I,_=t.length;for(n.__d=c,function(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,l=u,d=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?w(null,o,null,null,o):R(o)?w(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?w(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=j(o,n,s=r+d,l),o.__i=a,i=null,-1!==a&&(l--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?d++:a>s?l>c-s?d+=a-s:d--:d=a<s&&a==s-1?a-s:0,a!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=x(i)),J(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=x(i)),J(i,i))}(n,t,h),c=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?b:h[f.__i]||b,f.__i=d,z(e,f,p,o,i,s,a,c,u,l),g=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Y(p.ref,null,f),l.push(f.ref,f.__c||g,f)),null==m&&null!=g&&(m=g),65536&f.__u||p.__k===f.__k?c=F(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:g&&(c=g.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function F(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=F(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function j(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function G(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||A.test(t)?n:n+"px"}function H(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||G(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||G(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?$:W,i)):e.removeEventListener(t,i?$:W,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function W(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(_.event?_.event(e):e)}}function $(e){if(this.l)return this.l[e.type+!0](_.event?_.event(e):e)}function z(e,t,n,r,o,i,s,a,c,u){var l,d,p,f,g,m,h,S,y,T,E,v,b,I,A,N=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(l=_.__b)&&l(t);e:if("function"==typeof N)try{if(S=t.props,y=(l=N.contextType)&&r[l.__c],T=l?y?y.props.value:l.__:r,n.__c?h=(d=t.__c=n.__c).__=d.__E:("prototype"in N&&N.prototype.render?t.__c=d=new N(S,T):(t.__c=d=new P(S,T),d.constructor=N,d.render=K),y&&y.sub(d),d.props=S,d.state||(d.state={}),d.context=T,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=N.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=O({},d.__s)),O(d.__s,N.getDerivedStateFromProps(S,d.__s))),f=d.props,g=d.state,d.__v=t,p)null==N.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==N.getDerivedStateFromProps&&S!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,T),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=S,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,T),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,g,m)})}if(d.context=T,d.props=S,d.__P=e,d.__e=!1,v=_.__r,b=0,"prototype"in N&&N.prototype.render){for(d.state=d.__s,d.__d=!1,v&&v(t),l=d.render(d.props,d.state,d.context),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[]}else do{d.__d=!1,v&&v(t),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++b<25);d.state=d.__s,null!=d.getChildContext&&(r=O(O({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,g)),B(e,R(A=null!=l&&l.type===k&&null==l.key?l.props.children:l)?A:[A],t,n,r,o,i,s,a,c,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),h&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=i?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),_.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=V(n.__e,t,n,r,o,i,s,c,u);(l=_.diffed)&&l(t)}function q(e,t,n){for(var r=0;r<n.length;r++)Y(n[r],n[++r],n[++r]);_.__c&&_.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){_.__e(e,t.__v)}})}function V(e,t,n,r,o,i,s,a,c){var u,l,d,p,f,g,m,_=n.props,S=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,i[u]=null;break}if(null==e){if(null===y)return document.createTextNode(S);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,S.is&&S),i=null,a=!1}if(null===y)_===S||a&&e.data===S||(e.data=S);else{if(i=i&&h.call(e.childNodes),_=n.props||b,!a&&null!=i)for(_={},u=0;u<e.attributes.length;u++)_[(f=e.attributes[u]).name]=f.value;for(u in _)f=_[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in S||H(e,u,null,f,o));for(u in S)f=S[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?g=f:"checked"==u?m=f:"key"===u||a&&"function"!=typeof f||_[u]===f||H(e,u,f,_[u],o);if(l)a||d&&(l.__html===d.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(d&&(e.innerHTML=""),B(e,R(p)?p:[p],t,n,r,o&&"foreignObject"!==y,i,s,i?i[0]:n.__k&&x(n,0),a,c),null!=i)for(u=i.length;u--;)null!=i[u]&&N(i[u]);a||(u="value",void 0!==g&&(g!==e[u]||"progress"===y&&!g||"option"===y&&g!==_[u])&&H(e,u,g,_[u],!1),u="checked",void 0!==m&&m!==e[u]&&H(e,u,m,_[u],!1))}return e}function Y(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){_.__e(e,n)}}function J(e,t,n){var r,o;if(_.unmount&&_.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Y(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){_.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&J(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||N(e.__e),e.__=e.__e=e.__d=void 0}function K(e,t,n){return this.constructor(e,n)}h=I.slice,_={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},S=0,P.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},n),this.props)),e&&O(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),L(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),L(this))},P.prototype.render=k,y=[],E="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v=function(e,t){return e.__v.__b-t.__v.__b},D.__r=0;var X,Q,Z,ee,te=0,ne=[],re=[],oe=_,ie=oe.__b,se=oe.__r,ae=oe.diffed,ce=oe.__c,ue=oe.unmount,le=oe.__;function de(e,t){oe.__h&&oe.__h(Q,e,te||t),te=0;var n=Q.__H||(Q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:re}),n.__[e]}function pe(e){return te=1,fe(be,e)}function fe(e,t,n){var r=de(X++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):be(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Q,!Q.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var s=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};Q.u=!0;var i=Q.shouldComponentUpdate,s=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},Q.shouldComponentUpdate=o}return r.__N||r.__}function ge(e,t){var n=de(X++,4);!oe.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,Q.__h.push(n))}function me(e,t){var n=de(X++,7);return ve(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function he(e,t){return te=8,me(function(){return e},t)}function _e(){for(var e;e=ne.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Te),e.__H.__h.forEach(Ee),e.__H.__h=[]}catch(t){e.__H.__h=[],oe.__e(t,e.__v)}}oe.__b=function(e){Q=null,ie&&ie(e)},oe.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),le&&le(e,t)},oe.__r=function(e){se&&se(e),X=0;var t=(Q=e.__c).__H;t&&(Z===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=re,e.__N=e.i=void 0})):(t.__h.forEach(Te),t.__h.forEach(Ee),t.__h=[],X=0)),Z=Q},oe.diffed=function(e){ae&&ae(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ne.push(t)&&ee===oe.requestAnimationFrame||((ee=oe.requestAnimationFrame)||ye)(_e)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==re&&(e.__=e.__V),e.i=void 0,e.__V=re})),Z=Q=null},oe.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Te),e.__h=e.__h.filter(function(e){return!e.__||Ee(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],oe.__e(n,e.__v)}}),ce&&ce(e,t)},oe.unmount=function(e){ue&&ue(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Te(e)}catch(e){t=e}}),n.__H=void 0,t&&oe.__e(t,n.__v))};var Se="function"==typeof requestAnimationFrame;function ye(e){var t,n=function(){clearTimeout(r),Se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Se&&(t=requestAnimationFrame(n))}function Te(e){var t=Q,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Q=t}function Ee(e){var t=Q;e.__c=e.__(),Q=t}function ve(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function be(e,t){return"function"==typeof t?t(e):t}const Ie=Object.defineProperty({__proto__:null,useCallback:he,useContext:function(e){var t=Q.context[e.__c],n=de(X++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Q)),t.props.value):e.__},useDebugValue:function(e,t){oe.useDebugValue&&oe.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=de(X++,3);!oe.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,Q.__H.__h.push(n))},useErrorBoundary:function(e){var t=de(X++,10),n=pe();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=de(X++,11);if(!e.__){for(var t=Q.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){te=6,ge(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:ge,useMemo:me,useReducer:fe,useRef:function(e){return te=5,me(function(){return{current:e}},[])},useState:pe},Symbol.toStringTag,{value:"Module"});function Ae(){const e=e=>i.createElementNS("http://www.w3.org/2000/svg",e),t=d(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=d(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function Re({options:e}){const t=me(()=>({__html:Ae().outerHTML}),[]);return C("h2",{class:"dialog__header"},C("span",{class:"dialog__title"},e.formTitle),e.showBranding?C("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Oe(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Ne({options:e,defaultEmail:t,defaultName:n,onFormClose:o,onSubmit:i,onSubmitSuccess:s,onSubmitError:a,showEmail:c,showName:l,screenshotInput:d}){const{tags:p,addScreenshotButtonLabel:f,removeScreenshotButtonLabel:g,cancelButtonLabel:m,emailLabel:h,emailPlaceholder:_,isEmailRequired:S,isNameRequired:y,messageLabel:T,messagePlaceholder:E,nameLabel:v,namePlaceholder:b,submitButtonLabel:I,isRequiredLabel:A}=e,[R,O]=pe(!1),[N,w]=pe(null),[k,P]=pe(!1),x=d?.input,[M,U]=pe(null),L=he(e=>{U(e),P(!1)},[]),D=he(e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:S,isNameRequired:y,messageLabel:T,nameLabel:v});return t.length>0?w(`Please enter in the following required fields: ${t.join(", ")}`):w(null),0===t.length},[h,S,y,T,v]),B=he(async e=>{O(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(d&&k?d.value():void 0),o={name:Oe(t,"name"),email:Oe(t,"email"),message:Oe(t,"message"),attachments:n?[n]:void 0};if(!D(o))return;try{const e=await i({name:o.name,email:o.email,message:o.message,source:"widget",tags:p},{attachments:o.attachments});s(o,e)}catch(e){u&&r.debug.error(e),w(e),a(e)}}finally{O(!1)}},[d&&k,s,a]);return C("form",{class:"form",onSubmit:B},x&&k?C(x,{onError:L}):null,C("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:R},C("div",{class:"form__top"},N?C("div",{class:"form__error-container"},N):null,l?C("label",{for:"name",class:"form__label"},C(Ce,{label:v,isRequiredLabel:A,isRequired:y}),C("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:b,required:y,type:"text"})):C("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),c?C("label",{for:"email",class:"form__label"},C(Ce,{label:h,isRequiredLabel:A,isRequired:S}),C("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:_,required:S,type:"email"})):C("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),C("label",{for:"message",class:"form__label"},C(Ce,{label:T,isRequiredLabel:A,isRequired:!0}),C("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:E,required:!0,rows:5})),x?C("label",{for:"screenshot",class:"form__label"},C("button",{class:"btn btn--default",disabled:R,type:"button",onClick:()=>{U(null),P(e=>!e)}},k?g:f),M?C("div",{class:"form__error-container"},M.message):null):null),C("div",{class:"btn-group"},C("button",{class:"btn btn--primary",disabled:R,type:"submit"},I),C("button",{class:"btn btn--default",disabled:R,type:"button",onClick:o},m))))}function Ce({label:e,isRequired:t,isRequiredLabel:n}){return C("span",{class:"form__label__text"},e,t&&C("span",{class:"form__label__text--required"},n))}function we(){const e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=d(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=d(e("g"),{clipPath:"url(#clip0_57_156)"}),r=d(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=d(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const s=e("defs"),a=d(e("clipPath"),{id:"clip0_57_156"}),c=d(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(c),s.appendChild(a),t.appendChild(s).appendChild(a).appendChild(c),t}function ke({open:e,onFormSubmitted:t,...n}){const r=n.options,o=me(()=>({__html:we().outerHTML}),[]),[i,s]=pe(null),a=he(()=>{i&&(clearTimeout(i),s(null)),t()},[i]),c=he((e,r)=>{n.onSubmitSuccess(e,r),s(setTimeout(()=>{t(),s(null)},5e3))},[t]);return C(k,null,i?C("div",{class:"success__position",onClick:a},C("div",{class:"success__content"},r.successMessageText,C("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):C("dialog",{class:"dialog",onClick:r.onFormClose,open:e},C("div",{class:"dialog__position"},C("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},C(Re,{options:r}),C(Ne,{...n,onSubmitSuccess:c})))))}function Pe(e){const t=i.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n}\n\n.editor__image-container {\n justify-items: center;\n padding: 15px;\n position: relative;\n height: 100%;\n border-radius: var(--menu-border-radius, 6px);\n\n background-color: ${n};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${n} 8px,\n ${n} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container > * {\n object-fit: contain;\n position: absolute;\n}\n\n.editor__tool-container {\n padding-top: 8px;\n display: flex;\n justify-content: center;\n}\n\n.editor__tool-bar {\n display: flex;\n gap: 8px;\n}\n\n.editor__tool {\n display: flex;\n padding: 8px 12px;\n justify-content: center;\n align-items: center;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n background: var(--button-background, var(--background));\n color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n background: var(--button-primary-background, var(--accent-background));\n color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n position: absolute;\n z-index: 2;\n}\n\n.editor__rect button {\n opacity: 0;\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n padding: 0;\n z-index: 3;\n border: none;\n background: none;\n}\n\n.editor__rect:hover button {\n opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function xe(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Me(e,t){xe(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Ue(e,t,n){xe(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)})})}function Le({h:e,hooks:t,outputBuffer:n,dialog:r,options:a}){const c=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:a}){const c=function(){const[t,n]=e.useState(o.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{n(o.devicePixelRatio)},t=matchMedia(`(resolution: ${o.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await s.mediaDevices.getDisplayMedia({video:{width:o.innerWidth*c,height:o.innerHeight*c},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=i.createElement("video");await new Promise((t,r)=>{a.srcObject=e,a.onloadedmetadata=()=>{n(a,c),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(r)}),r()})().catch(a)},[])}}({hooks:t}),u=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),l=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),d={__html:Pe(a.styleNonce).innerText},p=r.el.style,f=({screenshot:r})=>{const[s,c]=t.useState("highlight"),[p,f]=t.useState([]),g=t.useRef(null),m=t.useRef(null),h=t.useRef(null),_=t.useRef(null),[S,y]=t.useState(1),T=t.useMemo(()=>{const e=i.getElementById(a.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[a.id]);t.useLayoutEffect(()=>{const e=()=>{const t=g.current;t&&(xe(r.canvas,{alpha:!1},e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);y(n)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),o.addEventListener("resize",e),()=>{o.removeEventListener("resize",e)}},[r]);const E=t.useCallback((e,t)=>{xe(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{E(m.current,r.dpi),Me(m.current,r.canvas)},[r]),t.useEffect(()=>{E(h.current,r.dpi),xe(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ue(h.current,T,p)},[p,T]),t.useEffect(()=>{E(n,r.dpi),Me(n,r.canvas),xe(i.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Ue(e,T,p),Me(n,e)})},[p,r,T]);const v=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),f(t=>{const n=[...t];return n.splice(e,1),n})},[]),b={width:r.canvas.width*S+"px",height:r.canvas.height*S+"px"},I=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:d}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:g},e("canvas",{ref:m,id:"background",style:b}),e("canvas",{ref:h,id:"foreground",style:b}),e("div",{ref:_,onMouseDown:e=>{if(!s||!_.current)return;const t=_.current.getBoundingClientRect(),n={type:s,x:e.offsetX/S,y:e.offsetY/S},r=(e,n)=>{const r=(n.clientX-t.x)/S,o=(n.clientY-t.y)/S;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{xe(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ue(h.current,T,[...p,r(n,e)])},a=e=>{const t=r(n,e);t.w*S>=1&&t.h*S>=1&&f(e=>[...e,t]),i.removeEventListener("mousemove",o),i.removeEventListener("mouseup",a)};i.addEventListener("mousemove",o),i.addEventListener("mouseup",a)},style:b},p.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:t.y*S+"px",left:t.x*S+"px",width:t.w*S+"px",height:t.h*S+"px"}},e("button",{"aria-label":a.removeHighlightText,onClick:v(n),onMouseDown:I,onMouseUp:I,type:"button"},e(l,null))))))),e(u,{options:a,action:s,setAction:c}))};return function({onError:r}){const[o,s]=t.useState();return c({onBeforeScreenshot:t.useCallback(()=>{p.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{xe(i.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),s({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{p.display="block"},[]),onError:t.useCallback(e=>{p.display="block",r(e)},[])}),o?e(f,{screenshot:o}):e("div",null)}}t.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:p="sentry-feedback",autoInject:h=!0,showBranding:_=!0,isEmailRequired:S=!1,isNameRequired:y=!1,showEmail:T=!0,showName:E=!0,enableScreenshot:v=!0,useSentryUser:b={email:"email",name:"username"},tags:I,styleNonce:A,scriptNonce:R,colorScheme:O="system",themeLight:N={},themeDark:C={},addScreenshotButtonLabel:w="Add a screenshot",cancelButtonLabel:k="Cancel",confirmButtonLabel:P="Confirm",emailLabel:x="Email",emailPlaceholder:M="your.email@example.org",formTitle:U="Report a Bug",isRequiredLabel:L="(required)",messageLabel:D="Description",messagePlaceholder:B="What's the bug? What did you expect?",nameLabel:F="Name",namePlaceholder:j="Your Name",removeScreenshotButtonLabel:G="Remove screenshot",submitButtonLabel:H="Send Bug Report",successMessageText:W="Thank you for your report!",triggerLabel:$=a,triggerAriaLabel:z="",highlightToolText:q="Highlight",hideToolText:V="Hide",removeHighlightText:Y="Remove",onFormOpen:J,onFormClose:K,onSubmitSuccess:X,onSubmitError:Q,onFormSubmitted:Z}={})=>{const ee={id:p,autoInject:h,showBranding:_,isEmailRequired:S,isNameRequired:y,showEmail:T,showName:E,enableScreenshot:v,useSentryUser:b,tags:I,styleNonce:A,scriptNonce:R,colorScheme:O,themeDark:C,themeLight:N,triggerLabel:$,triggerAriaLabel:z,cancelButtonLabel:k,submitButtonLabel:H,confirmButtonLabel:P,formTitle:U,emailLabel:x,emailPlaceholder:M,messageLabel:D,messagePlaceholder:B,nameLabel:F,namePlaceholder:j,successMessageText:W,isRequiredLabel:L,addScreenshotButtonLabel:w,removeScreenshotButtonLabel:G,highlightToolText:q,hideToolText:V,removeHighlightText:Y,onFormClose:K,onFormOpen:J,onSubmitError:Q,onSubmitSuccess:X,onFormSubmitted:Z};let te=null,ne=[];const re=e=>{if(!te){const t=i.createElement("div");t.id=String(e.id),i.body.appendChild(t),te=t.attachShadow({mode:"open"}),te.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=i.createElement("style");return o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?"color-scheme: only light;":""}\n\n ${m("dark"===e?{...g,...t}:{...f,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${m({...g,...t})}\n }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(e))}return te},oe=async o=>{const i=o.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s.userAgent)||/Macintosh/i.test(s.userAgent)&&s.maxTouchPoints&&s.maxTouchPoints>1||!isSecureContext);let a,l;try{a=(t?t():await e("feedbackModalIntegration",R))(),r.addIntegration(a)}catch{throw u&&r.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=i?n?n():await e("feedbackScreenshotIntegration",R):void 0;t&&(l=t(),r.addIntegration(l))}catch{u&&r.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const d=a.createDialog({options:{...o,onFormClose:()=>{d?.close(),o.onFormClose?.()},onFormSubmitted:()=>{d?.close(),o.onFormSubmitted?.()}},screenshotIntegration:l,sendFeedback:c,shadow:re(o)});return d},ie=(e,t={})=>{const n=l(ee,t),o="string"==typeof e?i.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!o)throw u&&r.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let s=null;const a=async()=>{s||(s=await oe({...n,onFormSubmitted:()=>{s?.removeFromDom(),n.onFormSubmitted?.()}})),s.appendToDom(),s.open()};o.addEventListener("click",a);const c=()=>{ne=ne.filter(e=>e!==c),s?.removeFromDom(),s=null,o.removeEventListener("click",a)};return ne.push(c),c},se=(e={})=>{const t=l(ee,e),n=re(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=i.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||a,s.appendChild(function(){const e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=d(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=d(e("g"),{clipPath:"url(#clip0_57_80)"}),r=d(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),s=d(e("clipPath"),{id:"clip0_57_80"}),a=d(e("rect"),{width:"20",height:"20",fill:"white"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}()),e){const t=i.createElement("span");t.appendChild(i.createTextNode(e)),s.appendChild(t)}const c=function(e){const t=i.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:s,appendToDom(){n.appendChild(c),n.appendChild(s)},removeFromDom(){s.remove(),c.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:A});return ie(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){r.isBrowser()&&ee.autoInject&&("loading"===i.readyState?i.addEventListener("DOMContentLoaded",()=>se().appendToDom()):se().appendToDom())},attachTo:ie,createWidget(e={}){const t=se(l(ee,e));return t.appendToDom(),t},createForm:async(e={})=>oe(l(ee,e)),remove(){te&&(te.parentElement?.remove(),te=null),ne.forEach(e=>e()),ne=[]}}},t.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:o})=>{const s=o,a=e.useSentryUser,c=function(){const e=r.getCurrentScope().getUser(),t=r.getIsolationScope().getUser(),n=r.getGlobalScope().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),u=i.createElement("div"),l=function(e){const t=i.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let d="";const p={get el(){return u},appendToDom(){s.contains(l)||s.contains(u)||(s.appendChild(l),s.appendChild(u))},removeFromDom(){u.remove(),l.remove(),i.body.style.overflow=d},open(){g(!0),e.onFormOpen?.(),r.getClient()?.emit("openFeedbackWidget"),d=i.body.style.overflow,i.body.style.overflow="hidden"},close(){g(!1),i.body.style.overflow=d}},f=t?.createInput({h:C,hooks:Ie,dialog:p,options:e}),g=t=>{!function(e,t){var n,r,o;_.__&&_.__(e,t),n=t.__k,r=[],o=[],z(t,e=t.__k=C(k,null,[e]),n||b,b,void 0!==t.ownerSVGElement,n?null:t.firstChild?h.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,q(r,e,o)}(C(ke,{options:e,screenshotInput:f,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&c?.[a.name]||"",defaultEmail:a&&c?.[a.email]||"",onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{g(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),u)};return p}}),t.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=i.createElement("canvas");return{input:Le({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>{o.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),t.getFeedback=function(){const e=r.getClient();return e?.getIntegrationByName("Feedback")},t.sendFeedback=c},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inventoryToFormData=t.generateUUID=t.calculateAverageMbps=t.calculateMbps=t.cloneWithKeys=t.keyExists=t.isFunc=t.inRangeNumeric=t.prepConfig=void 0,t.prepConfig=function(e,t){var n=Object.keys(t);for(var r in e)-1===n.indexOf(r)&&delete e[r]},t.inRangeNumeric=function(e,t,n){return(e-t)*(e-n)<=0},t.isFunc=function(e){return"[object Function]"===Object.prototype.toString.call(e)},t.keyExists=function(e,t){return~Object.keys(e).map(function(t){return e[t]}).indexOf(t)},t.cloneWithKeys=function(e){return Object.keys(e).reduce(function(e,t){return e[t]=null,e},{})},t.calculateMbps=function(e,t){return 8*t/(((new Date).getTime()-e)/1e3)/Math.pow(1024,2)},t.calculateAverageMbps=function(e){var t=e.reduce(function(e,t){return e+t});return parseFloat((t/e.length).toFixed(2))},t.generateUUID=function(){var e=window.performance,t=(new Date).getTime();return void 0!==e&&"function"==typeof e.now&&(t+=e.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:7&n|8).toString(16)})},t.inventoryToFormData=function(e,t,n){void 0===n&&(n=null);var r=new FormData;for(var o in r.append("story_id",e),n&&r.append("composition_id",n),t)if(t[o]){var i=t[o];if(i&&"file"===i.type){var s=i.files;s.length>0?(t[o]="",r.append(o,s[0])):t[o]=""}else i&&i instanceof File&&(t[o]="",r.append(o,i,i.name));r.append("inventory[".concat(o,"]"),t[o])}return r}},6624:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerEvents=t.Events=t.Player=t.Client=void 0,n(6398),n(5985),n(2989),n(7782);var i=n(2511);t.Client=i.default;var s=n(6671);t.Player=s.default,(0,n(2121).printVersion)();var a=o([r({},i.default.eventNames),r({},s.default.events)],2),c=a[0],u=a[1];t.Events=c,t.PlayerEvents=u},6671:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6425),c=n(9722),u=n(8368),l=n(1499),d=n(6612),p=n(3685).xY,f=window.hls,g=function(e){function t(n,r,o){void 0===o&&(o=p.defaultConfig);var c=e.call(this,n)||this;c.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},c.hlsSupport="",c.hlsPlayer=null,c.imposiumPlayerConfig=null,c.init=function(e){var t=p.defaultConfig;for(var n in(0,d.prepConfig)(e,t),c.imposiumPlayerConfig=i(i({},t),e),c.imposiumPlayerConfig)c.imposiumPlayerConfig[n]&&(c.node[n]=c.imposiumPlayerConfig[n])},c.experienceGenerated=function(e){var t=c.imposiumPlayerConfig.qualityOverride,n=e.id,r=e.output,o=r.videos,i=r.images,s="";c.setExperienceId(n),i&&i.hasOwnProperty("poster")&&(s=i.poster),t?c.doQualityOverride(o,s):c.doQualityAssessment(o,s)},c.on=function(e,n){var r=c,o=r.storyId,i=r.eventDelegateRefs;try{if(!(0,d.isFunc)(n))throw new l.PlayerConfigurationError("invalidCallbackType",e);if(!(0,d.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var s=i[e];s.callback=n,s.native&&c.node.addEventListener(e,s.callback)}catch(e){u.default.trapError(e,o)}},c.off=function(e){var n=c,r=n.storyId,o=n.eventDelegateRefs;try{if(!(0,d.keyExists)(t.events,e))throw new l.PlayerConfigurationError("invalidEventName",e);var i=o[e];i.native&&c.node.removeEventListener(e,i.callback),i.callback=null}catch(e){u.default.trapError(e,r)}},c.play=function(){c.node.play().catch(function(){console.error("Error playing video")})},c.pause=function(){c.node.pause()},c.getPlaybackState=function(){return c.node.paused?"paused":"playing"},c.getPosition=function(){return c.node.currentTime},c.getDuration=function(){return c.node.duration},c.seek=function(e){var t=c.node.duration;isNaN(t)?u.default.logWarning("playerFailure","seekNotReady"):(e=Math.floor(e),(0,d.inRangeNumeric)(e,0,t)?c.node.currentTime=e:u.default.logWarning("playerFailure","invalidSeekTime"))},c.getMute=function(){return c.node.muted},c.setMute=function(e){var t=c.eventDelegateRefs.muted.callback;c.node.muted=e,t&&t()},c.getVolume=function(){return c.node.volume},c.setVolume=function(e){var t=p.volumeMin,n=p.volumeMax;e=Math.round(10*e)/10,(0,d.inRangeNumeric)(e,t,n)?c.node.volume=e:u.default.logWarning("playerFailure","invalidVolume")},c.getControls=function(){return c.node.controls},c.setControls=function(e){var t=c.eventDelegateRefs.controlsset;c.node.controls=e,t&&t.callback()},c.replay=function(){c.pauseIfPlaying(),c.node.currentTime=0,c.play()},c.remove=function(){var e,t,n=c.eventDelegateRefs,r=p.defaultConfig;c.pauseIfPlaying();try{for(var o=s(Object.keys(n)),a=o.next();!a.done;a=o.next()){var u=a.value;c.off(n[u])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}c.imposiumPlayerConfig=i({},r),c.node=null},c.setupHls=function(){var e=t.hlsSupportLevels,n=e.NATIVE,r=e.HLSJS;c.node.canPlayType(t.STREAM_TYPE)?c.hlsSupport=n:void 0!==f&&f.isSupported()&&(c.hlsSupport=r)},c.doQualityOverride=function(e,t){var n=c.storyId,r=c.imposiumPlayerConfig.qualityOverride;try{if(!e.hasOwnProperty(r))throw new l.PlayerConfigurationError("badQualityOverride",null);c.setPlayerData(e[r].url,!0,t)}catch(e){u.default.trapError(e,n)}},c.doQualityAssessment=function(e,n){var r=c.hlsSupport,o=t.compressionLevels.STREAM;if(e.hasOwnProperty(o)&&r)c.setPlayerData(e[o].url,!0,n);else{var i=Object.keys(e);1===i.length?c.setPlayerData(e[i[0]].url,!1,n):c.checkBandwidth(e).then(function(t){c.setPlayerData(e[t].url,!1,n)}).catch(function(t){c.setPlayerData(e[t].url,!1,n)})}},c.sampleBandwidth=function(){var e="".concat(t.TEST_IMAGE,"?bust=").concat(Math.random()),n={responseType:"blob",timeout:1500};return new Promise(function(t,r){var o=(new Date).getTime();a.default.get(e,n).then(function(e){var n=e.data.size;t((0,d.calculateMbps)(o,n))}).catch(function(e){r(e)})})},c.checkBandwidth=function(e){for(var n=t.BANDWIDTH_SAMPLES,r=[],o=Object.keys(e).filter(function(e){return"m3u8"!==e}),i=0;i<n;i++)r.push(c.sampleBandwidth());return new Promise(function(t,n){Promise.all(r).then(function(n){var r=(0,d.calculateAverageMbps)(n),i={};o.forEach(function(t){var n=e[t],r=n.width,o=n.height;i[r*o/1e5]=t});var s=Object.keys(i).map(function(e){return parseFloat(e)}).reduce(function(e,t){return Math.abs(e-r)<Math.abs(t-r)?e:t});t(i[s])}).catch(function(){n(o.slice(-1).pop())})})},c.setPlayerData=function(e,n,r){void 0===r&&(r=null);var o=c.hlsSupport,i=t.hlsSupportLevels.HLSJS;n&&o===i?(c.hlsPlayer&&c.hlsPlayer.destroy(),c.hlsPlayer=new f,c.hlsPlayer.attachMedia(c.node),c.hlsPlayer.loadSource(e)):c.node.src=e,r&&(c.node.poster=r)},c.pauseIfPlaying=function(){c.node.paused||c.node.pause()};var g=!(!r||!r.clientConfig);try{if(!g)throw new l.PlayerConfigurationError("badClient",null);n instanceof HTMLVideoElement&&(r.bindPlayer(c),c.init(o),c.setupHls())}catch(e){var m=g?r.clientConfig.storyId:"";u.default.trapError(e,m)}return c}return o(t,e),t.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},t.STREAM_TYPE=p.streamType,t.BANDWIDTH_SAMPLES=p.bandwidthSamples,t.TEST_IMAGE=p.testImage,t.bandwidthRatings={LOW:p.bandwidth.low,MID:p.bandwidth.mid},t.compressionLevels={STREAM:p.compression.stream,LOW:p.compression.low,MID:p.compression.mid,HIGH:p.compression.high},t.hlsSupportLevels={NATIVE:p.hlsSupportLevels.native,HLSJS:p.hlsSupportLevels.hlsjs},t}(c.default);t.default=g},6699:(e,t,n)=>{"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6706:(e,t,n)=>{"use strict";var r=n(9504),o=n(9306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6744:(e,t,n)=>{e=n.nmd(e),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1857);function o(e,t){return e.require(t)}t.isNodeEnv=function(){return!r.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)},t.loadModule=function(t,n=e){let r;try{r=o(n,t)}catch{}if(!r)try{const{cwd:e}=o(n,"process");r=o(n,`${e()}/node_modules/${t}`)}catch{}return r}},6748:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110);t.isJsonRpcNotification=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&!("id"in e)},t.isJsonRpcRequest=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&"id"in e},t.isJsonRpcResponse=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"id"in e&&("result"in e||"error"in e)},t.isValidContentItem=function(e){return null!=e&&"object"==typeof e},t.validateMcpServerInstance=function(e){return"object"==typeof e&&null!==e&&"resource"in e&&"tool"in e&&"prompt"in e&&"connect"in e||(r.DEBUG_BUILD&&o.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}},6750:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396);t.makeFetchTransport=function(e,t=o.getNativeImplementation("fetch")){let n=0,i=0;return r.createTransport(e,async function(r){const s=r.body.length;n+=s,i++;const a={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{const n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw o.clearCachedImplementation("fetch"),e}finally{n-=s,i--}})}},6761:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(9565),s=n(9504),a=n(6395),c=n(3724),u=n(4495),l=n(9039),d=n(9297),p=n(1625),f=n(8551),g=n(5397),m=n(6969),h=n(655),_=n(6980),S=n(2360),y=n(1072),T=n(8480),E=n(298),v=n(3717),b=n(7347),I=n(4913),A=n(6801),R=n(8773),O=n(6840),N=n(2106),C=n(5745),w=n(6119),k=n(421),P=n(3392),x=n(8227),M=n(1951),U=n(511),L=n(8242),D=n(687),B=n(1181),F=n(9213).forEach,j=w("hidden"),G="Symbol",H="prototype",W=B.set,$=B.getterFor(G),z=Object[H],q=o.Symbol,V=q&&q[H],Y=o.RangeError,J=o.TypeError,K=o.QObject,X=b.f,Q=I.f,Z=E.f,ee=R.f,te=s([].push),ne=C("symbols"),re=C("op-symbols"),oe=C("wks"),ie=!K||!K[H]||!K[H].findChild,se=function(e,t,n){var r=X(z,t);r&&delete z[t],Q(e,t,n),r&&e!==z&&Q(z,t,r)},ae=c&&l(function(){return 7!==S(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?se:Q,ce=function(e,t){var n=ne[e]=S(V);return W(n,{type:G,tag:e,description:t}),c||(n.description=t),n},ue=function(e,t,n){e===z&&ue(re,t,n),f(e);var r=m(t);return f(n),d(ne,r)?(n.enumerable?(d(e,j)&&e[j][r]&&(e[j][r]=!1),n=S(n,{enumerable:_(0,!1)})):(d(e,j)||Q(e,j,_(1,S(null))),e[j][r]=!0),ae(e,r,n)):Q(e,r,n)},le=function(e,t){f(e);var n=g(t),r=y(n).concat(ge(n));return F(r,function(t){c&&!i(de,n,t)||ue(e,t,n[t])}),e},de=function(e){var t=m(e),n=i(ee,this,t);return!(this===z&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,j)&&this[j][t])||n)},pe=function(e,t){var n=g(e),r=m(t);if(n!==z||!d(ne,r)||d(re,r)){var o=X(n,r);return!o||!d(ne,r)||d(n,j)&&n[j][r]||(o.enumerable=!0),o}},fe=function(e){var t=Z(g(e)),n=[];return F(t,function(e){d(ne,e)||d(k,e)||te(n,e)}),n},ge=function(e){var t=e===z,n=Z(t?re:g(e)),r=[];return F(n,function(e){!d(ne,e)||t&&!d(z,e)||te(r,ne[e])}),r};u||(O(V=(q=function(){if(p(V,this))throw new J("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=P(e),n=function(e){var r=void 0===this?o:this;r===z&&i(n,re,e),d(r,j)&&d(r[j],t)&&(r[j][t]=!1);var s=_(1,e);try{ae(r,t,s)}catch(e){if(!(e instanceof Y))throw e;se(r,t,s)}};return c&&ie&&ae(z,t,{configurable:!0,set:n}),ce(t,e)})[H],"toString",function(){return $(this).tag}),O(q,"withoutSetter",function(e){return ce(P(e),e)}),R.f=de,I.f=ue,A.f=le,b.f=pe,T.f=E.f=fe,v.f=ge,M.f=function(e){return ce(x(e),e)},c&&(N(V,"description",{configurable:!0,get:function(){return $(this).description}}),a||O(z,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),F(y(oe),function(e){U(e)}),r({target:G,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?S(e):le(S(e),t)},defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),L(),D(q,G),k[j]=!0},6765:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:()=>s,default:()=>a}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(n=i%4?64*n+o:o,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return o(t)}}function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidTokenError";const a=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},6801:(e,t,n)=>{"use strict";var r=n(3724),o=n(8686),i=n(4913),s=n(8551),a=n(5397),c=n(1072);t.f=r&&!o?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,n=o[l++],r[n]);return e}},6823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6840:(e,t,n)=>{"use strict";var r=n(4901),o=n(4913),i=n(283),s=n(9433);e.exports=function(e,t,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&i(n,u,a),a.global)c?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},6855:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6159),o=n(4514),i=n(170),s=n(6748),a=new WeakSet;t.wrapMcpServerWithSentry=function(e){if(a.has(e))return e;if(!s.validateMcpServerInstance(e))return e;const t=e;return r.fill(t,"connect",e=>async function(t,...n){const r=await e.call(this,t,...n);return i.wrapTransportOnMessage(t),i.wrapTransportSend(t),i.wrapTransportOnClose(t),i.wrapTransportError(t),r}),o.wrapAllMCPHandlers(t),a.add(e),e}},6869:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969);function o(){return Date.now()/1e3}let i,s;t.browserPerformanceTimeOrigin=function(){return s||(s=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,s=i<t,a=e.timing?.navigationStart,c="number"==typeof a?Math.abs(a+n-o):t;return s||c<t?i<=c?[e.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[o,"dateNow"]}()),s[0]},t.dateTimestampInSeconds=o,t.timestampInSeconds=function(){return(i??(i=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return o;const t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}},6877:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9635);function o(e,t){const n=r.parseStringToURLObject(e);return!(!n||r.isURLObjectRelative(n))&&!!t&&n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}t.isSentryRequestUrl=function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return o(e,n)||function(e,t){return!!t&&i(e)===i(t)}(e,r)}},6933:(e,t,n)=>{"use strict";var r=n(9504),o=n(4376),i=n(4901),s=n(2195),a=n(655),c=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?c(n,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||c(n,a(u))}var l=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},6938:(e,t,n)=>{"use strict";var r=n(2360),o=n(2106),i=n(6279),s=n(6080),a=n(679),c=n(4117),u=n(2652),l=n(1088),d=n(2529),p=n(7633),f=n(3724),g=n(3451).fastKey,m=n(1181),h=m.set,_=m.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e(function(e,o){a(e,p),h(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),c(o)||u(o,e[l],{that:e,AS_ENTRIES:n})}),p=d.prototype,m=_(t),S=function(e,t,n){var r,o,i=m(e),s=y(e,t);return s?s.value=n:(i.last=s={index:o=g(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=s),r&&(r.next=s),f?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},y=function(e,t){var n,r=m(e),o=g(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(p,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=y(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(p,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return S(this,0===e?0:e,t)}}:{add:function(e){return S(this,e=0===e?0:e,e)}}),f&&o(p,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=_(t),i=_(r);l(e,t,function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:null})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))},n?"entries":"values",!n,!0),p(t)}}},6940:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6159),o=n(9721),i=n(3969);let s;function a(e){return e.exception?.values?.[0]}const c=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function u(e){return parseInt(e||"",10)}t.addContextToFrame=function(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>o.snipLine(e,0));const s=Math.min(r-1,i);t.context_line=o.snipLine(e[s],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>o.snipLine(e,0))},t.addExceptionMechanism=function(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}},t.addExceptionTypeValue=function(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")},t.checkOrSetAlreadyCaught=function(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{r.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch{}return!1},t.getEventDescription=function(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},t.parseSemver=function(e){const t=e.match(c)||[],n=u(t[1]),r=u(t[2]),o=u(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}},t.uuid4=function(e=function(){const e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return s||(s=[1e7]+1e3+4e3+8e3+1e11),s.replace(/[018]/g,e=>(e^(16*Math.random()&15)>>e/4).toString(16))}},6955:(e,t,n)=>{"use strict";var r=n(2140),o=n(4901),i=n(2195),s=n(8227)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:c?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},6969:(e,t,n)=>{"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7008:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(5110);function s(e){r.getCurrentScope().setClient(e)}t.initAndBind=function(e,t){!0===t.debug&&(o.DEBUG_BUILD?i.debug.enable():i.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),r.getCurrentScope().update(t.initialScope);const n=new e(t);return s(n),n.init(),n},t.setCurrentClient=s},7011:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(2751),s=n(5110),a=n(1228),c=n(7687),u=n(4865),l=n(4583),d=n(6869),p=n(3754),f=n(7392),g=n(242),m=n(5363),h=n(5908),_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};t.TRACING_DEFAULTS=_,t.startIdleSpan=function(e,t={}){const n=new Map;let S,y=!1,T="externalFinish",E=!t.disableAutoFinish;const v=[],{idleTimeout:b=_.idleTimeout,finalTimeout:I=_.finalTimeout,childSpanTimeout:A=_.childSpanTimeout,beforeSpanEnd:R,trimIdleSpanEndTimestamp:O=!0}=t,N=r.getClient();if(!N||!a.hasSpansEnabled()){const e=new f.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...p.getDynamicSamplingContextFromSpan(e)};return p.freezeDscOnSpan(e,t),e}const C=r.getCurrentScope(),w=l.getActiveSpan(),k=function(e){const t=h.startInactiveSpan(e);return u._setSpanForScope(r.getCurrentScope(),t),o.DEBUG_BUILD&&s.debug.log("[Tracing] Started span is an idle span"),t}(e);function P(){S&&(clearTimeout(S),S=void 0)}function x(e){P(),S=setTimeout(()=>{!y&&0===n.size&&E&&(T="idleTimeout",k.end(e))},b)}function M(e){S=setTimeout(()=>{!y&&E&&(T="heartbeatFailed",k.end(e))},A)}function U(e){y=!0,n.clear(),v.forEach(e=>e()),u._setSpanForScope(C,w);const t=l.spanToJSON(k),{start_timestamp:r}=t;if(!r)return;t.data[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||k.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,T),s.debug.log(`[Tracing] Idle span "${t.op}" finished`);const a=l.getSpanDescendants(k).filter(e=>e!==k);let c=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:m.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&s.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=l.spanToJSON(t),{timestamp:r=0,start_timestamp:i=0}=n,a=i<=e,u=r-i<=(I+b)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);a?u||s.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):s.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}u&&a||(l.removeChildSpanFromSpan(k,t),c++)}),c>0&&k.setAttribute("sentry.idle_span_discarded_spans",c)}return k.end=new Proxy(k.end,{apply(e,t,n){if(R&&R(k),t instanceof f.SentryNonRecordingSpan)return;const[r,...o]=n,i=r||d.timestampInSeconds(),s=l.spanTimeInputToSeconds(i),a=l.getSpanDescendants(k).filter(e=>e!==k),u=l.spanToJSON(k);if(!a.length||!O)return U(s),Reflect.apply(e,t,[s,...o]);const p=N.getOptions().ignoreSpans,g=a?.reduce((e,t)=>{const n=l.spanToJSON(t);return n.timestamp?p&&c.shouldIgnoreSpan(n,p)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),m=u.start_timestamp,h=Math.min(m?m+I/1e3:1/0,Math.max(m||-1/0,Math.min(s,g||1/0)));return U(h),Reflect.apply(e,t,[h,...o])}}),v.push(N.on("spanStart",e=>{var t;y||e===k||l.spanToJSON(e).timestamp||e instanceof g.SentrySpan&&e.isStandaloneSpan()||l.getSpanDescendants(k).includes(e)&&(t=e.spanContext().spanId,P(),n.set(t,!0),M(d.timestampInSeconds()+A/1e3))})),v.push(N.on("spanEnd",e=>{var t;y||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&x(d.timestampInSeconds()+b/1e3))})),v.push(N.on("idleSpanEnableAutoFinish",e=>{e===k&&(E=!0,x(),n.size&&M())})),t.disableAutoFinish||x(),setTimeout(()=>{y||(k.setStatus({code:m.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),T="finalTimeout",k.end())},I),k}},7036:(e,t,n)=>{"use strict";var r=n(6518),o=n(9306),i=n(6194),s=n(2248),a=n(6395),c=s.get,u=s.has,l=s.set;r({target:"Map",proto:!0,real:!0,forced:a},{getOrInsertComputed:function(e,t){if(i(this),o(t),u(this,e))return c(this,e);0===e&&1/e==-1/0&&(e=0);var n=t(e);return l(this,e,n),n}})},7040:(e,t,n)=>{"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(e,t,n)=>{"use strict";var r=n(9504),o=n(9039),i=n(2195),s=Object,a=r("".split);e.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):s(e)}:s},7143:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);var o=Object.defineProperty,i=(e,t,n)=>((e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);function s(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:s(e.parentNode,t,n,r+1):-1}function a(e,t){return n=>{const r=n;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 n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}const c="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.";let u={map:{},getId:()=>(console.error(c),-1),getNode:()=>(console.error(c),null),removeNodeFromMap(){console.error(c)},has:()=>(console.error(c),!1),reset(){console.error(c)}};function l(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){h(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>l(e,t,i||{},!0)}function d(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function p(e,t,n,r,o){if(!e)return!1;const i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const c=a(t,n);if(!o){const e=r&&i.matches(r);return c(i)&&!e}const u=s(i,c);let l=-1;return!(u<0)&&(r&&(l=s(i,a(null,r))),u>-1&&l<0||u<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,n)=>("map"===t&&console.error(c),Reflect.get(e,t,n))})),Date.now().toString();const f={};function g(e){const t=f[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return f[e]=r.bind(window)}function m(...e){return g("requestAnimationFrame")(...e)}function h(...e){return g("setTimeout")(...e)}var _=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(_||{});let S;const y=e=>S?(...t)=>{try{return e(...t)}catch(e){if(S&&!0===S(e))return()=>{};throw e}}:e;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)E[T.charCodeAt(v)]=v;const b=new Map,I=(e,t,n)=>{if(!e||!O(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=b.get(e);return n||(n=new Map,b.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function A(e,t,n){if(e instanceof Array)return e.map(e=>A(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=T[n[t]>>2],o+=T[(3&n[t])<<4|n[t+1]>>4],o+=T[(15&n[t+1])<<2|n[t+2]>>6],o+=T[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[A(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[A(e.data,t,n),e.width,e.height]}:O(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:I(e,t,n)}:e}const R=(e,t,n)=>e.map(e=>A(e,t,n)),O=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function N(e,t,n,r,o){const i=[];try{const s=d(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...s){if(!p(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...s])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function C(e,t,n,r,o,i,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const s of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const u=d(e,s,function(e){return function(...c){const u=e.apply(this,c);if(I(u,a,this),"tagName"in this.canvas&&!p(this.canvas,r,o,i,!0)){const e=R(c,a,this),r={type:t,property:s,args:e};n(this.canvas,r)}return u}});c.push(u)}catch{const r=l(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});c.push(r)}return c}class w{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:o,errorHandler:i}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(S=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||y(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:s}=this.options;if(!this.windowsSet.has(e)){if(s)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));y(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=N(e,n,r,o,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):m(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:i,height:s}=t;this.mutationCb({id:n,type:_["2D"],commands:[{property:"clearRect",args:[0,0,i,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,s]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=n=>{this.takeSnapshot(n,!1),e=m(t)};e=m(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){const o=N(e,t,n,r,!1),i=function(e,t,n,r,o){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const s=d(t.CanvasRenderingContext2D.prototype,a,function(i){return function(...s){return p(this.canvas,n,r,o,!0)||h(()=>{const n=R(s,t,this);e(this.canvas,{type:_["2D"],property:a,args:n})},0),i.apply(this,s)}});i.push(s)}catch{const n=l(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:_["2D"],property:a,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o){const i=[];return i.push(...C(t.WebGLRenderingContext.prototype,_.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...C(t.WebGL2RenderingContext.prototype,_.WebGL2,e,n,r,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),i(),s()})}getCanvasElements(e,t,n){const r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{p(o,e,t,n,!0)||r.push(o)})};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch{}n&&o(n)}for(const e of this.shadowDoms){const t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){const{sampling:r,blockClass:o,blockSelector:i,unblockSelector:s,dataURLOptions:a,maxCanvasSize:c}=this.options,u=1e3/("all"===r?2:r||2);return!(this.lastSnapshotTime&&e-this.lastSnapshotTime<u)&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(o,i,s)).forEach(e=>{const n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:a,maxCanvasSize:c},[t])}).catch(e=>{y(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){m(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,m(e)};m(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),m(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const 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)}var k,P;new class{constructor(){i(this,"idNodeMap",new Map),i(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(P=k||(k={}))[P.NotStarted=0]="NotStarted",P[P.Running=1]="Running",P[P.Stopped=2]="Stopped";const x={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},M=1280,U=r.defineIntegration((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,M):M,n?Math.min(n,M):M]};let o;const i=new Promise(e=>o=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new w({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o(r),r},...x[e]||x.medium}},async snapshot(e,t){(await i).snapshot(e,t)}}});t.replayCanvasIntegration=U},7145:(e,t,n)=>{"use strict";var r=n(6518),o=n(1625),i=n(2787),s=n(2967),a=n(7740),c=n(2360),u=n(6699),l=n(6980),d=n(7584),p=n(747),f=n(2652),g=n(2603),m=n(8227)("toStringTag"),h=Error,_=[].push,S=function(e,t){var n,r=o(y,this);s?n=s(new h,r?i(this):y):(n=r?this:c(y),u(n,m,"Error")),void 0!==t&&u(n,"message",g(t)),p(n,S,n.stack,1),arguments.length>2&&d(n,arguments[2]);var a=[];return f(e,_,{that:a}),u(n,"errors",a),n};s?s(S,h):a(S,h,{name:!0});var y=S.prototype=c(h.prototype,{constructor:l(1,S),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:S})},7161:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2751),o=n(2434),i=n(4469),s=(e,t,n)=>{null!=n&&(e[t]=n)},a=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function c(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function u(e){const t=e.toLowerCase();return i.ROLE_MAP[t]??t}function l(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function d(e){return e.map(e=>{const t=e._getType;if("function"==typeof t)return{role:u(t.call(e)),content:c(e.content)};const n=e.constructor?.name;if(n)return{role:u(l(n)),content:c(e.content)};if(e.type)return{role:u(String(e.type).toLowerCase()),content:c(e.content)};if(e.role)return{role:u(String(e.role)),content:c(e.content)};if(1===e.lc&&e.kwargs){const t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:u("string"==typeof n?l(n):"user"),content:c(e.kwargs?.content)}}return{role:"user",content:c(e.content)}})}function p(e,t,n){const r={},i="kwargs"in e?e.kwargs:void 0,c=t?.temperature??n?.ls_temperature??i?.temperature;a(r,o.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,c);const u=t?.max_tokens??n?.ls_max_tokens??i?.max_tokens;a(r,o.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,u);const l=t?.top_p??i?.top_p;a(r,o.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,l);const d=t?.frequency_penalty;a(r,o.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,d);const p=t?.presence_penalty;return a(r,o.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,p),t&&"stream"in t&&s(r,o.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(t.stream)),r}function f(e,t,n,s,a,u){return{[o.GEN_AI_SYSTEM_ATTRIBUTE]:c(e??"langchain"),[o.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:c(t),[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:i.LANGCHAIN_ORIGIN,...p(s,a,u)}}t.extractChatModelRequestAttributes=function(e,t,n,r,i){const a=f(i?.ls_provider??e.id?.[2],r?.model??i?.ls_model_name??"unknown","chat",e,r,i);if(n&&Array.isArray(t)&&t.length>0){const e=d(t.flat());s(a,o.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE,c(e))}return a},t.extractLLMRequestAttributes=function(e,t,n,r,i){const a=i?.ls_provider,u=f(a,r?.model??i?.ls_model_name??"unknown","pipeline",e,r,i);if(n&&Array.isArray(t)&&t.length>0){const e=t.map(e=>({role:"user",content:e}));s(u,o.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE,c(e))}return u},t.extractLlmResponseAttributes=function(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const r=e.generations.flat().map(e=>e.generation_info?.finish_reason).filter(e=>"string"==typeof e);if(r.length>0&&s(n,o.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,c(r)),function(e,t){const n=[],r=e.flat();for(const e of r){const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&n.push(t)}}n.length>0&&s(t,o.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,c(n))}(e.generations,n),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&s(n,o.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,c(t))}}!function(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)a(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.promptTokens),a(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.completionTokens),a(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,n.totalTokens);else if(r){a(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.input_tokens),a(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.output_tokens);const e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&a(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,i),void 0!==r.cache_creation_input_tokens&&a(t,o.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&a(t,o.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,r.cache_read_input_tokens)}}(e.llmOutput,n);const r=e.llmOutput,i=r?.model_name??r?.model;return i&&s(n,o.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,i),r?.id&&s(n,o.GEN_AI_RESPONSE_ID_ATTRIBUTE,r.id),r?.stop_reason&&s(n,o.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,c(r.stop_reason)),n},t.getInvocationParams=function(e){if(e&&!Array.isArray(e))return e.invocation_params},t.normalizeLangChainMessages=d},7185:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(3851),i=n(9212);t.whenIdleOrHidden=e=>{const t=r.WINDOW.requestIdleCallback||r.WINDOW.setTimeout;"hidden"===r.WINDOW.document?.visibilityState?e():(t(e=i.runOnce(e)),o.onHidden(e))}},7227:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);t.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:n,dsn:o}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:r.dsnToString(o)}},s=function(e){return[{type:"user_report"},e]}(e);return r.createEnvelope(i,[s])}},7254:(e,t,n)=>{"use strict";var r=n(6518),o=n(6194),i=n(2248),s=n(6395),a=i.get,c=i.has,u=i.set;r({target:"Map",proto:!0,real:!0,forced:s},{getOrInsert:function(e,t){return c(o(this),e)?a(this,e):(u(this,e,t),t)}})},7267:(e,t,n)=>{"use strict";var r=n(9062);e.exports=r},7268:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0);return!0===s(t,function(e,r){if(n(e,r,t))return!0},!0)}})},7273:(e,t,n)=>{"use strict";var r=n(6518),o=n(3317),i=n(6194),s=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===s(i(this),function(t){if(o(t,e))return!0},!0)}})},7274:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969);let o,i,s,a;function c(e){const t=r.GLOBAL_OBJ._sentryDebugIds,n=r.GLOBAL_OBJ._debugIds;if(!t&&!n)return{};const c=t?Object.keys(t):[],u=n?Object.keys(n):[];if(a&&c.length===i&&u.length===s)return a;i=c.length,s=u.length,a={},o||(o={});const l=(t,n)=>{for(const r of t){const t=n[r],i=o?.[r];if(i&&a&&t)a[i[0]]=t,o&&(o[r]=[i[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const i=n[e],s=i?.filename;if(s&&a&&o){a[s]=t,o[r]=[s,t];break}}}}};return t&&l(c,t),n&&l(u,n),a}t.getDebugImagesForResources=function(e,t){const n=c(e);if(!n)return[];const r=[];for(const e of t)e&&n[e]&&r.push({type:"sourcemap",code_file:e,debug_id:n[e]});return r},t.getFilenameToDebugIdMap=c},7295:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.generateUniqueID=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},7299:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(1281),s=new WeakMap,a=new Map,c={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function u(e){const{url:t}=r.spanToJSON(e).data;if(!t||"string"!=typeof t)return;const n=o.addPerformanceInstrumentationHandler("resource",({entries:r})=>{r.forEach(r=>{i.isPerformanceResourceTiming(r)&&r.name.endsWith(t)&&(e.setAttributes(o.resourceTimingToSpanAttributes(r)),setTimeout(n))})})}function l(e,t){const n=r.getLocationHref();if(n){let o,i;try{o=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=o.origin===i;return t?r.stringMatchesSomePattern(o.toString(),t)||s&&r.stringMatchesSomePattern(o.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/);return t?r.stringMatchesSomePattern(e,t):n}}t.defaultRequestInstrumentationOptions=c,t.instrumentOutgoingRequests=function(e,t){const{traceFetch:n,traceXHR:d,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:f,enableHTTPTimings:g,tracePropagationTargets:m,onRequestSpanStart:h,onRequestSpanEnd:_}={...c,...t},S="function"==typeof f?f:e=>!0,y=e=>l(e,m),T={},E=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=a.get(e.span_id);t&&(e.timestamp=t/1e3,a.delete(e.span_id))}}),e)),p&&r.addFetchEndInstrumentationHandler(e=>{if(e.response){const t=s.get(e.response);t&&e.endTimestamp&&a.set(t,e.endTimestamp)}}),r.addFetchInstrumentationHandler(e=>{const t=r.instrumentFetchRequest(e,S,y,T,{propagateTraceparent:E,onRequestSpanEnd:_});if(e.response&&e.fetchData.__span&&s.set(e.response,e.fetchData.__span),t){const n=i.getFullURL(e.fetchData.url),o=n?r.parseUrl(n).host:void 0;t.setAttributes({"http.url":n,"server.address":o}),g&&u(t),h?.(t,{headers:e.headers})}})),d&&o.addXhrInstrumentationHandler(e=>{const t=function(e,t,n,s,a,c){const u=e.xhr,l=u?.[o.SENTRY_XHR_DATA_KEY];if(!u||u.__sentry_own_request__||!l)return;const{url:d,method:p}=l,f=r.hasSpansEnabled()&&t(d);if(e.endTimestamp&&f){const t=u.__sentry_xhr_span_id__;if(!t)return;const n=s[t];return void(n&&void 0!==l.status_code&&(r.setHttpStatus(n,l.status_code),n.end(),c?.(n,{headers:i.createHeadersSafely(o.parseXhrResponseHeaders(u)),error:e.error}),delete s[t]))}const g=i.getFullURL(d),m=g?r.parseUrl(g):r.parseUrl(d),h=r.stripUrlQueryAndFragment(d),_=!!r.getActiveSpan(),S=f&&_?r.startInactiveSpan({name:`${p} ${h}`,attributes:{url:d,type:"xhr","http.method":p,"http.url":g,"server.address":m?.host,[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...m?.search&&{"http.query":m?.search},...m?.hash&&{"http.fragment":m?.hash}}}):new r.SentryNonRecordingSpan;u.__sentry_xhr_span_id__=S.spanContext().spanId,s[u.__sentry_xhr_span_id__]=S,n(d)&&function(e,t,n){const{"sentry-trace":o,baggage:s,traceparent:a}=r.getTraceData({span:t,propagateTraceparent:n});o&&function(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(!o?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&i.baggageHeaderHasSentryValues(t)||e.setRequestHeader("baggage",n)}}catch{}}(e,o,s,a)}(u,r.hasSpansEnabled()&&_?S:void 0,a);const y=r.getClient();return y&&y.emit("beforeOutgoingRequestSpan",S,e),S}(e,S,y,T,E,_);t&&(g&&u(t),h?.(t,{headers:i.createHeadersSafely(e.xhr.__sentry_xhr_v3__?.request_headers)}))})},t.shouldAttachHeaders=l},7320:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(9640);t.getDefaultCurrentScope=function(){return r.getGlobalSingleton("defaultCurrentScope",()=>new o.Scope)},t.getDefaultIsolationScope=function(){return r.getGlobalSingleton("defaultIsolationScope",()=>new o.Scope)}},7347:(e,t,n)=>{"use strict";var r=n(3724),o=n(9565),i=n(8773),s=n(6980),a=n(5397),c=n(6969),u=n(9297),l=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},7373:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(9564),i=n(8974),s=n(5013),a=n(5110),c=n(8532),u=n(4865),l=n(6869),d=n(1872),p=n(3232),f=n(5236);function g(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function m(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function h(e,t){const n=y(),r=S(e);void 0===r?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=100&&_(e,r))}function _(e,t){const n=t??S(e)??[];if(0===n.length)return;const r=e.getOptions(),o=f.createLogEnvelope(n,r._metadata,r.tunnel,e.getDsn());y().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function S(e){return y().get(e)}function y(){return r.getGlobalSingleton("clientToLogBufferMap",()=>new WeakMap)}t._INTERNAL_captureLog=function(e,t=o.getCurrentScope(),n=h){const r=t?.getClient()??o.getClient();if(!r)return void(i.DEBUG_BUILD&&a.debug.warn("No client available to capture log."));const{release:f,environment:_,enableLogs:S=!1,beforeSendLog:y}=r.getOptions();if(!S)return void(i.DEBUG_BUILD&&a.debug.warn("logging option not enabled, log will not be captured."));const[,T]=d._getTraceInfoFromScope(r,t),E={...e.attributes},{user:{id:v,email:b,username:I}}=function(e){const t=o.getGlobalScope().getScopeData();return s.mergeScopeData(t,o.getIsolationScope().getScopeData()),s.mergeScopeData(t,e.getScopeData()),t}(t);m(E,"user.id",v,!1),m(E,"user.email",b,!1),m(E,"user.name",I,!1),m(E,"sentry.release",f),m(E,"sentry.environment",_);const{name:A,version:R}=r.getSdkMetadata()?.sdk??{};m(E,"sentry.sdk.name",A),m(E,"sentry.sdk.version",R);const O=r.getIntegrationByName("Replay"),N=O?.getReplayId(!0);m(E,"sentry.replay_id",N),N&&"buffer"===O?.getRecordingMode()&&m(E,"sentry._internal.replay_is_buffering",!0);const C=e.message;if(c.isParameterizedString(C)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=C;t?.length&&(E["sentry.message.template"]=e),t.forEach((e,t)=>{E[`sentry.message.parameter.${t}`]=e})}const w=u._getSpanForScope(t);m(E,"sentry.trace.parent_span_id",w?.spanContext().spanId);const k={...e,attributes:E};r.emit("beforeCaptureLog",k);const P=y?a.consoleSandbox(()=>y(k)):k;if(!P)return r.recordDroppedEvent("before_send","log_item",1),void(i.DEBUG_BUILD&&a.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:x,message:M,attributes:U={},severityNumber:L}=P;n(r,{timestamp:l.timestampInSeconds(),level:x,body:M,trace_id:T?.trace_id,severity_number:L??p.SEVERITY_TEXT_TO_SEVERITY_NUMBER[x],attributes:Object.keys(U).reduce((e,t)=>(e[t]=g(U[t]),e),{})}),r.emit("afterCaptureLog",P)},t._INTERNAL_captureSerializedLog=h,t._INTERNAL_flushLogsBuffer=_,t._INTERNAL_getLogBuffer=S,t.logAttributeToSerializedLogAttribute=g},7389:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getPossibleEventMessages=function(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}},7392:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8913),o=n(4583);t.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||r.generateTraceId(),this._spanId=e.spanId||r.generateSpanId()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.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,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},7415:(e,t,n)=>{"use strict";var r=n(6518),o=n(6194),i=n(6223);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=i(o(this),function(t,n){if(t===e)return{key:n}},!0);return t&&t.key}})},7416:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.defineIntegration(()=>({name:"LaunchDarkly",processEvent:(e,t,n)=>r._INTERNAL_copyFlagsFromScopeToEvent(e)}));t.buildLaunchDarklyFlagUsedHandler=function(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{r._INTERNAL_insertFlagToScope(e,t.value),r._INTERNAL_addFeatureFlagToActiveSpan(e,t.value)}}},t.launchDarklyIntegration=o},7418:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);t.growthbookIntegration=({growthbookClass:e})=>r.growthbookIntegration({growthbookClass:e})},7433:(e,t,n)=>{"use strict";var r=n(4376),o=n(3517),i=n(34),s=n(8227)("species"),a=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},7434:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(132);t.BrowserTraceLifecycleProfiler=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1}initialize(e,t){this._profilerId=r.uuid4(),o.DEBUG_BUILD&&r.debug.log("[Profiling] Initializing profiler (lifecycle='trace')."),this._client=e,this._sessionSampled=t,e.on("spanStart",e=>{if(!this._sessionSampled)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Session not sampled because of negative sampling decision."));if(e!==r.getRootSpan(e))return;if(!e.isRecording())return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because root span was not sampled."));r.getGlobalScope().setContext("profile",{profiler_id:this._profilerId});const t=e.spanContext().spanId;if(!t)return;if(this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.add(t);const n=this._activeRootSpanIds.size,i=setTimeout(()=>{this._onRootSpanTimeout(t)},3e5);this._rootSpanTimeouts.set(t,i),1===n&&(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Root span with ID ${t} started. Will continue profiling for as long as there are active root spans (currently: ${n}).`),this.start())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const n=this._activeRootSpanIds.size;o.DEBUG_BUILD&&r.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk on `spanEnd`:",e)}),this.stop())})}notifyRootSpanActive(e){if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.add(t);const n=this._activeRootSpanIds.size;1===n&&(o.DEBUG_BUILD&&r.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this.start())}start(){if(!this._isRunning){if(this._isRunning=!0,o.DEBUG_BUILD&&r.debug.log("[Profiling] Started profiling with profile ID:",this._profilerId),this._startProfilerInstance(),!this._profiler)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Stopping trace lifecycle profiling."),void this._resetProfilerInfo();this._startPeriodicChunking()}}stop(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}))}_resetProfilerInfo(){this._isRunning=!1,r.getGlobalScope().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=i.startJSSelfProfile();e?this._profiler=e:o.DEBUG_BUILD&&r.debug.log("[Profiling] Failed to start JS Profiler in trace lifecycle.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this.stop()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=await e.stop(),n=i.createProfileChunkPayload(t,this._client,this._profilerId),s=i.validateProfileChunk(n);if("reason"in s)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",s.reason));this._sendProfileChunk(n),o.DEBUG_BUILD&&r.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){o.DEBUG_BUILD&&r.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,n=r.getSdkMetadataForEnvelopeHeader(t.getSdkMetadata?.()),i=t.getDsn(),s=t.getOptions().tunnel,a=r.createEnvelope({event_id:r.uuid4(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!s&&i&&{dsn:r.dsnToString(i)}},[[{type:"profile_chunk"},e]]);t.sendEnvelope(a).then(null,e=>{o.DEBUG_BUILD&&r.debug.error("Error while sending profile chunk envelope:",e)})}}},7476:(e,t,n)=>{"use strict";var r=n(2195),o=n(9504);e.exports=function(e){if("Function"===r(e))return o(e)}},7481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6612),o=n(1499),i=function(){function e(e){var t=this;this.api=null,this.clientDelegates=null,this.configCache=new Map,this.getExperience=function(e){clearTimeout(t.killPollTimeout),t.killPollTimeout=setTimeout(function(){return t.killPoll(e)},18e4),t.pollForExperience(e,function(e){clearTimeout(t.killPollTimeout),t.clientDelegates.get("gotExperience")(e)},function(n){clearTimeout(t.killPollTimeout);var r=new o.HTTPError("httpFailure",e,n);t.clientDelegates.get("internalError")(r)})},this.fetchExperience=function(e,n,i,s){void 0===i&&(i=1),void 0===s&&(s=null);var a=s||(0,r.generateUUID)();t.api.fetch(e,a,n).then(function(e){if(e.error){var n=new o.RenderError(e.error,a);t.clientDelegates.get("internalError")(n)}else t.configCache.delete(a),t.clientDelegates.get("gotExperience")(e)}).catch(function(r){var c;if((null===(c=null==r?void 0:r.response)||void 0===c?void 0:c.data)&&"object"==typeof r.response.data&&"error"in r.response.data){var u=new o.RenderError(r.response.data.error,a);t.clientDelegates.get("internalError")(u)}else r.response&&408===r.response.status?t.getExperience(a):r.response&&r.response.status>=500&&i<3?(i+=1,t.fetchExperience(e,n,i,s)):(u=new o.HTTPError("httpFailure",a,r),t.clientDelegates.get("internalError")(u))})},this.createExperience=function(e,n,i,s){void 0===s&&(s=0);var a=(0,r.generateUUID)();t.api.create(e,n,a,i).then(function(e){t.configCache.delete(a),t.clientDelegates.get("experienceCreated")(e)}).catch(function(r){if(r.response&&r.response.status>=500&&s<3)s+=1,t.createExperience(e,n,i,s);else{var c=new o.HTTPError("httpFailure",a,r);t.clientDelegates.get("internalError")(c)}})},this.api=e.api,this.clientDelegates=e.clientDelegates}return e.prototype.killPoll=function(e){clearTimeout(this.pollTimeout);var t=new o.HTTPError("pollTimeout",e);this.clientDelegates.get("internalError")(t)},e.prototype.pollForExperience=function(e,t,n,r){var i=this;void 0===r&&(r=1),this.api.get(e).then(function(s){if(s.rendering)clearTimeout(i.pollTimeout),i.pollTimeout=setTimeout(function(){i.pollForExperience(e,t,n,r)},5e3);else if(clearTimeout(i.pollTimeout),s.error){var a=new o.RenderError(s.error,e);i.clientDelegates.get("internalError")(a)}else t(s)}).catch(function(o){clearTimeout(i.pollTimeout),o.response&&o.response.status>=500&&r<3?(r+=1,i.pollForExperience(e,t,n,r)):n(o)})},e}();t.default=i},7500:(e,t,n)=>{"use strict";var r=n(8551);e.exports=function(e,t,n){return function(){for(var o=new e,i=arguments.length,s=0;s<i;s++){var a=arguments[s];n?t(o,r(a)[0],a[1]):t(o,a)}return o}}},7509:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2751),o=n(2434),i=n(2856),s=n(4583),a=n(4668),c=n(8096),u=n(6375);function l(e,t){e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t)}function d(e){const{data:t,description:n}=s.spanToJSON(e);if(!n)return;if(t[u.AI_TOOL_CALL_NAME_ATTRIBUTE]&&t[u.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void function(e,t){l(e,"auto.vercelai.otel"),e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),g(t,u.AI_TOOL_CALL_NAME_ATTRIBUTE,"gen_ai.tool.name"),g(t,u.AI_TOOL_CALL_ID_ATTRIBUTE,"gen_ai.tool.call.id");const n=t["gen_ai.tool.call.id"];"string"==typeof n&&a.toolCallSpanMap.set(n,e),t["gen_ai.tool.type"]||e.setAttribute("gen_ai.tool.type","function");const o=t["gen_ai.tool.name"];o&&e.updateName(`execute_tool ${o}`)}(e,t);const o=t[u.AI_MODEL_ID_ATTRIBUTE],c=t[u.AI_MODEL_PROVIDER_ATTRIBUTE];"string"==typeof o&&"string"==typeof c&&o&&c&&function(e,t,n){l(e,"auto.vercelai.otel");const o=t.replace("ai.","");e.setAttribute("ai.pipeline.name",o),e.updateName(o);const s=n[u.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];if(s&&"string"==typeof s&&(e.updateName(`${o} ${s}`),e.setAttribute("gen_ai.function_id",s)),n[u.AI_PROMPT_ATTRIBUTE]){const t=i.getTruncatedJsonString(n[u.AI_PROMPT_ATTRIBUTE]);e.setAttribute("gen_ai.prompt",t)}if(n[u.AI_MODEL_ID_ATTRIBUTE]&&!n[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&e.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n[u.AI_MODEL_ID_ATTRIBUTE]),e.setAttribute("ai.streaming",t.includes("stream")),"ai.generateText"!==t){if("ai.generateText.doGenerate"===t)return e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.generate_text"),void e.updateName(`generate_text ${n[u.AI_MODEL_ID_ATTRIBUTE]}`);if("ai.streamText"!==t){if("ai.streamText.doStream"===t)return e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.stream_text"),void e.updateName(`stream_text ${n[u.AI_MODEL_ID_ATTRIBUTE]}`);if("ai.generateObject"!==t){if("ai.generateObject.doGenerate"===t)return e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.generate_object"),void e.updateName(`generate_object ${n[u.AI_MODEL_ID_ATTRIBUTE]}`);if("ai.streamObject"!==t){if("ai.streamObject.doStream"===t)return e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.stream_object"),void e.updateName(`stream_object ${n[u.AI_MODEL_ID_ATTRIBUTE]}`);if("ai.embed"!==t){if("ai.embed.doEmbed"===t)return e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.embed"),void e.updateName(`embed ${n[u.AI_MODEL_ID_ATTRIBUTE]}`);if("ai.embedMany"!==t)return"ai.embedMany.doEmbed"===t?(e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.embed_many"),void e.updateName(`embed_many ${n[u.AI_MODEL_ID_ATTRIBUTE]}`)):void(t.startsWith("ai.stream")&&e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"));e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}else e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}else e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}else e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}else e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}else e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.invoke_agent")}(e,n,t)}function p(e){if("transaction"===e.type&&e.spans){const t=new Map;for(const n of e.spans)f(n),c.accumulateTokensForParent(n,t);for(const n of e.spans)"gen_ai.invoke_agent"===n.op&&c.applyAccumulatedTokens(n,t);const n=e.contexts?.trace;n&&"gen_ai.invoke_agent"===n.op&&c.applyAccumulatedTokens(n,t)}return e}function f(e){const{data:t,origin:n}=e;if("auto.vercelai.otel"===n){g(t,u.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),g(t,u.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),g(t,u.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,o.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),"number"==typeof t[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]&&"number"==typeof t[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]&&(t["gen_ai.usage.total_tokens"]=t[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]+t[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]),g(t,u.AI_PROMPT_MESSAGES_ATTRIBUTE,"gen_ai.request.messages"),g(t,u.AI_RESPONSE_TEXT_ATTRIBUTE,"gen_ai.response.text"),g(t,u.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,"gen_ai.response.tool_calls"),g(t,u.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),g(t,u.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),g(t,u.AI_TOOL_CALL_ARGS_ATTRIBUTE,"gen_ai.tool.input"),g(t,u.AI_TOOL_CALL_RESULT_ATTRIBUTE,"gen_ai.tool.output"),g(t,u.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),function(e){const t=e[u.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(t)try{const n=JSON.parse(t);if(n.openai&&(m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.openai.cachedPromptTokens),m(e,"gen_ai.usage.output_tokens.reasoning",n.openai.reasoningTokens),m(e,"gen_ai.usage.output_tokens.prediction_accepted",n.openai.acceptedPredictionTokens),m(e,"gen_ai.usage.output_tokens.prediction_rejected",n.openai.rejectedPredictionTokens),m(e,"gen_ai.conversation.id",n.openai.responseId)),n.anthropic){const t=n.anthropic.usage?.cache_read_input_tokens??n.anthropic.cacheReadInputTokens;m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t);const r=n.anthropic.usage?.cache_creation_input_tokens??n.anthropic.cacheCreationInputTokens;m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,r)}n.bedrock?.usage&&(m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.bedrock.usage.cacheReadInputTokens),m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,n.bedrock.usage.cacheWriteInputTokens)),n.deepseek&&(m(e,o.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.deepseek.promptCacheHitTokens),m(e,"gen_ai.usage.input_tokens.cache_miss",n.deepseek.promptCacheMissTokens))}catch{}}(t);for(const e of Object.keys(t))e.startsWith("ai.")&&g(t,e,`vercel.${e}`)}}function g(e,t,n){null!=e[t]&&(e[n]=e[t],delete e[t])}function m(e,t,n){null!=n&&(e[t]=n)}t.addVercelAiProcessors=function(e){e.on("spanStart",d),e.addEventProcessor(Object.assign(p,{id:"VercelAiEventProcessor"}))}},7533:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396);function i(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=a(t);return r?`${o} ${r}`:`${o}`}function s(e){let t;if("xhr"in e){const n=e.xhr[o.SENTRY_XHR_DATA_KEY];t=n&&o.getBodyString(n.body)[0]}else{const n=o.getFetchRequestArgBody(e.input);t=o.getBodyString(n)[0]}return t}function a(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function c(e){let t;try{const n=JSON.parse(e);n.query&&(t=n)}finally{return t}}const u=r.defineIntegration(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{const o=r.spanToJSON(e).data||{};if("http.client"!==o[r.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;const a=o[r.SEMANTIC_ATTRIBUTE_URL_FULL]||o["http.url"],u=o[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||o["http.method"];if(!r.isString(a)||!r.isString(u))return;const{endpoints:l}=t,d=r.stringMatchesSomePattern(a,l),p=s(n);if(d&&p){const t=c(p);if(t){const n=i(t);e.updateName(`${u} ${a} (${n})`),e.setAttribute("graphql.document",p)}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{const{category:o,type:a,data:u}=e;if("http"===a&&("fetch"===o||"xhr"===o)){const e=u?.url,{endpoints:o}=t,a=r.stringMatchesSomePattern(e,o),l=s(n);if(a&&u&&l){const e=c(l);if(!u.graphql&&e){const t=i(e);u["graphql.document"]=e.query,u["graphql.operation"]=t}}}})}(t,e)}}));t.getGraphQLRequestPayload=c,t.getRequestPayloadXhrOrFetch=s,t.graphqlClientIntegration=u,t.parseGraphQLQuery=a},7536:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(3155),i=n(3969),s=r.defineIntegration((e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in i.GLOBAL_OBJ&&!!i.GLOBAL_OBJ.window,o=e.iteratee||a({isBrowser:r,root:t,prefix:n});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=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>o(e))})}};var t})}}}catch{return e}}(t)),t}}});function a({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||s){const e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?o.relative(t,e):o.basename(e);r.filename=`${n}${s}`}return r}}t.generateIteratee=a,t.rewriteFramesIntegration=s},7558:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);function o(e,t,n,o){const i={filename:e,function:"<anonymous>"===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==o&&(i.colno=o),i}const i=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,s=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=/at (.+?) ?\(data:(.+?),/,u=[30,e=>{const t=e.match(c);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=i.exec(e);if(n){const[,e,t,i]=n;return o(e,r.UNKNOWN_FUNCTION,+t,+i)}const u=s.exec(e);if(u){if(u[2]&&0===u[2].indexOf("eval")){const e=a.exec(u[2]);e&&(u[2]=e[1],u[3]=e[2],u[4]=e[3])}const[e,t]=E(u[1]||r.UNKNOWN_FUNCTION,u[2]);return o(t,e,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=[50,e=>{const t=l.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.UNKNOWN_FUNCTION;return[n,e]=E(n,e),o(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,g=[40,e=>{const t=f.exec(e);return t?o(t[2],t[1]||r.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,h=[10,e=>{const t=m.exec(e);return t?o(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):void 0}],_=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,S=[20,e=>{const t=_.exec(e);return t?o(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],y=[u,p],T=r.createStackParser(...y),E=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};t.chromeStackLineParser=u,t.defaultStackLineParsers=y,t.defaultStackParser=T,t.geckoStackLineParser=p,t.opera10StackLineParser=h,t.opera11StackLineParser=S,t.winjsStackLineParser=g},7583:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(2248),a=n(6223),c=s.Map,u=s.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0),r=new c;return a(t,function(e,o){u(r,o,n(e,o,t))}),r}})},7584:(e,t,n)=>{"use strict";var r=n(34),o=n(6699);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},7620:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2434),o=n(1472);function i(e){return e.includes("chat.completions")?r.OPENAI_OPERATIONS.CHAT:e.includes("responses")?r.OPENAI_OPERATIONS.RESPONSES:e.split(".").pop()||"unknown"}t.buildMethodPath=function(e,t){return e?`${e}.${t}`:t},t.getOperationName=i,t.getSpanOperation=function(e){return`gen_ai.${i(e)}`},t.isChatCompletionChunk=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object},t.isChatCompletionResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion"===e.object},t.isResponsesApiResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"response"===e.object},t.isResponsesApiStreamEvent=function(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")},t.setCommonResponseAttributes=function(e,t,n,o){e.setAttributes({[r.OPENAI_RESPONSE_ID_ATTRIBUTE]:t,[r.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t}),e.setAttributes({[r.OPENAI_RESPONSE_MODEL_ATTRIBUTE]:n,[r.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n}),e.setAttributes({[r.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*o).toISOString()})},t.setTokenUsageAttributes=function(e,t,n,o){void 0!==t&&e.setAttributes({[r.OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE]:t,[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==n&&e.setAttributes({[r.OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE]:n,[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&e.setAttributes({[r.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o})},t.shouldInstrument=function(e){return o.INSTRUMENTED_METHODS.includes(e)}},7629:(e,t,n)=>{"use strict";var r=n(6395),o=n(4576),i=n(9433),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:(e,t,n)=>{"use strict";var r=n(7751),o=n(2106),i=n(8227),s=n(3724),a=i("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},7657:(e,t,n)=>{"use strict";var r,o,i,s=n(9039),a=n(4901),c=n(34),u=n(2360),l=n(2787),d=n(6840),p=n(8227),f=n(6395),g=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):m=!0),!c(r)||s(function(){var e={};return r[g].call(e)!==e})?r={}:f&&(r=u(r)),a(r[g])||d(r,g,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},7670:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.GLOBAL_OBJ;let i=0;function s(){i++,setTimeout(()=>{i--})}t.WINDOW=o,t.getHttpRequestData=function(){const e=r.getLocationHref(),{referrer:t}=o.document||{},{userAgent:n}=o.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}},t.ignoreNextOnError=s,t.shouldIgnoreOnError=function(){return i>0},t.wrap=function e(t,n={}){if(!function(e){return"function"==typeof e}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(r.getOriginalFunction(t))return t}catch{return t}const o=function(...o){try{const r=o.map(t=>e(t,n));return t.apply(this,r)}catch(e){throw s(),r.withScope(t=>{t.addEventProcessor(e=>(n.mechanism&&(r.addExceptionTypeValue(e,void 0,void 0),r.addExceptionMechanism(e,n.mechanism)),e.extra={...e.extra,arguments:o},e)),r.captureException(e)}),e}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch{}r.markFunctionWrapped(o,t),r.addNonEnumerableProperty(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch{}return o}},7680:(e,t,n)=>{"use strict";var r=n(9504);e.exports=r([].slice)},7687:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(9721);function s(e){o.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function a(e){return"string"==typeof e||e instanceof RegExp}t.reparentChildSpans=function(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)},t.shouldIgnoreSpan=function(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(a(n)){if(i.isMatchingPattern(e.description,n))return r.DEBUG_BUILD&&s(e),!0;continue}if(!n.name&&!n.op)continue;const t=!n.name||i.isMatchingPattern(e.description,n.name),o=!n.op||e.op&&i.isMatchingPattern(e.op,n.op);if(t&&o)return r.DEBUG_BUILD&&s(e),!0}return!1}},7695:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(4583),s=n(5363);t.captureError=function(e,t,n){try{if(!r.getClient())return;const a=i.getActiveSpan();a?.isRecording()&&a.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:t||"handler_execution",...n}}})}catch{}}},7697:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=e=>(new TextEncoder).encode(e).length,r=e=>n(JSON.stringify(e));function o(e,t){if(n(e)<=t)return e;let r=0,o=e.length,i="";for(;r<=o;){const s=Math.floor((r+o)/2),a=e.slice(0,s);n(a)<=t?(i=a,r=s+1):o=s-1}return i}function i(e){return"string"==typeof e?e:e.text}function s(e,t){return"string"==typeof e?t:{...e,text:t}}function a(e,t){if(!Array.isArray(e)||0===e.length)return e;if(r(e)<=t)return e;const a=e.map(r);let c=0,u=e.length;for(let n=e.length-1;n>=0;n--){const e=a[n];if(e&&c+e>t)break;e&&(c+=e),u=n}return u===e.length?function(e,t){return e&&"object"==typeof e?function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const n={...e,content:""},i=t-r(n);if(i<=0)return[];const s=o(e.content,i);return[{...e,content:s}]}(e,t):function(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}(e)?function(e,t){const{parts:a}=e,c=a.map(e=>s(e,""));let u=t-r({...e,parts:c});if(u<=0)return[];const l=[];for(const e of a){const t=i(e),r=n(t);if(!(r<=u)){if(0===l.length){const n=o(t,u);n&&l.push(s(e,n));break}break}l.push(e),u-=r}return l.length>0?[{...e,parts:l}]:[]}(e,t):[]:[]}(e[e.length-1],t):e.slice(u)}t.DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT=2e4,t.truncateGenAiMessages=function(e){return a(e,2e4)},t.truncateMessagesByBytes=a},7740:(e,t,n)=>{"use strict";var r=n(9297),o=n(5031),i=n(7347),s=n(4913);e.exports=function(e,t,n){for(var a=o(t),c=s.f,u=i.f,l=0;l<a.length;l++){var d=a[l];r(e,d)||n&&r(n,d)||c(e,d,u(t,d))}}},7742:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872).GLOBAL_OBJ;t.WINDOW=r},7743:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(6043),a=n(1103),c=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{race:function(e){var t=this,n=s.f(t),r=n.reject,u=a(function(){var s=i(t.resolve);c(e,function(e){o(s,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},7750:(e,t,n)=>{"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},7751:(e,t,n)=>{"use strict";var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},7764:(e,t,n)=>{"use strict";var r=n(8183).charAt,o=n(655),i=n(1181),s=n(1088),a=n(2529),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",function(e){u(this,{type:c,string:o(e),index:0})},function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?a(void 0,!0):(e=r(n,o),t.index+=e.length,a(e,!1))})},7782:(e,t,n)=>{"use strict";e.exports=n(6008)},7812:(e,t,n)=>{"use strict";var r=n(6518),o=n(9297),i=n(757),s=n(6823),a=n(5745),c=n(1296),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw new TypeError(s(e)+" is not a symbol");if(o(u,e))return u[e]}})},7860:(e,t,n)=>{"use strict";var r=n(2839);e.exports=/web0s(?!.*chrome)/i.test(r)},7872:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4038),o=n(4284),i=n(7011),s=n(242),a=n(7392),c=n(5363),u=n(5908),l=n(3754),d=n(8945),p=n(9816),f=n(8346),g=n(2751),m=n(238),h=n(9183),_=n(9564),S=n(7320),y=n(2810),T=n(3220),E=n(1348),v=n(9640),b=n(1929),I=n(5740),A=n(3913),R=n(4842),O=n(7008),N=n(4450),C=n(2256),w=n(4082),k=n(2430),P=n(5013),x=n(1485),M=n(251),U=n(1228),L=n(6877),D=n(6354),B=n(2979),F=n(8949),j=n(4583),G=n(4865),H=n(393),W=n(5303),$=n(647),z=n(145),q=n(9367),V=n(6011),Y=n(2501),J=n(7990),K=n(8360),X=n(1179),Q=n(2958),Z=n(5873),ee=n(2215),te=n(5003),ne=n(431),re=n(1312),oe=n(7536),ie=n(262),se=n(4208),ae=n(699),ce=n(4867),ue=n(875),le=n(8398),de=n(3090),pe=n(1096),fe=n(8414),ge=n(6855),me=n(9314),he=n(7373),_e=n(5296),Se=n(8604),ye=n(6098),Te=n(9320),Ee=n(9575),ve=n(7509),be=n(8096),Ie=n(1353),Ae=n(1472),Re=n(4746),Oe=n(8424),Ne=n(1321),Ce=n(784),we=n(9200),ke=n(4469),Pe=n(3609),xe=n(153),Me=n(2833),Ue=n(7900),Le=n(1811),De=n(9960),Be=n(3969),Fe=n(5770),je=n(9048),Ge=n(9759),He=n(3551),We=n(1535),$e=n(8532),ze=n(4702),qe=n(5110),Ve=n(6940),Ye=n(6744),Je=n(8585),Ke=n(6159),Xe=n(3155),Qe=n(1901),Ze=n(9499),et=n(3513),tt=n(561),nt=n(9025),rt=n(9721),ot=n(1148),it=n(4486),st=n(6869),at=n(3336),ct=n(1857),ut=n(9188),lt=n(4841),dt=n(8119),pt=n(5684),ft=n(9635),gt=n(3395),mt=n(2918),ht=n(3807),_t=n(8913),St=n(4548),yt=n(3053),Tt=n(6102),Et=n(7274),vt=n(9235);t.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,t.getCapturedScopesOnSpan=o.getCapturedScopesOnSpan,t.setCapturedScopesOnSpan=o.setCapturedScopesOnSpan,t.TRACING_DEFAULTS=i.TRACING_DEFAULTS,t.startIdleSpan=i.startIdleSpan,t.SentrySpan=s.SentrySpan,t.SentryNonRecordingSpan=a.SentryNonRecordingSpan,t.SPAN_STATUS_ERROR=c.SPAN_STATUS_ERROR,t.SPAN_STATUS_OK=c.SPAN_STATUS_OK,t.SPAN_STATUS_UNSET=c.SPAN_STATUS_UNSET,t.getSpanStatusFromHttpCode=c.getSpanStatusFromHttpCode,t.setHttpStatus=c.setHttpStatus,t.continueTrace=u.continueTrace,t.startInactiveSpan=u.startInactiveSpan,t.startNewTrace=u.startNewTrace,t.startSpan=u.startSpan,t.startSpanManual=u.startSpanManual,t.suppressTracing=u.suppressTracing,t.withActiveSpan=u.withActiveSpan,t.getDynamicSamplingContextFromClient=l.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromScope=l.getDynamicSamplingContextFromScope,t.getDynamicSamplingContextFromSpan=l.getDynamicSamplingContextFromSpan,t.spanToBaggageHeader=l.spanToBaggageHeader,t.setMeasurement=d.setMeasurement,t.timedEventsToMeasurements=d.timedEventsToMeasurements,t.sampleSpan=p.sampleSpan,t.logSpanEnd=f.logSpanEnd,t.logSpanStart=f.logSpanStart,t.SEMANTIC_ATTRIBUTE_CACHE_HIT=g.SEMANTIC_ATTRIBUTE_CACHE_HIT,t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=g.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,t.SEMANTIC_ATTRIBUTE_CACHE_KEY=g.SEMANTIC_ATTRIBUTE_CACHE_KEY,t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=g.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=g.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=g.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME=g.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=g.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=g.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=g.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=g.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE=g.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=g.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.SEMANTIC_ATTRIBUTE_URL_FULL=g.SEMANTIC_ATTRIBUTE_URL_FULL,t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE=g.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,t.createEventEnvelope=m.createEventEnvelope,t.createSessionEnvelope=m.createSessionEnvelope,t.createSpanEnvelope=m.createSpanEnvelope,t.addEventProcessor=h.addEventProcessor,t.captureCheckIn=h.captureCheckIn,t.captureEvent=h.captureEvent,t.captureException=h.captureException,t.captureMessage=h.captureMessage,t.captureSession=h.captureSession,t.close=h.close,t.endSession=h.endSession,t.flush=h.flush,t.isEnabled=h.isEnabled,t.isInitialized=h.isInitialized,t.lastEventId=h.lastEventId,t.setContext=h.setContext,t.setExtra=h.setExtra,t.setExtras=h.setExtras,t.setTag=h.setTag,t.setTags=h.setTags,t.setUser=h.setUser,t.startSession=h.startSession,t.withMonitor=h.withMonitor,t.getClient=_.getClient,t.getCurrentScope=_.getCurrentScope,t.getGlobalScope=_.getGlobalScope,t.getIsolationScope=_.getIsolationScope,t.getTraceContextFromScope=_.getTraceContextFromScope,t.withIsolationScope=_.withIsolationScope,t.withScope=_.withScope,t.getDefaultCurrentScope=S.getDefaultCurrentScope,t.getDefaultIsolationScope=S.getDefaultIsolationScope,t.setAsyncContextStrategy=y.setAsyncContextStrategy,t.getGlobalSingleton=T.getGlobalSingleton,t.getMainCarrier=T.getMainCarrier,t.closeSession=E.closeSession,t.makeSession=E.makeSession,t.updateSession=E.updateSession,t.Scope=v.Scope,t.notifyEventProcessors=b.notifyEventProcessors,t.getEnvelopeEndpointWithUrlEncodedAuth=I.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=I.getReportDialogEndpoint,t.Client=A.Client,t.ServerRuntimeClient=R.ServerRuntimeClient,t.initAndBind=O.initAndBind,t.setCurrentClient=O.setCurrentClient,t.createTransport=N.createTransport,t.makeOfflineTransport=C.makeOfflineTransport,t.makeMultiplexedTransport=w.makeMultiplexedTransport,t.addIntegration=k.addIntegration,t.defineIntegration=k.defineIntegration,t.getIntegrationsToSetup=k.getIntegrationsToSetup,t.applyScopeDataToEvent=P.applyScopeDataToEvent,t.mergeScopeData=P.mergeScopeData,t.prepareEvent=x.prepareEvent,t.createCheckInEnvelope=M.createCheckInEnvelope,t.hasSpansEnabled=U.hasSpansEnabled,t.isSentryRequestUrl=L.isSentryRequestUrl,t.handleCallbackErrors=D.handleCallbackErrors,t.fmt=B.fmt,t.parameterize=B.parameterize,t.addAutoIpAddressToSession=F.addAutoIpAddressToSession,t.addAutoIpAddressToUser=F.addAutoIpAddressToUser,t.addChildSpanToSpan=j.addChildSpanToSpan,t.convertSpanLinksForEnvelope=j.convertSpanLinksForEnvelope,t.getActiveSpan=j.getActiveSpan,t.getRootSpan=j.getRootSpan,t.getSpanDescendants=j.getSpanDescendants,t.getStatusMessage=j.getStatusMessage,t.spanIsSampled=j.spanIsSampled,t.spanTimeInputToSeconds=j.spanTimeInputToSeconds,t.spanToJSON=j.spanToJSON,t.spanToTraceContext=j.spanToTraceContext,t.spanToTraceHeader=j.spanToTraceHeader,t.updateSpanName=j.updateSpanName,t._INTERNAL_setSpanForScope=G._setSpanForScope,t.parseSampleRate=H.parseSampleRate,t.applySdkMetadata=W.applySdkMetadata,t.getTraceData=$.getTraceData,t.getTraceMetaTags=z.getTraceMetaTags,t.debounce=q.debounce,t.extractQueryParamsFromUrl=V.extractQueryParamsFromUrl,t.headersToDict=V.headersToDict,t.httpHeadersToSpanAttributes=V.httpHeadersToSpanAttributes,t.httpRequestToRequestData=V.httpRequestToRequestData,t.winterCGHeadersToDict=V.winterCGHeadersToDict,t.winterCGRequestToRequestData=V.winterCGRequestToRequestData,t.DEFAULT_ENVIRONMENT=Y.DEFAULT_ENVIRONMENT,t.addBreadcrumb=J.addBreadcrumb,t.functionToStringIntegration=K.functionToStringIntegration,t.eventFiltersIntegration=X.eventFiltersIntegration,t.inboundFiltersIntegration=X.inboundFiltersIntegration,t.linkedErrorsIntegration=Q.linkedErrorsIntegration,t.moduleMetadataIntegration=Z.moduleMetadataIntegration,t.requestDataIntegration=ee.requestDataIntegration,t.captureConsoleIntegration=te.captureConsoleIntegration,t.dedupeIntegration=ne.dedupeIntegration,t.extraErrorDataIntegration=re.extraErrorDataIntegration,t.rewriteFramesIntegration=oe.rewriteFramesIntegration,t.instrumentSupabaseClient=ie.instrumentSupabaseClient,t.supabaseIntegration=ie.supabaseIntegration,t.zodErrorsIntegration=se.zodErrorsIntegration,t.thirdPartyErrorFilterIntegration=ae.thirdPartyErrorFilterIntegration,t.consoleIntegration=ce.consoleIntegration,t.featureFlagsIntegration=ue.featureFlagsIntegration,t.growthbookIntegration=le.growthbookIntegration,t.profiler=de.profiler,t.instrumentFetchRequest=pe.instrumentFetchRequest,t.trpcMiddleware=fe.trpcMiddleware,t.wrapMcpServerWithSentry=ge.wrapMcpServerWithSentry,t.captureFeedback=me.captureFeedback,t._INTERNAL_captureLog=he._INTERNAL_captureLog,t._INTERNAL_captureSerializedLog=he._INTERNAL_captureSerializedLog,t._INTERNAL_flushLogsBuffer=he._INTERNAL_flushLogsBuffer,t.logger=_e,t.consoleLoggingIntegration=Se.consoleLoggingIntegration,t._INTERNAL_captureMetric=ye._INTERNAL_captureMetric,t._INTERNAL_captureSerializedMetric=ye._INTERNAL_captureSerializedMetric,t._INTERNAL_flushMetricsBuffer=ye._INTERNAL_flushMetricsBuffer,t.metrics=Te,t.createConsolaReporter=Ee.createConsolaReporter,t.addVercelAiProcessors=ve.addVercelAiProcessors,t._INTERNAL_cleanupToolCallSpan=be._INTERNAL_cleanupToolCallSpan,t._INTERNAL_getSpanForToolCallId=be._INTERNAL_getSpanForToolCallId,t.instrumentOpenAiClient=Ie.instrumentOpenAiClient,t.OPENAI_INTEGRATION_NAME=Ae.OPENAI_INTEGRATION_NAME,t.instrumentAnthropicAiClient=Re.instrumentAnthropicAiClient,t.ANTHROPIC_AI_INTEGRATION_NAME=Oe.ANTHROPIC_AI_INTEGRATION_NAME,t.instrumentGoogleGenAIClient=Ne.instrumentGoogleGenAIClient,t.GOOGLE_GENAI_INTEGRATION_NAME=Ce.GOOGLE_GENAI_INTEGRATION_NAME,t.createLangChainCallbackHandler=we.createLangChainCallbackHandler,t.LANGCHAIN_INTEGRATION_NAME=ke.LANGCHAIN_INTEGRATION_NAME,t._INTERNAL_FLAG_BUFFER_SIZE=Pe._INTERNAL_FLAG_BUFFER_SIZE,t._INTERNAL_MAX_FLAGS_PER_SPAN=Pe._INTERNAL_MAX_FLAGS_PER_SPAN,t._INTERNAL_addFeatureFlagToActiveSpan=Pe._INTERNAL_addFeatureFlagToActiveSpan,t._INTERNAL_copyFlagsFromScopeToEvent=Pe._INTERNAL_copyFlagsFromScopeToEvent,t._INTERNAL_insertFlagToScope=Pe._INTERNAL_insertFlagToScope,t.applyAggregateErrorsToEvent=xe.applyAggregateErrorsToEvent,t.getBreadcrumbLogLevelFromHttpStatusCode=Me.getBreadcrumbLogLevelFromHttpStatusCode,t.getComponentName=Ue.getComponentName,t.getLocationHref=Ue.getLocationHref,t.htmlTreeAsString=Ue.htmlTreeAsString,t.dsnFromString=Le.dsnFromString,t.dsnToString=Le.dsnToString,t.makeDsn=Le.makeDsn,t.SentryError=De.SentryError,t.GLOBAL_OBJ=Be.GLOBAL_OBJ,t.addConsoleInstrumentationHandler=Fe.addConsoleInstrumentationHandler,t.addFetchEndInstrumentationHandler=je.addFetchEndInstrumentationHandler,t.addFetchInstrumentationHandler=je.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=Ge.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=He.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=We.addHandler,t.maybeInstrument=We.maybeInstrument,t.resetInstrumentationHandlers=We.resetInstrumentationHandlers,t.triggerHandlers=We.triggerHandlers,t.isDOMError=$e.isDOMError,t.isDOMException=$e.isDOMException,t.isElement=$e.isElement,t.isError=$e.isError,t.isErrorEvent=$e.isErrorEvent,t.isEvent=$e.isEvent,t.isInstanceOf=$e.isInstanceOf,t.isParameterizedString=$e.isParameterizedString,t.isPlainObject=$e.isPlainObject,t.isPrimitive=$e.isPrimitive,t.isRegExp=$e.isRegExp,t.isString=$e.isString,t.isSyntheticEvent=$e.isSyntheticEvent,t.isThenable=$e.isThenable,t.isVueViewModel=$e.isVueViewModel,t.isBrowser=ze.isBrowser,t.CONSOLE_LEVELS=qe.CONSOLE_LEVELS,t.consoleSandbox=qe.consoleSandbox,t.debug=qe.debug,t.originalConsoleMethods=qe.originalConsoleMethods,t.addContextToFrame=Ve.addContextToFrame,t.addExceptionMechanism=Ve.addExceptionMechanism,t.addExceptionTypeValue=Ve.addExceptionTypeValue,t.checkOrSetAlreadyCaught=Ve.checkOrSetAlreadyCaught,t.getEventDescription=Ve.getEventDescription,t.parseSemver=Ve.parseSemver,t.uuid4=Ve.uuid4,t.isNodeEnv=Ye.isNodeEnv,t.loadModule=Ye.loadModule,t.normalize=Je.normalize,t.normalizeToSize=Je.normalizeToSize,t.normalizeUrlToBase=Je.normalizeUrlToBase,t.addNonEnumerableProperty=Ke.addNonEnumerableProperty,t.convertToPlainObject=Ke.convertToPlainObject,t.dropUndefinedKeys=Ke.dropUndefinedKeys,t.extractExceptionKeysForMessage=Ke.extractExceptionKeysForMessage,t.fill=Ke.fill,t.getOriginalFunction=Ke.getOriginalFunction,t.markFunctionWrapped=Ke.markFunctionWrapped,t.objectify=Ke.objectify,t.basename=Xe.basename,t.dirname=Xe.dirname,t.isAbsolute=Xe.isAbsolute,t.join=Xe.join,t.normalizePath=Xe.normalizePath,t.relative=Xe.relative,t.resolve=Xe.resolve,t.SENTRY_BUFFER_FULL_ERROR=Qe.SENTRY_BUFFER_FULL_ERROR,t.makePromiseBuffer=Qe.makePromiseBuffer,t.severityLevelFromString=Ze.severityLevelFromString,t.replaceExports=et.replaceExports,t.UNKNOWN_FUNCTION=tt.UNKNOWN_FUNCTION,t.createStackParser=tt.createStackParser,t.getFramesFromEvent=tt.getFramesFromEvent,t.getFunctionName=tt.getFunctionName,t.stackParserFromStackParserOptions=tt.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=tt.stripSentryFramesAndReverse,t.filenameIsInApp=nt.filenameIsInApp,t.node=nt.node,t.nodeStackLineParser=nt.nodeStackLineParser,t.isMatchingPattern=rt.isMatchingPattern,t.safeJoin=rt.safeJoin,t.snipLine=rt.snipLine,t.stringMatchesSomePattern=rt.stringMatchesSomePattern,t.truncate=rt.truncate,t.isNativeFunction=ot.isNativeFunction,t.supportsDOMError=ot.supportsDOMError,t.supportsDOMException=ot.supportsDOMException,t.supportsErrorEvent=ot.supportsErrorEvent,t.supportsFetch=ot.supportsFetch,t.supportsHistory=ot.supportsHistory,t.supportsNativeFetch=ot.supportsNativeFetch,t.supportsReferrerPolicy=ot.supportsReferrerPolicy,t.supportsReportingObserver=ot.supportsReportingObserver,t.SyncPromise=it.SyncPromise,t.rejectedSyncPromise=it.rejectedSyncPromise,t.resolvedSyncPromise=it.resolvedSyncPromise,t.browserPerformanceTimeOrigin=st.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=st.dateTimestampInSeconds,t.timestampInSeconds=st.timestampInSeconds,t.TRACEPARENT_REGEXP=at.TRACEPARENT_REGEXP,t.extractTraceparentData=at.extractTraceparentData,t.generateSentryTraceHeader=at.generateSentryTraceHeader,t.propagationContextFromHeaders=at.propagationContextFromHeaders,t.shouldContinueTrace=at.shouldContinueTrace,t.getSDKSource=ct.getSDKSource,t.isBrowserBundle=ct.isBrowserBundle,t.addItemToEnvelope=ut.addItemToEnvelope,t.createAttachmentEnvelopeItem=ut.createAttachmentEnvelopeItem,t.createEnvelope=ut.createEnvelope,t.createEventEnvelopeHeaders=ut.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=ut.createSpanEnvelopeItem,t.envelopeContainsItemType=ut.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=ut.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=ut.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=ut.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=ut.parseEnvelope,t.serializeEnvelope=ut.serializeEnvelope,t.createClientReportEnvelope=lt.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=dt.DEFAULT_RETRY_AFTER,t.disabledUntil=dt.disabledUntil,t.isRateLimited=dt.isRateLimited,t.parseRetryAfterHeader=dt.parseRetryAfterHeader,t.updateRateLimits=dt.updateRateLimits,t.MAX_BAGGAGE_STRING_LENGTH=pt.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=pt.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=pt.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=pt.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=pt.dynamicSamplingContextToSentryBaggageHeader,t.objectToBaggageHeader=pt.objectToBaggageHeader,t.parseBaggageHeader=pt.parseBaggageHeader,t.getHttpSpanDetailsFromUrlObject=ft.getHttpSpanDetailsFromUrlObject,t.getSanitizedUrlString=ft.getSanitizedUrlString,t.getSanitizedUrlStringFromUrlObject=ft.getSanitizedUrlStringFromUrlObject,t.isURLObjectRelative=ft.isURLObjectRelative,t.parseStringToURLObject=ft.parseStringToURLObject,t.parseUrl=ft.parseUrl,t.stripUrlQueryAndFragment=ft.stripUrlQueryAndFragment,t.eventFromMessage=gt.eventFromMessage,t.eventFromUnknownInput=gt.eventFromUnknownInput,t.exceptionFromError=gt.exceptionFromError,t.parseStackFrames=gt.parseStackFrames,t.callFrameToStackFrame=mt.callFrameToStackFrame,t.watchdogTimer=mt.watchdogTimer,t.LRUMap=ht.LRUMap,t.generateSpanId=_t.generateSpanId,t.generateTraceId=_t.generateTraceId,t.vercelWaitUntil=St.vercelWaitUntil,t.flushIfServerless=yt.flushIfServerless,t.SDK_VERSION=Tt.SDK_VERSION,t.getDebugImagesForResources=Et.getDebugImagesForResources,t.getFilenameToDebugIdMap=Et.getFilenameToDebugIdMap,t.escapeStringForRegex=vt.escapeStringForRegex},7900:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532),o=n(3969).GLOBAL_OBJ;function i(e,t){const n=e,i=[];if(!n?.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const s=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(s?.length)s.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&r.isString(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=n.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}t.getComponentName=function(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null},t.getLocationHref=function(){try{return o.document.location.href}catch{return""}},t.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,a=0;const c=" > ",u=c.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(l=i(n,d),!("html"===l||s>1&&a+o.length*u+l.length>=p));)o.push(l),a+=l.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}},7990:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(5110),i=n(6869),s=100;t.addBreadcrumb=function(e,t){const n=r.getClient(),a=r.getIsolationScope();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=s}=n.getOptions();if(u<=0)return;const l={timestamp:i.dateTimestampInSeconds(),...e},d=c?o.consoleSandbox(()=>c(l,t)):l;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),a.addBreadcrumb(d,u))}},8014:(e,t,n)=>{"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8096:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2434),o=n(4668);t._INTERNAL_cleanupToolCallSpan=function(e){o.toolCallSpanMap.delete(e)},t._INTERNAL_getSpanForToolCallId=function(e){return o.toolCallSpanMap.get(e)},t.accumulateTokensForParent=function(e,t){const n=e.parent_span_id;if(!n)return;const o=e.data[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],i=e.data[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof o||"number"==typeof i){const e=t.get(n)||{inputTokens:0,outputTokens:0};"number"==typeof o&&(e.inputTokens+=o),"number"==typeof i&&(e.outputTokens+=i),t.set(n,e)}},t.applyAccumulatedTokens=function(e,t){const n=t.get(e.span_id);n&&e.data&&(n.inputTokens>0&&(e.data[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.inputTokens),n.outputTokens>0&&(e.data[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.outputTokens),(n.inputTokens>0||n.outputTokens>0)&&(e.data["gen_ai.usage.total_tokens"]=n.inputTokens+n.outputTokens))}},8119:(e,t)=>{function n(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function r(e,t){return e[t]||e.all||0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEFAULT_RETRY_AFTER=6e4,t.disabledUntil=r,t.isRateLimited=function(e,t,n=Date.now()){return r(e,t)>n},t.parseRetryAfterHeader=n,t.updateRateLimits=function(e,{statusCode:t,headers:r},o=Date.now()){const i={...e},s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,r]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(i[e]=o+a);else i.all=o+a}else a?i.all=o+n(a,o):429===t&&(i.all=o+6e4);return i}},8183:(e,t,n)=>{"use strict";var r=n(9504),o=n(1291),i=n(655),s=n(7750),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=i(s(t)),p=o(n),f=d.length;return p<0||p>=f?e?"":void 0:(r=c(d,p))<55296||r>56319||p+1===f||(l=c(d,p+1))<56320||l>57343?e?a(d,p):r:e?u(d,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},8195:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(6421),s="SpotlightBrowser",a=r.defineIntegration((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:s,setup:()=>{i.DEBUG_BUILD&&r.debug.log("Using Sidecar URL",t)},processEvent:e=>c(e)?null:e,afterAllSetup:e=>{!function(e,t){const n=o.getNativeImplementation("fetch");let i=0;e.on("beforeEnvelope",e=>{i>3?r.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",i):n(t,{method:"POST",body:r.serializeEnvelope(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(i=0)},e=>{i++,r.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});function c(e){return Boolean("transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight")))}t.INTEGRATION_NAME=s,t.isSpotlightInteraction=c,t.spotlightBrowserIntegration=a},8227:(e,t,n)=>{"use strict";var r=n(4576),o=n(5745),i=n(9297),s=n(3392),a=n(4495),c=n(7040),u=r.Symbol,l=o("wks"),d=c?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:d("Symbol."+e)),l[e]}},8230:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(5363),i=n(2434),s=n(2856);function a(e,t,n,i){if(!e||"object"!=typeof e)return;const s=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error?.type??"unknown_error"}),r.captureException(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,i);s||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}t.instrumentAsyncIterableStream=async function*(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)a(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]:r.responseId}),r.responseModel&&t.setAttributes({[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:r.responseModel}),s.setTokenUsageAttributes(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),r.finishReasons.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r.toolCalls)}),t.end()}},t.instrumentMessageStream=function(e,t,n){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{a(e,c,n,t)}),e.on("message",()=>{!function(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]:e.responseId}),e.responseModel&&t.setAttributes({[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:e.responseModel}),s.setTokenUsageAttributes(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),e.finishReasons.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(e.toolCalls)}),t.end())}(c,t,n)}),e.on("error",e=>{r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"stream_error"}),t.end())}),e}},8242:(e,t,n)=>{"use strict";var r=n(9565),o=n(7751),i=n(8227),s=n(6840);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&s(t,a,function(e){return r(n,this)},{arity:1})}},8265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},8299:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3396),i=n(6421),s=n(7670),a=r.defineIntegration(()=>({name:"BrowserSession",setupOnce(){void 0!==s.WINDOW.document?(r.startSession({ignoreDuration:!0}),r.captureSession(),o.addHistoryInstrumentationHandler(({from:e,to:t})=>{void 0!==e&&e!==t&&(r.startSession({ignoreDuration:!0}),r.captureSession())})):i.DEBUG_BUILD&&r.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}));t.browserSessionIntegration=a},8346:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(4583);t.logSpanEnd=function(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >"}=i.spanToJSON(e),{spanId:s}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${i.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${s}`;o.debug.log(a)},t.logSpanStart=function(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:s}=i.spanToJSON(e),{spanId:a}=e.spanContext(),c=i.spanIsSampled(e),u=i.getRootSpan(e),l=u===e,d=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(s&&p.push(`parent ID: ${s}`),!l){const{op:e,description:t}=i.spanToJSON(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}o.debug.log(`${d}\n ${p.join("\n ")}`)}},8360:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(2430),i=n(6159);let s;const a=new WeakMap,c=o.defineIntegration(()=>({name:"FunctionToString",setupOnce(){s=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=i.getOriginalFunction(this),n=a.has(r.getClient())&&void 0!==t?t:this;return s.apply(n,e)}}catch{}},setup(e){a.set(e,!0)}}));t.functionToStringIntegration=c},8368:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(327),i=n(1499),s=n(2121),a=r(n(197),[]),c=n(3685).e$,u=function(){function e(){}return e.initializeSentry=function(){e.isInitialized||(o.init({debug:!1,dsn:c.dsn,integrations:[],beforeSend:function(t,n){return e.cleanDucktype(t,n)},release:"".concat(c.projectName,"@").concat(s.version)}),e.isInitialized=!0)},e.isInitialized=!1,e.logWarning=function(e,t){console.warn("IMPOSIUM\n".concat(a[e][t]))},e.trapError=function(t,n,r){void 0===r&&(r=null),e.initializeSentry(),t=t.log?t:new i.UncaughtError("generic",t),n&&t.setStoryId(n),r&&r(t),t.log(),o.withScope(function(e){e.setTag("type",t.type),e.setTag("version",t.version),e.setTag("storyId",n||"<not_set>"),t.experienceId&&e.setTag("experienceId",t.experienceId),t.axiosError&&("object"==typeof t.axiosError.response?e.setExtra("response",t.axiosError.response):"object"==typeof t.axiosError.request?(e.setExtra("request",t.axiosError.request),e.setExtra("reuqestConfig",t.axiosError.config)):(e.setExtra("axiosErrorMessage",t.axiosError.message),e.setExtra("reuqestConfig",t.axiosError.config))),t.closeEvent&&e.setExtra("socketCloseEvent",{code:t.closeEvent.code,type:t.closeEvent.type,timestamp:t.closeEvent.timeStamp,wsUrl:t.closeEvent.target.url,wsBufferedAmount:t.closeEvent.target.bufferedAmount}),o.captureException(t)})},e.cleanDucktype=function(e,t){return void 0===e.extra||e.extra.Error&&(delete e.extra.Error.log,delete e.extra.Error.logHeader,delete e.extra.Error.setStoryId,e.extra.Error.axiosError&&delete e.extra.Error.axiosError,e.extra.Error.closeEvent&&delete e.extra.Error.closeEvent),e},e}();t.default=u},8398:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2430),o=n(3609),i=n(6159),s=r.defineIntegration(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&i.fill(t,"isOn",a),"function"==typeof t.getFeatureValue&&i.fill(t,"getFeatureValue",a)},processEvent:(e,t,n)=>o._INTERNAL_copyFlagsFromScopeToEvent(e)}));function a(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(o._INTERNAL_insertFlagToScope(n,r),o._INTERNAL_addFeatureFlagToActiveSpan(n,r)),r}}t.growthbookIntegration=s},8412:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(3872),i=n(1604),s=[],a=new Map,c={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"};function u(){return o.addInpInstrumentationHandler(l)}const l=({metric:e})=>{if(null==e.value)return;const t=i.msToSec(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&c[t.name]);if(!n)return;const{interactionId:o}=n,s=c[n.name],u=i.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),l=r.getActiveSpan(),d=l?r.getRootSpan(l):void 0,p=(null!=o?a.get(o):void 0)||d,f=p?r.spanToJSON(p).description:r.getCurrentScope().getScopeData().transactionName,g=r.htmlTreeAsString(n.target),m={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${s}`,[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},h=i.startStandaloneWebVitalSpan({name:g,transaction:f,attributes:m,startTime:u});h&&(h.addEvent("inp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),h.end(u+t))};t._onInp=l,t._trackINP=u,t.registerInpInteractionListener=function(){const e=({entries:e})=>{const t=r.getActiveSpan(),n=t&&r.getRootSpan(t);e.forEach(e=>{if(!o.isPerformanceEventTiming(e)||!n)return;const t=e.interactionId;if(null!=t&&!a.has(t)){if(s.length>10){const e=s.shift();a.delete(e)}s.push(t),a.set(t,n)}})};o.addPerformanceInstrumentationHandler("event",e),o.addPerformanceInstrumentationHandler("first-input",e)},t.startTrackingINP=function(){if(i.getBrowserPerformanceAPI()&&r.browserPerformanceTimeOrigin()){const e=u();return()=>{e()}}return()=>{}}},8414:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(9183),i=n(2751),s=n(6159),a=n(8585),c=n(5908),u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};t.trpcMiddleware=function(e={}){return async function(t){const{path:n,type:l,next:d,rawInput:p,getRawInput:f}=t,g=r.getClient(),m=g?.getOptions(),h={procedure_path:n,procedure_type:l};if(s.addNonEnumerableProperty(h,"__sentry_override_normalization_depth__",1+(m?.normalizeDepth??5)),(void 0!==e.attachRpcInput?e.attachRpcInput:m?.sendDefaultPii)&&(void 0!==p&&(h.input=a.normalize(p)),void 0!==f&&"function"==typeof f))try{const e=await f();h.input=a.normalize(e)}catch{}return r.withIsolationScope(t=>(t.setContext("trpc",h),c.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!e.forceTransaction},async e=>{try{const t=await d();return function(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&o.captureException(e.error,u)}(t),e.end(),t}catch(t){throw o.captureException(t,u),e.end(),t}})))}}},8418:(e,t,n)=>{"use strict";var r=n(8473);e.exports=r},8424:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.ANTHROPIC_AI_INSTRUMENTED_METHODS=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"],t.ANTHROPIC_AI_INTEGRATION_NAME="Anthropic_AI"},8473:(e,t,n)=>{"use strict";n(9085);var r=n(9167);e.exports=r.Object.assign},8480:(e,t,n)=>{"use strict";var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},8523:(e,t,n)=>{"use strict";n(6468)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(6938))},8532:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=Object.prototype.toString;function r(e,t){return n.call(e)===`[object ${t}]`}function o(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function i(e){return r(e,"Object")}function s(e,t){try{return e instanceof t}catch{return!1}}t.isDOMError=function(e){return r(e,"DOMError")},t.isDOMException=function(e){return r(e,"DOMException")},t.isElement=function(e){return"undefined"!=typeof Element&&s(e,Element)},t.isError=function(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return s(e,Error)}},t.isErrorEvent=function(e){return r(e,"ErrorEvent")},t.isEvent=function(e){return"undefined"!=typeof Event&&s(e,Event)},t.isInstanceOf=s,t.isParameterizedString=o,t.isPlainObject=i,t.isPrimitive=function(e){return null===e||o(e)||"object"!=typeof e&&"function"!=typeof e},t.isRegExp=function(e){return r(e,"RegExp")},t.isRequest=function(e){return"undefined"!=typeof Request&&s(e,Request)},t.isString=function(e){return r(e,"String")},t.isSyntheticEvent=function(e){return i(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},t.isThenable=function(e){return Boolean(e?.then&&"function"==typeof e.then)},t.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},8551:(e,t,n)=>{"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},8574:(e,t,n)=>{"use strict";var r=n(4215);e.exports="NODE"===r},8577:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7742);let i;function s(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const s=i,a=function(e){try{return new URL(e,o.WINDOW.location.origin).toString()}catch{return e}}(String(n));if(i=a,s===a)return e.apply(this,t);const c={from:s,to:a};r.triggerHandlers("history",c)}return e.apply(this,t)}}o.WINDOW.addEventListener("popstate",()=>{const e=o.WINDOW.location.href,t=i;if(i=e,t===e)return;const n={from:t,to:e};r.triggerHandlers("history",n)}),r.supportsHistory()&&(r.fill(o.WINDOW.history,"pushState",e),r.fill(o.WINDOW.history,"replaceState",e))}t.addHistoryInstrumentationHandler=function(e){const t="history";r.addHandler(t,e),r.maybeInstrument(t,s)},t.instrumentHistory=s},8585:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532),o=n(6159),i=n(561);function s(e,t=100,n=1/0){try{return a("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t,s=1/0,c=1/0,u=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[l,d]=u;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(r.isVueViewModel(t))return"[VueViewModel]";if(r.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${i.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const o=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(o)?`[HTMLElement: ${o}]`:`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:s;if(0===f)return p.replace("object ","");if(l(t))return"[Circular ~]";const g=t;if(g&&"function"==typeof g.toJSON)try{return a("",g.toJSON(),f-1,c,u)}catch{}const m=Array.isArray(t)?[]:{};let h=0;const _=o.convertToPlainObject(t);for(const e in _){if(!Object.prototype.hasOwnProperty.call(_,e))continue;if(h>=c){m[e]="[MaxProperties ~]";break}const t=_[e];m[e]=a(e,t,f-1,c,u),h++}return d(t),m}t.normalize=s,t.normalizeToSize=function e(t,n=3,r=102400){const o=s(t,n);return i=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?e(t,n-1,r):o;var i},t.normalizeUrlToBase=function(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}},8604:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(5770),s=n(2430),a=n(2751),c=n(5110),u=n(7373),l=n(9075),d={[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},p=s.defineIntegration((e={})=>{const t=e.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){const{enableLogs:n,normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e.getOptions();n?i.addConsoleInstrumentationHandler(({args:n,level:o})=>{if(r.getClient()!==e||!t.includes(o))return;const i=n[0],c=n.slice(1);if("assert"===o){if(!i){const e=c.length>0?`Assertion failed: ${l.formatConsoleArgs(c,s,a)}`:"Assertion failed";u._INTERNAL_captureLog({level:"error",message:e,attributes:d})}return}const p="log"===o,f=n.length>1&&"string"==typeof n[0]&&!l.hasConsoleSubstitutions(n[0]),g={...d,...f?l.createConsoleTemplateAttributes(i,c):{}};u._INTERNAL_captureLog({level:p?"info":o,message:l.formatConsoleArgs(n,s,a),severityNumber:p?10:void 0,attributes:g})}):o.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled")}}});t.consoleLoggingIntegration=p},8622:(e,t,n)=>{"use strict";var r=n(4576),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8686:(e,t,n)=>{"use strict";var r=n(3724),o=n(9039);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},8773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},8826:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670),s=n(132);t.startProfileForSpan=function(e){let t;s.isAutomatedPageLoadSpan(e)&&(t=1e3*r.timestampInSeconds());const n=s.startJSSelfProfile();if(!n)return;o.DEBUG_BUILD&&r.debug.log(`[Profiling] started profiling span: ${r.spanToJSON(e).description}`);const a=r.uuid4();let c=null;async function u(){if(e&&n){if(!c)return n.stop().then(t=>{l&&(i.WINDOW.clearTimeout(l),l=void 0),o.DEBUG_BUILD&&r.debug.log(`[Profiling] stopped profiling of span: ${r.spanToJSON(e).description}`),t?(c=t,s.addProfileToGlobalCache(a,t)):o.DEBUG_BUILD&&r.debug.log(`[Profiling] profiler returned null profile for: ${r.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{o.DEBUG_BUILD&&r.debug.log("[Profiling] error while stopping profiler:",e)});o.DEBUG_BUILD&&r.debug.log("[Profiling] profile for:",r.spanToJSON(e).description,"already exists, returning early")}}r.getCurrentScope().setContext("profile",{profile_id:a,start_timestamp:t});let l=i.WINDOW.setTimeout(()=>{o.DEBUG_BUILD&&r.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",r.spanToJSON(e).description),u()},s.MAX_PROFILE_DURATION_MS);const d=e.end.bind(e);e.end=function(){return e?(u().then(()=>{d()},()=>{d()}),e):d()}}},8844:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1811),o=n(9188);function i(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}t.createMetricContainerEnvelopeItem=i,t.createMetricEnvelope=function(e,t,n,s){const a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&s&&(a.dsn=r.dsnToString(s)),o.createEnvelope(a,[i(e)])}},8879:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9491),o=n(1559),i=n(1548),s=n(3181),a=n(1188),c=n(3851),u=n(5135),l=n(135),d=n(7185),p=[200,500];t.INPThresholds=p,t.onINP=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&l.whenActivated(()=>{u.initInteractionCountPolyfill();const n=o.initMetric("INP");let l;const f=i.initUnique(t,s.InteractionManager),g=e=>{d.whenIdleOrHidden(()=>{for(const t of e)f._processEntry(t);const t=f._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,l())})},m=a.observe("event",g,{durationThreshold:t.durationThreshold??40});l=r.bindReporter(e,n,p,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),c.onHidden(()=>{g(m.takeRecords()),l(!0)}))})}},8913:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6940);t.generateSpanId=function(){return r.uuid4().substring(16)},t.generateTraceId=function(){return r.uuid4()}},8945:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(2751),i=n(5110),s=n(4583);t.setMeasurement=function(e,t,n,a=s.getActiveSpan()){const c=a&&s.getRootSpan(a);c&&(r.DEBUG_BUILD&&i.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),c.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))},t.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}},8949:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.addAutoIpAddressToSession=function(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")},t.addAutoIpAddressToUser=function(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}},8968:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(7670),i=r.defineIntegration(()=>({name:"HttpContext",preprocessEvent(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=o.getHttpRequestData(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}));t.httpContextIntegration=i},8974:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},8981:(e,t,n)=>{"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},8998:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(2751),i=n(5908),s=n(5870),a=n(2230),c=n(6332),u=n(4827),l=n(9562);function d(e,t){return t?`${e} ${t}`:e}function p(e){let t,n;switch(e){case"request":t=a.MCP_SERVER_OP_VALUE,n=a.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":t=a.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,n=a.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":t=a.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,n=a.MCP_NOTIFICATION_ORIGIN_VALUE}return{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a.MCP_ROUTE_SOURCE_VALUE}}function f(e){const{type:t,message:n,transport:o,extra:f,callback:g}=e,{method:m}=n,h=n.params;let _;_="request"===t?d(m,c.extractTargetInfo(m,h||{}).target):m;const S={...l.buildTransportAttributes(o,f),[a.MCP_METHOD_NAME_ATTRIBUTE]:m,...s.buildTypeSpecificAttributes(t,n,h),...p(t)},y=r.getClient(),T=Boolean(y?.getOptions().sendDefaultPii),E=u.filterMcpPiiFromSpanData(S,T);return i.startSpan({name:_,forceTransaction:!0,attributes:E},g)}t.buildMcpServerSpanConfig=function(e,t,n){const{method:o}=e,i=e.params,f=d(o,c.extractTargetInfo(o,i||{}).target),g={...l.buildTransportAttributes(t,n),[a.MCP_METHOD_NAME_ATTRIBUTE]:o,...s.buildTypeSpecificAttributes("request",e,i),...p("request")},m=r.getClient(),h=Boolean(m?.getOptions().sendDefaultPii),_=u.filterMcpPiiFromSpanData(g,h);return{name:f,op:a.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:_}},t.createMcpNotificationSpan=function(e,t,n,r){return f({type:"notification-incoming",message:e,transport:t,extra:n,callback:r})},t.createMcpOutgoingNotificationSpan=function(e,t,n){return f({type:"notification-outgoing",message:e,transport:t,callback:n})}},9025:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(561);function o(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//)||void 0===e||e.includes("node_modules/"))}function i(e){const t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,i=/at (?:async )?(.+?) \(data:(.*?),/;return a=>{const c=a.match(i);if(c)return{filename:`<data:${c[2]}>`,function:c[1]};const u=a.match(n);if(u){let t,n,i,a,c;if(u[1]){i=u[1];let e=i.lastIndexOf(".");if("."===i[e-1]&&e--,e>0){t=i.slice(0,e),n=i.slice(e+1);const r=t.indexOf(".Module");r>0&&(i=i.slice(r+1),t=t.slice(0,r))}a=void 0}n&&(a=t,c=n),"<anonymous>"===n&&(c=void 0,i=void 0),void 0===i&&(c=c||r.UNKNOWN_FUNCTION,i=a?`${a}.${c}`:c);let l=u[2]?.startsWith("file://")?u[2].slice(7):u[2];const d="native"===u[5];return l?.match(/\/[A-Z]:/)&&(l=l.slice(1)),l||!u[5]||d||(l=u[5]),{filename:l?decodeURI(l):void 0,module:e?e(l):void 0,function:i,lineno:s(u[3]),colno:s(u[4]),in_app:o(l||"",d)}}return a.match(t)?{filename:a}:void 0}}function s(e){return parseInt(e||"",10)||void 0}t.filenameIsInApp=o,t.node=i,t.nodeStackLineParser=function(e){return[90,i(e)]}},9033:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(5363),i=n(2434);function s(e,t,n,i){e&&!function(e,t){const n=e?.promptFeedback;if(n?.blockReason){const e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:o.SPAN_STATUS_ERROR,message:`Content blocked: ${e}`}),r.captureException(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,i)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,n))}t.instrumentStream=async function*(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)s(o,r,n,t),yield o}finally{const e={[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};r.responseId&&(e[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]=r.responseId),r.responseModel&&(e[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=r.responseModel),void 0!==r.promptTokens&&(e[i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=r.promptTokens),void 0!==r.completionTokens&&(e[i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=r.completionTokens),void 0!==r.totalTokens&&(e[i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=r.totalTokens),r.finishReasons.length&&(e[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(e[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=r.responseTexts.join("")),n&&r.toolCalls.length&&(e[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(r.toolCalls)),t.setAttributes(e),t.end()}}},9039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9048:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532),o=n(6159),i=n(1148),s=n(6869),a=n(3969),c=n(1535);function u(e,t=!1){t&&!i.supportsNativeFetch()||o.fill(a.GLOBAL_OBJ,"fetch",function(t){return function(...n){const i=new Error,{method:u,url:l}=f(n),d={args:n,fetchData:{method:u,url:l},startTimestamp:1e3*s.timestampInSeconds(),virtualError:i,headers:g(n)};return e||c.triggerHandlers("fetch",{...d}),t.apply(a.GLOBAL_OBJ,n).then(async t=>(e?e(t):c.triggerHandlers("fetch",{...d,endTimestamp:1e3*s.timestampInSeconds(),response:t}),t),e=>{if(c.triggerHandlers("fetch",{...d,endTimestamp:1e3*s.timestampInSeconds(),error:e}),r.isError(e)&&void 0===e.stack&&(e.stack=i.stack,o.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{const t=new URL(d.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}function l(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let i=!0;for(;i;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(e),o&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{c.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*s.timestampInSeconds(),response:e})})}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:p(t),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:p(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}function g(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(r.isRequest(t))return new Headers(t.headers)}catch{}}t.addFetchEndInstrumentationHandler=function(e){const t="fetch-body-resolved";c.addHandler(t,e),c.maybeInstrument(t,()=>u(l))},t.addFetchInstrumentationHandler=function(e,t){const n="fetch";c.addHandler(n,e),c.maybeInstrument(n,()=>u(void 0,t))},t.parseFetchArgs=f},9062:(e,t,n)=>{"use strict";var r=n(2181);e.exports=r},9075:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532),o=n(8585),i=n(3969);function s(e,t,n){return e.map(e=>r.isPrimitive(e)?String(e):JSON.stringify(o.normalize(e,t,n))).join(" ")}t.createConsoleTemplateAttributes=function(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n},t.formatConsoleArgs=function(e,t,n){return"util"in i.GLOBAL_OBJ&&"function"==typeof i.GLOBAL_OBJ.util.format?i.GLOBAL_OBJ.util.format(...e):s(e,t,n)},t.hasConsoleSubstitutions=function(e){return/%[sdifocO]/.test(e)},t.safeJoinConsoleArgs=s},9085:(e,t,n)=>{"use strict";var r=n(6518),o=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},9090:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.merge=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;const o={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=e(o[t],n[t],r-1));return o}},9167:(e,t,n)=>{"use strict";var r=n(4576);e.exports=r},9183:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(8974),i=n(1348),s=n(5110),a=n(8532),c=n(6940),u=n(1485),l=n(6869),d=n(3969);function p(e,t){const n=r.getCurrentScope(),i=r.getClient();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,n);o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return c.uuid4()}function f(){const e=r.getIsolationScope(),t=r.getCurrentScope().getSession()||e.getSession();t&&i.closeSession(t),g(),e.setSession()}function g(){const e=r.getIsolationScope(),t=r.getClient(),n=e.getSession();n&&t&&t.captureSession(n)}t.addEventProcessor=function(e){r.getIsolationScope().addEventProcessor(e)},t.captureCheckIn=p,t.captureEvent=function(e,t){return r.getCurrentScope().captureEvent(e,t)},t.captureException=function(e,t){return r.getCurrentScope().captureException(e,u.parseEventHintOrCaptureContext(t))},t.captureMessage=function(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return r.getCurrentScope().captureMessage(e,n,o)},t.captureSession=function(e=!1){e?f():g()},t.close=async function(e){const t=r.getClient();return t?t.close(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},t.endSession=f,t.flush=async function(e){const t=r.getClient();return t?t.flush(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},t.isEnabled=function(){const e=r.getClient();return!1!==e?.getOptions().enabled&&!!e?.getTransport()},t.isInitialized=function(){return!!r.getClient()},t.lastEventId=function(){return r.getIsolationScope().lastEventId()},t.setContext=function(e,t){r.getIsolationScope().setContext(e,t)},t.setExtra=function(e,t){r.getIsolationScope().setExtra(e,t)},t.setExtras=function(e){r.getIsolationScope().setExtras(e)},t.setTag=function(e,t){r.getIsolationScope().setTag(e,t)},t.setTags=function(e){r.getIsolationScope().setTags(e)},t.setUser=function(e){r.getIsolationScope().setUser(e)},t.startSession=function(e){const t=r.getIsolationScope(),n=r.getCurrentScope(),{userAgent:o}=d.GLOBAL_OBJ.navigator||{},s=i.makeSession({user:n.getUser()||t.getUser(),...o&&{userAgent:o},...e}),a=t.getSession();return"ok"===a?.status&&i.updateSession(a,{status:"exited"}),f(),t.setSession(s),s},t.withMonitor=function(e,t,n){const o=p({monitorSlug:e,status:"in_progress"},n),i=l.timestampInSeconds();function s(t){p({monitorSlug:e,status:t,checkInId:o,duration:l.timestampInSeconds()-i})}return r.withIsolationScope(()=>{let e;try{e=t()}catch(e){throw s("error"),e}return a.isThenable(e)?e.then(e=>(s("ok"),e),e=>{throw s("error"),e}):(s("ok"),e)})}},9188:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3220),o=n(1811),i=n(8585),s=n(3969);function a(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function c(e){const t=r.getSentryCarrier(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}const u={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"};t.addItemToEnvelope=function(e,t){const[n,r]=e;return[n,[...r,t]]},t.createAttachmentEnvelopeItem=function(e){const t="string"==typeof e.data?c(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]},t.createEnvelope=function(e,t=[]){return[e,t]},t.createEventEnvelopeHeaders=function(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:o.dsnToString(r)},...i&&{trace:i}}},t.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},t.envelopeContainsItemType=function(e,t){return a(e,(e,n)=>t.includes(n))},t.envelopeItemTypeToDataCategory=function(e){return u[e]},t.forEachEnvelopeItem=a,t.getSdkMetadataForEnvelopeHeader=function(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}},t.parseEnvelope=function(e){let t="string"==typeof e?c(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=r.getSentryCarrier(s.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(n(e)))}const i=o(),a=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?n(t):o()])}return[i,a]},t.serializeEnvelope=function(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(i.normalize(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}},9200:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9183),o=n(2751),i=n(5363),s=n(5908),a=n(2434),c=n(4469),u=n(7161);t.createLangChainCallbackHandler=function(e={}){const t=e.recordInputs??!1,n=e.recordOutputs??!1,l=new Map,d=e=>{const t=l.get(e);t?.isRecording()&&(t.end(),l.delete(e))},p={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,r,i,c,d,p,f){const g=u.getInvocationParams(d),m=u.extractLLMRequestAttributes(e,n,t,g,p),h=m[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE],_=m[a.GEN_AI_OPERATION_NAME_ATTRIBUTE];s.startSpanManual({name:`${_} ${h}`,op:"gen_ai.pipeline",attributes:{...m,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.pipeline"}},e=>(l.set(r,e),e))},handleChatModelStart(e,n,r,i,c,d,p,f){const g=u.getInvocationParams(d),m=u.extractChatModelRequestAttributes(e,n,t,g,p),h=m[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE],_=m[a.GEN_AI_OPERATION_NAME_ATTRIBUTE];s.startSpanManual({name:`${_} ${h}`,op:"gen_ai.chat",attributes:{...m,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(l.set(r,e),e))},handleLLMEnd(e,t,r,o,i){const s=l.get(t);if(s?.isRecording()){const r=u.extractLlmResponseAttributes(e,n);r&&s.setAttributes(r),d(t)}},handleLLMError(e,t){const n=l.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"llm_error"}),d(t)),r.captureException(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(e,n,r,i){const a=e.name||"unknown_chain",c={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":a};t&&(c["langchain.chain.inputs"]=JSON.stringify(n)),s.startSpanManual({name:`chain ${a}`,op:"gen_ai.invoke_agent",attributes:{...c,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(l.set(r,e),e))},handleChainEnd(e,t){const r=l.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),d(t))},handleChainError(e,t){const n=l.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"chain_error"}),d(t)),r.captureException(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(e,n,r,i){const a=e.name||"unknown_tool",u={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c.LANGCHAIN_ORIGIN,"gen_ai.tool.name":a};t&&(u["gen_ai.tool.input"]=n),s.startSpanManual({name:`execute_tool ${a}`,op:"gen_ai.execute_tool",attributes:{...u,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(l.set(r,e),e))},handleToolEnd(e,t){const r=l.get(t);r?.isRecording()&&(n&&r.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),d(t))},handleToolError(e,t){const n=l.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"tool_error"}),d(t)),r.captureException(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>p,toJSON:()=>({lc:1,type:"not_implemented",id:p.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:p.lc_id})};return p}},9202:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=r.defineIntegration(()=>({name:"OpenFeature",processEvent:(e,t,n)=>r._INTERNAL_copyFlagsFromScopeToEvent(e)}));t.OpenFeatureIntegrationHook=class{after(e,t){r._INTERNAL_insertFlagToScope(t.flagKey,t.value),r._INTERNAL_addFeatureFlagToActiveSpan(t.flagKey,t.value)}error(e,t,n){r._INTERNAL_insertFlagToScope(e.flagKey,e.defaultValue),r._INTERNAL_addFeatureFlagToActiveSpan(e.flagKey,e.defaultValue)}},t.openFeatureIntegration=o},9204:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969),o=new Map,i=new Set;function s(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(i.has(t))continue;i.add(t);const s=e(t);for(const e of s.reverse())if(e.filename){o.set(e.filename,n);break}}}(e),o.get(t)}t.addMetadataToStackFrames=function(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const n=s(e,t.filename);n&&(t.module_metadata=n)})})},t.getMetadataForUrl=s,t.stripMetadataFromStackFrames=function(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},9212:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.runOnce=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},9213:(e,t,n)=>{"use strict";var r=n(6080),o=n(9504),i=n(7055),s=n(8981),a=n(6198),c=n(1469),u=o([].push),l=function(e){var t=1===e,n=2===e,o=3===e,l=4===e,d=6===e,p=7===e,f=5===e||d;return function(g,m,h,_){for(var S,y,T=s(g),E=i(T),v=a(E),b=r(m,h),I=0,A=_||c,R=t?A(g,v):n||p?A(g,0):void 0;v>I;I++)if((f||I in E)&&(y=b(S=E[I],I,T),e))if(t)R[I]=y;else if(y)switch(e){case 3:return!0;case 5:return S;case 6:return I;case 2:u(R,S)}else switch(e){case 4:return!1;case 7:u(R,S)}return d?-1:o||l?l:R}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9225:(e,t,n)=>{"use strict";var r,o,i,s,a=n(4576),c=n(8745),u=n(6080),l=n(4901),d=n(9297),p=n(9039),f=n(397),g=n(7680),m=n(4055),h=n(2812),_=n(9544),S=n(8574),y=a.setImmediate,T=a.clearImmediate,E=a.process,v=a.Dispatch,b=a.Function,I=a.MessageChannel,A=a.String,R=0,O={},N="onreadystatechange";p(function(){r=a.location});var C=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},w=function(e){return function(){C(e)}},k=function(e){C(e.data)},P=function(e){a.postMessage(A(e),r.protocol+"//"+r.host)};y&&T||(y=function(e){h(arguments.length,1);var t=l(e)?e:b(e),n=g(arguments,1);return O[++R]=function(){c(t,void 0,n)},o(R),R},T=function(e){delete O[e]},S?o=function(e){E.nextTick(w(e))}:v&&v.now?o=function(e){v.now(w(e))}:I&&!_?(s=(i=new I).port2,i.port1.onmessage=k,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!p(P)?(o=P,a.addEventListener("message",k,!1)):o=N in m("script")?function(e){f.appendChild(m("script"))[N]=function(){f.removeChild(this),C(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:y,clear:T}},9233:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(6421),i=n(7670);t.registerBackgroundTabDetection=function(){i.WINDOW.document?i.WINDOW.document.addEventListener("visibilitychange",()=>{const e=r.getActiveSpan();if(!e)return;const t=r.getRootSpan(e);if(i.WINDOW.document.hidden&&t){const e="cancelled",{op:n,status:i}=r.spanToJSON(t);o.DEBUG_BUILD&&r.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),i||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):o.DEBUG_BUILD&&r.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},9235:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},9297:(e,t,n)=>{"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},9306:(e,t,n)=>{"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},9314:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564);t.captureFeedback=function(e,t={},n=r.getCurrentScope()){const{message:o,name:i,email:s,url:a,source:c,associatedEventId:u,tags:l}=e,d={contexts:{feedback:{contact_email:s,name:i,message:o,url:a,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:l},p=n?.getClient()||r.getClient();return p&&p.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}},9320:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6098);function o(e,t,n,o){r._INTERNAL_captureMetric({type:e,name:t,value:n,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}t.count=function(e,t=1,n){o("counter",e,t,n)},t.distribution=function(e,t,n){o("distribution",e,t,n)},t.gauge=function(e,t,n){o("gauge",e,t,n)}},9367:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function l(){return o&&clearTimeout(o),o=a(c,t),s&&void 0===i&&(i=a(c,s)),r}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==i?c():r},l}},9391:(e,t,n)=>{"use strict";var r=n(6518),o=n(6395),i=n(550),s=n(9039),a=n(7751),c=n(4901),u=n(2293),l=n(3438),d=n(6840),p=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&s(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,a("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}}),!o&&c(i)){var f=a("Promise").prototype.finally;p.finally!==f&&d(p,"finally",f,{unsafe:!0})}},9433:(e,t,n)=>{"use strict";var r=n(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9462:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7742),o=n(9491),i=n(1559),s=n(1548),a=n(99),c=n(1188),u=n(9212),l=n(9750),d=[.1,.25];t.CLSThresholds=d,t.onCLS=(e,t={})=>{l.onFCP(u.runOnce(()=>{const n=i.initMetric("CLS",0);let u;const l=s.initUnique(t,a.LayoutShiftManager),p=e=>{for(const t of e)l._processEntry(t);l._sessionValue>n.value&&(n.value=l._sessionValue,n.entries=l._sessionEntries,u())},f=c.observe("layout-shift",p);f&&(u=o.bindReporter(e,n,d,t.reportAllChanges),r.WINDOW.document?.addEventListener("visibilitychange",()=>{"hidden"===r.WINDOW.document?.visibilityState&&(p(f.takeRecords()),u(!0))}),r.WINDOW?.setTimeout?.(u))}))}},9491:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.bindReporter=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}}},9499:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.severityLevelFromString=function(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}},9504:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}},9519:(e,t,n)=>{"use strict";var r,o,i=n(4576),s=n(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},9539:(e,t,n)=>{"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return o(s),n}},9544:(e,t,n)=>{"use strict";var r=n(2839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},9550:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872);t.diagnoseSdkConnectivity=async function(){const e=r.getClient();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await r.suppressTracing(()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},9562:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=n(5208),i=n(6748);function s(e){const t={};return i.isValidContentItem(e)&&("string"==typeof e.name&&(t.name=e.name),"string"==typeof e.title&&(t.title=e.title),"string"==typeof e.version&&(t.version=e.version)),t}function a(e){const t=o.getClientInfoForTransport(e),n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function c(e){const t=o.getSessionDataForTransport(e)?.serverInfo,n={};return t?.name&&(n[r.MCP_SERVER_NAME_ATTRIBUTE]=t.name),t?.title&&(n[r.MCP_SERVER_TITLE_ATTRIBUTE]=t.title),t?.version&&(n[r.MCP_SERVER_VERSION_ATTRIBUTE]=t.version),n}function u(e){return{address:e?.requestInfo?.remoteAddress||e?.clientAddress||e?.request?.ip||e?.request?.connection?.remoteAddress,port:e?.requestInfo?.remotePort||e?.clientPort||e?.request?.connection?.remotePort}}function l(e){if(!e?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const t="string"==typeof e.constructor?.name?e.constructor.name:"unknown";let n="unknown";const r=t.toLowerCase();return r.includes("stdio")?n="pipe":(r.includes("http")||r.includes("sse"))&&(n="tcp"),{mcpTransport:t,networkTransport:n}}t.buildTransportAttributes=function(e,t){const n=e&&"sessionId"in e?e.sessionId:void 0,i=t?u(t):{},{mcpTransport:s,networkTransport:d}=l(e),p=a(e),f=c(e),g=o.getProtocolVersionForTransport(e);return{...n&&{[r.MCP_SESSION_ID_ATTRIBUTE]:n},...i.address&&{[r.CLIENT_ADDRESS_ATTRIBUTE]:i.address},...i.port&&{[r.CLIENT_PORT_ATTRIBUTE]:i.port},[r.MCP_TRANSPORT_ATTRIBUTE]:s,[r.NETWORK_TRANSPORT_ATTRIBUTE]:d,[r.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...g&&{[r.MCP_PROTOCOL_VERSION_ATTRIBUTE]:g},...p,...f}},t.extractClientInfo=u,t.extractSessionDataFromInitializeRequest=function(e){const t={};return i.isValidContentItem(e.params)&&("string"==typeof e.params.protocolVersion&&(t.protocolVersion=e.params.protocolVersion),e.params.clientInfo&&(t.clientInfo=s(e.params.clientInfo))),t},t.extractSessionDataFromInitializeResponse=function(e){const t={};return i.isValidContentItem(e)&&("string"==typeof e.protocolVersion&&(t.protocolVersion=e.protocolVersion),e.serverInfo&&(t.serverInfo=s(e.serverInfo))),t},t.getClientAttributes=a,t.getServerAttributes=c,t.getTransportTypes=l},9564:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2810),o=n(3220),i=n(9640),s=n(8913);function a(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e).getCurrentScope()}t.getClient=function(){return a().getClient()},t.getCurrentScope=a,t.getGlobalScope=function(){return o.getGlobalSingleton("globalScope",()=>new i.Scope)},t.getIsolationScope=function(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e).getIsolationScope()},t.getTraceContextFromScope=function(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||s.generateSpanId()};return r&&(i.parent_span_id=r),i},t.withIsolationScope=function(...e){const t=o.getMainCarrier(),n=r.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},t.withScope=function(...e){const t=o.getMainCarrier(),n=r.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}},9565:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9575:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9564),o=n(7373),i=n(9075),s=["trace","debug","info","warn","error","fatal"],a={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},c={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};t.createConsolaReporter=function(e={}){const t=new Set(e.levels??s),n=e.client;return{log(e){const{type:s,level:u,message:l,args:d,tag:p,date:f,...g}=e,m=n||r.getClient();if(!m)return;const h=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=a[e];if(t)return t}if("number"==typeof t){const e=c[t];if(e)return e}return"info"}(s,u);if(!t.has(h))return;const{normalizeDepth:_=3,normalizeMaxBreadth:S=1e3}=m.getOptions(),y=[];l&&y.push(l),d&&d.length>0&&y.push(i.formatConsoleArgs(d,_,S));const T=y.join(" ");g["sentry.origin"]="auto.log.consola",p&&(g["consola.tag"]=p),s&&(g["consola.type"]=s),null!=u&&"number"==typeof u&&(g["consola.level"]=u),o._INTERNAL_captureLog({level:h,message:T,attributes:g})}}}},9617:(e,t,n)=>{"use strict";var r=n(5397),o=n(5610),i=n(6198),s=function(e){return function(t,n,s){var a=r(t),c=i(a);if(0===c)return!e&&-1;var u,l=o(s,c);if(e&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},9635:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2751);function o(e){return"isRelative"in e}function i(e){if(o(e))return e.pathname;const 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()}function s(e,t,n,r){return`${n?.method?.toUpperCase()??"GET"} ${r||(e?"client"===t?i(e):e.pathname:"/")}`}t.getHttpSpanDetailsFromUrlObject=function(e,t,n,i,a){const c={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return a&&(c["server"===t?"http.route":"url.template"]=a,c[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),i?.method&&(c[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=i.method.toUpperCase()),e&&(e.search&&(c["url.query"]=e.search),e.hash&&(c["url.fragment"]=e.hash),e.pathname&&(c["url.path"]=e.pathname,"/"===e.pathname&&(c[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(e)||(c[r.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(c["url.port"]=e.port),e.protocol&&(c["url.scheme"]=e.protocol),e.hostname&&(c["server"===t?"server.address":"url.domain"]=e.hostname))),[s(e,t,i,a),c]},t.getSanitizedUrlString=function(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},t.getSanitizedUrlStringFromUrlObject=i,t.isURLObjectRelative=o,t.parseStringToURLObject=function(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}},t.parseUrl=function(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}},t.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}},9640:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(1348),i=n(5110),s=n(8532),a=n(9090),c=n(6940),u=n(8913),l=n(4865),d=n(9721),p=n(6869);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u.generateTraceId(),sampleRand:Math.random()}}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,l._setSpanForScope(e,l._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&o.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof f?t.getScopeData():s.isPlainObject(t)?e:void 0,{tags:r,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,l._setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u.generateTraceId(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:p.dateTimestampInSeconds(),...e,message:e.message?d.truncate(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:l._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=a.merge(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||c.uuid4();if(!this._client)return r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...t,event_id:n},this),n}captureMessage(e,t,n){const o=n?.event_id||c.uuid4();if(!this._client)return r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture message!"),o;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:o},this),o}captureEvent(e,t){const n=t?.event_id||c.uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}t.Scope=f},9721:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8532);function o(e,t,n=!1){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):!!r.isString(t)&&(n?e===t:e.includes(t)))}t.isMatchingPattern=o,t.safeJoin=function(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const o=e[t];try{r.isVueViewModel(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)},t.snipLine=function(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n},t.stringMatchesSomePattern=function(e,t=[],n=!1){return t.some(t=>o(e,t,n))},t.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}},9722:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8368),s=n(632),a=n(1499),c=n(3685).xY,u=function(){function e(t){var n,c,u=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return u.onPlay()}],["pause",function(){return u.onPause()}],["ended",function(){return u.onEnded()}],["loaded",function(){return u.onLoad()}],["volumechange",function(){return u.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var e,t;try{for(var n=r(u.playbackHandlers.entries()),i=n.next();!i.done;i=n.next()){var s=o(i.value,2),a=s[0],c=s[1];u.node.removeEventListener(a,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},this.setGaProperty=function(e){for(u.gaProperty&&u.gaProperty!==e&&u.queuedGACalls.length>0&&(u.queuedGACalls=[]),u.gaProperty=e;u.queuedGACalls.length;)s.default.send(u.queuedGACalls.pop())},this.setStoryId=function(e){u.storyId=e},this.setExperienceId=function(e){u.experienceId=e},this.emitGAEventAction=function(t){var n=e.GA_EMIT_TYPE,r=e.GA_EMIT_CATEGORY,o=u,i={t:n,tid:o.gaProperty,ec:r,el:o.experienceId,ea:t};u.gaProperty?s.default.send(i):u.queuedGACalls.push(i)},this.onLoad=function(){u.emitGAEventAction("loaded")},this.onVolumeChange=function(){!u.muted&&u.node.muted&&(u.emitGAEventAction("muted"),u.muted=!0),u.muted&&!u.node.muted&&(u.emitGAEventAction("unmuted"),u.muted=!1)},this.onPlay=function(){var t=window.setInterval;clearInterval(u.playbackInterval),u.playbackInterval=t(function(){return u.checkPlayback()},e.INTERVAL_RATE),u.emitGAEventAction("play")},this.onPause=function(){clearInterval(u.playbackInterval),u.node.duration!==u.node.currentTime&&u.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(u.playbackInterval),u.emitGAEventAction("playback_1"),u.prevPlaybackEvent=0},this.checkPlayback=function(){if(u.node){var t=u.node,n=t.currentTime/t.duration,r=e.PLAYBACK_EVENTS[u.prevPlaybackEvent];n>r&&(u.emitGAEventAction("playback_".concat(r)),u.prevPlaybackEvent++)}else clearInterval(u.playbackInterval)};try{if(!(t instanceof HTMLVideoElement))throw new a.PlayerConfigurationError("invalidPlayerRef",null);try{for(var l=r(this.playbackHandlers.entries()),d=l.next();!d.done;d=l.next()){var p=o(d.value,2),f=p[0],g=p[1];t.addEventListener(f,g)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(c=l.return)&&c.call(l)}finally{if(n)throw n.error}}this.node=t,this.muted=t.muted}catch(e){i.default.trapError(e,this.storyId)}}return e.INTERVAL_RATE=c.checkPlaybackRateMs,e.PLAYBACK_EVENTS=c.playbackEvents,e.GA_EMIT_TYPE="event",e.GA_EMIT_CATEGORY="video_player",e}();t.default=u},9733:(e,t,n)=>{"use strict";var r=n(6518),o=n(9306),i=n(6194),s=n(2248),a=TypeError,c=s.get,u=s.has,l=s.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=i(this),r=arguments.length;o(t);var s=u(n,e);if(!s&&r<3)throw new a("Updating absent value");var d=s?c(n,e):o(r>2?arguments[2]:void 0)(e,n);return l(n,e,t(d,e,n)),n}})},9750:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9491),o=n(2990),i=n(750),s=n(1559),a=n(1188),c=n(135),u=[1800,3e3];t.FCPThresholds=u,t.onFCP=(e,t={})=>{c.whenActivated(()=>{const n=i.getVisibilityWatcher(),c=s.initMetric("FCP");let l;const d=a.observe("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<n.firstHiddenTime&&(c.value=Math.max(t.startTime-o.getActivationStart(),0),c.entries.push(t),l(!0)))});d&&(l=r.bindReporter(e,c,u,t.reportAllChanges))})}},9759:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(3969),o=n(1535);let i=null;function s(){i=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,s){const a={column:r,error:s,line:n,msg:e,url:t};return o.triggerHandlers("error",a),!!i&&i.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}t.addGlobalErrorInstrumentationHandler=function(e){const t="error";o.addHandler(t,e),o.maybeInstrument(t,s)}},9764:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];t.getClientIPAddress=function(e){return n.map(t=>{const n=e[t],r=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?function(e){if(!e)return null;for(const t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(r):r?.split(",").map(e=>e.trim())}).reduce((e,t)=>t?e.concat(t):e,[]).find(e=>null!==e&&/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e))||null},t.ipHeaderNames=n},9773:(e,t,n)=>{"use strict";var r=n(6518),o=n(4495),i=n(9039),s=n(3717),a=n(8981);r({target:"Object",stat:!0,forced:!o||i(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},9816:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(8974),o=n(5110),i=n(1228),s=n(393);t.sampleSpan=function(e,t,n){if(!i.hasSpansEnabled(e))return[!1];let a,c;"function"==typeof e.tracesSampler?(c=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?c=t.parentSampled:void 0!==e.tracesSampleRate&&(c=e.tracesSampleRate,a=!0);const u=s.parseSampleRate(c);if(void 0===u)return r.DEBUG_BUILD&&o.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(c)} of type ${JSON.stringify(typeof c)}.`),[!1];if(!u)return r.DEBUG_BUILD&&o.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,u,a];const l=n<u;return l||r.DEBUG_BUILD&&o.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(c)})`),[l,u,a]}},9929:(e,t,n)=>{"use strict";var r=n(6518),o=n(6080),i=n(6194),s=n(2248),a=n(6223),c=s.Map,u=s.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=i(this),n=o(e,arguments.length>1?arguments[1]:void 0),r=new c;return a(t,function(e,o){u(r,n(e,o,t),e)}),r}})},9960:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}t.SentryError=n},9986:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7872),o=n(1362),i=n(3872),s=n(1604);function a(e,t,n,i){o.DEBUG_BUILD&&r.debug.log(`Sending LCP span (${e})`);const a=s.msToSec((r.browserPerformanceTimeOrigin()||0)+(t?.startTime||0)),c=r.getCurrentScope().getScopeData().transactionName,u=t?r.htmlTreeAsString(t.element):"Largest contentful paint",l={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};t&&(t.element&&(l["lcp.element"]=r.htmlTreeAsString(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(l["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(l["lcp.renderTime"]=t.renderTime),null!=t.size&&(l["lcp.size"]=t.size));const d=s.startStandaloneWebVitalSpan({name:u,transaction:c,attributes:l,startTime:a});d&&(d.addEvent("lcp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),d.end(a))}t._sendStandaloneLcpSpan=a,t.trackLcpAsStandaloneSpan=function(e){let t,n=0;if(!s.supportsWebVital("largest-contentful-paint"))return;const r=i.addLcpInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);s.listenForWebVitalReportEvents(e,(e,o)=>{a(n,t,o,e),r()})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(6624)})());
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Imposium",[],e):"object"==typeof exports?exports.Imposium=e():t.Imposium=e()}(self,()=>(()=>{var t={4912(t,e,r){"use strict";r.r(e),r.d(e,{BrowserClient:()=>xr,Hub:()=>ut,Integrations:()=>fn,SDK_NAME:()=>an,SDK_VERSION:()=>jt,Scope:()=>j,Session:()=>at,Severity:()=>u,Transports:()=>i,addBreadcrumb:()=>bt,addGlobalEventProcessor:()=>R,captureEvent:()=>mt,captureException:()=>yt,captureMessage:()=>gt,close:()=>nn,configureScope:()=>_t,defaultIntegrations:()=>Kr,eventFromException:()=>je,eventFromMessage:()=>Ce,flush:()=>rn,forceLoad:()=>tn,getCurrentHub:()=>lt,getHubFromCarrier:()=>dt,init:()=>$r,injectReportDialog:()=>rr,lastEventId:()=>Zr,makeMain:()=>ft,onLoad:()=>en,setContext:()=>Et,setExtra:()=>St,setExtras:()=>xt,setTag:()=>Ot,setTags:()=>wt,setUser:()=>Tt,showReportDialog:()=>Qr,startTransaction:()=>Pt,withScope:()=>kt,wrap:()=>on});var n={};r.r(n),r.d(n,{FunctionToString:()=>kr,InboundFilters:()=>Sr});var o={};r.r(o),r.d(o,{Breadcrumbs:()=>yr,Dedupe:()=>Gr,GlobalHandlers:()=>Ar,LinkedErrors:()=>qr,TryCatch:()=>jr,UserAgent:()=>Jr});var i={};r.r(i),r.d(i,{BaseTransport:()=>Ye,FetchTransport:()=>Xe,XHRTransport:()=>Ke,makeNewFetchTransport:()=>ze,makeNewXHRTransport:()=>Je});var s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},s(t,e)};function a(t,e){function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u,c=function(){return c=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function f(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(u||(u={}));var d=Object.prototype.toString;function h(t){switch(d.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(t,Error)}}function v(t,e){return d.call(t)==="[object "+e+"]"}function y(t){return v(t,"ErrorEvent")}function g(t){return v(t,"DOMError")}function m(t){return v(t,"String")}function _(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function b(t){return v(t,"Object")}function E(t){return"undefined"!=typeof Event&&w(t,Event)}function x(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function w(t,e){try{return t instanceof e}catch(t){return!1}}var S=r(1678);function O(t){return new k(function(e){e(t)})}function T(t){return new k(function(e,r){r(t)})}var k=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,r){0===e._state&&(x(r)?r.then(e._resolve,e._reject):(e._state=t,e._value=r,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,r){var n=this;return new t(function(t,o){n._handlers.push([!1,function(r){if(e)try{t(e(r))}catch(t){o(t)}else t(r)},function(e){if(r)try{t(r(e))}catch(t){o(t)}else o(e)}]),n._executeHandlers()})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var r=this;return new t(function(t,n){var o,i;return r.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?n(o):t(o)})})},t}(),P=r(6475),j=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=p(e._breadcrumbs),r._tags=c({},e._tags),r._extra=c({},e._extra),r._contexts=c({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=p(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=c(c({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var r;return this._tags=c(c({},this._tags),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=c(c({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var r;return this._extra=c(c({},this._extra),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var r;return null===e?delete this._contexts[t]:this._contexts=c(c({},this._contexts),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=c(c({},this._tags),e._tags),this._extra=c(c({},this._extra),e._extra),this._contexts=c(c({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):b(e)&&(this._tags=c(c({},this._tags),e.tags),this._extra=c(c({},this._extra),e.extra),this._contexts=c(c({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var r="number"==typeof e?Math.min(e,100):100;if(r<=0)return this;var n=c({timestamp:(0,S.lu)()},t);return this._breadcrumbs=p(this._breadcrumbs,[n]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=c(c({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=c(c({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=c(c({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=c(c({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=c({trace:this._span.getTraceContext()},t.contexts);var r=this._span.transaction&&this._span.transaction.name;r&&(t.tags=c({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=p(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(p(C(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=c(c({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,r,n){var o=this;return void 0===n&&(n=0),new k(function(i,s){var a=t[n];if(null===e||"function"!=typeof a)i(e);else{var u=a(c({},e),r);x(u)?u.then(function(e){return o._notifyEventProcessors(t,e,r,n+1).then(i)}).then(null,s):o._notifyEventProcessors(t,u,r,n+1).then(i).then(null,s)}})},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(t)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function C(){return(0,P.B)("globalEventProcessors",function(){return[]})}function R(t){C().push(t)}function I(t,e){try{for(var r=t,n=[],o=0,i=0,s=void 0;r&&o++<5&&!("html"===(s=N(r,e))||o>1&&i+3*n.length+s.length>=80);)n.push(s),i+=s.length,r=r.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function N(t,e){var r,n,o,i,s,a=t,u=[];if(!a||!a.tagName)return"";u.push(a.tagName.toLowerCase());var c=e&&e.length?e.filter(function(t){return a.getAttribute(t)}).map(function(t){return[t,a.getAttribute(t)]}):null;if(c&&c.length)c.forEach(function(t){u.push("["+t[0]+'="'+t[1]+'"]')});else if(a.id&&u.push("#"+a.id),(r=a.className)&&m(r))for(n=r.split(/\s+/),s=0;s<n.length;s++)u.push("."+n[s]);var f=["type","name","title","alt"];for(s=0;s<f.length;s++)o=f[s],(i=a.getAttribute(o))&&u.push("["+o+'="'+i+'"]');return u.join("")}function A(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function D(t,e){if(!Array.isArray(t))return"";for(var r=[],n=0;n<t.length;n++){var o=t[n];try{r.push(String(o))}catch(t){r.push("[value cannot be serialized]")}}return r.join(e)}function M(t,e){return!!m(t)&&(v(e,"RegExp")?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function L(t,e,r){if(e in t){var n=t[e],o=r(n);if("function"==typeof o)try{F(o,n)}catch(t){}t[e]=o}}function U(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}function F(t,e){var r=e.prototype||{};t.prototype=e.prototype=r,U(t,"__sentry_original__",e)}function B(t){return t.__sentry_original__}function q(t){var e=t;if(h(t))e=c({message:t.message,name:t.name,stack:t.stack},G(t));else if(E(t)){var r=t;e=c({type:r.type,target:H(r.target),currentTarget:H(r.currentTarget)},G(r)),"undefined"!=typeof CustomEvent&&w(t,CustomEvent)&&(e.detail=r.detail)}return e}function H(t){try{return"undefined"!=typeof Element&&w(t,Element)?I(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function G(t){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function z(t,e){void 0===e&&(e=40);var r=Object.keys(q(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return A(r[0],e);for(var n=r.length;n>0;n--){var o=r.slice(0,n).join(", ");if(!(o.length>e))return n===r.length?o:A(o,e)}return""}function V(t){var e,r;if(b(t)){var n={};try{for(var o=f(Object.keys(t)),i=o.next();!i.done;i=o.next()){var s=i.value;void 0!==t[s]&&(n[s]=V(t[s]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(V):t}function W(){var t=(0,P.V)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function Y(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+r+n}}function X(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function J(t){var e=t.message,r=t.event_id;if(e)return e;var n=X(t);return n?n.type&&n.value?n.type+": "+n.value:n.type||n.value||r||"<unknown>":r||"<unknown>"}function K(t,e,r){var n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function $(t,e){var r=X(t);if(r){var n=r.mechanism;if(r.mechanism=c(c(c({},{type:"generic",handled:!0}),n),e),e&&"data"in e){var o=c(c({},n&&n.data),e.data);r.mechanism.data=o}}}function Q(t){if(t&&t.__sentry_captured__)return!0;try{U(t,"__sentry_captured__",!0)}catch(t){}return!1}var Z,tt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,et=(0,P.V)(),rt=["debug","info","warn","error","log","assert"];function nt(t){var e=(0,P.V)();if(!("console"in e))return t();var r=e.console,n={};rt.forEach(function(t){var o=r[t]&&r[t].__sentry_original__;t in e.console&&o&&(n[t]=r[t],r[t]=o)});try{return t()}finally{Object.keys(n).forEach(function(t){r[t]=n[t]})}}function ot(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return tt?rt.forEach(function(r){e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t&&nt(function(){var t;(t=et.console)[r].apply(t,p(["Sentry Logger ["+r+"]:"],e))})}}):rt.forEach(function(t){e[t]=function(){}}),e}Z=tt?(0,P.B)("logger",ot):ot();var it=r(258),st="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,at=function(){function t(t){this.errors=0,this.sid=W(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,S.zf)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,S.zf)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:W()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return V({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),ut=function(){function t(t,e,r){void 0===e&&(e=new j),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=j.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var r=this._lastEventId=e&&e.event_id?e.event_id:W(),n=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}n={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,c(c({},n),{event_id:r})),r},t.prototype.captureMessage=function(t,e,r){var n=this._lastEventId=r&&r.event_id?r.event_id:W(),o=r;if(!r){var i=void 0;try{throw new Error(t)}catch(t){i=t}o={originalException:t,syntheticException:i}}return this._invokeClient("captureMessage",t,e,c(c({},o),{event_id:n})),n},t.prototype.captureEvent=function(t,e){var r=e&&e.event_id?e.event_id:W();return"transaction"!==t.type&&(this._lastEventId=r),this._invokeClient("captureEvent",t,c(c({},e),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var r=this.getStackTop(),n=r.scope,o=r.client;if(n&&o){var i=o.getOptions&&o.getOptions()||{},s=i.beforeBreadcrumb,a=void 0===s?null:s,u=i.maxBreadcrumbs,f=void 0===u?100:u;if(!(f<=0)){var l=(0,S.lu)(),p=c({timestamp:l},t),d=a?nt(function(){return a(p,e)}):p;null!==d&&n.addBreadcrumb(d,f)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var r=this.getScope();r&&r.setTag(t,e)},t.prototype.setExtra=function(t,e){var r=this.getScope();r&&r.setExtra(t,e)},t.prototype.setContext=function(t,e){var r=this.getScope();r&&r.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),r=e.scope,n=e.client;r&&n&&t(r)},t.prototype.run=function(t){var e=ft(this);try{t(this)}finally{ft(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return st&&Z.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,r=e&&e.getSession();r&&r.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),r=e.scope,n=e.client,o=n&&n.getOptions()||{},i=o.release,s=o.environment,a=((0,P.V)().navigator||{}).userAgent,u=new at(c(c(c({release:i,environment:s},r&&{user:r.getUser()}),a&&{userAgent:a}),t));if(r){var f=r.getSession&&r.getSession();f&&"ok"===f.status&&f.update({status:"exited"}),this.endSession(),r.setSession(u)}return u},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,r=t.client;if(e){var n=e.getSession&&e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}},t.prototype._invokeClient=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.getStackTop(),i=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,p(r,[i]))},t.prototype._callExtensionMethod=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=ct().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);st&&Z.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function ct(){var t=(0,P.V)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function ft(t){var e=ct(),r=dt(e);return ht(e,t),r}function lt(){var t=ct();return pt(t)&&!dt(t).isOlderThan(4)||ht(t,new ut),(0,it.wD)()?function(t){try{var e=ct().__SENTRY__,r=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!r)return dt(t);if(!pt(r)||dt(r).isOlderThan(4)){var n=dt(t).getStackTop();ht(r,new ut(n.client,j.clone(n.scope)))}return dt(r)}catch(e){return dt(t)}}(t):dt(t)}function pt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function dt(t){return(0,P.B)("hub",function(){return new ut},t)}function ht(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function vt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=lt();if(n&&n[t])return n[t].apply(n,p(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function yt(t,e){return vt("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function gt(t,e){var r=new Error(t);return vt("captureMessage",t,"string"==typeof e?e:void 0,c({originalException:t,syntheticException:r},"string"!=typeof e?{captureContext:e}:void 0))}function mt(t){return vt("captureEvent",t)}function _t(t){vt("configureScope",t)}function bt(t){vt("addBreadcrumb",t)}function Et(t,e){vt("setContext",t,e)}function xt(t){vt("setExtras",t)}function wt(t){vt("setTags",t)}function St(t,e){vt("setExtra",t,e)}function Ot(t,e){vt("setTag",t,e)}function Tt(t){vt("setUser",t)}function kt(t){vt("withScope",t)}function Pt(t,e){return vt("startTransaction",c({},t),e)}var jt="6.19.7",Ct=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}),Rt=function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this;return n.message=e,n.name=r.prototype.constructor.name,Ct(n,r.prototype),n}return a(e,t),e}(Error),It=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nt(t,e){void 0===e&&(e=!1);var r=t.host,n=t.path,o=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+r+(i?":"+i:"")+"/"+(n?n+"/":n)+s}function At(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Dt(t){var e="string"==typeof t?function(t){var e=It.exec(t);if(!e)throw new Rt("Invalid Sentry Dsn: "+t);var r=l(e.slice(1),6),n=r[0],o=r[1],i=r[2],s=void 0===i?"":i,a=r[3],u=r[4],c=void 0===u?"":u,f="",p=r[5],d=p.split("/");if(d.length>1&&(f=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}return At({host:a,pass:s,path:f,projectId:p,port:c,protocol:n,publicKey:o})}(t):At(t);return function(t){if(tt){var e=t.port,r=t.projectId,n=t.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(e){if(!t[e])throw new Rt("Invalid Sentry Dsn: "+e+" missing")}),!r.match(/^\d+$/))throw new Rt("Invalid Sentry Dsn: Invalid projectId "+r);if(!function(t){return"http"===t||"https"===t}(n))throw new Rt("Invalid Sentry Dsn: Invalid protocol "+n);if(e&&isNaN(parseInt(e,10)))throw new Rt("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}var Mt="<anonymous>";function Lt(t){try{return t&&"function"==typeof t&&t.name||Mt}catch(t){return Mt}}function Ut(t,e,r){void 0===e&&(e=1/0),void 0===r&&(r=1/0);try{return Bt("",t,e,r)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}function Ft(t,e,r){void 0===e&&(e=3),void 0===r&&(r=102400);var n,o=Ut(t,e);return n=o,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(n))>r?Ft(t,e-1,r):o}function Bt(t,e,n,o,i){var s,a;void 0===n&&(n=1/0),void 0===o&&(o=1/0),void 0===i&&(s="function"==typeof WeakSet,a=s?new WeakSet:[],i=[function(t){if(s)return!!a.has(t)||(a.add(t),!1);for(var e=0;e<a.length;e++)if(a[e]===t)return!0;return a.push(t),!1},function(t){if(s)a.delete(t);else for(var e=0;e<a.length;e++)if(a[e]===t){a.splice(e,1);break}}]);var u,c=l(i,2),f=c[0],p=c[1],d=e;if(d&&"function"==typeof d.toJSON)try{return d.toJSON()}catch(t){}if(null===e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(u=e)||u==u))return e;var v=function(t,e){try{return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==r.g&&e===r.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":function(t){return b(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Lt(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(t){return"**non-serializable** ("+t+")"}}(t,e);if(!v.startsWith("[object "))return v;if(0===n)return v.replace("object ","");if(f(e))return"[Circular ~]";var y=Array.isArray(e)?[]:{},g=0,m=h(e)||E(e)?q(e):e;for(var _ in m)if(Object.prototype.hasOwnProperty.call(m,_)){if(g>=o){y[_]="[MaxProperties ~]";break}var x=m[_];y[_]=Bt(_,x,n-1,o,i),g+=1}return p(e),y}var qt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ht=[];function Gt(t){return t.reduce(function(t,e){return t.every(function(t){return e.name!==t.name})&&t.push(e),t},[])}var zt="Not capturing exception because it's already been captured.",Vt=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=Dt(e.dsn))}return t.prototype.captureException=function(t,e,r){var n=this;if(!Q(t)){var o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(t){return n._captureEvent(t,e,r)}).then(function(t){o=t})),o}qt&&Z.log(zt)},t.prototype.captureMessage=function(t,e,r,n){var o=this,i=r&&r.event_id,s=_(t)?this._getBackend().eventFromMessage(String(t),e,r):this._getBackend().eventFromException(t,r);return this._process(s.then(function(t){return o._captureEvent(t,r,n)}).then(function(t){i=t})),i},t.prototype.captureEvent=function(t,e,r){if(!(e&&e.originalException&&Q(e.originalException))){var n=e&&e.event_id;return this._process(this._captureEvent(t,e,r).then(function(t){n=t})),n}qt&&Z.log(zt)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?qt&&Z.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):qt&&Z.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then(function(r){return e.getTransport().close(t).then(function(t){return r&&t})})},t.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){var t,e;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(t=this._options,e={},function(t){var e=t.defaultIntegrations&&p(t.defaultIntegrations)||[],r=t.integrations,n=p(Gt(e));Array.isArray(r)?n=p(n.filter(function(t){return r.every(function(e){return e.name!==t.name})}),Gt(r)):"function"==typeof r&&(n=r(n),n=Array.isArray(n)?n:[n]);var o=n.map(function(t){return t.name}),i="Debug";return-1!==o.indexOf(i)&&n.push.apply(n,p(n.splice(o.indexOf(i),1))),n}(t).forEach(function(t){e[t.name]=t,function(t){-1===Ht.indexOf(t.name)&&(t.setupOnce(R,lt),Ht.push(t.name),qt&&Z.log("Integration installed: "+t.name))}(t)}),U(e,"initialized",!0),e))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return qt&&Z.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var r,n,o=!1,i=!1,s=e.exception&&e.exception.values;if(s){i=!0;try{for(var a=f(s),u=a.next();!u.done;u=a.next()){var l=u.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}var p="ok"===t.status;(p&&0===t.errors||p&&o)&&(t.update(c(c({},o&&{status:"crashed"}),{errors:t.errors||Number(i||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new k(function(r){var n=0,o=setInterval(function(){0==e._numProcessing?(clearInterval(o),r(!0)):(n+=1,t&&n>=t&&(clearInterval(o),r(!1)))},1)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,r){var n=this,o=this.getOptions(),i=o.normalizeDepth,s=void 0===i?3:i,a=o.normalizeMaxBreadth,u=void 0===a?1e3:a,f=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:W()),timestamp:t.timestamp||(0,S.lu)()});this._applyClientOptions(f),this._applyIntegrationsMetadata(f);var l=e;r&&r.captureContext&&(l=j.clone(l).update(r.captureContext));var p=O(f);return l&&(p=l.applyToEvent(f,r)),p.then(function(t){return t&&(t.sdkProcessingMetadata=c(c({},t.sdkProcessingMetadata),{normalizeDepth:Ut(s)+" ("+typeof s+")"})),"number"==typeof s&&s>0?n._normalizeEvent(t,s,u):t})},t.prototype._normalizeEvent=function(t,e,r){if(!t)return null;var n=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return c(c({},t),t.data&&{data:Ut(t.data,e,r)})})}),t.user&&{user:Ut(t.user,e,r)}),t.contexts&&{contexts:Ut(t.contexts,e,r)}),t.extra&&{extra:Ut(t.extra,e,r)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n.sdkProcessingMetadata=c(c({},n.sdkProcessingMetadata),{baseClientNormalized:!0}),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),r=e.environment,n=e.release,o=e.dist,i=e.maxValueLength,s=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?r:"production"),void 0===t.release&&void 0!==n&&(t.release=n),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=A(t.message,s));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=A(a.value,s));var u=t.request;u&&u.url&&(u.url=A(u.url,s))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=p(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,r){return this._processEvent(t,e,r).then(function(t){return t.event_id},function(t){qt&&Z.error(t)})},t.prototype._processEvent=function(t,e,r){var n=this,o=this.getOptions(),i=o.beforeSend,s=o.sampleRate,a=this.getTransport();function u(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return T(new Rt("SDK not enabled, will not capture event."));var c="transaction"===t.type;return!c&&"number"==typeof s&&Math.random()>s?(u("sample_rate","event"),T(new Rt("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(t,r,e).then(function(r){if(null===r)throw u("event_processor",t.type||"event"),new Rt("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||c||!i?r:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(x(t))return t.then(function(t){if(!b(t)&&null!==t)throw new Rt(e);return t},function(t){throw new Rt("beforeSend rejected with "+t)});if(!b(t)&&null!==t)throw new Rt(e);return t}(i(r,e))}).then(function(e){if(null===e)throw u("before_send",t.type||"event"),new Rt("`beforeSend` returned `null`, will not send event.");var o=r&&r.getSession&&r.getSession();return!c&&o&&n._updateSessionFromEvent(o,e),n._sendEvent(e),e}).then(null,function(t){if(t instanceof Rt)throw t;throw n.captureException(t,{data:{__sentry__:!0},originalException:t}),new Rt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then(function(t){return e._numProcessing-=1,t},function(t){return e._numProcessing-=1,t})},t}();function Wt(t,e,r){return{initDsn:t,metadata:e||{},dsn:Dt(t),tunnel:r}}function Yt(t){var e=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return e+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"}function Xt(t,e){return""+Yt(t)+t.projectId+"/"+e+"/"}function Jt(t){return e={sentry_key:t.publicKey,sentry_version:"7"},Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");var e}function Kt(t){return Xt(t,"store")}function $t(t){return Kt(t)+"?"+Jt(t)}function Qt(t,e){return e||function(t){return Xt(t,"envelope")}(t)+"?"+Jt(t)}function Zt(t,e){return void 0===e&&(e=[]),[t,e]}function te(t){var e=l(t,2),r=e[0],n=e[1],o=JSON.stringify(r);return n.reduce(function(t,e){var r=l(e,2),n=r[0],o=r[1],i=_(o)?String(o):JSON.stringify(o);return t+"\n"+JSON.stringify(n)+"\n"+i},o)}function ee(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function re(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=p(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=p(t.sdk.packages||[],e.packages||[]),t):t}function ne(t,e){var r=ee(e),n="aggregates"in t?"sessions":"session";return[Zt(c(c({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:Nt(e.dsn)}),[[{type:n},t]]),n]}!function(){function t(t,e,r){void 0===e&&(e={}),this.dsn=t,this._dsnObject=Dt(t),this.metadata=e,this._tunnel=r}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return Yt(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return Kt(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return $t(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Qt(this._dsnObject,this._tunnel)}}();var oe=function(){function t(){}return t.prototype.sendEvent=function(t){return O({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return O(!0)},t}(),ie=function(){function t(t){this._options=t,this._options.dsn||qt&&Z.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Rt("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,r){throw new Rt("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=function(t,e){var r=ee(e),n=t.type||"event",o=(t.sdkProcessingMetadata||{}).transactionSampling||{},i=o.method,s=o.rate;return re(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,Zt(c(c({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:Nt(e.dsn)}),[[{type:n,sample_rates:[{id:i,rate:s}]},t]])}(t,Wt(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(e).then(null,function(t){qt&&Z.error("Error while sending event:",t)})}else this._transport.sendEvent(t).then(null,function(t){qt&&Z.error("Error while sending event:",t)})},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=l(ne(t,Wt(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(e).then(null,function(t){qt&&Z.error("Error while sending session:",t)})}else this._transport.sendSession(t).then(null,function(t){qt&&Z.error("Error while sending session:",t)});else qt&&Z.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new oe},t}();function se(){if(!("fetch"in(0,P.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function ae(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ue(){if(!se())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ce="?";function fe(t,e,r,n){var o={filename:t,function:e,in_app:!0};return void 0!==r&&(o.lineno=r),void 0!==n&&(o.colno=n),o}var le=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pe=/\((\S*)(?::(\d+))(?::(\d+))\)/,de=[30,function(t){var e=le.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var r=pe.exec(e[2]);r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3])}var n=l(we(e[1]||ce,e[2]),2),o=n[0];return fe(n[1],o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],he=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ve=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ye=[50,function(t){var e,r=he.exec(t);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=ve.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var o=r[3],i=r[1]||ce;return i=(e=l(we(i,o),2))[0],fe(o=e[1],i,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}}],ge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,me=[40,function(t){var e=ge.exec(t);return e?fe(e[2],e[1]||ce,+e[3],e[4]?+e[4]:void 0):void 0}],_e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,be=[10,function(t){var e=_e.exec(t);return e?fe(e[2],e[3]||ce,+e[1]):void 0}],Ee=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,xe=[20,function(t){var e=Ee.exec(t);return e?fe(e[5],e[3]||e[4]||ce,+e[1],+e[2]):void 0}],we=function(t,e){var r=-1!==t.indexOf("safari-extension"),n=-1!==t.indexOf("safari-web-extension");return r||n?[-1!==t.indexOf("@")?t.split("@")[0]:ce,r?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Se(t){var e=Te(t),r={type:t&&t.name,value:Pe(t)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Oe(t){return{exception:{values:[Se(t)]}}}function Te(t){var e=t.stacktrace||t.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ke.test(t.message))return 1}return 0}(t);try{return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.sort(function(t,e){return t[0]-e[0]}).map(function(t){return t[1]});return function(t,e){var n,o,i,s;void 0===e&&(e=0);var a=[];try{for(var u=f(t.split("\n").slice(e)),l=u.next();!l.done;l=u.next()){var p=l.value;try{for(var d=(i=void 0,f(r)),h=d.next();!h.done;h=d.next()){var v=(0,h.value)(p);if(v){a.push(v);break}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return function(t){if(!t.length)return[];var e=t,r=e[0].function||"",n=e[e.length-1].function||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(e=e.slice(1)),-1!==n.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map(function(t){return c(c({},t),{filename:t.filename||e[0].filename,function:t.function||"?"})}).reverse()}(a)}}(be,xe,de,me,ye)(e,r)}catch(t){}return[]}var ke=/Minified React error #\d+;/i;function Pe(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function je(t,e,r){var n=Re(t,e&&e.syntheticException||void 0,r);return $(n),n.level=u.Error,e&&e.event_id&&(n.event_id=e.event_id),O(n)}function Ce(t,e,r,n){void 0===e&&(e=u.Info);var o=Ie(t,r&&r.syntheticException||void 0,n);return o.level=e,r&&r.event_id&&(o.event_id=r.event_id),O(o)}function Re(t,e,r,n){var o;if(y(t)&&t.error)return Oe(t.error);if(g(t)||v(t,"DOMException")){var i=t;if("stack"in t)o=Oe(t);else{var s=i.name||(g(i)?"DOMError":"DOMException"),a=i.message?s+": "+i.message:s;K(o=Ie(a,e,r),a)}return"code"in i&&(o.tags=c(c({},o.tags),{"DOMException.code":""+i.code})),o}return h(t)?Oe(t):b(t)||E(t)?(o=function(t,e,r){var n={exception:{values:[{type:E(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+z(t)}]},extra:{__serialized__:Ft(t)}};if(e){var o=Te(e);o.length&&(n.stacktrace={frames:o})}return n}(t,e,n),$(o,{synthetic:!0}),o):(K(o=Ie(t,e,r),""+t,void 0),$(o,{synthetic:!0}),o)}function Ie(t,e,r){var n={message:t};if(r&&e){var o=Te(e);o.length&&(n.stacktrace={frames:o})}return n}function Ne(t){var e=[];function r(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(n){if(!(void 0===t||e.length<t))return T(new Rt("Not adding Promise due to buffer limit reached."));var o=n();return-1===e.indexOf(o)&&e.push(o),o.then(function(){return r(o)}).then(null,function(){return r(o).then(null,function(){})}),o},drain:function(t){return new k(function(r,n){var o=e.length;if(!o)return r(!0);var i=setTimeout(function(){t&&t>0&&r(!1)},t);e.forEach(function(t){O(t).then(function(){--o||(clearTimeout(i),r(!0))},n)})})}}}function Ae(t,e){return t[e]||t.all||0}function De(t,e,r){return void 0===r&&(r=Date.now()),Ae(t,e)>r}function Me(t,e,r){var n,o,i,s;void 0===r&&(r=Date.now());var a=c({},t),u=e["x-sentry-rate-limits"],l=e["retry-after"];if(u)try{for(var p=f(u.trim().split(",")),d=p.next();!d.done;d=p.next()){var h=d.value.split(":",2),v=parseInt(h[0],10),y=1e3*(isNaN(v)?60:v);if(h[1])try{for(var g=(i=void 0,f(h[1].split(";"))),m=g.next();!m.done;m=g.next())a[m.value]=r+y}catch(t){i={error:t}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}else a.all=r+y}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}else l&&(a.all=r+function(t,e){void 0===e&&(e=Date.now());var r=parseInt(""+t,10);if(!isNaN(r))return 1e3*r;var n=Date.parse(""+t);return isNaN(n)?6e4:n-e}(l,r));return a}function Le(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}function Ue(t,e,r){void 0===r&&(r=Ne(t.bufferSize||30));var n={};return{send:function(t){var o=function(t){var e=l(t,2),r=l(e[1],1);return l(r[0],1)[0].type}(t),i="event"===o?"error":o,s={category:i,body:te(t)};return De(n,i)?T({status:"rate_limit",reason:Fe(n,i)}):r.add(function(){return e(s).then(function(t){var e=t.body,r=t.headers,o=t.reason,s=Le(t.statusCode);return r&&(n=Me(n,r)),"success"===s?O({status:s,reason:o}):T({status:s,reason:o||e||("rate_limit"===s?Fe(n,i):"Unknown transport error")})})})},flush:function(t){return r.drain(t)}}}function Fe(t,e){return"Too many "+e+" requests, backing off until: "+new Date(Ae(t,e)).toISOString()}var Be,qe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,He=(0,P.V)();function Ge(){if(Be)return Be;if(ae(He.fetch))return Be=He.fetch.bind(He);var t=He.document,e=He.fetch;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);var n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(t){qe&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Be=e.bind(He)}function ze(t,e){return void 0===e&&(e=Ge()),Ue({bufferSize:t.bufferSize},function(r){var n=c({body:r.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,n).then(function(t){return t.text().then(function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}})})})}function Ve(t){return"event"===t?"error":t}var We=(0,P.V)(),Ye=function(){function t(t){var e=this;this.options=t,this._buffer=Ne(30),this._rateLimits={},this._outcomes={},this._api=Wt(t.dsn,t._metadata,t.tunnel),this.url=$t(this._api.dsn),this.options.sendClientReports&&We.document&&We.document.addEventListener("visibilitychange",function(){"hidden"===We.document.visibilityState&&e._flushOutcomes()})}return t.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var r,n=ee(e),o=t.type||"event",i="transaction"===o||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,u=s.rate;re(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{r=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{r=JSON.stringify(Ut(t))}catch(t){var f=t;r=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:f.message,stack:f.stack}})}}var l={body:r,type:o,url:i?Qt(e.dsn,e.tunnel):$t(e.dsn)};if(i){var p=Zt(c(c({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Nt(e.dsn)}),[[{type:o,sample_rates:[{id:a,rate:u}]},l.body]]);l.body=te(p)}return l}(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(function(t,e){var r=l(ne(t,e),2),n=r[0],o=r[1];return{body:te(n),type:o,url:Qt(e.dsn,e.tunnel)}}(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var r;if(this.options.sendClientReports){var n=Ve(e)+":"+t;qe&&Z.log("Adding outcome: "+n),this._outcomes[n]=(null!=(r=this._outcomes[n])?r:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){qe&&Z.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e,r,n=Qt(this._api.dsn,this._api.tunnel),o=(e=Object.keys(t).map(function(e){var r=l(e.split(":"),2),n=r[0];return{reason:r[1],category:n,quantity:t[e]}}),Zt((r=this._api.tunnel&&Nt(this._api.dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:(0,S.lu)(),discarded_events:e}]]));try{!function(t,e){if("[object Navigator]"===Object.prototype.toString.call(He&&He.navigator)&&"function"==typeof He.navigator.sendBeacon)return He.navigator.sendBeacon.bind(He.navigator)(t,e);se()&&Ge()(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)})}(n,te(o))}catch(t){qe&&Z.error(t)}}else qe&&Z.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,r=t.response,n=t.headers,o=t.resolve,i=t.reject,s=Le(r.status);this._rateLimits=Me(this._rateLimits,n),this._isRateLimited(e)&&qe&&Z.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?i(r):o({status:s})},t.prototype._disabledUntil=function(t){var e=Ve(t);return new Date(Ae(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Ve(t);return De(this._rateLimits,e)},t}(),Xe=function(t){function e(e,r){void 0===r&&(r=Ge());var n=t.call(this,e)||this;return n._fetch=r,n}return a(e,t),e.prototype._sendRequest=function(t,e){var r=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var n={body:t.body,method:"POST",referrerPolicy:ue()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(function(){return new k(function(e,o){r._fetch(t.url,n).then(function(n){var i={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:n,headers:i,resolve:e,reject:o})}).catch(o)})}).then(void 0,function(e){throw e instanceof Rt?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),e})},e}(Ye);function Je(t){return Ue({bufferSize:t.bufferSize},function(e){return new k(function(r,n){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var t={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};r(t)}},o.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&o.setRequestHeader(i,t.headers[i]);o.send(e.body)})})}var Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype._sendRequest=function(t,e){var r=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new k(function(e,n){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:n})}},o.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,i)&&o.setRequestHeader(i,r.options.headers[i]);o.send(t.body)})}).then(void 0,function(e){throw e instanceof Rt?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),e})},e}(Ye),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.eventFromException=function(t,e){return je(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,r){return void 0===e&&(e=u.Info),Ce(t,e,r,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=c(c({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),r=Wt(e.dsn,e._metadata,e.tunnel),n=Qt(r.dsn,r.tunnel);if(this._options.transport)return new this._options.transport(e);if(se()){var o=c({},e.fetchParameters);return this._newTransport=ze({requestOptions:o,url:n}),new Xe(e)}return this._newTransport=Je({url:n,headers:e.headers}),new Ke(e)},e}(ie),Qe=(0,P.V)(),Ze=0;function tr(){return Ze>0}function er(t,e,r){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{var n=t.__sentry_wrapped__;if(n)return n;if(B(t))return t}catch(e){return t}var o=function(){var n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=n.map(function(t){return er(t,e)});return t.apply(this,o)}catch(t){throw Ze+=1,setTimeout(function(){Ze-=1}),kt(function(r){r.addEventProcessor(function(t){return e.mechanism&&(K(t,void 0,void 0),$(t,e.mechanism)),t.extra=c(c({},t.extra),{arguments:n}),t}),yt(t)}),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}catch(t){}F(o,t),U(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(t){}return o}function rr(t){if(void 0===t&&(t={}),Qe.document)if(t.eventId)if(t.dsn){var e=Qe.document.createElement("script");e.async=!0,e.src=function(t,e){var r=Dt(t),n=Yt(r)+"embed/error-page/",o="dsn="+Nt(r);for(var i in e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&(o+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(o+="&email="+encodeURIComponent(e.user.email))}else o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e[i]);return n+"?"+o}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var r=Qe.document.head||Qe.document.body;r&&r.appendChild(e)}else qe&&Z.error("Missing dsn option in showReportDialog call");else qe&&Z.error("Missing eventId option in showReportDialog call")}var nr,or,ir,sr=(0,P.V)(),ar={},ur={};function cr(t,e){ar[t]=ar[t]||[],ar[t].push(e),function(t){if(!ur[t])switch(ur[t]=!0,t){case"console":"console"in sr&&rt.forEach(function(t){t in sr.console&&L(sr.console,t,function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];fr("console",{args:r,level:t}),e&&e.apply(sr.console,r)}})});break;case"dom":!function(){if("document"in sr){var t=fr.bind(null,"dom"),e=pr(t,!0);sr.document.addEventListener("click",e,!1),sr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(e){var r=sr[e]&&sr[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(L(r,"addEventListener",function(e){return function(r,n,o){if("click"===r||"keypress"==r)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=i[r]=i[r]||{refCount:0};if(!s.handler){var a=pr(t);s.handler=a,e.call(this,r,a,o)}s.refCount+=1}catch(t){}return e.call(this,r,n,o)}}),L(r,"removeEventListener",function(t){return function(e,r,n){if("click"===e||"keypress"==e)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[e];i&&(i.refCount-=1,i.refCount<=0&&(t.call(this,e,i.handler,n),i.handler=void 0,delete o[e]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,r,n)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in sr){var t=XMLHttpRequest.prototype;L(t,"open",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this,o=e[1],i=n.__sentry_xhr__={method:m(e[0])?e[0].toUpperCase():e[0],url:e[1]};m(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var s=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}fr("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?L(n,"onreadystatechange",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return s(),t.apply(n,e)}}):n.addEventListener("readystatechange",s),t.apply(n,e)}}),L(t,"send",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),fr("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}})}}();break;case"fetch":(function(){if(!se())return!1;var t=(0,P.V)();if(ae(t.fetch))return!0;var e=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ae(n.contentWindow.fetch)),r.head.removeChild(n)}catch(t){tt&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e})()&&L(sr,"fetch",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n,o={args:e,fetchData:{method:(n=e,void 0===n&&(n=[]),"Request"in sr&&w(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"),url:lr(e)},startTimestamp:Date.now()};return fr("fetch",c({},o)),t.apply(sr,e).then(function(t){return fr("fetch",c(c({},o),{endTimestamp:Date.now(),response:t})),t},function(t){throw fr("fetch",c(c({},o),{endTimestamp:Date.now(),error:t})),t})}});break;case"history":!function(){if(function(){var t=(0,P.V)(),e=t.chrome,r=e&&e.app&&e.app.runtime,n="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!r&&n}()){var t=sr.onpopstate;sr.onpopstate=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=sr.location.href,o=nr;if(nr=n,fr("history",{from:o,to:n}),t)try{return t.apply(this,e)}catch(t){}},L(sr.history,"pushState",e),L(sr.history,"replaceState",e)}function e(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.length>2?e[2]:void 0;if(n){var o=nr,i=String(n);nr=i,fr("history",{from:o,to:i})}return t.apply(this,e)}}}();break;case"error":dr=sr.onerror,sr.onerror=function(t,e,r,n,o){return fr("error",{column:n,error:o,line:r,msg:t,url:e}),!!dr&&dr.apply(this,arguments)};break;case"unhandledrejection":hr=sr.onunhandledrejection,sr.onunhandledrejection=function(t){return fr("unhandledrejection",t),!hr||hr.apply(this,arguments)};break;default:tt&&Z.warn("unknown instrumentation type:",t)}}(t)}function fr(t,e){var r,n;if(t&&ar[t])try{for(var o=f(ar[t]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(e)}catch(e){tt&&Z.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Lt(s)+"\nError:",e)}}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function lr(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in sr&&w(t[0],Request)?t[0].url:String(t[0])}function pr(t,e){return void 0===e&&(e=!1),function(r){if(r&&ir!==r&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===or||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(ir,r))&&(t({event:r,name:n,global:e}),ir=r),clearTimeout(or),or=sr.setTimeout(function(){or=void 0},1e3)}}}var dr=null,hr=null,vr=["fatal","error","warning","log","info","debug","critical"];var yr=function(){function t(e){this.name=t.id,this._options=c({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&lt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:J(t)},{event:t})},t.prototype.setupOnce=function(){var t;this._options.console&&cr("console",gr),this._options.dom&&cr("dom",(t=this._options.dom,function(e){var r,n="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{r=e.event.target?I(e.event.target,n):I(e.event,n)}catch(t){r="<unknown>"}0!==r.length&&lt().addBreadcrumb({category:"ui."+e.name,message:r},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&cr("xhr",mr),this._options.fetch&&cr("fetch",_r),this._options.history&&cr("history",br)},t.id="Breadcrumbs",t}();function gr(t){var e,r={category:"console",data:{arguments:t.args,logger:"console"},level:(e=t.level,"warn"===e?u.Warning:function(t){return-1!==vr.indexOf(t)}(e)?e:u.Log),message:D(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: "+(D(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}lt().addBreadcrumb(r,{input:t.args,level:t.level})}function mr(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},r=e.method,n=e.url,o=e.status_code,i=e.body;lt().addBreadcrumb({category:"xhr",data:{method:r,url:n,status_code:o},type:"http"},{xhr:t.xhr,input:i})}}function _r(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?lt().addBreadcrumb({category:"fetch",data:t.fetchData,level:u.Error,type:"http"},{data:t.error,input:t.args}):lt().addBreadcrumb({category:"fetch",data:c(c({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function br(t){var e=(0,P.V)(),r=t.from,n=t.to,o=Y(e.location.href),i=Y(r),s=Y(n);i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),lt().addBreadcrumb({category:"navigation",data:{from:r,to:n}})}var Er,xr=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:jt}],version:jt},t.call(this,$e,e)||this}return a(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,P.V)().document&&(this._isEnabled()?rr(c(c({},t),{dsn:t.dsn||this.getDsn()})):qe&&Z.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,r,n){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,r,n)},e.prototype._sendEvent=function(e){var r=this.getIntegration(yr);r&&r.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Vt),wr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Sr=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(e){var n=r();if(n){var o=n.getIntegration(t);if(o){var i=n.getClient(),s=i?i.getOptions():{},a=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),{allowUrls:p(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:p(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:p(t.ignoreErrors||[],e.ignoreErrors||[],wr),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(o._options,s);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(qt&&Z.warn("Event dropped due to being internal Sentry Error.\nEvent: "+J(t)),!0):function(t,e){return!(!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},r=e.type,n=void 0===r?"":r,o=e.value,i=void 0===o?"":o;return[""+i,n+": "+i]}catch(e){return qt&&Z.error("Cannot extract message for event "+J(t)),[]}return[]}(t).some(function(t){return e.some(function(e){return M(t,e)})})}(t,e.ignoreErrors)?(qt&&Z.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+J(t)),!0):function(t,e){if(!e||!e.length)return!1;var r=Tr(t);return!!r&&e.some(function(t){return M(r,t)})}(t,e.denyUrls)?(qt&&Z.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+J(t)+".\nUrl: "+Tr(t)),!0):!function(t,e){if(!e||!e.length)return!0;var r=Tr(t);return!r||e.some(function(t){return M(r,t)})}(t,e.allowUrls)&&(qt&&Z.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+J(t)+".\nUrl: "+Tr(t)),!0)}(e,a)?null:e}}return e})},t.id="InboundFilters",t}();function Or(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var r=t[e];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function Tr(t){try{if(t.stacktrace)return Or(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?Or(e):null}catch(e){return qt&&Z.error("Cannot extract url for event "+J(t)),null}}var kr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Er=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=B(this)||this;return Er.apply(r,t)}},t.id="FunctionToString",t}(),Pr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],jr=function(){function t(e){this.name=t.id,this._options=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,P.V)();this._options.setTimeout&&L(t,"setTimeout",Cr),this._options.setInterval&&L(t,"setInterval",Cr),this._options.requestAnimationFrame&&L(t,"requestAnimationFrame",Rr),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&L(XMLHttpRequest.prototype,"send",Ir);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:Pr).forEach(Nr)},t.id="TryCatch",t}();function Cr(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0];return e[0]=er(n,{mechanism:{data:{function:Lt(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Rr(t){return function(e){return t.apply(this,[er(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Lt(t)},handled:!0,type:"instrument"}})])}}function Ir(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(t){t in n&&"function"==typeof n[t]&&L(n,t,function(e){var r={mechanism:{data:{function:t,handler:Lt(e)},handled:!0,type:"instrument"}},n=B(e);return n&&(r.mechanism.data.handler=Lt(n)),er(e,r)})}),t.apply(this,e)}}function Nr(t){var e=(0,P.V)(),r=e[t]&&e[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(L(r,"addEventListener",function(e){return function(r,n,o){try{"function"==typeof n.handleEvent&&(n.handleEvent=er(n.handleEvent.bind(n),{mechanism:{data:{function:"handleEvent",handler:Lt(n),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[r,er(n,{mechanism:{data:{function:"addEventListener",handler:Lt(n),target:t},handled:!0,type:"instrument"}}),o])}}),L(r,"removeEventListener",function(t){return function(e,r,n){var o=r;try{var i=o&&o.__sentry_wrapped__;i&&t.call(this,e,i,n)}catch(t){}return t.call(this,e,o,n)}}))}var Ar=function(){function t(e){this.name=t.id,this._installFunc={onerror:Dr,onunhandledrejection:Mr},this._options=c({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this._options;for(var e in t){var r=this._installFunc[e];r&&t[e]&&(Ur(e),r(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function Dr(){cr("error",function(t){var e=l(Br(),2),r=e[0],n=e[1];if(r.getIntegration(Ar)){var o=t.msg,i=t.url,s=t.line,a=t.column,c=t.error;if(!(tr()||c&&c.__sentry_own_request__)){var f=void 0===c&&m(o)?function(t,e,r,n){var o=y(t)?t.message:t,i="Error",s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(i=s[1],o=s[2]),Lr({exception:{values:[{type:i,value:o}]}},e,r,n)}(o,i,s,a):Lr(Re(c||o,void 0,n,!1),i,s,a);f.level=u.Error,Fr(r,c,f,"onerror")}}})}function Mr(){cr("unhandledrejection",function(t){var e=l(Br(),2),r=e[0],n=e[1];if(r.getIntegration(Ar)){var o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch(t){}if(tr()||o&&o.__sentry_own_request__)return!0;var i=_(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:Re(o,void 0,n,!0);i.level=u.Error,Fr(r,o,i,"onunhandledrejection")}})}function Lr(t,e,r,n){var o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],c=isNaN(parseInt(n,10))?void 0:n,f=isNaN(parseInt(r,10))?void 0:r,l=m(e)&&e.length>0?e:function(){var t=(0,P.V)();try{return t.document.location.href}catch(t){return""}}();return 0===u.length&&u.push({colno:c,filename:l,function:"?",in_app:!0,lineno:f}),t}function Ur(t){qe&&Z.log("Global Handler attached: "+t)}function Fr(t,e,r,n){$(r,{handled:!1,type:n}),t.captureEvent(r,{originalException:e})}function Br(){var t=lt(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}var qr=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){R(function(e,r){var n=lt().getIntegration(t);return n?function(t,e,r,n){if(!(r.exception&&r.exception.values&&n&&w(n.originalException,Error)))return r;var o=Hr(e,n.originalException,t);return r.exception.values=p(o,r.exception.values),r}(n._key,n._limit,e,r):e})},t.id="LinkedErrors",t}();function Hr(t,e,r,n){if(void 0===n&&(n=[]),!w(e[r],Error)||n.length+1>=t)return n;var o=Se(e[r]);return Hr(t,e[r],r,p([o],n))}var Gr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(e){var n=r().getIntegration(t);if(n){try{if(function(t,e){return!!e&&(!!function(t,e){var r=t.message,n=e.message;return!(!r&&!n)&&(!(r&&!n||!r&&n)&&(r===n&&(!!Vr(t,e)&&!!zr(t,e))))}(t,e)||!!function(t,e){var r=Wr(e),n=Wr(t);return!(!r||!n)&&(r.type===n.type&&r.value===n.value&&(!!Vr(t,e)&&!!zr(t,e)))}(t,e))}(e,n._previousEvent))return qe&&Z.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e})},t.id="Dedupe",t}();function zr(t,e){var r=Yr(t),n=Yr(e);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o],s=r[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Vr(t,e){var r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(t){return!1}}function Wr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Yr(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}var Xr=(0,P.V)(),Jr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){R(function(e){if(lt().getIntegration(t)){if(!Xr.navigator&&!Xr.location&&!Xr.document)return e;var r=e.request&&e.request.url||Xr.location&&Xr.location.href,n=(Xr.document||{}).referrer,o=(Xr.navigator||{}).userAgent,i=c(c(c({},e.request&&e.request.headers),n&&{Referer:n}),o&&{"User-Agent":o}),s=c(c({},r&&{url:r}),{headers:i});return c(c({},e),{request:s})}return e})},t.id="UserAgent",t}(),Kr=[new Sr,new kr,new jr,new yr,new Ar,new qr,new Gr,new Jr];function $r(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Kr),void 0===t.release){var e=(0,P.V)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&(qt?Z.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var r=lt(),n=r.getScope();n&&n.update(e.initialScope);var o=new t(e);r.bindClient(o)}(xr,t),t.autoSessionTracking&&function(){if(void 0!==(0,P.V)().document){var t=lt();t.captureSession&&(sn(t),cr("history",function(t){var e=t.from,r=t.to;void 0!==e&&e!==r&&sn(lt())}))}else qe&&Z.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}function Qr(t){void 0===t&&(t={});var e=lt(),r=e.getScope();r&&(t.user=c(c({},r.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());var n=e.getClient();n&&n.showReportDialog(t)}function Zr(){return lt().lastEventId()}function tn(){}function en(t){t()}function rn(t){var e=lt().getClient();return e?e.flush(t):(qe&&Z.warn("Cannot flush events. No client defined."),O(!1))}function nn(t){var e=lt().getClient();return e?e.close(t):(qe&&Z.warn("Cannot flush events and disable SDK. No client defined."),O(!1))}function on(t){return er(t)()}function sn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var an="sentry.javascript.browser",un={},cn=(0,P.V)();cn.Sentry&&cn.Sentry.Integrations&&(un=cn.Sentry.Integrations);var fn=c(c(c({},un),n),o)},6475(t,e,r){"use strict";r.d(e,{B:()=>s,V:()=>i});var n=r(258),o={};function i(){return(0,n.wD)()?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function s(t,e,r){var n=r||i(),o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}},258(t,e,r){"use strict";function n(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}r.d(e,{fj:()=>o,wD:()=>n}),t=r.hmd(t)},1678(t,e,r){"use strict";r.d(e,{lu:()=>u,zf:()=>c});var n=r(6475),o=r(258);t=r.hmd(t);var i={nowSeconds:function(){return Date.now()/1e3}},s=(0,o.wD)()?function(){try{return(0,o.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,n.V)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=i.nowSeconds.bind(i),c=a.nowSeconds.bind(a);!function(){var t=(0,n.V)().performance;if(t&&t.now){var e=36e5,r=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-o):e,s=i<e,a=t.timing&&t.timing.navigationStart,u="number"==typeof a?Math.abs(a+r-o):e;(s||u<e)&&(i<=u&&t.timeOrigin)}}()},2505(t,e,r){t.exports=r(8015)},5592(t,e,r){"use strict";var n=r(9516),o=r(7522),i=r(3948),s=r(9106),a=r(9615),u=r(2012),c=r(4202),f=r(7763),l=r(6987),p=r(1928);t.exports=function(t){return new Promise(function(e,r){var d,h=t.data,v=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}n.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var _=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var E=a(t.baseURL,t.url);function x(){if(m){var n="getAllResponseHeaders"in m?u(m.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:t,request:m};o(function(t){e(t),g()},function(t){r(t),g()},i),m=null}}if(m.open(t.method.toUpperCase(),s(E,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(x)},m.onabort=function(){m&&(r(f("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){r(f("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||l.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var w=(t.withCredentials||c(E))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;w&&(v[t.xsrfHeaderName]=w)}"setRequestHeader"in m&&n.forEach(v,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete v[e]:m.setRequestHeader(e,t)}),n.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),y&&"json"!==y&&(m.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){m&&(r(!t||t&&t.type?new p("canceled"):t),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),h||(h=null),m.send(h)})}},8015(t,e,r){"use strict";var n=r(9516),o=r(9012),i=r(5155),s=r(5343),a=function t(e){var r=new i(e),a=o(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return t(s(e,r))},a}(r(6987));a.Axios=i,a.Cancel=r(1928),a.CancelToken=r(3191),a.isCancel=r(3864),a.VERSION=r(9641).version,a.all=function(t){return Promise.all(t)},a.spread=r(7980),a.isAxiosError=r(5019),t.exports=a,t.exports.default=a},1928(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191(t,e,r){"use strict";var n=r(1928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;this.promise.then(function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}}),this.promise.then=function(t){var e,n=new Promise(function(t){r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t){r.reason||(r.reason=new n(t),e(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},3864(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},5155(t,e,r){"use strict";var n=r(9516),o=r(9106),i=r(3471),s=r(4490),a=r(5343),u=r(4841),c=u.validators;function f(t){this.defaults=t,this.interceptors={request:new i,response:new i}}f.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(t){i.push(t.fulfilled,t.rejected)}),!n){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(i),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var l=t;r.length;){var p=r.shift(),d=r.shift();try{l=p(l)}catch(t){d(t);break}}try{o=s(l)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},f.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(t){f.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(t){f.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}}),t.exports=f},3471(t,e,r){"use strict";var n=r(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},9615(t,e,r){"use strict";var n=r(9137),o=r(4680);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},7763(t,e,r){"use strict";var n=r(5449);t.exports=function(t,e,r,o,i){var s=new Error(t);return n(s,e,r,o,i)}},4490(t,e,r){"use strict";var n=r(9516),o=r(2881),i=r(3864),s=r(6987),a=r(1928);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},5449(t){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},5343(t,e,r){"use strict";var n=r(9516);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function s(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function a(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)}),r}},7522(t,e,r){"use strict";var n=r(7763);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},2881(t,e,r){"use strict";var n=r(9516),o=r(6987);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,function(r){t=r.call(i,t,e)}),t}},6987(t,e,r){"use strict";var n=r(9516),o=r(7018),i=r(5449),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(5592)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(a(e,"application/json"),function(t){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,r=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(s){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(t){c.headers[t]={}}),n.forEach(["post","put","patch"],function(t){c.headers[t]=n.merge(s)}),t.exports=c},9641(t){t.exports={version:"0.24.0"}},9012(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},9106(t,e,r){"use strict";var n=r(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var s=[];n.forEach(e,function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))}))}),i=s.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},4680(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},3948(t,e,r){"use strict";var n=r(9516);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},5019(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},4202(t,e,r){"use strict";var n=r(9516);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},7018(t,e,r){"use strict";var n=r(9516);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},2012(t,e,r){"use strict";var n=r(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,s={};return t?(n.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([r]):s[e]?s[e]+", "+r:r}}),s):s}},7980(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4841(t,e,r){"use strict";var n=r(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var i={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,s){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,s)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],s=e[i];if(s){var a=t[i],u=void 0===a||s(a,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},9516(t,e,r){"use strict";var n=r(9012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)f(arguments[n],r);return e},extend:function(t,e,r){return f(e,function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e}),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6765(t,e,r){"use strict";function n(t){this.message=t}r.r(e),r.d(e,{InvalidTokenError:()=>s,default:()=>a}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=e.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(o(t).replace(/(.)/g,function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(e)}catch(t){return o(e)}}function s(t){this.message=t}s.prototype=new Error,s.prototype.name="InvalidTokenError";const a=function(t,e){if("string"!=typeof t)throw new s("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(i(t.split(".")[r]))}catch(t){throw new s("Invalid token specified: "+t.message)}}},6624(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerEvents=e.Events=e.Player=e.Client=void 0,r(6398),r(5985),r(2989),r(7782);var i=r(2511);e.Client=i.default;var s=r(6671);e.Player=s.default,(0,r(2121).printVersion)();var a=o([n({},i.default.eventNames),n({},s.default.events)],2),u=a[0],c=a[1];e.Events=u,e.PlayerEvents=c},2511(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var i=r(2955),s=r(6321),a=r(632),u=r(8368),c=r(7481),f=r(1499),l=r(6612),p=o(r(3685).Sn,[]),d=function(){function t(e){var r=this;this.clientConfig=void 0,this.gaProperty="",this.directDeliveryPipe=void 0,this.player=void 0,this.renderHistory=p.emptyHistory,this.eventDelegateRefs=(0,l.cloneWithKeys)(t.eventNames),this.playerIsFallback=!1,this.setup=function(t){var e=p.defaultConfig,o=r.clientConfig||p.defaultConfig,s=new Map,d=null;try{if("object"!=typeof t)throw new f.ClientConfigurationError("badConfig",null);if(!t.hasOwnProperty("storyId")||"string"!=typeof t.storyId)throw new f.ClientConfigurationError("storyId",null);if(!t.hasOwnProperty("accessToken")||"string"!=typeof t.accessToken)throw new f.ClientConfigurationError("accessToken",null);(0,l.prepConfig)(t,e),r.clientConfig=n(n({},o),t),d=new i.default(r.clientConfig.accessToken,r.clientConfig.environment,r.clientConfig.storyId,r.clientConfig.compositionId),s.set("experienceCreated",function(t){return r.experienceCreated(t)}),s.set("gotExperience",function(t){return r.gotExperience(t)}),s.set("internalError",function(t){return r.internalError(t)}),r.directDeliveryPipe=new c.default({api:d,clientDelegates:s,environment:r.clientConfig.environment}),d.getGAProperty().then(function(t){var e=t.gaTrackingId;"string"==typeof e&&e.length>0&&(a.default.initialize(r.clientConfig.gaPlacement),r.gaProperty=e,void 0!==r.player&&r.player.setGaProperty(e))}).catch(function(t){var e=new f.HTTPError("httpFailure",null,t);u.default.trapError(e,r.clientConfig.storyId,null)})}catch(e){var h=t&&t.storyId?t.storyId:"";u.default.trapError(e,h)}},this.bindPlayer=function(t,e){if(void 0===e&&(e=!1),r.clientConfig){var n=r.clientConfig.storyId;r.playerIsFallback=e,r.player=t,t.setStoryId(n),r.gaProperty&&t.setGaProperty(r.gaProperty)}},this.on=function(e,n){var o=r,i=o.eventDelegateRefs,s=o.eventDelegateRefs.ERROR;if(r.clientConfig){var a=r.clientConfig.storyId;try{if(!(0,l.isFunc)(n))throw new f.ClientConfigurationError("invalidCallbackType",e);if(!(0,l.keyExists)(t.eventNames,e))throw new f.ClientConfigurationError("invalidEventName",e);i[e]=n}catch(t){u.default.trapError(t,a,s)}}},this.off=function(e){void 0===e&&(e="");var n=r,o=n.eventDelegateRefs,i=n.eventDelegateRefs.ERROR;if(r.clientConfig){var s=r.clientConfig.storyId;try{if(e){if(!(0,l.keyExists)(t.eventNames,e))throw new f.ClientConfigurationError("invalidEventName",e);o[e]=null}else Object.keys(t.eventNames).forEach(function(t){o[t]=null})}catch(t){u.default.trapError(t,s,i)}}},this.captureAnalytics=function(t){void 0===t&&(t=null);var e=r.eventDelegateRefs.ERROR;if(r.clientConfig){var n=r.clientConfig.storyId;try{if(!(t instanceof HTMLVideoElement))throw new f.PlayerConfigurationError("invalidPlayerRef",null);r.bindPlayer(new s.default(t),!0)}catch(t){u.default.trapError(t,n,e)}}},this.getExperience=function(e){if(r.clientConfig){var n=r,o=n.player,i=n.clientConfig.storyId,s=n.eventDelegateRefs,a=s.GOT_EXPERIENCE,c=s.ERROR;try{if(null===o&&!(0,l.isFunc)(a))throw new f.ClientConfigurationError("badConfigOnGet",t.eventNames.GOT_EXPERIENCE);e.length>p.uuidLength&&(e=e.substring(0,p.uuidLength)),r.directDeliveryPipe.getExperience(e)}catch(t){u.default.trapError(t,i,c)}}},this.createExperience=function(e,n){if(void 0===n&&(n=!0),r.clientConfig){var o=r,i=o.player,s=o.playerIsFallback,a=o.clientConfig.storyId,c=o.eventDelegateRefs,p=c.GOT_EXPERIENCE,d=c.UPLOAD_PROGRESS,h=c.ERROR;try{if((null===i||s)&&!(0,l.isFunc)(p))throw new f.ClientConfigurationError("bagConfigOnPostRender",t.eventNames.GOT_EXPERIENCE);r.directDeliveryPipe.createExperience(e,n,d)}catch(t){u.default.trapError(t,a,h)}}},this.renderExperience=function(e){if(r.clientConfig){var n=r,o=n.player,i=n.playerIsFallback,s=n.clientConfig.storyId,a=n.eventDelegateRefs,c=a.GOT_EXPERIENCE,p=a.UPLOAD_PROGRESS,d=a.ERROR;try{if((null===o||i)&&!(0,l.isFunc)(c))throw new f.ClientConfigurationError("bagConfigOnPostRender",t.eventNames.GOT_EXPERIENCE);r.directDeliveryPipe.fetchExperience(e,p)}catch(t){u.default.trapError(t,s,d)}}},this.renderExperienceFromId=function(e){if(r.clientConfig){var n=r,o=n.player,i=n.playerIsFallback,s=n.clientConfig.storyId,a=n.eventDelegateRefs,c=a.GOT_EXPERIENCE,p=a.UPLOAD_PROGRESS,d=a.ERROR;try{if((null===o||i)&&!(0,l.isFunc)(c))throw new f.ClientConfigurationError("bagConfigOnPostRender",t.eventNames.GOT_EXPERIENCE);r.directDeliveryPipe.fetchExperience(null,p,1,e)}catch(t){u.default.trapError(t,s,d)}}},this.updateHistory=function(t,e){r.renderHistory[t]!==e&&(r.renderHistory[t]=e)},this.experienceCreated=function(t){var e=r.eventDelegateRefs.EXPERIENCE_CREATED,n=t.id;(0,l.isFunc)(e)&&e(t),r.updateHistory("prevExperienceId",n)},this.gotExperience=function(t){var e=r,n=e.player,o=e.clientConfig.storyId,i=e.eventDelegateRefs,s=i.GOT_EXPERIENCE,a=i.ERROR,c=t.id,p=t.moderation_status;try{if("rejected"===p)throw new f.ModerationError("rejection",c);(0,l.isFunc)(s)&&s(t),void 0!==n&&n.experienceGenerated(t),r.updateHistory("prevExperienceId",c),r.updateHistory("prevMessage","")}catch(t){u.default.trapError(t,o,a)}},this.internalError=function(t){var e=r,n=e.clientConfig.storyId,o=e.eventDelegateRefs.ERROR;u.default.trapError(t,n,o)},this.setup(e)}return t.eventNames=p.eventNames,t}();e.default=d},7481(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6612),o=r(1499),i=function(){function t(t){var e=this;this.api=null,this.clientDelegates=null,this.configCache=new Map,this.getExperience=function(t){clearTimeout(e.killPollTimeout),e.killPollTimeout=setTimeout(function(){return e.killPoll(t)},18e4),e.pollForExperience(t,function(t){clearTimeout(e.killPollTimeout),e.clientDelegates.get("gotExperience")(t)},function(r){clearTimeout(e.killPollTimeout);var n=new o.HTTPError("httpFailure",t,r);e.clientDelegates.get("internalError")(n)})},this.fetchExperience=function(t,r,i,s){void 0===i&&(i=1),void 0===s&&(s=null);var a=s||(0,n.generateUUID)();e.api.fetch(t,a,r).then(function(t){if(t.error){var r=new o.RenderError(t.error,a);e.clientDelegates.get("internalError")(r)}else e.configCache.delete(a),e.clientDelegates.get("gotExperience")(t)}).catch(function(n){var u,c;if(null===(c=null===(u=null==n?void 0:n.response)||void 0===u?void 0:u.data)||void 0===c?void 0:c.error){var f=new o.RenderError(n.response.data.error,a);e.clientDelegates.get("internalError")(f)}else n.response&&408===n.response.status?e.getExperience(a):n.response&&n.response.status>=500&&i<3?(i+=1,e.fetchExperience(t,r,i,s)):(f=new o.HTTPError("httpFailure",a,n),e.clientDelegates.get("internalError")(f))})},this.createExperience=function(t,r,i,s){void 0===s&&(s=0);var a=(0,n.generateUUID)();e.api.create(t,r,a,i).then(function(t){e.configCache.delete(a),e.clientDelegates.get("experienceCreated")(t)}).catch(function(n){if(n.response&&n.response.status>=500&&s<3)s+=1,e.createExperience(t,r,i,s);else{var u=new o.HTTPError("httpFailure",a,n);e.clientDelegates.get("internalError")(u)}})},this.api=t.api,this.clientDelegates=t.clientDelegates}return t.prototype.killPoll=function(t){clearTimeout(this.pollTimeout);var e=new o.HTTPError("pollTimeout",t);this.clientDelegates.get("internalError")(e)},t.prototype.pollForExperience=function(t,e,r,n){var i=this;void 0===n&&(n=1),this.api.get(t).then(function(s){if(s.rendering)clearTimeout(i.pollTimeout),i.pollTimeout=setTimeout(function(){i.pollForExperience(t,e,r,n)},5e3);else if(clearTimeout(i.pollTimeout),s.error){var a=new o.RenderError(s.error,t);i.clientDelegates.get("internalError")(a)}else e(s)}).catch(function(o){clearTimeout(i.pollTimeout),o.response&&o.response.status>=500&&n<3?(n+=1,i.pollForExperience(t,e,r,n)):r(o)})},t}();e.default=i},2955(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var i=r(6765),s=r(2505),a=r(6612),u=o(r(3685).FH,[]);e.default=function(t,e,r,o){var c;void 0===o&&(o=null);var f=this;this.http=null,this.storyId="",this.compositionId="",this.getGAProperty=function(){return new Promise(function(t,e){f.http.get("/story/".concat(f.storyId,"/property")).then(function(e){t(e.data)}).catch(function(t){e(t)})})},this.get=function(t){return new Promise(function(e,r){f.http.get("/story/".concat(f.storyId,"/experience/").concat(t,"?r=").concat(Math.random())).then(function(t){e(t.data)}).catch(function(t){r(t)})})},this.fetch=function(t,e,r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=(0,a.inventoryToFormData)(f.storyId,t,f.compositionId),i={onUploadProgress:function(t){return f.uploadProgress(t,r)}};return o.append("id",e),new Promise(function(t,e){f.http.post("/experience/fetch",o,i).then(function(e){t(e.data)}).catch(function(t){e(t)})})},this.create=function(t,e,r,n){void 0===n&&(n=null);var o=e?"/experience/render":"/experience",i=(0,a.inventoryToFormData)(f.storyId,t,f.compositionId),s={onUploadProgress:function(t){return f.uploadProgress(t,n)}};return i.append("id",r),new Promise(function(t,e){f.http.post(o,i,s).then(function(e){t(e.data)}).catch(function(t){e(t)})})},this.getAuthHeader=function(t){var e,r,n=u.jwt,o=u.hmac;try{return(0,i.default)(t),(e={})[n]=t,e}catch(e){return(r={})[o]=t,r}},this.uploadProgress=function(t,e){if(void 0===e&&(e=null),e){var r=t.loaded,n=t.total;e(Math.round(r/n*100))}};var l=u.version,p=u.currentVersion;this.storyId=r,this.compositionId=o,this.http=s.default.create({baseURL:u[e],headers:n(n({},this.getAuthHeader(t)),(c={},c[l]=p,c))})}},8368(t,e,r){"use strict";var n=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var o=r(4912),i=r(1499),s=r(2121),a=n(r(197),[]),u=r(3685).e$,c=function(){function t(){}return t.logWarning=function(t,e){console.warn("IMPOSIUM\n".concat(a[t][e]))},t.trapError=function(e,r,n){void 0===n&&(n=null),e=e.log?e:new i.UncaughtError("generic",e),r&&e.setStoryId(r),n&&n(e),e.log(),t.hub.run(function(t){t.configureScope(function(n){n.setTag("type",e.type),n.setTag("version",e.version),n.setTag("storyId",r||"<not_set>"),e.experienceId&&n.setTag("experienceId",e.experienceId),e.axiosError&&("object"==typeof e.axiosError.response?n.setExtra("response",e.axiosError.response):"object"==typeof e.axiosError.request?(n.setExtra("request",e.axiosError.request),n.setExtra("reuqestConfig",e.axiosError.config)):(n.setExtra("axiosErrorMessage",e.axiosError.message),n.setExtra("reuqestConfig",e.axiosError.config))),e.closeEvent&&n.setExtra("socketCloseEvent",{code:e.closeEvent.code,type:e.closeEvent.type,timestamp:e.closeEvent.timeStamp,wsUrl:e.closeEvent.target.url,wsBufferedAmount:e.closeEvent.target.bufferedAmount}),t.captureException(e)})})},t.sentryClient=new o.BrowserClient({debug:!1,dsn:u.dsn,integrations:[new o.Integrations.UserAgent],beforeSend:function(e){return t.cleanDucktype(e)},release:"".concat(u.projectName,"@").concat(s.version)}),t.hub=new o.Hub(t.sentryClient),t.cleanDucktype=function(t){return void 0===t.extra||t.extra.Error&&(delete t.extra.Error.log,delete t.extra.Error.logHeader,delete t.extra.Error.setStoryId,t.extra.Error.axiosError&&delete t.extra.Error.axiosError,t.extra.Error.closeEvent&&delete t.extra.Error.closeEvent),t},t}();e.default=c},1499(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.UncaughtError=e.HTTPError=e.PlayerConfigurationError=e.ClientConfigurationError=e.ModerationError=e.RenderError=e.ImposiumError=void 0;var s=r(2121),a=i(r(963),[]),u="moderation",c="clientConfiguration",f="playerConfiguration",l="network",p="uncaught",d=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="",o.version=s.version,o.storyId="<not_set>",o.logHeader="[IMPOSIUM ERROR]",o.setStoryId=function(t){o.storyId=t},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.type=n,o}return o(e,t),e}(Error);e.ImposiumError=d;var h=function(t){function e(r,n){var o=t.call(this,r,"render")||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Error rendering dynamic video\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.experienceId=n||"<not_set>",o}return o(e,t),e}(d);e.RenderError=h;var v=function(t){function e(r,n){var o=t.call(this,a[u][r],u)||this;return o.experienceId=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Failed to pass moderation\n \nExperience ID: ").concat(o.experienceId,"\n \nMessage: ").concat(o.message))},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.experienceId=n||"<not_set>",o}return o(e,t),e}(d);e.ModerationError=v;var y=function(t){function e(r,n){var o=t.call(this,a[c][r],c)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid client configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.eventName=n||"<not_set>",o}return o(e,t),e}(d);e.ClientConfigurationError=y;var g=function(t){function e(r,n){var o=t.call(this,a[f][r],f)||this;return o.eventName="",o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Invalid player configuration\n \nMessage: ").concat(o.message,"\n \nEvent name: ").concat(o.eventName))},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.eventName=n||"<not_set>",o}return o(e,t),e}(d);e.PlayerConfigurationError=g;var m=function(t){function e(r,n,o){var i,s,u=this;return(u=t.call(this,a[l][r],l)||this).experienceId=null,u.axiosError=null,u.log=function(){console.error("".concat(u.logHeader,"\n \nReason: HTTP error\n \nMessage: ").concat(u.message,"\n \nExperience ID: ").concat(u.experienceId,"\n \nNetwork Error: ").concat(u.axiosError," "))},Error.captureStackTrace&&Error.captureStackTrace(u,e),(null===(s=null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.data)||void 0===s?void 0:s.error)&&(u.message=o.response.data.error),u.experienceId=n||"<not_set>",u.axiosError=o||"<not_set>",u}return o(e,t),e}(d);e.HTTPError=m;var _=function(t){function e(r,n){var o=t.call(this,a[p][r],p)||this;return o.uncaughtError=null,o.log=function(){console.error("".concat(o.logHeader,"\n \nReason: Unknown\n \nMessage: ").concat(o.message,"\n \nError: "),o.uncaughtError)},Error.captureStackTrace&&Error.captureStackTrace(o,e),o.uncaughtError=n,o}return o(e,t),e}(d);e.UncaughtError=_},632(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s=r(8368),a=r(2505),u=r(6612),c=o(r(3685).zS,[]),f=function(){function t(){}return t.gaPlacement="",t.initialize=function(e){try{var r=new Date,n=JSON.parse(localStorage.getItem(t.CACHE_KEY))||{};if(t.gaPlacement=e,n.uuid&&n.expiry>=(new Date).valueOf())return void(t.CLIENT_ID=n.uuid);n.uuid=(0,u.generateUUID)(),n.expiry=r.setFullYear(r.getFullYear()+2),localStorage.setItem(t.CACHE_KEY,JSON.stringify(n)),t.CLIENT_ID=n.uuid}catch(e){t.CLIENT_ID=(0,u.generateUUID)()}},t.send=function(e){var r,o,u=t.BASE_URL,c=document.referrer;e=n({v:"1",ds:t.gaPlacement,cid:t.CLIENT_ID,z:"".concat(Math.round((new Date).getTime()/1e3))},e),""!==c&&(e.dr=c);try{for(var f=i(Object.keys(e)),l=f.next();!l.done;l=f.next()){var p=l.value,d=u===t.BASE_URL?"?":"&";u+="".concat(d).concat(p,"=").concat(encodeURIComponent(e[p]))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}a.default.get(u).catch(function(){s.default.logWarning("analytics","requestFailed")})},t.BASE_URL=c.baseUrl,t.CACHE_KEY=c.cacheKey,t.CLIENT_ID=c.cidPlaceholder,t}();e.default=f},6612(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inventoryToFormData=e.generateUUID=e.calculateAverageMbps=e.calculateMbps=e.cloneWithKeys=e.keyExists=e.isFunc=e.inRangeNumeric=e.prepConfig=void 0,e.prepConfig=function(t,e){var r=Object.keys(e);for(var n in t)-1===r.indexOf(n)&&delete t[n]},e.inRangeNumeric=function(t,e,r){return(t-e)*(t-r)<=0},e.isFunc=function(t){return"[object Function]"===Object.prototype.toString.call(t)},e.keyExists=function(t,e){return~Object.keys(t).map(function(e){return t[e]}).indexOf(e)},e.cloneWithKeys=function(t){return Object.keys(t).reduce(function(t,e){return t[e]=null,t},{})},e.calculateMbps=function(t,e){return 8*e/(((new Date).getTime()-t)/1e3)/Math.pow(1024,2)},e.calculateAverageMbps=function(t){var e=t.reduce(function(t,e){return t+e});return parseFloat((e/t.length).toFixed(2))},e.generateUUID=function(){var t=window.performance,e=(new Date).getTime();return void 0!==t&&"function"==typeof t.now&&(e+=t.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:7&r|8).toString(16)})},e.inventoryToFormData=function(t,e,r){void 0===r&&(r=null);var n=new FormData;for(var o in n.append("story_id",t),r&&n.append("composition_id",r),e)if(e[o]){var i=e[o];if(i&&"file"===i.type){var s=i.files;s.length>0?(e[o]="",n.append(o,s[0])):e[o]=""}else i&&i instanceof File&&(e[o]="",n.append(o,i,i.name));n.append("inventory[".concat(o,"]"),e[o])}return n}},2121(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.printVersion=e.version=void 0,e.version="3.5.7",e.printVersion=function(){console.log("%cPowered By%c Imposium%c v".concat("3.5.7","%c https://imposium.com"),"text-transform: uppercase; padding: 5px 0px 5px 5px; background-color: black; color: white;","text-transform: uppercase; padding: 5px 0px 5px 0px; background-color: black; color: #a1b83a;","padding: 5px 5px 5px 0px; background-color: black; color: white;","padding: 5px 5px 5px 0px;")}},6321(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var r=t.call(this,e)||this;return r.experienceGenerated=function(t){var e=t.id;r.setExperienceId(e)},r}return o(e,t),e}(r(9722).default);e.default=i},6671(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var a=r(2505),u=r(9722),c=r(8368),f=r(1499),l=r(6612),p=r(3685).xY,d=window.hls,h=function(t){function e(r,n,o){void 0===o&&(o=p.defaultConfig);var u=t.call(this,r)||this;u.eventDelegateRefs={play:{callback:null,native:!0},pause:{callback:null,native:!0},ended:{callback:null,native:!0},error:{callback:null,native:!0},seeked:{callback:null,native:!0},timeupdate:{callback:null,native:!0},volumechanged:{callback:null,native:!0},muted:{callback:null,native:!1},controlsset:{callback:null,native:!1}},u.hlsSupport="",u.hlsPlayer=null,u.imposiumPlayerConfig=null,u.init=function(t){var e=p.defaultConfig;for(var r in(0,l.prepConfig)(t,e),u.imposiumPlayerConfig=i(i({},e),t),u.imposiumPlayerConfig)u.imposiumPlayerConfig[r]&&(u.node[r]=u.imposiumPlayerConfig[r])},u.experienceGenerated=function(t){var e=u.imposiumPlayerConfig.qualityOverride,r=t.id,n=t.output,o=n.videos,i=n.images,s="";u.setExperienceId(r),i&&i.hasOwnProperty("poster")&&(s=i.poster),e?u.doQualityOverride(o,s):u.doQualityAssessment(o,s)},u.on=function(t,r){var n=u,o=n.storyId,i=n.eventDelegateRefs;try{if(!(0,l.isFunc)(r))throw new f.PlayerConfigurationError("invalidCallbackType",t);if(!(0,l.keyExists)(e.events,t))throw new f.PlayerConfigurationError("invalidEventName",t);var s=i[t];s.callback=r,s.native&&u.node.addEventListener(t,s.callback)}catch(t){c.default.trapError(t,o)}},u.off=function(t){var r=u,n=r.storyId,o=r.eventDelegateRefs;try{if(!(0,l.keyExists)(e.events,t))throw new f.PlayerConfigurationError("invalidEventName",t);var i=o[t];i.native&&u.node.removeEventListener(t,i.callback),i.callback=null}catch(t){c.default.trapError(t,n)}},u.play=function(){u.node.play().catch(function(){console.error("Error playing video")})},u.pause=function(){u.node.pause()},u.getPlaybackState=function(){return u.node.paused?"paused":"playing"},u.getPosition=function(){return u.node.currentTime},u.getDuration=function(){return u.node.duration},u.seek=function(t){var e=u.node.duration;isNaN(e)?c.default.logWarning("playerFailure","seekNotReady"):(t=Math.floor(t),(0,l.inRangeNumeric)(t,0,e)?u.node.currentTime=t:c.default.logWarning("playerFailure","invalidSeekTime"))},u.getMute=function(){return u.node.muted},u.setMute=function(t){var e=u.eventDelegateRefs.muted.callback;u.node.muted=t,e&&e()},u.getVolume=function(){return u.node.volume},u.setVolume=function(t){var e=p.volumeMin,r=p.volumeMax;t=Math.round(10*t)/10,(0,l.inRangeNumeric)(t,e,r)?u.node.volume=t:c.default.logWarning("playerFailure","invalidVolume")},u.getControls=function(){return u.node.controls},u.setControls=function(t){var e=u.eventDelegateRefs.controlsset;u.node.controls=t,e&&e.callback()},u.replay=function(){u.pauseIfPlaying(),u.node.currentTime=0,u.play()},u.remove=function(){var t,e,r=u.eventDelegateRefs,n=p.defaultConfig;u.pauseIfPlaying();try{for(var o=s(Object.keys(r)),a=o.next();!a.done;a=o.next()){var c=a.value;u.off(r[c])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}u.imposiumPlayerConfig=i({},n),u.node=null},u.setupHls=function(){var t=e.hlsSupportLevels,r=t.NATIVE,n=t.HLSJS;u.node.canPlayType(e.STREAM_TYPE)?u.hlsSupport=r:void 0!==d&&d.isSupported()&&(u.hlsSupport=n)},u.doQualityOverride=function(t,e){var r=u.storyId,n=u.imposiumPlayerConfig.qualityOverride;try{if(!t.hasOwnProperty(n))throw new f.PlayerConfigurationError("badQualityOverride",null);u.setPlayerData(t[n].url,!0,e)}catch(t){c.default.trapError(t,r)}},u.doQualityAssessment=function(t,r){var n=u.hlsSupport,o=e.compressionLevels.STREAM;if(t.hasOwnProperty(o)&&n)u.setPlayerData(t[o].url,!0,r);else{var i=Object.keys(t);1===i.length?u.setPlayerData(t[i[0]].url,!1,r):u.checkBandwidth(t).then(function(e){u.setPlayerData(t[e].url,!1,r)}).catch(function(e){u.setPlayerData(t[e].url,!1,r)})}},u.sampleBandwidth=function(){var t="".concat(e.TEST_IMAGE,"?bust=").concat(Math.random()),r={responseType:"blob",timeout:1500};return new Promise(function(e,n){var o=(new Date).getTime();a.default.get(t,r).then(function(t){var r=t.data.size;e((0,l.calculateMbps)(o,r))}).catch(function(t){n(t)})})},u.checkBandwidth=function(t){for(var r=e.BANDWIDTH_SAMPLES,n=[],o=Object.keys(t).filter(function(t){return"m3u8"!==t}),i=0;i<r;i++)n.push(u.sampleBandwidth());return new Promise(function(e,r){Promise.all(n).then(function(r){var n=(0,l.calculateAverageMbps)(r),i={};o.forEach(function(e){var r=t[e],n=r.width,o=r.height;i[n*o/1e5]=e});var s=Object.keys(i).map(function(t){return parseFloat(t)}).reduce(function(t,e){return Math.abs(t-n)<Math.abs(e-n)?t:e});e(i[s])}).catch(function(){r(o.slice(-1).pop())})})},u.setPlayerData=function(t,r,n){void 0===n&&(n=null);var o=u.hlsSupport,i=e.hlsSupportLevels.HLSJS;r&&o===i?(u.hlsPlayer&&u.hlsPlayer.destroy(),u.hlsPlayer=new d,u.hlsPlayer.attachMedia(u.node),u.hlsPlayer.loadSource(t)):u.node.src=t,n&&(u.node.poster=n)},u.pauseIfPlaying=function(){u.node.paused||u.node.pause()};var h=!(!n||!n.clientConfig);try{if(!h)throw new f.PlayerConfigurationError("badClient",null);r instanceof HTMLVideoElement&&(n.bindPlayer(u),u.init(o),u.setupHls())}catch(t){var v=h?n.clientConfig.storyId:"";c.default.trapError(t,v)}return u}return o(e,t),e.events={PLAY:"play",PAUSE:"pause",COMPLETE:"ended",ERROR:"error",SEEK:"seeked",TIME:"timeupdate",VOLUME:"volumechange",MUTE:"muted",CONTROLS:"controlsset"},e.STREAM_TYPE=p.streamType,e.BANDWIDTH_SAMPLES=p.bandwidthSamples,e.TEST_IMAGE=p.testImage,e.bandwidthRatings={LOW:p.bandwidth.low,MID:p.bandwidth.mid},e.compressionLevels={STREAM:p.compression.stream,LOW:p.compression.low,MID:p.compression.mid,HIGH:p.compression.high},e.hlsSupportLevels={NATIVE:p.hlsSupportLevels.native,HLSJS:p.hlsSupportLevels.hlsjs},e}(u.default);e.default=h},9722(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i=r(8368),s=r(632),a=r(1499),u=r(3685).xY,c=function(){function t(e){var r,u,c=this;this.node=null,this.storyId="",this.gaProperty="",this.playbackHandlers=new Map([["play",function(){return c.onPlay()}],["pause",function(){return c.onPause()}],["ended",function(){return c.onEnded()}],["loaded",function(){return c.onLoad()}],["volumechange",function(){return c.onVolumeChange()}]]),this.queuedGACalls=[],this.experienceId="",this.prevPlaybackEvent=0,this.playbackInterval=-1,this.muted=!1,this.remove=function(){var t,e;try{for(var r=n(c.playbackHandlers.entries()),i=r.next();!i.done;i=r.next()){var s=o(i.value,2),a=s[0],u=s[1];c.node.removeEventListener(a,u)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},this.setGaProperty=function(t){for(c.gaProperty&&c.gaProperty!==t&&c.queuedGACalls.length>0&&(c.queuedGACalls=[]),c.gaProperty=t;c.queuedGACalls.length;)s.default.send(c.queuedGACalls.pop())},this.setStoryId=function(t){c.storyId=t},this.setExperienceId=function(t){c.experienceId=t},this.emitGAEventAction=function(e){var r=t.GA_EMIT_TYPE,n=t.GA_EMIT_CATEGORY,o=c,i={t:r,tid:o.gaProperty,ec:n,el:o.experienceId,ea:e};c.gaProperty?s.default.send(i):c.queuedGACalls.push(i)},this.onLoad=function(){c.emitGAEventAction("loaded")},this.onVolumeChange=function(){!c.muted&&c.node.muted&&(c.emitGAEventAction("muted"),c.muted=!0),c.muted&&!c.node.muted&&(c.emitGAEventAction("unmuted"),c.muted=!1)},this.onPlay=function(){var e=window.setInterval;clearInterval(c.playbackInterval),c.playbackInterval=e(function(){return c.checkPlayback()},t.INTERVAL_RATE),c.emitGAEventAction("play")},this.onPause=function(){clearInterval(c.playbackInterval),c.node.duration!==c.node.currentTime&&c.emitGAEventAction("pause")},this.onEnded=function(){clearInterval(c.playbackInterval),c.emitGAEventAction("playback_1"),c.prevPlaybackEvent=0},this.checkPlayback=function(){if(c.node){var e=c.node,r=e.currentTime/e.duration,n=t.PLAYBACK_EVENTS[c.prevPlaybackEvent];r>n&&(c.emitGAEventAction("playback_".concat(n)),c.prevPlaybackEvent++)}else clearInterval(c.playbackInterval)};try{if(!(e instanceof HTMLVideoElement))throw new a.PlayerConfigurationError("invalidPlayerRef",null);try{for(var f=n(this.playbackHandlers.entries()),l=f.next();!l.done;l=f.next()){var p=o(l.value,2),d=p[0],h=p[1];e.addEventListener(d,h)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(r)throw r.error}}this.node=e,this.muted=e.muted}catch(t){i.default.trapError(t,this.storyId)}}return t.INTERVAL_RATE=u.checkPlaybackRateMs,t.PLAYBACK_EVENTS=u.playbackEvents,t.GA_EMIT_TYPE="event",t.GA_EMIT_CATEGORY="video_player",t}();e.default=c},1015(t,e,r){"use strict";var n=r(8418);t.exports=n},9062(t,e,r){"use strict";var n=r(2181);t.exports=n},8473(t,e,r){"use strict";r(9085);var n=r(9167);t.exports=n.Object.assign},6398(t,e,r){"use strict";r(67),r(3792),r(6099),r(3362),r(6167),r(3518),r(1689),r(4628),r(9391),r(7764);var n=r(9167);t.exports=n.Promise},5648(t,e,r){"use strict";r(2675);var n=r(9167);t.exports=n.Symbol.keyFor},2989(t,e,r){"use strict";t.exports=r(1155)},7782(t,e,r){"use strict";t.exports=r(6008)},5985(t,e,r){"use strict";t.exports=r(7267)},1155(t,e,r){"use strict";r(6099),r(3792),r(6033),r(6385),r(1517),r(1379),r(3777),r(4190),r(2359),r(6097),r(7254),r(7036),r(7273),r(7415),r(9929),r(7583),r(5122),r(230),r(7268),r(9733);var n=r(9167);t.exports=n.Map.of},6008(t,e,r){"use strict";var n=r(1015);t.exports=n},7267(t,e,r){"use strict";var n=r(9062);t.exports=n},9306(t,e,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},5548(t,e,r){"use strict";var n=r(3517),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},6194(t,e,r){"use strict";var n=r(2248).has;t.exports=function(t){return n(t),t}},3506(t,e,r){"use strict";var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},6469(t,e,r){"use strict";var n=r(8227),o=r(2360),i=r(4913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},679(t,e,r){"use strict";var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},8551(t,e,r){"use strict";var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},5652(t,e,r){"use strict";var n=r(9039);t.exports=n(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})},9617(t,e,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(t){return function(e,r,s){var a=n(e),u=i(a);if(0===u)return!t&&-1;var c,f=o(s,u);if(t&&r!=r){for(;u>f;)if((c=a[f++])!=c)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9213(t,e,r){"use strict";var n=r(6080),o=r(9504),i=r(7055),s=r(8981),a=r(6198),u=r(1469),c=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,l=6===t,p=7===t,d=5===t||l;return function(h,v,y,g){for(var m,_,b=s(h),E=i(b),x=a(E),w=n(v,y),S=0,O=g||u,T=e?O(h,x):r||p?O(h,0):void 0;x>S;S++)if((d||S in E)&&(_=w(m=E[S],S,b),t))if(e)T[S]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:c(T,m)}else switch(t){case 4:return!1;case 7:c(T,m)}return l?-1:o||f?f:T}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},7680(t,e,r){"use strict";var n=r(9504);t.exports=n([].slice)},7433(t,e,r){"use strict";var n=r(4376),o=r(3517),i=r(34),s=r(8227)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},1469(t,e,r){"use strict";var n=r(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},4428(t,e,r){"use strict";var n=r(8227)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},2195(t,e,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955(t,e,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),s=r(8227)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7500(t,e,r){"use strict";var n=r(8551);t.exports=function(t,e,r){return function(){for(var o=new t,i=arguments.length,s=0;s<i;s++){var a=arguments[s];r?e(o,n(a)[0],a[1]):e(o,a)}return o}}},6938(t,e,r){"use strict";var n=r(2360),o=r(2106),i=r(6279),s=r(6080),a=r(679),u=r(4117),c=r(2652),f=r(1088),l=r(2529),p=r(7633),d=r(3724),h=r(3451).fastKey,v=r(1181),y=v.set,g=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t(function(t,o){a(t,p),y(t,{type:e,index:n(null),first:null,last:null,size:0}),d||(t.size=0),u(o)||c(o,t[f],{that:t,AS_ENTRIES:r})}),p=l.prototype,v=g(e),m=function(t,e,r){var n,o,i=v(t),s=_(t,e);return s?s.value=r:(i.last=s={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),d?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},_=function(t,e){var r,n=v(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),d?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=_(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),d?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=s(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!_(this,t)}}),i(p,r?{get:function(t){var e=_(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",o=g(e),i=g(n);f(t,e,function(t,e){y(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,l(void 0,!0))},r?"entries":"values",!r,!0),p(e)}}},6468(t,e,r){"use strict";var n=r(6518),o=r(4576),i=r(9504),s=r(2796),a=r(6840),u=r(3451),c=r(2652),f=r(679),l=r(4901),p=r(4117),d=r(34),h=r(9039),v=r(4428),y=r(687),g=r(3167);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),b=m?"set":"add",E=o[t],x=E&&E.prototype,w=E,S={},O=function(t){var e=i(x[t]);a(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return _&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(s(t,!l(E)||!(_||x.forEach&&!h(function(){(new E).entries().next()}))))w=r.getConstructor(e,t,m,b),u.enable();else if(s(t,!0)){var T=new w,k=T[b](_?{}:-0,1)!==T,P=h(function(){T.has(1)}),j=v(function(t){new E(t)}),C=!_&&h(function(){for(var t=new E,e=5;e--;)t[b](e,e);return!t.has(-0)});j||((w=e(function(t,e){f(t,x);var r=g(new E,t,w);return p(e)||c(e,r[b],{that:r,AS_ENTRIES:m}),r})).prototype=x,x.constructor=w),(P||C)&&(O("delete"),O("has"),m&&O("get")),(C||k)&&O(b),_&&x.clear&&delete x.clear}return S[t]=w,n({global:!0,constructor:!0,forced:w!==E},S),y(w,t),_||r.setStrong(w,t,m),w}},7740(t,e,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);t.exports=function(t,e,r){for(var a=o(e),u=s.f,c=i.f,f=0;f<a.length;f++){var l=a[f];n(t,l)||r&&n(r,l)||u(t,l,c(e,l))}}},2211(t,e,r){"use strict";var n=r(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699(t,e,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106(t,e,r){"use strict";var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},6840(t,e,r){"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);t.exports=function(t,e,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(n(r)&&i(r,c,a),a.global)u?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279(t,e,r){"use strict";var n=r(6840);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},9433(t,e,r){"use strict";var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724(t,e,r){"use strict";var n=r(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,e,r){"use strict";var n=r(4576),o=r(34),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},8727(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265(t,e,r){"use strict";var n=r(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9544(t,e,r){"use strict";var n=r(2839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},8574(t,e,r){"use strict";var n=r(4215);t.exports="NODE"===n},7860(t,e,r){"use strict";var n=r(2839);t.exports=/web0s(?!.*chrome)/i.test(n)},2839(t,e,r){"use strict";var n=r(4576).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},9519(t,e,r){"use strict";var n,o,i=r(4576),s=r(2839),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},4215(t,e,r){"use strict";var n=r(4576),o=r(2839),i=r(2195),s=function(t){return o.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6193(t,e,r){"use strict";var n=r(9504),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},747(t,e,r){"use strict";var n=r(6699),o=r(6193),i=r(4659),s=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(s?s(t,e):n(t,"stack",o(r,a)))}},4659(t,e,r){"use strict";var n=r(9039),o=r(6980);t.exports=!n(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)})},6518(t,e,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),s=r(6840),a=r(9433),u=r(7740),c=r(2796);t.exports=function(t,e){var r,f,l,p,d,h=t.target,v=t.global,y=t.stat;if(r=v?n:y?n[h]||a(h,{}):n[h]&&n[h].prototype)for(f in e){if(p=e[f],l=t.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!c(v?f:h+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),s(r,f,p,t)}}},9039(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},2744(t,e,r){"use strict";var n=r(9039);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},8745(t,e,r){"use strict";var n=r(616),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6080(t,e,r){"use strict";var n=r(7476),o=r(9306),i=r(616),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},616(t,e,r){"use strict";var n=r(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565(t,e,r){"use strict";var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350(t,e,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6706(t,e,r){"use strict";var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},7476(t,e,r){"use strict";var n=r(2195),o=r(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},9504(t,e,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},7751(t,e,r){"use strict";var n=r(4576),o=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},851(t,e,r){"use strict";var n=r(6955),o=r(5966),i=r(4117),s=r(6269),a=r(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||s[n(t)]}},81(t,e,r){"use strict";var n=r(9565),o=r(9306),i=r(8551),s=r(6823),a=r(851),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new u(s(t)+" is not iterable")}},6933(t,e,r){"use strict";var n=r(9504),o=r(4376),i=r(4901),s=r(2195),a=r(655),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n<e;n++){var c=t[n];"string"==typeof c?u(r,c):"number"!=typeof c&&"Number"!==s(c)&&"String"!==s(c)||u(r,a(c))}var f=r.length,l=!0;return function(t,e){if(l)return l=!1,e;if(o(this))return e;for(var n=0;n<f;n++)if(r[n]===t)return e}}}},5966(t,e,r){"use strict";var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},4576(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297(t,e,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421(t){"use strict";t.exports={}},3138(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397(t,e,r){"use strict";var n=r(7751);t.exports=n("document","documentElement")},5917(t,e,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),s=Object,a=n("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3167(t,e,r){"use strict";var n=r(4901),o=r(34),i=r(2967);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},3706(t,e,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},7584(t,e,r){"use strict";var n=r(34),o=r(6699);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},3451(t,e,r){"use strict";var n=r(6518),o=r(9504),i=r(421),s=r(34),a=r(9297),u=r(4913).f,c=r(8480),f=r(298),l=r(4124),p=r(3392),d=r(2744),h=!1,v=p("meta"),y=0,g=function(t){u(t,v,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},h=!0;var t=c.f,e=o([].splice),r={};r[v]=1,t(r).length&&(c.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===v){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!l(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},getWeakData:function(t,e){if(!a(t,v)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return d&&h&&l(t)&&!a(t,v)&&g(t),t}};i[v]=!0},1181(t,e,r){"use strict";var n,o,i,s=r(8622),a=r(4576),u=r(34),c=r(6699),f=r(9297),l=r(7629),p=r(6119),d=r(421),h="Object already initialized",v=a.TypeError,y=a.WeakMap;if(s||l.state){var g=l.state||(l.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new v(h);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=p("state");d[m]=!0,n=function(t,e){if(f(t,m))throw new v(h);return e.facade=t,c(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},4209(t,e,r){"use strict";var n=r(8227),o=r(6269),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},4376(t,e,r){"use strict";var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(6955),a=r(7751),u=r(3706),c=function(){},f=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),d=!l.test(c),h=function(t){if(!i(t))return!1;try{return f(c,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(l,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o(function(){var t;return h(h.call)||!h(Object)||!h(function(){t=!0})||t})?v:h},2796(t,e,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(t,e){var r=u[a(t)];return r===f||r!==c&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},4117(t){"use strict";t.exports=function(t){return null==t}},34(t,e,r){"use strict";var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925(t,e,r){"use strict";var n=r(34);t.exports=function(t){return n(t)||null===t}},6395(t){"use strict";t.exports=!1},757(t,e,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},507(t,e,r){"use strict";var n=r(9565);t.exports=function(t,e,r){for(var o,i,s=r?t:t.iterator,a=t.next;!(o=n(a,s)).done;)if(void 0!==(i=e(o.value)))return i}},2652(t,e,r){"use strict";var n=r(6080),o=r(9565),i=r(8551),s=r(6823),a=r(4209),u=r(6198),c=r(1625),f=r(81),l=r(851),p=r(9539),d=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,r){var y,g,m,_,b,E,x,w=r&&r.that,S=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(e,w),j=function(t){return y&&p(y,"normal"),new h(!0,t)},C=function(t){return S?(i(t),k?P(t[0],t[1],j):P(t[0],t[1])):k?P(t,j):P(t)};if(O)y=t.iterator;else if(T)y=t;else{if(!(g=l(t)))throw new d(s(t)+" is not iterable");if(a(g)){for(m=0,_=u(t);_>m;m++)if((b=C(t[m]))&&c(v,b))return b;return new h(!1)}y=f(t,g)}for(E=O?t.next:y.next;!(x=o(E,y)).done;){try{b=C(x.value)}catch(t){p(y,"throw",t)}if("object"==typeof b&&b&&c(v,b))return b}return new h(!1)}},9539(t,e,r){"use strict";var n=r(9565),o=r(8551),i=r(5966);t.exports=function(t,e,r){var s,a;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return o(s),r}},3994(t,e,r){"use strict";var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),s=r(687),a=r(6269),u=function(){return this};t.exports=function(t,e,r,c){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),s(t,f,!1,!0),a[f]=u,t}},1088(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(6395),s=r(350),a=r(4901),u=r(3994),c=r(2787),f=r(2967),l=r(687),p=r(6699),d=r(6840),h=r(8227),v=r(6269),y=r(7657),g=s.PROPER,m=s.CONFIGURABLE,_=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,E=h("iterator"),x="keys",w="values",S="entries",O=function(){return this};t.exports=function(t,e,r,s,h,y,T){u(r,e,s);var k,P,j,C=function(t){if(t===h&&D)return D;if(!b&&t&&t in N)return N[t];switch(t){case x:case w:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",I=!1,N=t.prototype,A=N[E]||N["@@iterator"]||h&&N[h],D=!b&&A||C(h),M="Array"===e&&N.entries||A;if(M&&(k=c(M.call(new t)))!==Object.prototype&&k.next&&(i||c(k)===_||(f?f(k,_):a(k[E])||d(k,E,O)),l(k,R,!0,!0),i&&(v[R]=O)),g&&h===w&&A&&A.name!==w&&(!i&&m?p(N,"name",w):(I=!0,D=function(){return o(A,this)})),h)if(P={values:C(w),keys:y?D:C(x),entries:C(S)},T)for(j in P)(b||I||!(j in N))&&d(N,j,P[j]);else n({target:e,proto:!0,forced:b||I},P);return i&&!T||N[E]===D||d(N,E,D,{name:h}),v[e]=D,P}},7657(t,e,r){"use strict";var n,o,i,s=r(9039),a=r(4901),u=r(34),c=r(2360),f=r(2787),l=r(6840),p=r(8227),d=r(6395),h=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):v=!0),!u(n)||s(function(){var t={};return n[h].call(t)!==t})?n={}:d&&(n=c(n)),a(n[h])||l(n,h,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},6269(t){"use strict";t.exports={}},6198(t,e,r){"use strict";var n=r(8014);t.exports=function(t){return n(t.length)}},283(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),a=r(3724),u=r(350).CONFIGURABLE,c=r(3706),f=r(1181),l=f.enforce,p=f.get,d=String,h=Object.defineProperty,v=n("".slice),y=n("".replace),g=n([].join),m=a&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),_=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===v(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return s(n,"source")||(n.source=g(_,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return i(this)&&p(this).source||c(this)},"toString")},2248(t,e,r){"use strict";var n=r(9504),o=Map.prototype;t.exports={Map,set:n(o.set),get:n(o.get),has:n(o.has),remove:n(o.delete),proto:o}},6223(t,e,r){"use strict";var n=r(9504),o=r(507),i=r(2248),s=i.Map,a=i.proto,u=n(a.forEach),c=n(a.entries),f=c(new s).next;t.exports=function(t,e,r){return r?o({iterator:c(t),next:f},function(t){return e(t[1],t[0])}):u(t,e)}},741(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},1955(t,e,r){"use strict";var n,o,i,s,a,u=r(4576),c=r(3389),f=r(6080),l=r(9225).set,p=r(8265),d=r(9544),h=r(4265),v=r(7860),y=r(8574),g=u.MutationObserver||u.WebKitMutationObserver,m=u.document,_=u.process,b=u.Promise,E=c("queueMicrotask");if(!E){var x=new p,w=function(){var t,e;for(y&&(t=_.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&n(),t}t&&t.enter()};d||y||v||!g||!m?!h&&b&&b.resolve?((s=b.resolve(void 0)).constructor=b,a=f(s.then,s),n=function(){a(w)}):y?n=function(){_.nextTick(w)}:(l=f(l,u),n=function(){l(w)}):(o=!0,i=m.createTextNode(""),new g(w).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),E=function(t){x.head||n(),x.add(t)}}t.exports=E},6043(t,e,r){"use strict";var n=r(9306),o=TypeError,i=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},2603(t,e,r){"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},4213(t,e,r){"use strict";var n=r(3724),o=r(9504),i=r(9565),s=r(9039),a=r(1072),u=r(3717),c=r(8773),f=r(8981),l=r(7055),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||s(function(){if(n&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){e[t]=t}),7!==p({},t)[r]||a(p({},e)).join("")!==o})?function(t,e){for(var r=f(t),o=arguments.length,s=1,p=u.f,d=c.f;o>s;)for(var v,y=l(arguments[s++]),g=p?h(a(y),p(y)):a(y),m=g.length,_=0;m>_;)v=g[_++],n&&!i(d,y,v)||(r[v]=y[v]);return r}:p},2360(t,e,r){"use strict";var n,o=r(8551),i=r(6801),s=r(8727),a=r(421),u=r(397),c=r(4055),f=r(6119),l="prototype",p="script",d=f("IE_PROTO"),h=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),r="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var o=s.length;o--;)delete g[l][s[o]];return g()};a[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[l]=o(t),r=new h,h[l]=null,r[d]=t):r=g(),void 0===e?r:i.f(r,e)}},6801(t,e,r){"use strict";var n=r(3724),o=r(8686),i=r(4913),s=r(8551),a=r(5397),u=r(1072);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var r,n=a(e),o=u(e),c=o.length,f=0;c>f;)i.f(t,r=o[f++],n[r]);return t}},4913(t,e,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),a=r(6969),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=f(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:l in r?r[l]:n[l],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347(t,e,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),a=r(5397),u=r(6969),c=r(9297),f=r(5917),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return s(!o(i.f,t,e),t[e])}},298(t,e,r){"use strict";var n=r(2195),o=r(5397),i=r(8480).f,s=r(7680),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return s(a)}}(t):i(o(t))}},8480(t,e,r){"use strict";var n=r(1828),o=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3717(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787(t,e,r){"use strict";var n=r(9297),o=r(4901),i=r(8981),s=r(6119),a=r(2211),u=s("IE_PROTO"),c=Object,f=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?f:null}},4124(t,e,r){"use strict";var n=r(9039),o=r(34),i=r(2195),s=r(5652),a=Object.isExtensible,u=n(function(){a(1)});t.exports=u||s?function(t){return!!o(t)&&(!s||"ArrayBuffer"!==i(t))&&(!a||a(t))}:a},1625(t,e,r){"use strict";var n=r(9504);t.exports=n({}.isPrototypeOf)},1828(t,e,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,a=r(421),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,f=[];for(r in n)!o(a,r)&&o(n,r)&&u(f,r);for(;e.length>c;)o(n,r=e[c++])&&(~s(f,r)||u(f,r));return f}},1072(t,e,r){"use strict";var n=r(1828),o=r(8727);t.exports=Object.keys||function(t){return n(t,o)}},8773(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2967(t,e,r){"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},3179(t,e,r){"use strict";var n=r(2140),o=r(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270(t,e,r){"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5031(t,e,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),a=r(8551),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?u(e,r(t)):e}},9167(t,e,r){"use strict";var n=r(4576);t.exports=n},1103(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916(t,e,r){"use strict";var n=r(4576),o=r(550),i=r(4901),s=r(2796),a=r(3706),u=r(8227),c=r(4215),f=r(6395),l=r(9519),p=o&&o.prototype,d=u("species"),h=!1,v=i(n.PromiseRejectionEvent),y=s("Promise",function(){var t=a(o),e=t!==String(o);if(!e&&66===l)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!l||l<51||!/native code/.test(t)){var r=new o(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[d]=n,!(h=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||v)});t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:h}},550(t,e,r){"use strict";var n=r(4576);t.exports=n.Promise},3438(t,e,r){"use strict";var n=r(8551),o=r(34),i=r(6043);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},537(t,e,r){"use strict";var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;t.exports=i||!o(function(t){n.all(t).then(void 0,function(){})})},8265(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},7750(t,e,r){"use strict";var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},3389(t,e,r){"use strict";var n=r(4576),o=r(3724),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},3317(t){"use strict";t.exports=function(t,e){return t===e||t!=t&&e!=e}},7633(t,e,r){"use strict";var n=r(7751),o=r(2106),i=r(8227),s=r(3724),a=i("species");t.exports=function(t){var e=n(t);s&&e&&!e[a]&&o(e,a,{configurable:!0,get:function(){return this}})}},687(t,e,r){"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},6119(t,e,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629(t,e,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(t,e,r){"use strict";var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2293(t,e,r){"use strict";var n=r(8551),o=r(5548),i=r(4117),s=r(8227)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||i(r=n(a)[s])?e:o(r)}},8183(t,e,r){"use strict";var n=r(9504),o=r(1291),i=r(655),s=r(7750),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),f=function(t){return function(e,r){var n,f,l=i(s(e)),p=o(r),d=l.length;return p<0||p>=d?t?"":void 0:(n=u(l,p))<55296||n>56319||p+1===d||(f=u(l,p+1))<56320||f>57343?t?a(l,p):n:t?c(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},4495(t,e,r){"use strict";var n=r(9519),o=r(9039),i=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8242(t,e,r){"use strict";var n=r(9565),o=r(7751),i=r(8227),s=r(6840);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&s(e,a,function(t){return n(r,this)},{arity:1})}},1296(t,e,r){"use strict";var n=r(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9225(t,e,r){"use strict";var n,o,i,s,a=r(4576),u=r(8745),c=r(6080),f=r(4901),l=r(9297),p=r(9039),d=r(397),h=r(7680),v=r(4055),y=r(2812),g=r(9544),m=r(8574),_=a.setImmediate,b=a.clearImmediate,E=a.process,x=a.Dispatch,w=a.Function,S=a.MessageChannel,O=a.String,T=0,k={},P="onreadystatechange";p(function(){n=a.location});var j=function(t){if(l(k,t)){var e=k[t];delete k[t],e()}},C=function(t){return function(){j(t)}},R=function(t){j(t.data)},I=function(t){a.postMessage(O(t),n.protocol+"//"+n.host)};_&&b||(_=function(t){y(arguments.length,1);var e=f(t)?t:w(t),r=h(arguments,1);return k[++T]=function(){u(e,void 0,r)},o(T),T},b=function(t){delete k[t]},m?o=function(t){E.nextTick(C(t))}:x&&x.now?o=function(t){x.now(C(t))}:S&&!g?(s=(i=new S).port2,i.port1.onmessage=R,o=c(s.postMessage,s)):a.addEventListener&&f(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(I)?(o=I,a.addEventListener("message",R,!1)):o=P in v("script")?function(t){d.appendChild(v("script"))[P]=function(){d.removeChild(this),j(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:_,clear:b}},5610(t,e,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5397(t,e,r){"use strict";var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},1291(t,e,r){"use strict";var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014(t,e,r){"use strict";var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8981(t,e,r){"use strict";var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},2777(t,e,r){"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),a=r(4270),u=r(8227),c=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=s(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969(t,e,r){"use strict";var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},2140(t,e,r){"use strict";var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655(t,e,r){"use strict";var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392(t,e,r){"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040(t,e,r){"use strict";var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(t,e,r){"use strict";var n=r(3724),o=r(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622(t,e,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},511(t,e,r){"use strict";var n=r(9167),o=r(9297),i=r(1951),s=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||s(e,t,{value:i.f(t)})}},1951(t,e,r){"use strict";var n=r(8227);e.f=n},8227(t,e,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),s=r(3392),a=r(4495),u=r(7040),c=n.Symbol,f=o("wks"),l=u?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=a&&i(c,t)?c[t]:l("Symbol."+t)),f[t]}},7145(t,e,r){"use strict";var n=r(6518),o=r(1625),i=r(2787),s=r(2967),a=r(7740),u=r(2360),c=r(6699),f=r(6980),l=r(7584),p=r(747),d=r(2652),h=r(2603),v=r(8227)("toStringTag"),y=Error,g=[].push,m=function(t,e){var r,n=o(_,this);s?r=s(new y,n?i(this):_):(r=n?this:u(_),c(r,v,"Error")),void 0!==e&&c(r,"message",h(e)),p(r,m,r.stack,1),arguments.length>2&&l(r,arguments[2]);var a=[];return d(t,g,{that:a}),c(r,"errors",a),r};s?s(m,y):a(m,y,{name:!0});var _=m.prototype=u(y.prototype,{constructor:f(1,m),message:f(1,""),name:f(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:m})},67(t,e,r){"use strict";r(7145)},3792(t,e,r){"use strict";var n=r(5397),o=r(6469),i=r(6269),s=r(1181),a=r(4913).f,u=r(1088),c=r(2529),f=r(6395),l=r(3724),p="Array Iterator",d=s.set,h=s.getterFor(p);t.exports=u(Array,"Array",function(t,e){d(this,{type:p,target:n(t),index:0,kind:e})},function(){var t=h(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)},"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(t){}},3110(t,e,r){"use strict";var n=r(6518),o=r(7751),i=r(8745),s=r(9565),a=r(9504),u=r(9039),c=r(4901),f=r(757),l=r(7680),p=r(6933),d=r(4495),h=String,v=o("JSON","stringify"),y=a(/./.exec),g=a("".charAt),m=a("".charCodeAt),_=a("".replace),b=a(1.1.toString),E=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!d||u(function(){var t=o("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))}),O=u(function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")}),T=function(t,e){var r=l(arguments),n=p(e);if(c(n)||void 0!==t&&!f(t))return r[1]=function(t,e){if(c(n)&&(e=s(n,this,h(t),e)),!f(e))return e},i(v,null,r)},k=function(t,e,r){var n=g(r,e-1),o=g(r,e+1);return y(x,t)&&!y(w,o)||y(w,t)&&!y(x,n)?"\\u"+b(m(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(t,e,r){var n=l(arguments),o=i(S?T:v,null,n);return O&&"string"==typeof o?_(o,E,k):o}})},8523(t,e,r){"use strict";r(6468)("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r(6938))},6033(t,e,r){"use strict";r(8523)},9085(t,e,r){"use strict";var n=r(6518),o=r(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},9773(t,e,r){"use strict";var n=r(6518),o=r(4495),i=r(9039),s=r(3717),a=r(8981);n({target:"Object",stat:!0,forced:!o||i(function(){s.f(1)})},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},6099(t,e,r){"use strict";var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6167(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{allSettled:function(t){var e=this,r=s.f(e),n=r.resolve,c=r.reject,f=a(function(){var r=i(e.resolve),s=[],a=0,c=1;u(t,function(t){var i=a++,u=!1;c++,o(r,e,t).then(function(t){u||(u=!0,s[i]={status:"fulfilled",value:t},--c||n(s))},function(t){u||(u=!0,s[i]={status:"rejected",reason:t},--c||n(s))})}),--c||n(s)});return f.error&&c(f.value),r.promise}})},6499(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var e=this,r=s.f(e),n=r.resolve,c=r.reject,f=a(function(){var r=i(e.resolve),s=[],a=0,f=1;u(t,function(t){var i=a++,u=!1;f++,o(r,e,t).then(function(t){u||(u=!0,s[i]=t,--f||n(s))},c)}),--f||n(s)});return f.error&&c(f.value),r.promise}})},3518(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(7751),a=r(6043),u=r(1103),c=r(2652),f=r(537),l="No one promise resolved";n({target:"Promise",stat:!0,forced:f},{any:function(t){var e=this,r=s("AggregateError"),n=a.f(e),f=n.resolve,p=n.reject,d=u(function(){var n=i(e.resolve),s=[],a=0,u=1,d=!1;c(t,function(t){var i=a++,c=!1;u++,o(n,e,t).then(function(t){c||d||(d=!0,f(t))},function(t){c||d||(c=!0,s[i]=t,--u||p(new r(s,l)))})}),--u||p(new r(s,l))});return d.error&&p(d.value),n.promise}})},2003(t,e,r){"use strict";var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,s=r(550),a=r(7751),u=r(4901),c=r(6840),f=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(s)){var l=a("Promise").prototype.catch;f.catch!==l&&c(f,"catch",l,{unsafe:!0})}},436(t,e,r){"use strict";var n,o,i,s,a=r(6518),u=r(6395),c=r(8574),f=r(4576),l=r(9167),p=r(9565),d=r(6840),h=r(2967),v=r(687),y=r(7633),g=r(9306),m=r(4901),_=r(34),b=r(679),E=r(2293),x=r(9225).set,w=r(1955),S=r(3138),O=r(1103),T=r(8265),k=r(1181),P=r(550),j=r(916),C=r(6043),R="Promise",I=j.CONSTRUCTOR,N=j.REJECTION_EVENT,A=j.SUBCLASSING,D=k.getterFor(R),M=k.set,L=P&&P.prototype,U=P,F=L,B=f.TypeError,q=f.document,H=f.process,G=C.f,z=G,V=!!(q&&q.createEvent&&f.dispatchEvent),W="unhandledrejection",Y=function(t){var e;return!(!_(t)||!m(e=t.then))&&e},X=function(t,e){var r,n,o,i=e.value,s=1===e.state,a=s?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{a?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?c(new B("Promise-chain cycle")):(n=Y(r))?p(n,r,u,c):u(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},J=function(t,e){t.notified||(t.notified=!0,w(function(){for(var r,n=t.reactions;r=n.get();)X(r,t);t.notified=!1,e&&!t.rejection&&$(t)}))},K=function(t,e,r){var n,o;V?((n=q.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:e,reason:r},!N&&(o=f["on"+t])?o(n):t===W&&S("Unhandled promise rejection",r)},$=function(t){p(x,f,function(){var e,r=t.facade,n=t.value;if(Q(t)&&(e=O(function(){c?H.emit("unhandledRejection",n,r):K(W,r,n)}),t.rejection=c||Q(t)?2:1,e.error))throw e.value})},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){p(x,f,function(){var e=t.facade;c?H.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(n){t(e,n,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,J(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new B("Promise can't be resolved itself");var n=Y(e);n?w(function(){var r={done:!1};try{p(n,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,J(t,!1))}catch(e){et({done:!1},e,t)}}};if(I&&(F=(U=function(t){b(this,F),g(t),p(n,this);var e=D(this);try{t(tt(rt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(n=function(t){M(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:null})}).prototype=d(F,"then",function(t,e){var r=D(this),n=G(E(this,U));return r.parent=!0,n.ok=!m(t)||t,n.fail=m(e)&&e,n.domain=c?H.domain:void 0,0===r.state?r.reactions.add(n):w(function(){X(n,r)}),n.promise}),o=function(){var t=new n,e=D(t);this.promise=t,this.resolve=tt(rt,e),this.reject=tt(et,e)},C.f=G=function(t){return t===U||t===i?new o(t):z(t)},!u&&m(P)&&L!==Object.prototype)){s=L.then,A||d(L,"then",function(t,e){var r=this;return new U(function(t,e){p(s,r,t,e)}).then(t,e)},{unsafe:!0});try{delete L.constructor}catch(t){}h&&h(L,F)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:U}),i=l.Promise,v(U,R,!1,!0),y(R)},9391(t,e,r){"use strict";var n=r(6518),o=r(6395),i=r(550),s=r(9039),a=r(7751),u=r(4901),c=r(2293),f=r(3438),l=r(6840),p=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&s(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,a("Promise")),r=u(t);return this.then(r?function(r){return f(e,t()).then(function(){return r})}:t,r?function(r){return f(e,t()).then(function(){throw r})}:t)}}),!o&&u(i)){var d=a("Promise").prototype.finally;p.finally!==d&&l(p,"finally",d,{unsafe:!0})}},3362(t,e,r){"use strict";r(436),r(6499),r(2003),r(7743),r(1481),r(280)},7743(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(t){var e=this,r=s.f(e),n=r.reject,c=a(function(){var s=i(e.resolve);u(t,function(t){o(s,e,t).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},1481(t,e,r){"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},280(t,e,r){"use strict";var n=r(6518),o=r(7751),i=r(6395),s=r(550),a=r(916).CONSTRUCTOR,u=r(3438),c=o("Promise"),f=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(t){return u(f&&this===c?s:this,t)}})},1689(t,e,r){"use strict";var n=r(6518),o=r(4576),i=r(8745),s=r(7680),a=r(6043),u=r(9306),c=r(1103),f=o.Promise,l=!1;n({target:"Promise",stat:!0,forced:!f||!f.try||c(function(){f.try(function(t){l=8===t},8)}).error||!l},{try:function(t){var e=arguments.length>1?s(arguments,1):[],r=a.f(this),n=c(function(){return i(u(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}})},4628(t,e,r){"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0},{withResolvers:function(){var t=o.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},7764(t,e,r){"use strict";var n=r(8183).charAt,o=r(655),i=r(1181),s=r(1088),a=r(2529),u="String Iterator",c=i.set,f=i.getterFor(u);s(String,"String",function(t){c(this,{type:u,string:o(t),index:0})},function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))})},6761(t,e,r){"use strict";var n=r(6518),o=r(4576),i=r(9565),s=r(9504),a=r(6395),u=r(3724),c=r(4495),f=r(9039),l=r(9297),p=r(1625),d=r(8551),h=r(5397),v=r(6969),y=r(655),g=r(6980),m=r(2360),_=r(1072),b=r(8480),E=r(298),x=r(3717),w=r(7347),S=r(4913),O=r(6801),T=r(8773),k=r(6840),P=r(2106),j=r(5745),C=r(6119),R=r(421),I=r(3392),N=r(8227),A=r(1951),D=r(511),M=r(8242),L=r(687),U=r(1181),F=r(9213).forEach,B=C("hidden"),q="Symbol",H="prototype",G=U.set,z=U.getterFor(q),V=Object[H],W=o.Symbol,Y=W&&W[H],X=o.RangeError,J=o.TypeError,K=o.QObject,$=w.f,Q=S.f,Z=E.f,tt=T.f,et=s([].push),rt=j("symbols"),nt=j("op-symbols"),ot=j("wks"),it=!K||!K[H]||!K[H].findChild,st=function(t,e,r){var n=$(V,e);n&&delete V[e],Q(t,e,r),n&&t!==V&&Q(V,e,n)},at=u&&f(function(){return 7!==m(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?st:Q,ut=function(t,e){var r=rt[t]=m(Y);return G(r,{type:q,tag:t,description:e}),u||(r.description=e),r},ct=function(t,e,r){t===V&&ct(nt,e,r),d(t);var n=v(e);return d(r),l(rt,n)?(r.enumerable?(l(t,B)&&t[B][n]&&(t[B][n]=!1),r=m(r,{enumerable:g(0,!1)})):(l(t,B)||Q(t,B,g(1,m(null))),t[B][n]=!0),at(t,n,r)):Q(t,n,r)},ft=function(t,e){d(t);var r=h(e),n=_(r).concat(ht(r));return F(n,function(e){u&&!i(lt,r,e)||ct(t,e,r[e])}),t},lt=function(t){var e=v(t),r=i(tt,this,e);return!(this===V&&l(rt,e)&&!l(nt,e))&&(!(r||!l(this,e)||!l(rt,e)||l(this,B)&&this[B][e])||r)},pt=function(t,e){var r=h(t),n=v(e);if(r!==V||!l(rt,n)||l(nt,n)){var o=$(r,n);return!o||!l(rt,n)||l(r,B)&&r[B][n]||(o.enumerable=!0),o}},dt=function(t){var e=Z(h(t)),r=[];return F(e,function(t){l(rt,t)||l(R,t)||et(r,t)}),r},ht=function(t){var e=t===V,r=Z(e?nt:h(t)),n=[];return F(r,function(t){!l(rt,t)||e&&!l(V,t)||et(n,rt[t])}),n};c||(W=function(){if(p(Y,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=I(t),r=function(t){var n=void 0===this?o:this;n===V&&i(r,nt,t),l(n,B)&&l(n[B],e)&&(n[B][e]=!1);var s=g(1,t);try{at(n,e,s)}catch(t){if(!(t instanceof X))throw t;st(n,e,s)}};return u&&it&&at(V,e,{configurable:!0,set:r}),ut(e,t)},k(Y=W[H],"toString",function(){return z(this).tag}),k(W,"withoutSetter",function(t){return ut(I(t),t)}),T.f=lt,S.f=ct,O.f=ft,w.f=pt,b.f=E.f=dt,x.f=ht,A.f=function(t){return ut(N(t),t)},u&&(P(Y,"description",{configurable:!0,get:function(){return z(this).description}}),a||k(V,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),F(_(ot),function(t){D(t)}),n({target:q,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):ft(m(t),e)},defineProperty:ct,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),M(),L(W,q),R[B]=!0},1510(t,e,r){"use strict";var n=r(6518),o=r(7751),i=r(9297),s=r(655),a=r(5745),u=r(1296),c=a("string-to-symbol-registry"),f=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=s(t);if(i(c,e))return c[e];var r=o("Symbol")(e);return c[e]=r,f[r]=e,r}})},2675(t,e,r){"use strict";r(6761),r(1510),r(7812),r(3110),r(9773)},7812(t,e,r){"use strict";var n=r(6518),o=r(9297),i=r(757),s=r(6823),a=r(5745),u=r(1296),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(s(t)+" is not a symbol");if(o(c,t))return c[t]}})},1517(t,e,r){"use strict";var n=r(6518),o=r(6194),i=r(2248).remove;n({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=o(this),r=!0,n=0,s=arguments.length;n<s;n++)t=i(e,arguments[n]),r=r&&t;return!!r}})},1379(t,e,r){"use strict";var n=r(6518),o=r(6194),i=r(2248),s=i.get,a=i.has,u=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,i=o(this);return a(i,t)?(r=s(i,t),"update"in e&&(r=e.update(r,t,i),u(i,t,r)),r):(n=e.insert(t,i),u(i,t,n),n)}})},3777(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0);return!1!==s(e,function(t,n){if(!r(t,n,e))return!1},!0)}})},4190(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(2248),a=r(6223),u=s.Map,c=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=new u;return a(e,function(t,o){r(t,o,e)&&c(n,o,t)}),n}})},6097(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=s(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}})},2359(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=s(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}})},7036(t,e,r){"use strict";var n=r(6518),o=r(9306),i=r(6194),s=r(2248),a=r(6395),u=s.get,c=s.has,f=s.set;n({target:"Map",proto:!0,real:!0,forced:a},{getOrInsertComputed:function(t,e){if(i(this),o(e),c(this,t))return u(this,t);0===t&&1/t==-1/0&&(t=0);var r=e(t);return f(this,t,r),r}})},7254(t,e,r){"use strict";var n=r(6518),o=r(6194),i=r(2248),s=r(6395),a=i.get,u=i.has,c=i.set;n({target:"Map",proto:!0,real:!0,forced:s},{getOrInsert:function(t,e){return u(o(this),t)?a(this,t):(c(this,t,e),e)}})},7273(t,e,r){"use strict";var n=r(6518),o=r(3317),i=r(6194),s=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===s(i(this),function(e){if(o(e,t))return!0},!0)}})},7415(t,e,r){"use strict";var n=r(6518),o=r(6194),i=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=i(o(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}})},9929(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(2248),a=r(6223),u=s.Map,c=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=new u;return a(e,function(t,o){c(n,r(t,o,e),t)}),n}})},7583(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(2248),a=r(6223),u=s.Map,c=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=new u;return a(e,function(t,o){c(n,o,r(t,o,e))}),n}})},5122(t,e,r){"use strict";var n=r(6518),o=r(6194),i=r(2652),s=r(2248).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=o(this),r=arguments.length,n=0;n<r;)i(arguments[n++],function(t,r){s(e,t,r)},{AS_ENTRIES:!0});return e}})},6385(t,e,r){"use strict";var n=r(6518),o=r(2248);n({target:"Map",stat:!0,forced:!0},{of:r(7500)(o.Map,o.set,!0)})},230(t,e,r){"use strict";var n=r(6518),o=r(9306),i=r(6194),s=r(6223),a=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=i(this),r=arguments.length<2,n=r?void 0:arguments[1];if(o(t),s(e,function(o,i){r?(r=!1,n=o):n=t(n,o,i,e)}),r)throw new a("Reduce of empty map with no initial value");return n}})},7268(t,e,r){"use strict";var n=r(6518),o=r(6080),i=r(6194),s=r(6223);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=i(this),r=o(t,arguments.length>1?arguments[1]:void 0);return!0===s(e,function(t,n){if(r(t,n,e))return!0},!0)}})},9733(t,e,r){"use strict";var n=r(6518),o=r(9306),i=r(6194),s=r(2248),a=TypeError,u=s.get,c=s.has,f=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=i(this),n=arguments.length;o(e);var s=c(r,t);if(!s&&n<3)throw new a("Updating absent value");var l=s?u(r,t):o(n>2?arguments[2]:void 0)(t,r);return f(r,t,e(l,t,r)),r}})},8418(t,e,r){"use strict";var n=r(8473);t.exports=n},2181(t,e,r){"use strict";var n=r(5648);t.exports=n},963(t){"use strict";t.exports=JSON.parse('{"moderation":{"rejection":"This experience was rejected."},"clientConfiguration":{"badConfig":"Your Imposium configuration is an invalid type.","storyId":"An undefined or invalid storyId was set in your Imposium configuration.","accessToken":"An undefined or invalid accessToken was set in your Imposium configuration.","invalidEventName":"Invalid client event name.","invalidCallbackType":"The callback reference set for this client event is not of type function.","badConfigOnGet":"You cannot call client.getExperience(...) without using the Imposium player or setting the GOT_EXPERIENCE event.","bagConfigOnPostRender":"You cannot call client.createExperience({...}) without using the Imposium player or setting the GOT_EXPERIENCE event.","badConfigOnPostNoRender":"You cannot call client.createExperience({...}, false) without setting the EXPERIENCE_CREATED event."},"playerConfiguration":{"badClient":"You must provide a valid Imposium client reference to the player.","invalidPlayerRef":"No reference to an HTML5 video element was detected.","invalidEventName":"Invalid player event name.","invalidCallbackType":"The callback reference set for this player event is not of type function.","eventNotConfigured":"You cannot invoke this player event without a callback set.","badQualityOverride":"The quality specified does not exist for this experience."},"network":{"httpFailure":"Unable to process request to the Imposium API.","pollTimeout":"Polling timeout exceeded.","tcpFailure":"Socket connection failed while processing the experience.","errorOverTcp":"An error occured on the Imposium web servers while processing the experience.","messageParseFailure":"Message data from Imposium was malformed."},"uncaught":{"generic":"Something unexpected went wrong."}}')},3685(t){"use strict";t.exports=JSON.parse('{"Sn":{"uuidLength":36,"defaultConfig":{"accessToken":"","storyId":"","compositionId":"","environment":"production","gaPlacement":"web"},"emptyHistory":{"prevExperienceId":"","prevMessage":""},"clientEmits":{"adding":"Adding job to queue...","added":"Added job to queue...","finishedPolling":"Video ready for viewing."},"eventNames":{"EXPERIENCE_CREATED":"EXPERIENCE_CREATED","UPLOAD_PROGRESS":"UPLOAD_PROGRESS","GOT_EXPERIENCE":"GOT_EXPERIENCE","STATUS_UPDATE":"STATUS_UPDATE","ERROR":"ERROR"}},"FH":{"production":"https://api.imposium.com","staging":"https://api.staging.imposium.com","local":"https://api","currentVersion":"2.0.0","version":"X-Imposium-Api-Version","hmac":"X-Imposium-Access-Key","jwt":"Authorization"},"e$":{"dsn":"https://17ffe982179e4d60a1df2062198d7ade@sentry.io/1411258","projectName":"imposium-js-sdk"},"zS":{"exceptionProp":"UA-123315989-1","baseUrl":"https://ssl.google-analytics.com/collect","lsLookup":"imposium_js_ga_cid","gaPropPlaceholder":"[id_placeholder]","cidPlaceholder":"[cid_placeholder]"},"xY":{"defaultConfig":{"volume":1,"preload":"auto","loop":false,"muted":false,"autoLoad":true,"autoPlay":true,"controls":true,"crossOrigin":"anonymous","qualityOverride":null},"testImage":"https://cdn.imposium.com/SampleJPGImage_1mb.jpg","playbackEvents":[0,0.25,0.5,0.75],"checkPlaybackRateMs":100,"volumeMin":0,"volumeMax":1,"bandwidth":{"low":2.4,"mid":8},"compression":{"stream":"m3u8","low":"mp4_480","mid":"mp4_720","high":"mp4_1080"},"bandwidthSamples":5,"hlsSupportLevels":{"native":"native","hlsjs":"hls-js"},"streamType":"application/vnd.apple.mpegurl"}}')},197(t){"use strict";t.exports=JSON.parse('{"client":{"nodeAnalytics":"Sorry, analytics are not currently available in NodeJS."},"network":{"tcpFailure":"Unable to reach Imposium while processing this experience, retrying..."},"playerFailure":{"seekNotReady":"Seek can\'t be called until the video metadata has loaded, please try again shortly.","invalidSeekTime":"Could not seek to time outside of current video duration.","invalidVolume":"Could not set volume outside of range (double) 0.0 - 1.0."},"analytics":{"requestFailed":"Failed to record Imposium metric."}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(6624)})());
3
3
  //# sourceMappingURL=imposium.min.js.map