PageSourceSearch

https://eventpass.co/_next/static/chunks/pages/_app-a0b5357db9066dcf.js

js eventpass.co collected 2026-09-25 21:07:49 UTC 372,992 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{8678:function(e,t,r){"use strict";r.d(t,{r:function(){return a},y:function(){return s}});var n=r(40812),i=r(64933),o=r(13842);function a(e){let t={version:"7.3.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>i.yD,enumerable:!1}),t}function s(e,t,r){let i=e[t];i&&!i.q&&i.version&&o.jf.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,i?.q&&i.q.forEach(e=>(0,n.Z)(e,"onReady callback threw an error:")())}},83206:function(e,t,r){"use strict";let n;r.d(t,{$k:function(){return l},Oo:function(){return s},jO:function(){return c},yw:function(){return u}});var i=r(64933),o=r(59693),a=r(251);function s(e,t,r,n){return u(e,[t],r,n)}function u(e,t,r,{once:a,capture:s,passive:u}={}){let c=(0,i.zk)(e=>{(e.isTrusted||e.__ddIsTrusted||!1!==n)&&(a&&p(),r(e))}),l=u?{capture:s,passive:u}:s,d=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,f=(0,o.I)(d,"addEventListener");function p(){let r=(0,o.I)(d,"removeEventListener");t.forEach(t=>r.call(e,t,c,l))}return t.forEach(t=>f.call(e,t,c,l)),{stop:p}}function c(e,t){if(!e)return!1;try{return s(e,t,a.Z).stop(),!0}catch{return!1}}function l(e){!0!==n&&(n=e??!1)}},27752:function(e,t,r){"use strict";r.d(t,{h:function(){return o}});var n=r(59693),i=r(51145);function o(e,t){return(0,n.I)(i.Z,"fetch")(e,t)}},47581:function(e,t,r){"use strict";r.d(t,{FP:function(){return u},PT:function(){return c},k$:function(){return s}});var n=r(75721),i=r(94776),o=r(51145),a=r(83206);let s={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function u(){return new n.y$(e=>{if(o.j)return;let{stop:t}=(0,a.yw)(window,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:s.HIDDEN}):"freeze"===t.type&&e.notify({reason:s.FROZEN})},{capture:!0}),r=(0,a.Oo)(window,"beforeunload",()=>{e.notify({reason:s.UNLOADING})}).stop;return()=>{t(),r()}})}function c(e){return(0,i.TT)(s).includes(e)}},10193:function(e,t,r){"use strict";r.d(t,{T:function(){return o},_:function(){return a}});var n=r(251),i=r(83206);function o(e,t){return document.readyState===e||"complete"===document.readyState?(t(),{stop:n.Z}):(0,i.Oo)(window,"complete"===e?"load":"DOMContentLoaded",t,{once:!0})}function a(e){return new Promise(t=>{o(e,t)})}},99176:function(e,t,r){"use strict";r.d(t,{Ez:function(){return s},ji:function(){return u},lp:function(){return c}});var n=r(64513),i=r(70170),o=r(88129),a=r(93909);function s(e,t,r){return{build:(i,a)=>c({proxy:e.proxy,site:e.site,path:`/api/v2/${t}`,parameters:function({clientToken:e,source:t="browser"},r,i,{retry:a,encoding:s},u=[]){let c=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.3.0")}`,"dd-evp-origin=browser",`dd-request-id=${(0,o.DO)()}`].concat(u);return s&&c.push(`dd-evp-encoding=${s}`),"rum"===r&&(c.push(`batch_time=${(0,n.n$)()}`,`_dd.api=${i}`),a&&c.push(`_dd.retry_count=${a.count}`,`_dd.retry_after=${a.lastFailureStatus}`)),c.join("&")}(e,t,i,a,r)}),trackType:t}}function u({replica:e,proxy:t,source:r},n){if(e)return s({clientToken:e.clientToken,proxy:t,source:r,site:a.D_},n,"rum"===n?[`application.id=${e.applicationId}`]:void 0)}function c({proxy:e,site:t=a.D_,path:r,parameters:n="",subdomain:o}){let s=r;if(n&&(s+=`?${n}`),"string"==typeof e){let t=`${(0,i.D5)(e)}?ddforward=${encodeURIComponent(s)}`;return o&&(t+=`&ddforwardSubdomain=${o}`),t}if("function"==typeof e)return e({path:r,parameters:n,subdomain:o});let u=t.split("."),c=u.pop(),l=`browser-intake-${u.join("-")}.${c}`;return o&&(l=`${o}.${l}`),`https://${l}${s}`}},68826:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(51145);function i(){let e=n.Z.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection?.type?[e.connection.type]:void 0,effective_type:e.connection?.effectiveType}}},45242:function(e,t,r){"use strict";r.d(t,{AP:function(){return l},K$:function(){return u},VZ:function(){return d}});var n=r(68566),i=r(19012),o=r(22685),a=r(24507),s=r(33234);let u="No stack, consider using an instance of Error";function c({originalError:e,stackTrace:t,source:r,useFallbackStack:s=!0,nonErrorPrefix:c}){var l;let f=d(e);return!t&&f&&(t=(0,o._)(e)),{source:r,type:t?t.name:void 0,message:(l=t,l?.message&&l?.name?l.message:f?"Empty message":c?`${c} ${(0,i.l)((0,n.N)(e))}`:(0,i.l)((0,n.N)(e))),stack:t?(0,a.P3)(t):s?u:void 0}}function l({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:u,handling:l}){let f=c({originalError:t,stackTrace:e,source:u,useFallbackStack:a,nonErrorPrefix:o});return{startClocks:i,handling:l,handlingStack:r,componentStack:n,originalError:t,...f,causes:d(t)?function(e,t){let r=[],n=e.cause;for(;null!=n&&r.length<10;){let e=c({originalError:n,source:t,useFallbackStack:!1});r.push(e),n=d(n)?n.cause:void 0}return r.length?r:void 0}(t,u):void 0,fingerprint:d(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0,context:function(e){if((0,s.s)(e))return e.dd_context}(t)}}function d(e){try{return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}catch{return!1}}},42419:function(e,t,r){"use strict";r.d(t,{z:function(){return n}});let n={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},93909:function(e,t,r){"use strict";r.d(t,{DZ:function(){return n},D_:function(){return i},Ds:function(){return o},iU:function(){return c},tx:function(){return s},y7:function(){return a}});let n="datad0g.com",i="datadoghq.com",o="datadoghq.eu",a="ddog-gov.com",s="us2.ddog-gov.com",u=["ddsource","dd-api-key","dd-request-id"];function c(e){return u.every(t=>e.includes(t))}},85043:function(e,t,r){"use strict";function n(e,t){return e*t/100}r.d(t,{HQ:function(){return n},HR:function(){return o}});let i=new Map;function o(e,t){if(100===t)return!0;
1if(0===t)return!1;let r=i.get(t);if(e===r?.sessionId)return r.decision;let n=function(e,t){let r=2n**64n;return Number(0xf6b75ab2bc471c7n*e%r)<=t/100*Number(r)}(BigInt(`0x${e.split("-")[4]}`),t);return i.set(t,{sessionId:e,decision:n}),n}},78981:function(e,t,r){"use strict";r.d(t,{TN:function(){return i},_q:function(){return s},sr:function(){return o},uY:function(){return a}});var n=r(64513);let i=4*n.dV,o=15*n.yR,a=n.P5,s={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"}},19276:function(e,t,r){"use strict";r.d(t,{MS:function(){return i}});var n=r(13842);function i(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:a,variant:s}=e,u=[o("sdk_version",a??"7.3.0")];return t&&u.push(o("env",t)),r&&u.push(o("service",r)),n&&u.push(o("version",n)),i&&u.push(o("datacenter",i)),s&&u.push(o("variant",s)),u}function o(e,t){let r=t?`${e}:${t}`:e;return(r.length>200||RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r))&&n.jf.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${n.IA} ${n.aA}/getting_started/tagging/#defining-tags`),r.replace(/,/g,"_")}},18797:function(e,t,r){"use strict";let n;r.d(t,{Uo:function(){return L},eJ:function(){return N},Sz:function(){return M},qZ:function(){return U},eG:function(){return D},VL:function(){return H}});var i=r(64513),o=r(13842),a=r(45242),s=r(24507),u=r(57549),c=r(99176),l=r(19276),d=r(93909),f=r(75721),p=r(64933),h=r(38971),m=r(73603),y=r(19012),g=r(92904),v=r(22685),_=r(68826),b=r(76876),w=r(53789),E=r(30481),S=r(5419),A=r(83895),T=r(47581),C=r(89643),k=r(51145),O=r(251);let x={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},R=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],I=[d.y7,d.tx];function P(){return n||(n=new f.fk(100)),n}function H(e,t,r){let n=new f.y$,{enabled:o,metricsEnabled:a}=function(e,t,r,n,o=1,a=15){let s={},c=!I.includes(t.site)&&(0,m.y7)(t.telemetrySampleRate),d={[x.LOG]:c,[x.CONFIGURATION]:c&&(0,m.y7)(t.telemetryConfigurationSampleRate),[x.USAGE]:c&&(0,m.y7)(t.telemetryUsageSampleRate),metric:c&&(0,m.y7)(o)},f={is_local_file:k.Z.location?.protocol==="file:",is_worker:k.j},v=P();return v.subscribe(({rawEvent:o,metricName:c})=>{if(c&&!d.metric||!d[o.type])return;let p=c||o.status||o.type,m=s[p];if(m||(m=s[p]=new Set),m.size>=a)return;let v=(0,y.l)(o);if(m.has(v))return;let b=r.trigger({startTime:(0,i.$I)().relative});if(b===C.C_)return;let w=function(e,r,n,o){let a={type:"telemetry",date:(0,i.$I)().timeStamp,service:r,version:"7.3.0",source:"browser",_dd:{format_version:2},telemetry:(0,g.$e)(n,{runtime_env:o,connectivity:(0,_.T)(),sdk_setup:"npm"}),ddtags:(0,l.MS)(t).join(","),experimental_features:Array.from((0,u.u0)())};return(0,g.$e)(a,e)}(b,e,o,f);n.notify(w),(0,h.j)("telemetry",w),m.add(v)}),v.unbuffer(),(0,p.P_)(M),{enabled:c,metricsEnabled:d.metric}}(e,t,r,n),{stop:s}=function(e,t){let r=[];if((0,b.xT)()){let e=(0,b.Ad)(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[(0,c.Ez)(e,"rum")],i=(0,c.ji)(e,"rum");i&&e.site===d.DZ&&n.push(i);let o=(0,w.n)({encoder:(0,A.G)(),request:(0,E.UF)(n,O.Z),flushController:(0,S.rK)({pageMayExitObservable:(0,T.FP)(),sessionExpireObservable:new f.y$})});r.push(o.stop);let a=t.subscribe(o.add);r.push(a.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,n);return{stop:s,enabled:o,metricsEnabled:a}}function N(e,t){(0,p.DV)(o.vA.debug,e,t),P().notify({rawEvent:{type:x.LOG,message:e,status:"debug",...t}})}function M(e,t){P().notify({rawEvent:{type:x.LOG,status:"error",...function(e){if((0,a.VZ)(e)){let t=(0,v._)(e);return{error:{kind:t.name,stack:(0,s.P3)((t.stack=t.stack.filter(e=>!e.url||R.some(t=>e.url.startsWith(t))),t))},message:t.message}}return{error:{stack:a.K$},message:`Uncaught ${(0,y.l)(e)}`}}(e),...t}})}function L(e){P().notify({rawEvent:{type:x.CONFIGURATION,configuration:e}})}function U(e,t){P().notify({rawEvent:{type:x.LOG,message:e,status:"debug",...t},metricName:e})}function D(e){P().notify({rawEvent:{type:x.USAGE,usage:e}})}},89643:function(e,t,r){"use strict";r.d(t,{Bi:function(){return i},C_:function(){return o},kb:function(){return a}});var n=r(92904);function i(){let e=[];return{register:t=>(e.push(t),{unregister(){e=e.filter(e=>e!==t)}}),trigger(t){let r=[];for(let n of e){let e=n(t);if(e===o)return o;e!==a&&r.push(e)}return(0,n.$e)(...r)}}}let o="DISCARDED",a="SKIPPED"},40812:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(13842);function i(e,t){return(...r)=>{try{return e(...r)}catch(e){n.jf.error(t,e)}}}},13842:function(e,t,r){"use strict";var n;r.d(t,{IA:function(){return l},Qo:function(){return c},aA:function(){return u},jG:function(){return o},jf:function(){return s},vA:function(){return i}});let i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,a={};
1Object.keys(i).forEach(e=>{a[e]=o[e]});let s=(n="Datadog Browser SDK:",{debug:a.debug.bind(o,n),log:a.log.bind(o,n),info:a.info.bind(o,n),warn:a.warn.bind(o,n),error:a.error.bind(o,n)}),u="https://docs.datadoghq.com",c=`${u}/real_user_monitoring/browser/troubleshooting`,l="More details:"},83895:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(51962);function i(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,i){let o=(0,n.qt)(r);t+=o,e+=r,i&&i(o)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}},57549:function(e,t,r){"use strict";r.d(t,{W_:function(){return u},fG:function(){return s},u0:function(){return c},uh:function(){return i}});var n,i,o=r(94162);(n=i||(i={})).TRACK_INTAKE_REQUESTS="track_intake_requests",n.PARTIAL_VIEW_UPDATES="partial_view_updates";let a=new Set;function s(e){Array.isArray(e)&&function(e){e.forEach(e=>{a.add(e)})}(e.filter(e=>(0,o.E5)(i,e)))}function u(e){return a.has(e)}function c(){return a}},59693:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(51145);function i(e,t){let r;let i=n.Z;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(r=e[i.Zone.__symbol__(t)]),r||(r=e[t]),r}},51145:function(e,t,r){"use strict";r.d(t,{Z:function(){return n},j:function(){return i}});let n=globalThis,i="WorkerGlobalScope"in n},55801:function(e,t,r){"use strict";r.d(t,{Su:function(){return s},Xk:function(){return u}});var n=r(65483),i=r(64933),o=r(251),a=r(24507);function s(e,t,r,{computeHandlingStack:n}={}){var s,u;let c=e[t];if("function"!=typeof c){if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:o.Z};c=o.Z}let l=!1,{stop:d}=(s=c,u=function(){if(l)return c.apply(this,arguments);let e=Array.from(arguments);return function(e,t,r){let n;(0,i.L6)(e,null,[{...t,onPostCall:e=>{n=e}}]);let o=r();return n&&(0,i.L6)(n,null,[o]),o}(r,{target:this,parameters:e,handlingStack:n?(0,a.Xp)("instrumented method"):void 0},()=>c.apply(this,e))},e[t]=u,{stop:()=>{e[t]===u&&(e[t]=s)}});return{stop:()=>{l=!0,d()}}}function u(e,t,r){let i=Object.getOwnPropertyDescriptor(e,t);if(!i?.set||!i.configurable)return{stop:o.Z};let a=o.Z,s=(e,t)=>{(0,n.iK)(()=>{s!==a&&r(e,t)},0)},u=function(e){i.set.call(this,e),s(this,e)};return Object.defineProperty(e,t,{set:u}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===u&&Object.defineProperty(e,t,i),s=a}}}},92904:function(e,t,r){"use strict";r.d(t,{$e:function(){return a},I8:function(){return o}});var n=r(33234);function i(e,t,r=function(){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t.source,t.flags);if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)n[e]=i(n[e],t[e],r);return n}let o="object"===(0,n.o)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=i(o[e],t[e],r));return o}function o(e){return i(void 0,e)}function a(...e){let t;for(let r of e)null!=r&&(t=i(t,r));return t}},88750:function(e,t,r){"use strict";function n(e){return e}r.d(t,{C:function(){return n}})},64933:function(e,t,r){"use strict";let n;r.d(t,{$y:function(){return l},DV:function(){return d},L6:function(){return c},P_:function(){return a},yD:function(){return s},zk:function(){return u}});var i=r(13842);let o=!1;function a(e){n=e}function s(e){o=e}function u(e){return function(...t){return c(e,this,t)}}function c(e,t,r){try{return e.apply(t,r)}catch(e){l(e)}}function l(e){if(d(e),n)try{n(e)}catch(e){d(e)}}function d(...e){o&&i.jf.error("[MONITOR]",...e)}},75721:function(e,t,r){"use strict";r.d(t,{fk:function(){return u},y$:function(){return a},$Z:function(){return s}});var n=r(64933),i=r(51145);function o(e){let t=i.Z.queueMicrotask;"function"==typeof t?t((0,n.zk)(e)):Promise.resolve().then((0,n.zk)(e))}class a{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}
1notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function s(...e){return new a(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}class u extends a{constructor(e,t){super(),this.maxBufferSize=e,this.onDrop=t,this.buffer=[],this.droppedCount=0}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(e)}subscribe(e){let t=!1;return o(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){o(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}},21337:function(e,t,r){"use strict";r.d(t,{Kk:function(){return a}});var n=r(64513),i=r(65483),o=r(64933);function a(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,o.zk)(e),t);return()=>window.cancelIdleCallback(r)}return function(e){let t=(0,n.m6)(),r=(0,i.iK)(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,n.m6)()-t))})},0);return()=>(0,i.gr)(r)}(e)}},38971:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(51145);function i(e,t){let r=n.Z.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}},19012:function(e,t,r){"use strict";r.d(t,{l:function(){return i},y:function(){return o}});var n=r(251);function i(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let n=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(e)),s=o(e);try{return JSON.stringify(e,t,r)}catch{return"<error: unable to serialize object>"}finally{n(),i(),a(),s()}}function o(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):n.Z}},68566:function(e,t,r){"use strict";r.d(t,{N:function(){return s}});var n=r(13842),i=r(51962),o=r(19012);let a=220*i.Hi;function s(e,t=a){let r=(0,o.y)(Object.prototype),n=(0,o.y)(Array.prototype);try{let r=[],n=new WeakMap,i=u(e,"$",void 0,r,n),o=JSON.stringify(i),a=o?o.length:0;if(a>t){c(t,"discarded",e);return}for(;r.length>0&&a<t;){let i=r.shift(),o=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let l=u(i.source[s],i.path,s,r,n);if(void 0!==l?a+=JSON.stringify(l).length:a+=4,a+=o,o=1,a>t){c(t,"truncated",e);break}i.target[s]=l}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let l=u(i.source[s],i.path,s,r,n);if(void 0!==l&&(a+=JSON.stringify(l).length+o+s.length+3,o=1),a>t){c(t,"truncated",e);break}i.target[s]=l}}return i}finally{r(),n()}}function u(e,t,r,n,i){let o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch{}return e}(e);if(!o||"object"!=typeof o)return"bigint"==typeof o?`[BigInt] ${o.toString()}`:"function"==typeof o?`[Function] ${o.name||"unknown"}`:"symbol"==typeof o?`[Symbol] ${o.description||o.toString()}`:o;let a=function e(t){try{if(t instanceof Event)return{type:t.type,isTrusted:t.isTrusted,currentTarget:t.currentTarget?e(t.currentTarget):null,target:t.target?e(t.target):null};if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let r=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(r?.[1])return`[${r[1]}]`}catch{}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let s=void 0!==r?`${t}.${r}`:t,u=Array.isArray(o)?[]:{};return i.set(e,s),n.push({source:o,target:u,path:s}),u}function c(e,t,r){n.jf.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}},22685:function(e,t,r){"use strict";let n;r.d(t,{_:function(){return o},f:function(){return m}});var i=r(33234);function o(e){let t=[],r=h(e,"stack"),i=String(e);if(r?.startsWith(i)&&(r=r.slice(i.length)),r&&r.split("\n").forEach(e=>{let r=function(e){let t=u.exec(e);if(!t)return;let r=t[2]?.indexOf("native")===0,n=t[2]?.indexOf("eval")===0,i=c.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=l.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=d.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=f.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,n=p.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);
1r&&(!r.func&&r.line&&(r.func="?"),t.push(r))}),t.length>0&&function(){if(void 0!==n)return n;class e extends Error{constructor(){super(),this.name="Error"}}let[t,r]=[e,Error].map(e=>new e);return n=g(Object.getPrototypeOf(t))&&r.stack!==t.stack}()&&e instanceof Error){let r=[],n=e;for(;(n=Object.getPrototypeOf(n))&&g(n);){let e=n.constructor?.name||"?";r.push(e)}for(let e=r.length-1;e>=0&&t[0]?.func===r[e];e--)t.shift()}return{message:h(e,"message"),name:h(e,"name"),stack:t}}let a="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",s="(?::(\\d+))",u=RegExp(`^\\s*at (.*?) ?\\(${a}${s}?${s}?\\)?\\s*$`,"i"),c=RegExp(`\\((\\S*)${s}${s}\\)`),l=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${a}${s}?${s}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function h(e,t){return(0,i.s)(e)&&"string"==typeof e[t]?e[t]:void 0}function m(e,t,r,n){let i,o;if(void 0===t)return;let{name:a,message:s}=("[object String]"===({}).toString.call(e)&&([,i,o]=y.exec(e)),{name:i,message:o});return{name:a,message:s,stack:[{url:t,column:n,line:r}]}}let y=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function g(e){return String(e.constructor).startsWith("class ")}},24507:function(e,t,r){"use strict";r.d(t,{P3:function(){return a},Xp:function(){return o},jN:function(){return s}});var n=r(64933),i=r(22685);function o(e){let t;let r=Error(e);return r.name="HandlingStack",(0,n.L6)(()=>{let e=(0,i._)(r);e.stack=e.stack.slice(2),t=a(e)}),t}function a(e){let t=s(e);return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=`
2  at ${r}${n} @ ${e.url}${i}${o}`}),t}function s(e){return`${e.name||"Error"}: ${e.message}`}},65483:function(e,t,r){"use strict";r.d(t,{Zi:function(){return u},cv:function(){return c},gr:function(){return s},iK:function(){return a}});var n=r(59693),i=r(64933),o=r(51145);function a(e,t){return(0,n.I)(o.Z,"setTimeout")((0,i.zk)(e),t)}function s(e){(0,n.I)(o.Z,"clearTimeout")(e)}function u(e,t){return(0,n.I)(o.Z,"setInterval")((0,i.zk)(e),t)}function c(e){(0,n.I)(o.Z,"clearInterval")(e)}},13214:function(e,t,r){"use strict";function n(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function i(e){return Array.isArray(e)&&e.length>0}r.d(t,{Of:function(){return i},cl:function(){return n}})},51962:function(e,t,r){"use strict";r.d(t,{Hi:function(){return n},Kb:function(){return s},X9:function(){return i},qt:function(){return a}});let n=1024,i=1048576,o=/[^\u0000-\u007F]/;function a(e){return o.test(e)?new TextEncoder().encode(e).length:e.length}function s(e){if(1===e.length)return e[0];let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}},251:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return o}});var n=r(65483);function i(e,t,r){let i,o;let a=r?.leading===void 0||r.leading,s=r?.trailing===void 0||r.trailing,u=!1;return{throttled:(...r)=>{if(u){i=r;return}a?e(...r):i=r,u=!0,o=(0,n.iK)(()=>{s&&i&&e(...i),u=!1,i=void 0},t)},cancel:()=>{(0,n.gr)(o),u=!1,i=void 0}}}function o(){}},73603:function(e,t,r){"use strict";function n(e){return 0!==e&&100*Math.random()<=e}function i(e,t){return+e.toFixed(t)}function o(e){return a(e)&&e>=0&&e<=100}function a(e){return"number"==typeof e}r.d(t,{NM:function(){return i},hj:function(){return a},y7:function(){return n},zz:function(){return o}})},94162:function(e,t,r){"use strict";function n(e){try{return JSON.parse(e)}catch{}}function i(e){return{...e}}function o(e,t){return Object.keys(e).some(r=>e[r]===t)}function a(e){return 0===Object.keys(e).length}function s(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n]);return r}r.d(t,{Cy:function(){return n},E5:function(){return o},Q8:function(){return s},Qr:function(){return a},mv:function(){return i}})},94776:function(e,t,r){"use strict";function n(e,t){for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(t(n,r,e))return n}}function i(e){return Object.values(e)}function o(e){return Object.entries(e)}r.d(t,{TT:function(){return i},dF:function(){return n},qP:function(){return o}})},29100:function(e,t,r){"use strict";function n(e){return e>=500}function i(e){try{return e.clone()}catch{return}}r.d(t,{o:function(){return n},u:function(){return i}})},88129:function(e,t,r){"use strict";function n(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}r.d(t,{DO:function(){return n},MY:function(){return o},_z:function(){return u},kq:function(){return s},ql:function(){return a}});let i=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function o(e,t){for(i.lastIndex=0;;){let r=i.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function a(e){let t=new Map;for(i.lastIndex=0;;){let r=i.exec(e);if(r){let e=r[1],n=r[2];t.has(e)?t.get(e).push(n):t.set(e,[n])}else break}return t}function s(e){let t=new Map;for(i.lastIndex=0;;){let r=i.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function u(e,t,r=""){let n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}},33234:function(e,t,r){"use strict";function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===n(e)}r.d(t,{o:function(){return n},s:function(){return i}})},70170:function(e,t,r){"use strict";let n;r.d(t,{D5:function(){return o},Q2:function(){return u},jv:function(){return a},ye:function(){return s}});var i=r(51145);function o(e){return u(e,i.Z.location?.href).href}function a(e){try{return!!u(e)}catch{return!1}}function s(e){let t=u(e).pathname;return"/"===t[0]?t:`/${t}`}function u(e,t){let{URL:r}=function(){if(!n){let e,t;try{(e=document.createElement("iframe")).style.display="none",document.body.appendChild(e),t=e.contentWindow??i.Z}catch{t=i.Z}n={URL:t.URL},e?.remove()}return n}();try{return void 0!==t?new r(e,t):new r(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}},69029:function(e,t,r){"use strict";let n;r.d(t,{p8:function(){return l}});var i=r(64513),o=r(65483),a=r(13214);let s=1/0,u=i.yR,c=new Set;function l({expireDelay:e,maxEntries:t}){let r=[];n||(n=(0,o.Zi)(()=>
2void c.forEach(e=>e()),u));let l=()=>{let t=(0,i._q)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return c.add(l),{add:function(e,n){let i={value:e,startTime:n,endTime:s,remove:()=>{(0,a.cl)(r,i)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=s,t={returnInactive:!1}){for(let n of r)if(n.startTime<=e){if(t.returnInactive||e<=n.endTime)return n.value;break}},closeActive:function(e){let t=r[0];t?.endTime===s&&t.close(e)},findAll:function(e=s,t=0){let n=(0,i.WK)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},findAllEntries:function(e=s,t=0){let n=(0,i.WK)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){c.delete(l),0===c.size&&n&&((0,o.cv)(n),n=void 0)}}}},53789:function(e,t,r){"use strict";r.d(t,{n:function(){return c}});var n=r(13842),i=r(94776),o=r(47581),a=r(19012),s=r(51962);let u=256*s.Hi;function c({encoder:e,request:t,flushController:r}){let c={},d=r.flushObservable.subscribe(r=>(function(r){let n=(0,i.TT)(c).join("\n");c={};let a=(0,o.PT)(r.reason),u=a?t.sendOnExit:t.send;if(a&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&u(l(t));let r=[t.pendingData,n].filter(Boolean).join("\n");r&&u({data:r,bytesCount:(0,s.qt)(r)})}else n&&e.write(e.isEmpty?n:`
3${n}`),e.finish(e=>{u(l(e))})})(r));function f(t,i){let o=(0,a.l)(t),l=e.estimateEncodedBytesCount(o);if(l>=u){n.jf.warn(`Discarded a message whose size was bigger than the maximum allowed size ${u/s.Hi}KiB. ${n.IA} ${n.Qo}/#technical-limitations`);return}!function(t,n,i){if(void 0!==i){let o;void 0!==c[i]?o=n-e.estimateEncodedBytesCount(c[i]):(r.notifyBeforeAddMessage(n),o=0),c[i]=t,r.notifyAfterAddMessage(o)}else r.notifyBeforeAddMessage(n),e.write(e.isEmpty?t:`
4${t}`,e=>{r.notifyAfterAddMessage(e-n)})}(o,l,i)}return{flushController:r,add:f,upsert:f,stop:d.unsubscribe}}function l(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}},76876:function(e,t,r){"use strict";r.d(t,{Ad:function(){return o},ke:function(){return a},xT:function(){return s}});var n=r(13842),i=r(51145);function o(){let e=i.Z.DatadogEventBridge;if(e)return{getCapabilities:()=>JSON.parse(e.getCapabilities?.()||"[]"),getPrivacyLevel:()=>e.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(e.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function a(e){let t=o();return!!t&&t.getCapabilities().includes(e)}function s(e=i.Z.location?.hostname){let t=o();return t?.getAllowedWebViewHosts().some(t=>(function(e,t){if(!t.includes("*"))return e===t||e.endsWith(`.${t}`);let r=t.split("*");if(2!==r.length)return n.jf.error(`Invalid WebView host pattern "${t}": only one wildcard (*) is supported.`),!1;let[i,o]=r;return e.length>=i.length+o.length&&e.startsWith(i)&&e.endsWith(o)})(e,t))??!1}},5419:function(e,t,r){"use strict";r.d(t,{rK:function(){return l}});var n=r(64513),i=r(51145),o=r(75721),a=r(65483),s=r(30481);let u=30*n.WT,c=i.j?1:50;function l({pageMayExitObservable:e,sessionExpireObservable:t}){let r,n;let i=new o.y$,l=e.subscribe(e=>{r=e.reason;try{i.notify(e.reason)}finally{r=void 0}m(e.reason)}),d=t.subscribe(()=>m("session_expire")),f=new o.y$(()=>()=>{l.unsubscribe(),d.unsubscribe()}),p=0,h=0;function m(e){if(0===h)return;let t=h,r=p;h=0,p=0,(0,a.gr)(n),n=void 0,f.notify({reason:e,messagesCount:t,bytesCount:r})}return{flushObservable:f,preparePageExitFlushObservable:i,get messagesCount(){return h},notifyBeforeAddMessage(e){p+e>=s.Wj&&m(r??"bytes_limit"),h+=1,p+=e,void 0===n&&(n=(0,a.iK)(()=>{m("duration_limit")},u))},notifyAfterAddMessage(e=0){p+=e,h>=c?m(r??"messages_limit"):p>=s.Wj&&m(r??"bytes_limit")}}}},30481:function(e,t,r){"use strict";r.d(t,{Wj:function(){return _},UF:function(){return b}});var n=r(27752),i=r(64933),o=r(75721),a=r(51962),s=r(64513),u=r(65483),c=r(29100),l=r(42419);let d=80*a.Hi,f=20*a.X9,p=s.yR,h=s.WT;function m(e,t,r,n,i,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?y(e,t,r,o,{onSuccess:()=>g(0,t,r,n,i,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,o){2===t.transportStatus&&(0,u.iK)(()=>{y(t.queuedPayloads.first(),t,r,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=h,g(1,t,r,n,i,o)},onFailure:()=>{t.currentBackoffTime=Math.min(p,2*t.currentBackoffTime),e(t,r,n,i,o)}})},t.currentBackoffTime)}(t,r,n,i,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function y(e,t,r,n,{onSuccess:i,onFailure:o}){t.bandwidthMonitor.add(e),r(e,r=>
4{t.bandwidthMonitor.remove(e),"opaque"!==r.type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||(0,c.o)(r.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function g(e,t,r,n,i,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:`Reached max ${n} events size queued for upload: ${f/a.X9}MiB`,source:l.z.AGENT,startClocks:(0,s.$I)()}),t.queueFullReported=!0);let u=t.queuedPayloads;for(t.queuedPayloads=v();u.size()>0;)m(u.dequeue(),t,r,n,i,o)}function v(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=f}}}let _=16*a.Hi;function b(e,t,r=_){let n=new o.y$,a={transportStatus:0,currentBackoffTime:h,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=d&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:v(),queueFullReported:!1};return{observable:n,send:r=>{for(let i of e)m(r,a,(e,t)=>{E(i,e,t)},i.trackType,t,n)},sendOnExit:t=>{for(let n of e)!function(e,t,r){if(r.bytesCount<t)try{let t=e.build("beacon",r);if(navigator.sendBeacon(t,r.data))return}catch(e){w||(w=!0,(0,i.$y)(e))}E(e,r)}(n,r,t)}}}let w=!1;function E(e,t,r){let o=e.build("fetch",t);(0,n.h)(o,{method:"POST",body:t.data,mode:"cors"}).then((0,i.zk)(e=>r?.({status:e.status,type:e.type}))).catch((0,i.zk)(()=>r?.({status:0})))}},90890:function(e,t,r){"use strict";let n,i,o,a,s,u,c,l,d,f,p;r.d(t,{Xn:function(){return rH},k6:function(){return rP},zx:function(){return rx},$n:function(){return rR},nw:function(){return rI},D$:function(){return et},wE:function(){return er},uo:function(){return m},o8:function(){return ea},nu:function(){return ia},QB:function(){return ip},Uo:function(){return rn},q5:function(){return tF},IE:function(){return rL},SZ:function(){return rD},Ow:function(){return ri},$1:function(){return nU},X_:function(){return nD},Gm:function(){return id},FB:function(){return rF},PA:function(){return nB},AX:function(){return nj},Tv:function(){return re},aT:function(){return rt},VO:function(){return rr},_r:function(){return il},Ch:function(){return rU},Pu:function(){return tQ},vv:function(){return rB},gR:function(){return rj}});var h,m,y=r(64513),g=r(75721);let v={GRANTED:"granted",NOT_GRANTED:"not-granted"};var _=r(88750),b=r(55801),w=r(64933),E=r(70170),S=r(51145),A=r(51962),T=r(251);async function C(e){let t=e.getReader(),r=[];for(;;){let e=await t.read();if(e.done)break;r.push(e.value)}return t.cancel().catch(T.Z),(0,A.Kb)(r)}var k=r(29100);let O=[];function x({responseBodyAction:e}={}){return e&&O.push(e),n||(n=new g.y$(e=>{if(!S.Z.fetch)return;let{stop:t}=(0,b.Su)(S.Z,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){let[i,o]=e,a=o?.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:(0,E.D5)(String(i)),c={state:"start",init:o,input:i,method:s,startClocks:(0,y.$I)(),url:u,handlingStack:r,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||o?.signal?.aborted||!1};n.notify(c),e[0]=c.input,e[1]=c.init,t(e=>{R(n,e,c).catch(w.$y)})})(t,e),{computeHandlingStack:!0});return t})),n}async function R(e,t,r){let n;try{n=await t}catch(t){e.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t});return}if(r.response=n,r.status=n.status,r.responseType=n.type,r.isAborted=!1,1===O.reduce((e,t)=>
4Math.max(e,t(r)),0)){let e=(0,k.u)(n);if(e?.body)try{let t=await C(e.body);r.responseBody=new TextDecoder().decode(t)}catch{}}e.notify({...r,state:"resolve"})}var I=r(83206);let P=new WeakMap;function H(){return i||(i="XMLHttpRequest"in S.Z?new g.y$(e=>{let{stop:t}=(0,b.Su)(XMLHttpRequest.prototype,"open",N),{stop:r}=(0,b.Su)(XMLHttpRequest.prototype,"send",t=>{(function({target:e,parameters:[t],handlingStack:r},n){let i=P.get(e);if(!i)return;i.state="start",i.startClocks=(0,y.$I)(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.requestBody=t;let o=!1,{stop:a}=(0,b.Su)(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&s()}),s=()=>{u(),a(),o||(o=!0,i.duration=(0,y._J)(i.startClocks.timeStamp,(0,y.n$)()),i.status=e.status,"string"==typeof e.response&&(i.responseBody=e.response),n.notify({...i,state:"complete"}))},{stop:u}=(0,I.Oo)(e,"loadend",s);n.notify(i)})(t,e)},{computeHandlingStack:!0}),{stop:n}=(0,b.Su)(XMLHttpRequest.prototype,"abort",M);return()=>{t(),r(),n()}}):new g.y$),i}function N({target:e,parameters:[t,r]}){P.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,E.D5)(String(r))})}function M({target:e}){let t=P.get(e);t&&(t.isAborted=!0)}var L=r(13842),U=r(18797),D=r(22685),j=r(45242),B=r(42419);function $(){return new g.y$(e=>{let t=(t,r)=>{let n=(0,j.AP)({stackTrace:r,originalError:t,startClocks:(0,y.$I)(),nonErrorPrefix:"Uncaught",source:B.z.SOURCE,handling:"unhandled"});e.notify(n)},{stop:r}=(0,b.Su)(S.Z,"onerror",({parameters:[e,r,n,i,o]})=>{let a;(0,j.VZ)(o)||(a=(0,D.f)(e,r,n,i)),t(o??e,a)}),{stop:n}=(0,I.jO)(S.Z.window,"unhandledrejection")?(0,b.Su)(S.Z,"onunhandledrejection",({parameters:[e]})=>{t(e.reason||"Empty reason")}):{stop:T.Z};return()=>{r(),n()}})}var K=r(68566),F=r(19012),G=r(24507);let W={};var z=r(83895),V=r(8678),J=r(92904);function q(e,t,r,n){return(0,w.zk)((...i)=>(n&&(0,U.eG)({feature:n}),e()[t][r](...i)))}function Z(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.notify(e=>e[t].setContext(n))})}let X={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Y={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};var Q=r(88129);function ee(e,t){t.silentMultipleInit||L.jf.error(`${e} is already initialized.`)}let et={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},er={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},en={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},ei={CLICK:"click",CUSTOM:"custom"},eo={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ea={DURATION:"duration",OPERATION_STEP:"operation_step"};var es=r(40812),eu=r(73603),ec=r(94162);function el(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n?.crossSite?"none":"strict",s=n?.domain?`;domain=${n.domain}`:"",u=n?.secure?";secure":"",c=n?.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${u}${c}`}function ed(e){let t=(0,Q.MY)(document.cookie,e);if(""!==t)return t}function ef(e){return(0,Q.ql)(document.cookie).get(e)||[]}function ep(e){return o||(o=(0,Q.kq)(document.cookie)),o.get(e)}var eh=r(33234);function em(e){let t=(0,eh.o)(e);return"string"===t||"function"===t||e instanceof RegExp}function ey(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){L.jf.error(e)}return!1})}let eg=["chrome-extension://","moz-extension://"];function ev(e){return eg.some(t=>e.includes(t))}var e_=r(93909);let eb={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},ew={ALL:"all",SAMPLED:"sampled"};function eE(e,t){return null==e||"string"==typeof e||(L.jf.error(`${t} must be defined as a string`),!1)}function eS(e,t){return!!(void 0===e||(0,eu.zz)(e))||(L.jf.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}var eA=r(13214),eT=r(27752),eC=r(99176);function ek(e,t){t.lastIndex=0;let r=t.exec(e);if(!r)return;let[n,i]=r;return i||n}let eO=/[a-zA-Z_$]/,ex=/[a-zA-Z0-9_$]/,eR=/[0-9]/,eI=/[a-fA-F0-9]/,eP={0:()=>
4!1,1:()=>!1,2:e=>eO.test(e),3:e=>ex.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>eR.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&eI.test(e)},eH={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},eN=[2,3,7,10],eM=[4,5,6],eL={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},eU={hit:"success",miss:"missing",error:"failure"},eD=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function ej(e,t){let r;let n=e$(),i=await eF(e);return i.ok?(n.increment("fetch","success"),r=eB(e,i.value,t,n)):(n.increment("fetch","failure"),L.jf.error(i.error)),(0,U.qZ)("remote configuration metrics",{metrics:n.get()}),r}function eB(e,t,r,n){let i={...e};return eD.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{void 0!==t[e]&&function(e,t){t.forEach(({key:t,value:r})=>{e.setContextProperty(t,o(r))})}(r[e],t[e])}),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,eh.s)(e)){if("rcSerializedType"in e){let t=e.rcSerializedType;switch(t){case"string":return e.value;case"regex":return eK(e.value);case"dynamic":return function(e){let t;let r=e.strategy;switch(r){case"cookie":t=function({name:e}){let t=ed(e);return n.increment("cookie",void 0!==t?"success":"missing"),t}(e);break;case"dom":t=function({selector:e,attribute:t}){let r;try{r=document.querySelector(e)}catch{L.jf.error(`Invalid selector in the remote configuration: '${e}'`),n.increment("dom","failure");return}if(!r){n.increment("dom","missing");return}if("password"===r.getAttribute("type")&&"value"===t){L.jf.error(`Forbidden element selected by the remote configuration: '${e}'`),n.increment("dom","failure");return}let i=void 0!==t?r.getAttribute(t):r.textContent;if(null===i){n.increment("dom","missing");return}return n.increment("dom","success"),i}(e);break;case"js":t=function({path:e}){let t=window,r=function(e){let t;let r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let u of e){if(!(t=eH[n].find(e=>eP[e](u,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):eL[s],i.escapeSequence=void 0}eN.includes(t)?o+=u:eM.includes(t)&&""!==o?(r.push(o),o=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${u}`:u:8===t?i.quote=u:9===t&&(i.quote=void 0),n=t}return eH[n].includes(1)?(""!==o&&r.push(o),r):[]}(e);if(0===r.length){L.jf.error(`Invalid JSON path in the remote configuration: '${e}'`),n.increment("js","failure");return}for(let i of r){if(!(i in t)){n.increment("js","missing");return}try{t=t[i]}catch(t){L.jf.error(`Error accessing: '${e}'`,t),n.increment("js","failure");return}}return n.increment("js","success"),t}(e);break;case"localStorage":t=function({key:e}){let t;try{t=localStorage.getItem(e)}catch{n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),t??void 0}(e);break;default:L.jf.error(`Unsupported remote configuration: "strategy": "${r}"`);return}let i=e.extractor;return void 0!==i&&"string"==typeof t?function(e,t){let r=eK(e.value);if(void 0!==r)return ek(t,r)}(i,t):t}(e);default:L.jf.error(`Unsupported remote configuration: "rcSerializedType": "${t}"`);return}}return(0,ec.Q8)(e,o)}return e}}function e$(){let e={fetch:{}};return{get:()=>e,increment:(t,r)=>{e[t]||(e[t]={}),e[t][r]||(e[t][r]=0),e[t][r]=e[t][r]+1}}}function eK(e){try{return new RegExp(e)}catch{L.jf.error(`Invalid regex in the remote configuration: '${e}'`)}}async function eF(e){let t;try{t=await (0,eT.h)(function(e){if(e.remoteConfigurationProxy)return e.remoteConfigurationProxy;let t=eG(e);return(0,eC.lp)({site:e.site,path:`/v1/${encodeURIComponent(t)}.json`,subdomain:"sdk-configuration"})}(e))}catch{t=void 0}if(!t?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let r=await t.json();return r.rum?{ok:!0,value:r.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function eG(e){return e.remoteConfiguration?.id??e.remoteConfigurationId}let eW=["tracecontext","datadog"],ez=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function eV(e){return em(e)?{match:e,propagatorTypes:eW}:(0,eh.s)(e)&&em(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||eW}:void 0}let eJ=["request","response","any"];function eq(e,t,r){if(e)for(let n of e){let e=n[t];e&&e(r)}}let eZ=[];function eX(e,t,r){if("undefined"==typeof window||"undefined"==typeof localStorage)return;let n=`_dd_c_${t}_${r}`;eZ.push((0,I.Oo)(window,"storage",({key:t})=>{n===t&&e.setContext(o())})),e.changeObservable.subscribe(function(){localStorage.setItem(n,JSON.stringify(e.getContext()))});let i=(0,J.$e)(o(),e.getContext());function o(){let e=localStorage.getItem(n);return e?JSON.parse(e):{}}(0,ec.Qr)(i)||e.setContext(i)}function eY(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||eQ(n[e])||(n[e]=String(n[e])),i&&eQ(n[e])&&L.jf.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function eQ(e){return null==e||""===e}function e0(e="",{propertiesConfig:t={}}={}){let r={},n=new g.y$,i={getContext:()=>(0,J.I8)(r),setContext:o=>{!function(e){let t="object"===(0,eh.o)(e);return t||L.jf.error("Unsupported context:",e),t}(o)?i.clearContext():r=(0,K.N)(eY(o,t,e)),n.notify()},setContextProperty:(i,o)=>{r=(0,K.N)(eY({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],eY(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function e1(){return e0("global context")}var e2=r(89643);function e5(){return e0("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function e3(){return e0("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var e6=r(76876),e8=r(69029),e4=r(65483),e9=r(85043),e7=r(78981),te=r(94776);let tt=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tr(e){return e.created?Number(e.created):void 0}function tn(e){let t=e.expire&&Number(e.expire),r=tr(e);if(t&&r)return Math.min(t,r+e7.TN)}function ti(e,t){let r={isExpired:"1"};
4return t.trackAnonymousUser&&e?.anonymousId&&(r.anonymousId=e?.anonymousId),r}function to(e){return(0,ec.Qr)(e)}function ta(e){return void 0!==e.isExpired||!function(e){let t=tn(e);return!!t&&(0,y.m6)()<t}(e)}function ts(e){e.expire=String((0,y.m6)()+e7.sr)}function tu(e){return(0,te.qP)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function tc(e){let t={};return e&&(-1!==e.indexOf("&")||tt.test(e))&&e.split("&").forEach(e=>{let r=tt.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function tl(e,t){return to(e)?(t.trackAnonymousUser&&(e.anonymousId=(0,Q.DO)()),ti(e,t)):e}function td(e,t){if(to(e))return e;let r=e;return ta(e)&&(r=ti(e,t)),r.id||(r.id=(0,Q.DO)(),r.created=String((0,y.m6)())),t.trackAnonymousUser&&!r.anonymousId&&(r.anonymousId=(0,Q.DO)()),delete r.isExpired,ts(r),r}async function tf(e,t){let r=`dd_cookie_test_${(0,Q.DO)()}`,n="test",i=e(r,t);try{return await i.getAllAndSet(()=>({value:n,expireDelay:y.yR})),(await i.getAll()).includes(n)}catch(e){return L.jf.error(e),!1}finally{try{await i.getAllAndSet(()=>({value:"",expireDelay:0}))}catch{}}}function tp(e,t){let r=(0,_.C)(S.Z.cookieStore),n=new g.y$(()=>(0,I.Oo)(r,"change",t=>{(t.changed.some(t=>t.name===e)||t.deleted.some(t=>t.name===e))&&n.notify()}).stop);return{getAll:async()=>(await r.getAll(e)).map(e=>e.value),async getAllAndSet(n){let i=await r.getAll(e),{value:o,expireDelay:a}=n(i.map(e=>e.value));try{await r.set({name:e,value:o,expires:(0,y.m6)()+a,path:"/",sameSite:t.crossSite?"none":"strict",domain:t.domain,secure:t.secure,partitioned:t.partitioned})}catch(n){let r=ef(e);(0,U.eJ)("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:o,cookieOptions:{...t},cookies:i.map(e=>({...e})),cookieCount:i.length,documentCookies:r})}},observable:n}}let th=y.WT;function tm(e,t){let r=ef(e),n=new g.y$(()=>{let t=(0,e4.Zi)(()=>{i(ef(e))},th);return()=>{(0,e4.cv)(t)}});function i(e){String(e)!==String(r)&&(r=e,n.notify())}return{getAll:()=>Promise.resolve(ef(e)),async getAllAndSet(r){let{value:n,expireDelay:o}=r(ef(e));el(e,n,o,t),await Promise.resolve(),i([n])},observable:n}}function ty(){let e=(0,_.C)(S.Z.cookieStore);return!!(e&&(0,I.jO)(e,"change"))}let tg="_dd_s_v2",tv="_dd_s";async function t_(e){let{cookieOptions:t}=e;return t?ty()&&await tf(tp,t)?{type:e7._q.COOKIE,cookieOptions:t,cookieApi:1}:await tf(tm,t)?{type:e7._q.COOKIE,cookieOptions:t,cookieApi:0}:void 0:void 0}function tb(e,t){return 1===e?tp(tg,t):tm(tg,t)}function tw(e,t){let r;for(let n of e.slice().reverse())if((r=tc(n)).c===t)break;return delete r?.c,r??{}}function tE(e){return(0|(e.domain?e.domain.split(".").length-1:0)<<1|(e.crossSite?1:0)).toString(16)}let tS="_DD_SESSION";async function tA(e){var t;for(let r of Array.isArray(t=e.sessionPersistence)?t:void 0!==t?[t]:S.j?[e7._q.MEMORY]:[e7._q.COOKIE]){let t=await function(e,t){switch(e){case e7._q.COOKIE:return t_(t);case e7._q.LOCAL_STORAGE:return function(){try{let e=(0,Q.DO)(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:e7._q.LOCAL_STORAGE}:void 0}catch{return}}();case e7._q.MEMORY:return{type:e7._q.MEMORY};default:L.jf.error(`Invalid session persistence '${String(e)}'`);return}}(r,e);if(void 0!==t)return t}}function tT(e,t){switch(e.type){case e7._q.COOKIE:return function(e,t){let{cookieOptions:r,cookieApi:n}=e,i=new g.y$,o=!!t.trackAnonymousUser,a=tE(r),u=(0,_.C)(tb)(n,r),c=!0;function l(e){return u.getAllAndSet(t=>{var n;let i=tw(t,a);return c&&(0,ec.Qr)(i)&&(i=tw(ef(tv),a)),c=!1,{value:(n=e(i),tu((0,ec.Qr)(n)?n:{...n,c:tE(r)})),expireDelay:o?e7.uY:e7.TN}})}return u.observable.subscribe(()=>{u.getAll().then(e=>{i.notify(tw(e,a))}).catch(e=>(0,w.$y)(Error(`Error while reading session cookies on change: ${e}`)))}),{async setSessionState(e,t){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(tg,()=>l(e)).catch(e=>{if(!(e instanceof Error&&("AbortError"===e.name||e.message.includes("no longer runnable"))))throw e}):(s=(s??Promise.resolve()).then(()=>l(e)),await s)},sessionObservable:i}}(e,t);case e7._q.LOCAL_STORAGE:return function(){let e=new g.y$(e=>(0,I.Oo)(window,"storage",t=>{t.key===tg&&t.storageArea===localStorage&&e.notify(tc(t.newValue))}).stop),t=!0;return{async setSessionState(r,n){let i=tc(localStorage.getItem(tg));t&&to(i)&&(i=tc(localStorage.getItem(tv))),t=!1;
4let o=r(i);localStorage.setItem(tg,tu(o)),await Promise.resolve(),e.notify(o)},sessionObservable:e}}();case e7._q.MEMORY:return function(){let e=S.Z;e[tS]||(e[tS]={});let t=e[tS],r=new g.y$,n=t.onChange;return t.onChange=e=>{n?.(e),r.notify(e)},{async setSessionState(e,r){let n=t.state??{},i=(0,ec.mv)(e(n));t.state=i,await Promise.resolve(),t.onChange?.(i)},sessionObservable:r}}()}}let tC=y.yR,tk=e7.TN,tO=12*y.dV,tx=[];async function tR(e,t){let r;let n=(0,y._q)(),i=new g.y$,o=new g.y$,a=await (0,_.C)(tA)(e);if(!a){L.jf.warn("No storage available for session. We will not send any data.");return}let s=(0,_.C)(tT)(a,e),u=(0,e8.p8)({expireDelay:tk});tx.push(()=>u.stop());let c=!1,{throttled:l,cancel:d}=(0,T.P)(()=>{c=!1,s.setSessionState(t=>td(t,e),"expandOrRenewOnActivity").catch(w.$y)},y.WT);tx.push(d),tx.push(()=>(0,e4.gr)(r));let f=!1;tx.push(()=>{f=!0});let p=await h().catch(e=>(0,w.$y)(Error(`Error while resolving initial session state: ${e}`)));if(p&&!f){for(;!t.isGranted();)if(b(),await new Promise(e=>t.onGrantedOnce(e)),f||!(p=await h().catch(w.$y))||f)return;return u.add(E(p),(0,y.cQ)().relative),m(p),function(){let e=s.sessionObservable.subscribe(e=>{m(e),v(e)});tx.push(()=>e.unsubscribe())}(),t.observable.subscribe(()=>{t.isGranted()?(c=!1,s.setSessionState(t=>td(t,e),"expandOrRenewOnConsent").catch(w.$y)):b()}),S.j||(function(e){let{stop:t}=(0,I.yw)(window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});tx.push(t)}(()=>{t.isGranted()&&l()}),function(e){let t=()=>{"visible"===document.visibilityState&&e()},{stop:r}=(0,I.Oo)(document,"visibilitychange",t);tx.push(r);let n=(0,e4.Zi)(t,tC);tx.push(()=>{(0,e4.cv)(n)})}(()=>{c||s.setSessionState(e=>(ta(e)||to(e)||!e.id||ts(e),e),"expandOnVisibility").catch(w.$y)}),function(e){let{stop:t}=(0,I.Oo)(window,"resume",e,{capture:!0});tx.push(t)}(()=>{s.setSessionState(t=>tl(t,e),"initializeOnResume").catch(w.$y)})),(0,U.qZ)("Session manager init metrics",{metrics:{duration:(0,y._J)(n,(0,y._q)())}}),{findSession:(e,t)=>u.find(e,t),findTrackedSession:(t,r)=>{let n=u.find(t,r);if(!(!n||"invalid"===n.id||!(0,e9.HR)(n.id,e.sessionSampleRate)||(0,y.m6)()-n.createdAt>tO))return n},renewObservable:i,expireObservable:o,expire:b,updateSessionState:e=>{s.setSessionState(t=>({...t,...e}),"updateState").catch(w.$y)}}}async function h(){let t={};return await s.setSessionState(r=>t=td(tl(r,e),e),"initialize"),t}function m(n){(0,e4.gr)(r);let i=tn(n);
4if(i){let n=i-(0,y.m6)();r=(0,e4.iK)(()=>{s.setSessionState(r=>ta(r)?(t.isGranted()||delete r.anonymousId,ti(r,e)):r,"expireOnTimeout").catch(w.$y)},n)}}function v(e){let t=u.find(),r=t?.id!==void 0,n=void 0!==e.id,a=r&&n&&t.id!==e.id;if(r&&(!n||a)&&(c=!0,o.notify(),u.closeActive((0,y._q)())),n&&(!r||a)){if(c)return;u.add(E(e),(0,y._q)()),i.notify()}else r&&n&&!a&&(t.isReplayForced=!!e.forcedReplay)}function b(){d();let r=ti(u.find(),e);t.isGranted()||delete r.anonymousId,v(r),s.setSessionState(r=>(t.isGranted()||delete r.anonymousId,ti(r,e)),"expire").catch(w.$y)}function E(e){let t=tr(e)??(0,y.n$)();return e.id?{id:e.id,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId,createdAt:t}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:t}}}var tI=r(57549);let tP="datadog-synthetics-",tH=`${tP}public-id`,tN=`${tP}result-id`,tM=`${tP}injects-rum`,tL=`${tP}rum-context`;function tU(){return!S.j&&!!(S.Z._DATADOG_SYNTHETICS_INJECTS_RUM||ep(tM))}function tD(){let e=function(){let e=S.Z._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=ep(tL);return t?(0,ec.Cy)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||ep(tH),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||ep(tN)}}();return"object"==typeof e&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?e:void 0}var tj=r(38971),tB=r(47581);let t$="_dd_tab_id";var tK=r(59693);function tF(){let e;let t=window;if(t.Zone&&(e=(0,tK.I)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(T.Z),n=(0,tK.I)(r,"originalInstance");e=n?.constructor}return e||(e=t.MutationObserver),e}class tG{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}}let tW=e7.TN,tz={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},tV={FETCH:tz.FETCH,XHR:tz.XHR},tJ=[[tz.DOCUMENT,e=>"navigation"===e],[tz.XHR,e=>"xmlhttprequest"===e],[tz.FETCH,e=>"fetch"===e],[tz.BEACON,e=>"beacon"===e],[tz.CSS,(e,t)=>/\.css$/i.test(t)],[tz.JS,(e,t)=>/\.js$/i.test(t)],[tz.IMAGE,(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],[tz.FONT,(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],[tz.MEDIA,(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function tq(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function tZ(e,t,r){if(e<=t&&t<=r)return{duration:(0,y.dg)((0,y._J)(t,r)),start:(0,y.dg)((0,y._J)(e,t))}}function tX(e){return e&&(!(0,e_.iU)(e)||(0,tI.W_)(tI.uh.TRACK_INTAKE_REQUESTS))}let tY=/data:(.+)?(;base64)?,/g;function tQ(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(tY);return r?`${r[0]}[...]`:e}function t0(e){let t=crypto.getRandomValues(new Uint32Array(2)),r=BigInt(t[0])+(BigInt(t[1])<<32n);return 63===e&&(r&=0x7fffffffffffffffn),r}function t1(e){return e.toString(16).padStart(16,"0")}function t2(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function t5(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>ey([e.match],t.url,!0));if(!s)return;let u=(0,e9.HR)(a.id,(0,e9.HQ)(e.sessionSampleRate,e.traceSampleRate)),c=(0,e6.xT)()?e6.Ad()?.getIsTraceSampled()??u:u;(c||e.traceContextInjection===ew.ALL)&&(t.traceSampled=c,t.traceId=t0(64),t.spanId=t0(63),o(function(e,t,r,n,i,o,a,s){let u={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${t1(e)}-${t1(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${t1(e)}-${t1(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":t1(e),"X-B3-SpanId":t1(t),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":n},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=a.getContext().id;"string"==typeof r&&(e["account.id"]=r);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(u.baggage=i)}return u}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}let t3=32*A.Hi;function t6(e,t){return t.allowedGraphQlUrls.find(t=>ey([t.match],e))}let t8=1;function t4(e){e.requestIndex||(e.requestIndex=t8++)}function t9(e){return(0,eu.hj)(e)&&e<0?void 0:e}
4function t7(e){return e.nodeType===Node.TEXT_NODE}function re(e){return e.nodeType===Node.ELEMENT_NODE}function rt(e){return re(e)&&!!e.shadowRoot}function rr(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&re(e.host)}function rn(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;rt(e)&&t(e.shadowRoot)}function ri(e){return rr(e)?e.host:e.parentNode}function ro(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&rr(t)?t.host:null}function ra(e){return new g.y$(t=>{let r;let n=e=>{let r=e.filter(e=>!(e.entryType===m.RESOURCE&&(!tX(e.name)||!(e.duration>=0))));r.length>0&&t.notify(r)},i=!0,o=new PerformanceObserver((0,w.zk)(e=>{i?r=(0,e4.iK)(()=>n(e.getEntries())):n(e.getEntries())}));return o.observe(e),i=!1,!c&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(c=(0,I.Oo)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{o.disconnect(),(0,e4.gr)(r)}})}function rs(e){return PerformanceObserver.supportedEntryTypes.includes(e)}(h=m||(m={})).EVENT="event",h.FIRST_INPUT="first-input",h.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",h.LAYOUT_SHIFT="layout-shift",h.LONG_TASK="longtask",h.LONG_ANIMATION_FRAME="long-animation-frame",h.NAVIGATION="navigation",h.PAINT="paint",h.RESOURCE="resource",h.VISIBILITY_STATE="visibility-state";let ru="data-dd-excluded-activity-mutations";function rc(e,t,r,n,i,o){let a;let s=(0,_.C)(rl)(e,t,r,n),u=!1,c=(0,e4.iK)((0,w.zk)(()=>p({hadActivity:!1})),100),l=void 0!==o?(0,e4.iK)((0,w.zk)(()=>p({hadActivity:!0,end:(0,y.n$)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,e4.gr)(c),(0,e4.gr)(a);let t=(0,y.n$)();e||(a=(0,e4.iK)((0,w.zk)(()=>p({hadActivity:!0,end:t})),100))}),f=()=>{u=!0,(0,e4.gr)(c),(0,e4.gr)(a),(0,e4.gr)(l),d.unsubscribe()};function p(e){u||(f(),i(e))}return{stop:f}}function rl(e,t,r,n){return new g.y$(i=>{let o;let a=[],s=0;return a.push(t.subscribe(e=>{e.every(rf)||u()}),r.subscribe(u),ra({type:m.RESOURCE}).subscribe(e=>{e.some(e=>!rd(n,e.name))&&u()}),e.subscribe(7,e=>{rd(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,u())}),e.subscribe(8,e=>{rd(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,u())})),()=>{a.forEach(e=>e.unsubscribe())};function u(){i.notify({isBusy:s>0})}})}function rd(e,t){return ey(e.excludedActivityUrls,t)}function rf(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&re(t)&&t.matches(`[${ru}], [${ru}] *`))}let rp="data-dd-action-name",rh="Masked Element",rm=[rp,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ry=[rE,rb],rg=[rE,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let n=t[r];if(!r_(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},rw];function rv(e,t){if(!e.isConnected)return;let r=function(e){let t=[],r=e;for(;r;){let e=r.getRootNode();if(t.push({rootNode:e,target:r}),rr(e))r=e.host;else break}return t.reverse()}(e),n=[];for(let{rootNode:e,target:i}of r){let r=function(e,t,r){let n;let i=e;for(;i&&"HTML"!==i.nodeName;){let e=rT(i,t,ry,rC,r,n);if(e)return rO(e,n);n=rO(rT(i,t,rg,rk,r,n)||function(e){let t=rA(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),n),i=i.parentElement}return n}(i,e,t);if(!r)return;n.push(r)}return n.join("::shadow ")}function r_(e){return/[0-9]/.test(e)}function rb(e){if(e.id&&!r_(e.id))return`#${CSS.escape(e.id)}`}function rw(e){return CSS.escape(e.tagName)}function rE(e,t){if(t){let e=r(t);if(e)return e}for(let e of rm){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${rS(t,e.getAttribute(t))}`}}function rS(e,t){return`[${e}="${CSS.escape(t)}"]`}function rA(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function rT(e,t,r,n,i,o){for(let a of r){let r=a(e,i);if(r&&n(e,t,r,o))return r}}function rC(e,t,r,n){return 1===t.querySelectorAll(rO(r,n)).length}function rk(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=rO(`${r}:scope`,n);i=t=>null!==t.querySelector(e)}let o=e.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function rO(e,t){return t?`${e}>${t}`:e}let rx={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:eb.ALLOW,MASK:eb.MASK,MASK_USER_INPUT:eb.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:eb.MASK_UNLESS_ALLOWLISTED},rR="data-dd-privacy",rI="hidden",rP="***",rH="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",rN={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rM(e){return`[${rR}="${e}"], .dd-privacy-${e}`}function rL(e,t,r){if(r?.has(e))return r.get(e);let n=ri(e),i=n?rL(n,t,r):t,o=rU(rD(e),i);return r&&r.set(e,o),o}function rU(e,t){switch(t){case rx.HIDDEN:case rx.IGNORE:return t}switch(e){case rx.ALLOW:case rx.MASK:case rx.MASK_USER_INPUT:case rx.MASK_UNLESS_ALLOWLISTED:case rx.HIDDEN:case rx.IGNORE:return e;default:return t}}function rD(e){if(re(e)){if("BASE"===e.tagName)return rx.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rx.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return rx.MASK}return e.matches(rM(rx.HIDDEN))?rx.HIDDEN:e.matches(rM(rx.MASK))?rx.MASK:e.matches(rM(rx.MASK_UNLESS_ALLOWLISTED))?rx.MASK_UNLESS_ALLOWLISTED:e.matches(rM(rx.MASK_USER_INPUT))?rx.MASK_USER_INPUT:e.matches(rM(rx.ALLOW))?rx.ALLOW:!function(e){if("SCRIPT"===e.nodeName)return!0;
4if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),n=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e)?void 0:rx.IGNORE}}function rj(e,t){switch(t){case rx.MASK:case rx.HIDDEN:case rx.IGNORE:return!0;case rx.MASK_UNLESS_ALLOWLISTED:if(t7(e))return!!r$(e.parentNode)||!rG(e.textContent||"");return r$(e);case rx.MASK_USER_INPUT:return t7(e)?r$(e.parentNode):r$(e);default:return!1}}function rB(e,t,r,n,i){if(n!==rx.MASK&&n!==rx.MASK_UNLESS_ALLOWLISTED||t===rR||rm.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function r$(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rN[e.tagName]}function rK(e){return e.replace(/\S/g,"x")}function rF(e,t){let r=e.parentElement?.tagName,n=e.textContent||"";return("SCRIPT"===r?n=rP:t===rx.HIDDEN?n=rP:rj(e,t)&&("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r||(n="OPTION"===r?rP:rK(n))),"HEAD"!==r||n.trim())?n:""}function rG(e){return!e?.trim()||window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1}function rW({lifeCycle:e,isChildEvent:t,onChange:r=T.Z}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,e=>{if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case et.ERROR:n.errorCount+=1,r();break;case et.ACTION:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case et.LONG_TASK:n.longTaskCount+=1,r();break;case et.RESOURCE:e._dd?.discarded||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}let rz=5*y.yR;function rV(e){let t=(0,e8.p8)({expireDelay:rz}),r=new Map;function n(e){r.delete(e.key),e.eventCounts?.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(10,i);return{start:function(i,o,a,s){let u=(0,Q.DO)(),c=t.add(u,o.relative),l=r.get(i);l&&n(l);let d=s?.isChildEvent?rW({lifeCycle:e,isChildEvent:s.isChildEvent(u)}):void 0,f={id:u,key:i,startClocks:o,data:a,historyEntry:c,eventCounts:d};return r.set(i,f),f},stop:function(e,t,i){let o=r.get(e);if(!o)return;let a=i?(0,J.$e)(o.data,i):o.data;o.historyEntry.close(t.relative);let s=(0,y._J)(o.startClocks.timeStamp,t.timeStamp),u=o.eventCounts?.eventCounts;return n(o),{...a,id:o.id,startClocks:o.startClocks,duration:s,counts:u}},discard:function(e){let t=r.get(e);if(!t)return;let i=t.eventCounts?.eventCounts;return n(t),t.historyEntry.remove(),{...t.data,id:t.id,startClocks:t.startClocks,counts:i}},getCounts:function(e){return r.get(e)?.eventCounts?.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let rJ=["HTML","BODY"],rq=2*A.Hi,rZ=rm.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),rX=y.WT;function rY(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=ro(r)}return null}(e,`[${t}]`);if(r)return r5(r2(r.getAttribute(t).trim()))}let rQ=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return r6(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>
4{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return r6(e,t,r)},(e,t,r)=>r3(e,"aria-label",t,r),(e,t,r)=>{let n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(t=>(function(e,t){let r=e.getRootNode();if(r instanceof ShadowRoot){let e=r.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>r8(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>r3(e,"alt",t,r),(e,t,r)=>r3(e,"name",t,r),(e,t,r)=>r3(e,"title",t,r),(e,t,r)=>r3(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return r6(e.options[0],t,r)}],r0=[(e,t,r)=>r6(e,t,r)];function r1(e,t,r,n){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,r,n);if(t){let{name:e,nameSource:r}=t,n=e?.trim();if(n)return{name:r5(r2(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=ro(i),o+=1}}function r2(e){return e.replace(/\s+/g," ")}function r5(e){return e.length>100?`${(0,Q._z)(e,100)} [...]`:e}function r3(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){let i=rL(e,o,n);if(rB(e.tagName,t,a,i,r)){var s;a=rG(s=a)?s:rh||rK(s)}}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function r6(e,t,r){return{name:r8(e,t,r)||"",nameSource:"text_content"}}function r8(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t,a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=rL(e,o,r);if(n&&t&&rj(e,t))return NodeFilter.FILTER_REJECT;if(re(e)){if(e.hasAttribute(rp)||i&&e.hasAttribute(i))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;a.nextNode();){let e=a.currentNode;if(re(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(s+=" ");continue}s+=e.textContent||""}return s.replace(/\s+/g," ").trim()}function r4(){let e=window.getSelection();return!e||e.isCollapsed}function r9(e){return e.target instanceof Element&&!1!==e.isPrimary}function r7(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let ne=10*y.WT,nt=new Map;function nr(e,t){nt.set(e,t),nt.forEach((e,t)=>{(0,y._J)(t,(0,y._q)())>ne&&nt.delete(t)})}function nn(e){return t=>t.action?.id?.includes(e)??!1}function ni(e){if(e.composed&&rt(e.target)&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function no(e){let t="events"in e,r=t9((0,y.dg)(e.duration));return{rawRumEvent:{type:et.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==r&&{loading_time:r},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}let na={intervention:"intervention",cspViolation:"csp_violation"};function ns(e){return{startClocks:(0,y.$I)(),source:B.z.REPORT,handling:"unhandled",...e}}function nu(e,t,r,n,i){return r?(0,G.P3)({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:i??void 0}]}):void 0}var nc=r(21337);let nl=y.WT;
4function nd(){let e=[];function t(t){let n;if(!t||t.didTimeout){let e=performance.now();n=()=>30-(performance.now()-e)}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){(0,nc.Kk)(t,{timeout:nl})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}var nf=r(10193);let np=2*y.yR;function nh(e){let t=function(e){let t=e.querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]");return nm(t?.content,r?.content)}(e)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=ny(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],n=ny(r);if(n)return n;if(!t7(r))break}}(e);if(t)return nm((0,Q.MY)(t,"trace-id"),(0,Q.MY)(t,"trace-time"))}(e);if(!(!t||t.traceTime<=(0,y.U)()-np))return t.traceId}function nm(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function ny(e){if(e&&e.nodeType===Node.COMMENT_NODE){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function ng(){if(rs(m.NAVIGATION)){let e=performance.getEntriesByType(m.NAVIGATION)[0];if(e&&!(e.loadEventEnd>0&&e.domComplete<=0))return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,eu.hj)(t[r])){let n=t[r];e[r]=0===n?0:(0,y.zj)(n)}return e}(),t={entryType:m.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function nv(e){return e.responseStart>=0&&e.responseStart<=(0,y._q)()?e.responseStart:void 0}function n_(e,t,r){var n;let i=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,r):function(e,t){if("navigation"!==e.initiatorType)return;let r=(0,_.C)(nh)(document);if(r)return{_dd:{trace_id:r,span_id:t0(63).toString(),rule_psr:t.rulePsr}}}(e,r);if(!r.trackResources&&!i)return;let o=(0,y.DY)(e.startTime),a=function(e){let{duration:t,startTime:r,responseEnd:n}=e;return"navigation"===e.initiatorType||0===t&&r<n?(0,y._J)(r,n):t}(e),s=function(e,t){let r=t.trackResourceHeaders;if(0===r.length||!e)return;let n=r.filter(t=>void 0===t.url||ey([t.url],e.url,!0));if(0===n.length)return;let i=n.filter(e=>void 0===e.location||"any"===e.location||"response"===e.location),o=n.filter(e=>void 0===e.location||"any"===e.location||"request"===e.location),a=i.length>0?function(e,t){if(e.type===tV.FETCH&&e.response)return nw(e.response.headers,t);if(e.type===tV.XHR&&e.xhr){let r=e.xhr.getAllResponseHeaders();if(r)try{return nw(new Headers(function(e){let t=[];for(let r of e.trim().split(/\r\n/)){let e=r.indexOf(":");e>0&&t.push([r.substring(0,e).trim(),r.substring(e+1).trim()])}return t}(r)),t)}catch{}}}(e,i):void 0,s=o.length>0?function(e,t){let r;if(e.type===tV.FETCH)return e.init?.headers?r=new Headers(e.init.headers):e.input instanceof Request&&(r=e.input.headers),r?nw(r,t):void 0}(e,o):void 0;if(a||s)return{resource:{request:s?{headers:s}:void 0,response:a?{headers:a}:void 0}}}(t,r),u=(0,J.$e)({date:o.timeStamp,resource:{id:(0,Q.DO)(),duration:(0,y.dg)(a),type:function(e){let t=e.name;if(!(0,E.jv)(t))return tz.OTHER;let r=(0,E.ye)(t);for(let[t,n]of tJ)if(n(e.initiatorType,r))return t;return tz.OTHER}(e),method:t?.method,status_code:t?t.status:0===(n=e.responseStatus)?void 0:n,url:t?tQ(t.url):e.name,protocol:""===e.nextHopProtocol?void 0:e.nextHopProtocol,delivery_type:""===e.deliveryType?"other":e.deliveryType,graphql:t&&function(e,t){let r=t6(e.url,t);if(r)return function(e,t){let r=function(e,t=!1){let r;if("POST"===e.method?r=function(e){if(!e||"string"!=typeof e)return;let t=(0,ec.Cy)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0,operationType:t.operationType}}(e.requestBody):"GET"===e.method&&(r=function(e){let t=(0,E.Q2)(e).searchParams,r=t.get("variables"),n=r&&void 0!==(0,ec.Cy)(r)?r:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:n,operationType:t.get("operationType")||void 0}}(e.url)),r)return function(e,t){let r,n,i;if(e.query){let i=e.query.trim();r=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],t&&(n=(0,Q._z)(i,t3,"..."))}if(!r){let t=e.operationType;("query"===t||"mutation"===t||"subscription"===t)&&(r=t)}return e.variables&&(i=e.variables),{operationType:r,operationName:e.operationName,variables:i,payload:n}}(r,t)}(e,t.trackPayload);if(r){if(t.trackResponseErrors&&e.responseBody){let t=function(e){let t=(0,ec.Cy)(e);if(t&&"object"==typeof t&&(0,eA.Of)(t.errors))return t.errors.map(e=>({message:e.message,path:e.path,locations:e.locations,code:e.extensions?.code}))}(e.responseBody);t&&(r.error_count=t.length,r.errors=t)}return r}}(e,r)}(t,r),render_blocking_status:e.renderBlockingStatus,...function(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:n}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),...function(e){if(!function(e){let t=tq(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=!(e.redirectEnd>e.startTime)||tq(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return t&&r}(e))return;let{startTime:t,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:u,secureConnectionStart:c,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=e,h={download:tZ(t,f,p),first_byte:tZ(t,d,f)};return 0<n&&n<r&&(h.worker=tZ(t,n,r)),r<l&&(h.connect=tZ(t,u,l),u<=c&&c<=l&&(h.ssl=tZ(t,c,l))),r<s&&(h.dns=tZ(t,a,s)),t<o&&(h.redirect=tZ(t,i,o)),h}(e)},type:et.RESOURCE,_dd:{discarded:!r.trackResources}},i,function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),s);return{startClocks:o,duration:a,rawRumEvent:u,domainContext:{performanceEntry:e,isManual:!1,isAborted:!!t&&t.isAborted,handlingStack:t?.handlingStack,requestInit:t?.init,requestInput:t?.input,response:t?.response,error:t?.error,xhr:t?.xhr}}}let nb=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/;function nw(e,t){let r={},n=0,i=0,o=!1;return e.forEach((e,a)=>{if(i++,n>=100){o||(L.jf.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0);return}let s=a.toLowerCase();if(nb.test(s))return;let u=t.find(e=>ey([e.name],s));if(!u)return;let{extractor:c}=u,l=c?ek(e,c):e;void 0!==l&&(l.length>128&&(L.jf.warn(`Header "${s}" value was truncated from ${l.length} to 128 characters.`),(0,U.eJ)("Resource header value was truncated",{header_name:s,original_length:l.length,limit:128})),r[s]=(0,Q._z)(l,128),n++)}),o&&(0,U.eJ)("Maximum number of resource headers reached",{collectedHeaderCount:n,totalHeaderCount:i}),n>0?r:void 0}let nE=10*y.yR,nS=10*y.yR;function nA(e,t=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:T.Z};if(rs(m.VISIBILITY_STATE)){let t=performance.getEntriesByType(m.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:T.Z}}let r=1/0,{stop:n}=(0,I.yw)(t,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(r=e.timeStamp,n())},{capture:!0});return{get timeStamp(){return r},stop:n}}let nT=(e,t)=>e*t,nC=(e,t)=>{let r=Math.max(e.left,t.left),n=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom);return r>=i||n>=o?0:nT(i-r,o-n)},nk=e=>nT(e.previousRect.width,e.previousRect.height)+nT(e.currentRect.width,e.currentRect.height)-nC(e.previousRect,e.currentRect);function nO({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let nx=5*y.WT,nR=y.WT,nI=0,nP=1/0,nH=0,nN=()=>l?nI:window.performance.interactionCount||0,nM=1*y.yR;function nL(e){return Math.min(e,nM)}
4function nU(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function nD(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function nj(){return d||(d=new g.y$(e=>{let{throttled:t}=(0,T.P)(()=>{e.notify(nB())},200);return(0,I.Oo)(window,"resize",t,{capture:!0,passive:!0}).stop})),d}function nB(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let n$=y.WT,nK=5*y.yR,nF=5*y.yR;function nG(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}var nW=r(53789),nz=r(30481),nV=r(5419);function nJ(e,t){let r=new Set;for(let n of e)n.startsWith(`${t}.`)&&r.add(n.slice(t.length+1));return r}let nq=e7.TN;function nZ(){return(0,_.C)(S.Z.location)}function nX(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let nY=e7.TN,nQ=10*y.WT;function n0(){0!==f.batchCount&&((0,U.qZ)("Customer data measures",f),n5())}function n1(){return{min:1/0,max:0,sum:0}}function n2(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function n5(){f={batchCount:0,batchBytesCount:n1(),batchMessagesCount:n1()}}let n3=e7.TN;function n6(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function n8(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s={id:(e.type===ea.DURATION?e.id:void 0)??(0,Q.DO)(),type:r,name:n,description:i,...r===ea.DURATION?{duration:(0,y.dg)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:s,type:et.VITAL,context:o},startClocks:t,duration:r===ea.DURATION?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}let n4=y.WT;function n9(e,t){let r=ed(e),n=(0,e4.Zi)(()=>{let n=ed(e);n!==r&&(r=n,t(n))},n4);return()=>{(0,e4.cv)(n)}}let n7="datadog-ci-visibility-test-execution-id";function ie(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,e4.iK)(()=>{n=0},y.yR),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:B.z.AGENT,startClocks:(0,y.$I)()})}finally{i=!1}}return!0}}}var it=r(19276);function ir(e){return"object"===(0,eh.o)(e)}let ii={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},io={[et.VIEW]:{...ii,"view.performance.lcp.resource_url":"string"},[et.ERROR]:{...ii,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string"},[et.RESOURCE]:{...ii,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object"},[et.ACTION]:{...ii,"action.target.name":"string"},[et.LONG_TASK]:{...ii,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string"},[et.VITAL]:ii};function ia(e,t){return(0,e6.xT)()?(0,e6.ke)("records")?1:0:(0,e9.HR)(e.id,(0,e9.HQ)(t.sessionSampleRate,t.sessionReplaySampleRate))?1:e.isReplayForced?2:0}var is=r(68826);let iu=[et.ACTION,et.ERROR,et.LONG_TASK,et.RESOURCE,et.VITAL];function ic(e,t,r,n,i,o,a,s,c,d){let h=[],v=new tG;v.subscribe(13,e=>(0,tj.j)("rum",e)),t.expireObservable.subscribe(()=>v.notify(9)),t.renewObservable.subscribe(()=>v.notify(10));let A=e=>{v.notify(14,{error:e}),(0,U.eJ)("Error reported to customer",{"error.message":e.message})},C=(0,tB.FP)();if((0,e6.xT)()){!function(e){let t=(0,e6.Ad)();e.subscribe(13,e=>{t.send("rum",e)})}(v);let e=C.subscribe(e=>{v.notify(11,e)});h.push(()=>e.unsubscribe())}else{var k;let r=function(e,t,r,n,i,o){let a;let s=[(0,eC.Ez)(e,"rum")],u=(0,eC.ji)(e,"rum");u&&s.push(u);let c=(0,nW.n)({encoder:o(2),request:(0,nz.UF)(s,r),flushController:(0,nV.rK)({pageMayExitObservable:n,sessionExpireObservable:i})}),l=0;return t.subscribe(13,e=>{if(e.type!==et.VIEW){c.add(e);return}if(!(0,tI.W_)(tI.uh.PARTIAL_VIEW_UPDATES)){c.upsert(e,e.view.id);return}let t=e.view.id;if(!e.view.is_active){a=void 0,l=0,c.upsert(e,t);return}if(t!==a?.view.id){a=e,l=0,c.upsert(e,t);return}if((l+=1)>=100){l=0,a=e,c.upsert(e,t);return}let r=function(e,t){let r=function e(t,r,n){let i={},o=n?.replaceKeys??new Set,a=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(let n of Object.keys(t)){if(s.has(n))continue;let u=t[n],c=r[n];if(!o.has(n)&&(0,eh.s)(u)&&(0,eh.s)(c)){let t=e(u,c,{replaceKeys:nJ(o,n),appendKeys:nJ(a,n),ignoreKeys:nJ(s,n)});t&&(i[n]=t)}else a.has(n)&&Array.isArray(u)&&Array.isArray(c)?u.length>c.length&&(i[n]=u.slice(c.length)):!function e(t,r){if(t===r)return!0;
4if(null===t||"object"!=typeof t||null===r||"object"!=typeof r)return t===r;if(Array.isArray(t)&&Array.isArray(r))return t.length===r.length&&t.every((t,n)=>e(t,r[n]));if(Array.isArray(t)||Array.isArray(r))return!1;let n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(n=>i.includes(n)&&e(t[n],r[n]))}(u,c)&&(i[n]=u)}for(let e of Object.keys(r))e in t||(i[e]=null);return Object.keys(i).length>0?i:void 0}(e,t,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(r)return(0,J.$e)(r,{type:et.VIEW_UPDATE,date:e.date,application:e.application,session:e.session,view:{id:e.view.id,url:e.view.url},_dd:{document_version:e._dd.document_version,format_version:e._dd.format_version}})}(e,a);a=e,r&&((0,tj.j)("rum",r),c.add(r))}),c}(e,v,A,C,t.expireObservable,o),n=r.flushController.preparePageExitFlushObservable.subscribe(e=>{v.notify(11,{reason:e})});h.push(()=>n.unsubscribe()),h.push(()=>r.stop()),k=r.flushController.flushObservable,s.metricsEnabled&&(n5(),p=!1,v.subscribe(13,()=>{p=!0}),k.subscribe(({bytesCount:e,messagesCount:t})=>{p&&(p=!1,f.batchCount+=1,n2(f.batchBytesCount,e),n2(f.batchMessagesCount,t))}),(0,e4.Zi)(n0,nQ))}let{stop:O}=function(e,t){if(!t.metricsEnabled)return{stop:T.Z};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{if(e.largestContentfulPaint&&e.navigationTimings){var t,n;(0,U.qZ)("Initial view metrics",{metrics:(t=e.largestContentfulPaint,n=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r()}});return{stop:r}}(v,s);h.push(O);let{stop:R,...P}=function(e,t,r,n,i,o,a,s,c){var d,f;let p;let h=[],v=function(){let e=tF();return new g.y$(t=>{let r=new e((0,w.zk)(e=>t.notify(e)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}(),A=(p=(0,ec.mv)(nZ()),new g.y$(e=>{let{stop:t}=function(e){let{stop:t}=(0,b.Su)(nX("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:r}=(0,b.Su)(nX("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:n}=(0,I.Oo)(window,"popstate",e);return{stop:()=>{t(),r(),n()}}}(n),{stop:r}=(0,I.Oo)(window,"hashchange",n);function n(){if(p.href===nZ().href)return;let t=(0,ec.mv)(nZ());e.notify({newLocation:t,oldLocation:p}),p=t}return()=>{t(),r()}})),{observable:C,stop:k}=function(){let e=new g.y$,{stop:t}=(0,b.Su)(window,"open",()=>e.notify());return{observable:e,stop:t}}();h.push(k);let{assemble:O}=t;!function(e,t,r){e.register(({eventType:e})=>{let n=t.source;return{type:e,_dd:{format_version:2,drift:(0,y.Pv)(),configuration:{session_sample_rate:(0,eu.NM)(t.sessionSampleRate,3),session_replay_sample_rate:(0,eu.NM)(t.sessionReplaySampleRate,3),profiling_sample_rate:(0,eu.NM)(t.profilingSampleRate,3),trace_sample_rate:(0,eu.NM)(t.traceSampleRate,3)},browser_sdk_version:(0,e6.xT)()?"7.3.0":void 0,sdk_name:r},application:{id:t.applicationId},date:(0,y.n$)(),source:n}})}(O,r,s);let R=function(e,t=500){let r;let n=(0,e8.p8)({expireDelay:n3,maxEntries:4e3});rs(m.VISIBILITY_STATE)&&performance.getEntriesByType(m.VISIBILITY_STATE).forEach(e=>{o("hidden"===e.name?"hidden":"active",e.startTime)}),o(n6(),(0,y._q)());let{stop:i}=(0,I.yw)(window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{o("freeze"===e.type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":n6(),e.timeStamp)},{capture:!0});function o(e,t=(0,y._q)()){e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}function a(e,t,r){return n.findAll(t,r).some(t=>t.state===e)}return e.register(({startTime:e,duration:r=0,eventType:i})=>i===et.VIEW?{type:i,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,y.dg)((0,y._J)(t,r))}))}(n.findAll(e,r),e,t)}}:i===et.ACTION||i===et.ERROR?{type:i,view:{in_foreground:a("active",e,0)}}:e2.kb),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),n.stop()}}}(O);h.push(()=>R.stop());let P=function(e){let t=(0,e8.p8)({expireDelay:tW});return e.subscribe(1,e=>{t.add({service:e.service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{t.closeActive(e.relative)}),e.subscribe(3,e=>{let r=t.find(e.startClocks.relative);r&&(e.name&&(r.name=e.name),e.context&&(r.context=e.context),r.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{t.reset()}),{findView:e=>t.find(e),stop:()=>{t.stop()}}}(e);h.push(()=>P.stop());let N=function(e,t,r){let n;let i=(0,e8.p8)({expireDelay:nq});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,_.C)(S.Z.location).href,o=void 0!==t?(0,E.Q2)(t,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),e.relative),n=o}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=i.find();if(t){let r=(0,y._q)();i.closeActive(r),i.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:e2.C_}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,O,A);h.push(()=>N.stop());let M=function(e,t,r){let n=(0,e8.p8)({expireDelay:nY});return e.subscribe(1,({startClocks:e})=>{n.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{n.closeActive(e.relative)}),t.register(({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([et.VIEW,et.ERROR]).includes(t))return e2.kb;let i=n.find(e);return!i||(0,ec.Qr)(i)?e2.kb:{type:t,feature_flags:i}}),{addFeatureFlagEvaluation:(e,t)=>{let r=n.find();r&&(r[e]=t)}}}(e,O,r);!function(e,t,r,n,i){e.register(({eventType:e,startTime:o})=>{let a,s,u;
4let c=r.findTrackedSession(o),l=i.findView(o);return c&&l?(e===et.VIEW?(a=!!n.getReplayStats(l.id)||void 0,s=1===ia(c,t),u=!!l.sessionIsActive&&void 0):a=!!n.isRecording()||void 0,{type:e,session:{id:c.id,type:"user",has_replay:a,sampled_for_replay:s,is_active:u}}):e2.C_})}(O,r,n,i,P),function(e){e.register(({eventType:e})=>({type:e,connectivity:(0,is.T)()}))}(O),function(e){let t=(u||(u=function(){try{let e=sessionStorage.getItem(t$);if(e)return e;let t=(0,Q.DO)();return sessionStorage.setItem(t$,t),t}catch{return}}()??(0,Q.DO)()),u);e.register(()=>({tab:{id:t}}))}(O);let $=function(e,t,r,n){let i=e1();return t.storeContextsAcrossPages&&eX(i,"rum",2),e.register(()=>{let e=i.getContext();return n?{context:e}:e}),i}(O,r,0,!0),F=function(e,t,r,n){let i=e5();return t.storeContextsAcrossPages&&eX(i,"rum",1),e.register(({eventType:e,startTime:n})=>{let o=i.getContext(),a=r.findTrackedSession(n);return(a?.anonymousId&&!o.anonymous_id&&t.trackAnonymousUser&&(o.anonymous_id=a.anonymousId),(0,ec.Qr)(o))?e2.kb:{type:e,usr:o}}),i}(O,r,n,0),G=function(e,t,r){let n=e3();return t.storeContextsAcrossPages&&eX(n,"rum",4),e.register(()=>{let e=n.getContext();return(0,ec.Qr)(e)||!e.id?e2.kb:{account:e}}),n}(O,r,0),W=function(e,t,r,n,i){let o;let{unsubscribe:a}=e.subscribe(0,t=>{e.notify(12,no(t))}),s=T.Z;i.trackUserInteractions&&(o=function(e,t,r,n){let i;let o=rV(e),a=new g.y$;e.subscribe(5,c),e.subscribe(11,c);let{stop:s}=function({onPointerDown:e,onPointerUp:t}){let r,n;let i={selection:!1,input:!1,scroll:!1},o=[(0,I.Oo)(window,"pointerdown",t=>{r9(t)&&(r=r4(),i={selection:!1,input:!1,scroll:!1},n=e(t))},{capture:!0}),(0,I.Oo)(window,"selectionchange",()=>{r&&r4()||(i.selection=!0)},{capture:!0}),(0,I.Oo)(window,"scroll",()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,I.Oo)(window,"pointerup",e=>{if(r9(e)&&n){let r=i;t(n,e,()=>r),n=void 0}},{capture:!0}),(0,I.Oo)(window,"input",()=>{i.input=!0},{capture:!0})];return{stop:()=>{o.forEach(e=>e.stop())}}}({onPointerDown:i=>(function(e,t,r,n,i){let o;if((o=e.enablePrivacyForActionName?rL(ni(n),e.defaultPrivacyLevel):rx.ALLOW)===rx.HIDDEN)return;let a=function(e,t,r){let n=ni(e),i=n.getBoundingClientRect(),o=rv(n,r.actionNameAttribute),a=function(e,t){let r=e.filter(e=>e instanceof Element&&!rJ.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(rZ):rZ,i="";for(let e of r)if((i+=function(e,t){let r=rw(e),n=rb(e),i=Array.from(e.classList).filter(e=>!r_(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),o=function(e,t){let r=[];for(let n of Array.from(e.attributes))t.includes(n.name)&&r.push(rS(n.name,n.value));return r.sort().join("")}(e,t),a=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let r=t.filter(t=>t.tagName===e.tagName),n=t.indexOf(e),i=rA(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=rq)return(0,Q._z)(i,rq);return i}(e.composedPath(),r.actionNameAttribute);o&&nr(e.timeStamp,o);let{name:s,nameSource:u}=function(e,t,r=rx.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=rY(e,rp)||i&&rY(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===rx.MASK?{name:rh,nameSource:"mask_placeholder"}:r1(e,rQ,t,n)||r1(e,r0,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:ei.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:u}}(n,o,e),s=!1;return rc(t,r,i,e,e=>{s=e.hadActivity},100),{clickActionBase:a,hadActivityOnPointerDown:()=>s}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},c,l)=>{!function(e,t,r,n,i,o,a,s,u,c,l){let d=function e(t,r,n,i,o){let a;let s=(0,Q.DO)(),u=(0,y.DY)(o.timeStamp),c=r.start(s,u,i,{isChildEvent:nn});t.notify(15,c);let l=0,d=[],f=new g.y$;function p(e){0===l&&(l=1,a=e?r.stop(s,(0,y.lO)(e)):r.discard(s),f.notify())}return{event:o,stop:p,stopObservable:f,get hasError(){let e=a?.counts??r.getCounts(s);return!!e&&e.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:e=>{d.push(e)},get startClocks(){return u},isStopped:()=>1===l||2===l,clone:()=>e(t,r,n,i,o),validate:e=>{if(p(),1!==l||!a)return;let r={frustrationTypes:d,events:e??[o],event:o,...a,counts:a.counts};t.notify(0,r),l=2},discard:()=>{p(),l=2}}}(t,i,c,s,u);a(d);let f=s?.target?.selector;f&&nr(u.timeStamp,f);let{stop:p}=rc(t,r,n,e,e=>{e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():e.hadActivity?d.stop(e.end):l()?d.stop(d.startClocks.timeStamp):d.stop()},ne),h=t.subscribe(5,({endClocks:e})=>{d.stop(e.timeStamp)}),m=t.subscribe(11,()=>{d.stop((0,y.n$)())}),v=o.subscribe(()=>{d.stop()});d.stopObservable.subscribe(()=>{m.unsubscribe(),h.unsubscribe(),p(),v.unsubscribe()})}(n,e,t,r,o,a,u,i,c,l,s)}});return{stop:()=>{c(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function u(e){if(!i?.tryAppend(e)){let t=e.clone();i=function(e,t){let r;let n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,e4.gr)(r),r=(0,e4.iK)(s,rX)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,e4.gr)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=Math.sqrt(Math.pow(t.clientX-r.clientX,2)+Math.pow(t.clientY-r.clientY,2))&&t.timeStamp-r.timeStamp<=rX)?(o(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=y.WT)return!0;return!1}(e))return t.addFrustration(eo.RAGE_CLICK),e.some(r7)&&t.addFrustration(eo.DEAD_CLICK),t.hasError&&t.addFrustration(eo.ERROR_CLICK),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);
4return e.forEach(e=>{e.hasError&&e.addFrustration(eo.ERROR_CLICK),r7(e)&&!r&&e.addFrustration(eo.DEAD_CLICK)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,y.n$)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i=void 0})}}function c(){i&&i.stop()}}(e,r,n,i));let u=function(e,t){let r=rV(e);return{addAction:function(e){t({id:(0,Q.DO)(),frustrationTypes:[],...e})},startAction:function(t,n={},i=(0,y.$I)()){let o=n.actionKey??t,a=r.start(o,i,{name:t,...n},{isChildEvent:nn});e.notify(15,a)},stopAction:function(e,n={},i=(0,y.$I)()){let o=n.actionKey??e,a=r.stop(o,i,n);if(!a)return;let s=[];a.counts&&a.counts.errorCount>0&&s.push(eo.ERROR_CLICK),t({...a,type:a.type||ei.CUSTOM,frustrationTypes:s})},findActionId:r.findId,stop:r.stopAll}}(e,t=>{e.notify(12,no(t))}),c={findActionId:e=>{let t=u.findActionId(e),r=o?.findActionId(e)??[];return t.concat(r)}};return t.assemble.register(({startTime:e,eventType:t})=>{if(t!==et.ERROR&&t!==et.RESOURCE&&t!==et.LONG_TASK)return e2.kb;let r=t===et.LONG_TASK?(0,y.WK)(e,1):e,n=c.findActionId(r);return n.length?{type:t,action:{id:n}}:e2.kb}),t.assembleTelemetry.register(({startTime:e})=>({action:{id:c.findActionId(e)}})),{addAction:u.addAction,startAction:u.startAction,stopAction:u.stopAction,actionContexts:c,stop:()=>{a(),s(),u.stop(),o?.stop()}}}(e,t,v,C,r);h.push(W.stop);let z=function(e){let t;let r=requestAnimationFrame((0,w.zk)(()=>{t=nB()})),n=nj().subscribe(e=>{t=e}).unsubscribe;return e.register(({eventType:e})=>({type:e,display:t?{viewport:t}:void 0})),{stop:()=>{n(),r&&cancelAnimationFrame(r)}}}(O);h.push(z.stop);let V=function(e,t=function(e){let t=ty()?(e,t)=>(0,I.Oo)(S.Z.cookieStore,"change",r=>{let n=r.changed.find(t=>t.name===e)||r.deleted.find(t=>t.name===e);n&&t(n.value)}).stop:n9;return new g.y$(r=>t(e,e=>r.notify(e)))}(n7)){let r=ep(n7)||function(){let e=window.Cypress;if(e)try{return e.env("traceId")}catch{L.jf.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}(),n=t.subscribe(e=>{r=e});return e.register(({eventType:e})=>"string"!=typeof r?e2.kb:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{n.unsubscribe()}}}(O);h.push(V.stop),function(e){e.register(({eventType:e})=>tD()?{type:e,session:{type:"synthetics"},synthetics:{...tD(),injected:tU()}}:e2.kb)}(O),function(e,t,r,n,i){let o={[et.ERROR]:ie(et.ERROR,n,i),[et.ACTION]:ie(et.ACTION,n,i),[et.VITAL]:ie(et.VITAL,n,i)};t.subscribe(12,({startClocks:n,duration:i,rawRumEvent:a,domainContext:s})=>{let u=r.trigger({eventType:a.type,rawRumEvent:a,domainContext:s,startTime:n.relative,duration:i});if(u===e2.C_)return;let c=(0,J.$e)(u,a,{ddtags:(0,it.MS)(e).join(",")});(function(e,t,r,n){if(t){let n=function(e,t,r){let n=(0,J.I8)(e),i=r(n);return(0,te.qP)(t).forEach(([t,r])=>(function e(t,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,n)=>e(t,r[n],a,i));return}if(ir(t)&&ir(r)){if(a.length>0)return e(t[o],r[o],a,i);(function(e,t,r,n){if(e[t]===r)return;let i=(0,eh.o)(r);i===n?e[t]=(0,K.N)(r):"object"===n&&("undefined"===i||"null"===i)&&(e[t]={})})(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),i}(e,io[e.type],e=>t(e,r));if(!1===n&&e.type!==et.VIEW)return!1;!1===n&&L.jf.warn("Can't dismiss view events using beforeSend!")}return!n[e.type]?.isLimitReached()})(c,e.beforeSend,s,o)&&((0,ec.Qr)(c.context)&&delete c.context,t.notify(13,c))})}(r,e,O,c);let{addTiming:q,setLoadingTime:Z,startView:X,setViewName:Y,setViewContext:ee,setViewContextProperty:es,getViewContext:el,stop:ed}=(e.subscribe(4,t=>e.notify(12,function(e,t,r){let n=r.getReplayStats(e.id),i=e.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,o={_dd:{document_version:e.documentVersion,replay_stats:n,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:et.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:e.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,y.dg)(e.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:e.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,y.dg)(e.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,y.dg)(e.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,y.dg)(e.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,y.dg)(e.initialViewMetrics.navigationTimings?.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:(0,y.dg)(e.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,y.dg)(e.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,y.dg)(e.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:e.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:(0,y.dg)(e.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:e.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,y.dg)(e.initialViewMetrics.navigationTimings?.loadEvent),loading_time:t9((0,y.dg)(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,largestContentfulPaint:n}){return{cls:e&&{score:e.value,timestamp:(0,y.dg)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,y.dg)(r)},inp:t&&{duration:(0,y.dg)(t.value),timestamp:(0,y.dg)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,y.dg)(t.subParts.inputDelay),processing_duration:(0,y.dg)(t.subParts.processingDuration),presentation_delay:(0,y.dg)(t.subParts.presentationDelay)}:void 0},lcp:n&&{timestamp:(0,y.dg)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl,sub_parts:n.subParts?{load_delay:(0,y.dg)(n.subParts.loadDelay),load_time:(0,y.dg)(n.subParts.loadTime),render_delay:(0,y.dg)(n.subParts.renderDelay)}:void 0}}}(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:(0,y.dg)(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,y.dg)(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}};return(0,ec.Qr)(e.customTimings)||(o.view.custom_timings=(0,ec.Q8)(e.customTimings,y.dg)),{rawRumEvent:o,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}(t,r,i))),t.assemble.register(({startTime:e,eventType:t})=>{let r=P.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:e2.C_}),t.assembleTelemetry.register(({startTime:e})=>({view:{id:P.findView(e)?.id}})),function(e,t,r,n,i,o,a){let s,u;
4let c=new Set,d=f(en.INITIAL_LOAD,(0,y.cQ)(),a);function f(i,o,a){let s=function(e,t,r,n,i,o=(0,y.$I)(),a){let s;let u=(0,Q.DO)(),c=new g.y$,d={},f=0,p=(0,ec.mv)((0,_.C)(window.location)),h=e0(),v=!0,b=a?.name,E=a?.service||n.service,S=a?.version||n.version,A=a?.context,C=a?.handlingStack;A&&h.setContext(A);let k={id:u,name:b,startClocks:o,service:E,version:S,context:A,url:a?.url};e.notify(1,k),e.notify(2,k);let{throttled:O,cancel:x}=(0,T.P)(J,3e3,{leading:!1}),{setLoadEvent:R,setViewEnd:P,stop:H,stopINPTracking:N,getCommonViewMetrics:M,setLoadingTime:U}=function(e,t,r,n,i,o,a){let s={},u=!1,c=!1,{stop:d,setLoadEvent:f}=function(e,t,r,n,i,o,a){let s=i===en.INITIAL_LOAD,u=!0,c=[],l=nA(o);function d(){if(!u&&!s&&c.length>0){let e=Math.max(...c);e<l.timeStamp-o.relative&&a(e)}}let{stop:f}=rc(e,t,r,n,e=>{u&&(u=!1,e.hadActivity&&c.push((0,y._J)(o.timeStamp,e.end)),d())});return{stop:()=>{f(),l.stop()},setLoadEvent:e=>{s&&(s=!1,c.push(e),d())}}}(e,t,r,n,o,a,e=>{u||(s.loadingTime=e,i())}),{stop:p}=function(e,t,r=function(e=n$){return new g.y$(t=>{let r=(0,T.P)(function(){t.notify(function(){let e=nD(),{height:t}=nB();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},e,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,w.zk)(r.throttled));n&&i.observe(n);let o=(0,I.Oo)(window,"scroll",r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),o.stop()}})}()){let n=0,i=0,o=0,a=r.subscribe(({scrollDepth:r,scrollTop:a,scrollHeight:s})=>{let u=!1;if(r>n&&(n=r,u=!0),s>i){i=s;let t=(0,y._q)();o=(0,y._J)(e.relative,t),u=!0}u&&t({maxDepth:Math.min(n,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(a,e=>{s.scroll=e}),{stop:h}=function(e,t,r){let n,i,o,a,s;if(!(rs(m.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:T.Z};let u=0;r({value:0});let c=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=nR||e.startTime-i>=nx?(i=o=e.startTime,s=a=e.value,t=!0):(a+=e.value,o=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:a,isMaxValue:t}}}),l=ra({type:m.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{for(let o of i){if(o.hadRecentInput||o.startTime<t)continue;let{cumulatedValue:i,isMaxValue:a}=c.update(o);if(a){let e=function(e){let t;for(let r of e)if(r.node&&re(r.node)){let e=nk(r);(!t||nk(t)<e)&&(t=r)}return t}(o.sources);n={target:e?.node?new WeakRef(e.node):void 0,time:(0,y._J)(t,o.startTime),previousRect:e?.previousRect,currentRect:e?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>u){u=i;let t=n?.target?.deref();r({value:(0,eu.NM)(u,4),targetSelector:t&&rv(t,e.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?nO(n.previousRect):void 0,currentRect:n?.currentRect?nO(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:v,getInteractionToNextPaint:_,setViewEnd:b}=function(e,t,r){let n;if(!(rs(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:T.Z,stop:T.Z};let i=1/0,{getViewInteractionCount:o,stopViewInteractionCount:a}=function(e){"interactionCount"in performance||l||(l=new window.PerformanceObserver((0,w.zk)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(nP=Math.min(nP,e.interactionId),nI=((nH=Math.max(nH,e.interactionId))-nP)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let t=e===en.INITIAL_LOAD?0:nN(),r={stopped:!1};return{getViewInteractionCount:()=>r.stopped?r.interactionCount:nN()-t,stopViewInteractionCount:()=>{r={stopped:!0,interactionCount:nN()-t}}}}(r),s=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let n=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked:e=>t.some(t=>t.interactionId===e)}}(o),u=function(e){let t=new Map;function r(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let n=e.startTime+e.duration,i=t.get(e.interactionId);if(i){r(i,e);return}for(let[,i]of t.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(e,r){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let n=t.get(e.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,y._J)(n.startTime,n.processingStart),processingDuration:(0,y._J)(n.processingStart,o),presentationDelay:(0,y._J)(o,i)}},stop(){t.clear()}}}(s),c=ra({type:m.FIRST_INPUT,buffered:!0}).subscribe(f),d=ra({type:m.EVENT,durationThreshold:40,buffered:!0}).subscribe(f);function f(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=i&&(s.process(e),u.process(e));u.pruneUntracked();let o=s.estimateP98Interaction();o&&function(r){let i=(0,y._J)(t,r.startTime);if(r.duration!==n?.duration||i!==n.startTime){let t=function(e){let t=nt.get(e);return nt.delete(e),t}(r.startTime);!t&&r.target&&re(r.target)&&(t=rv(r.target,e.actionNameAttribute)),n={duration:r.duration,startTime:i,targetSelector:t}}n.subParts=u.computeSubParts(r,nL(n.duration))}(o)}return{getInteractionToNextPaint:()=>n?{value:nL(n.duration),targetSelector:n.targetSelector,time:n.startTime,subParts:n.subParts}:o()?{value:0}
4:void 0,setViewEnd:e=>{i=e,a()},stop:()=>{d.unsubscribe(),c.unsubscribe(),u.stop()}}}(n,a.relative,o);return{stop:()=>{d(),h(),p()},stopINPTracking:v,setLoadEvent:f,setViewEnd:e=>{c=!0,b(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=_(),s),setLoadingTime:e=>{if(c)return;let t=(0,y._J)(a.timeStamp,e??(0,y.n$)());u||d(),u=!0,s.loadingTime=t,i()}}}(e,t,r,n,V,i,o),{stop:D,initialViewMetrics:j}=i===en.INITIAL_LOAD?function(e,t,r,n){var i,o;let a={},{stop:s}=(i=e=>{r(e.loadEvent),a.navigationTimings=e,n()},function(e){let t;let{stop:r}=(0,nf.T)("complete",()=>{t=(0,e4.iK)(()=>e())});return{stop:()=>{r(),(0,e4.gr)(t)}}}(()=>{let e=(0,_.C)(ng)();e.loadEventEnd<=0||i({domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:nv(e)})})),u=nA(t),{stop:c}=(o=e=>{a.firstContentfulPaint=e,n()},{stop:ra({type:m.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<u.timeStamp&&e.startTime<nE);t&&o(t.startTime)}).unsubscribe}),{stop:l}=function(e,t,r,n){let i=1/0,{stop:o}=(0,I.yw)(r,["pointerdown","keydown"],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=ra({type:m.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let o=(0,te.dF)(r,e=>e.entryType===m.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<nS&&e.size>a);if(o){let t;o.element&&(t=rv(o.element,e.actionNameAttribute));let r=""===o.url?void 0:o.url,i=o.startTime,s=function(e,t){let r=nv(ng());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(rs(m.RESOURCE))return performance.getEntriesByType(m.RESOURCE)}();if(r)return(0,te.dF)(r,r=>r.name===e&&r.startTime<=t)}(e,t):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(t,Math.max(i,n?.responseEnd||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:s}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,u,window,e=>{a.largestContentfulPaint=e,n()});return{stop:function(){s(),c(),l(),u.stop()},initialViewMetrics:a}}(n,o,R,V):{stop:T.Z,initialViewMetrics:{}};if(i===en.BF_CACHE){var B,$;B=o.relative,$=e=>{j.firstContentfulPaint=e,j.largestContentfulPaint={value:e},V()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{$((0,y._J)(B,(0,y._q)()))})})}let{stop:K,eventCounts:F}=function(e,t,r){let{stop:n,eventCounts:i}=rW({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,u,V),G=(0,e4.Zi)(J,nK),W=e.subscribe(11,e=>{e.reason===tB.k$.UNLOADING&&J()});function z(){e.notify(3,{id:u,name:b,context:h.getContext(),startClocks:o,sessionIsActive:v})}function V(){z(),O()}function J(){x(),z(),f+=1;let t=void 0===s?(0,y.n$)():s.timeStamp;e.notify(4,{customTimings:d,documentVersion:f,id:u,name:b,service:E,version:S,context:h.getContext(),loadingType:i,location:p,handlingStack:C,startClocks:o,commonViewMetrics:M(),initialViewMetrics:j,duration:(0,y._J)(o.timeStamp,t),isActive:void 0===s,sessionIsActive:v,eventCounts:F})}return J(),h.changeObservable.subscribe(V),{get name(){return b},service:E,version:S,contextManager:h,stopObservable:c,end(t={}){s||(s=t.endClocks??(0,y.$I)(),v=t.sessionIsActive??!0,e.notify(5,{endClocks:s}),e.notify(6,{endClocks:s}),(0,e4.cv)(G),P(s.relative),H(),W.unsubscribe(),J(),(0,e4.iK)(()=>{this.stop()},nF))},stop(){D(),K(),N(),c.notify()},addTiming(e,t){if(s)return;let r=(0,y.MN)(t)?t:(0,y._J)(o.timeStamp,t);d[function(e){let t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&L.jf.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}(e)]=r,V()},setLoadingTime:U,setViewName(e){b=e,J()}}}(e,t,r,n,i,o,a);return c.add(s),s.stopObservable.subscribe(()=>{c.delete(s)}),s}return e.subscribe(10,()=>{d=f(en.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),e.subscribe(9,()=>{d.end({sessionIsActive:!1})}),o&&(u=i.subscribe(({oldLocation:e,newLocation:t})=>{(e.pathname!==t.pathname||!function(e){let t=e.substring(1);return""!==t&&!!document.getElementById(t)}(t.hash)&&nG(t.hash)!==nG(e.hash))&&(d.end(),d=f(en.ROUTE_CHANGE))}),s=function(e){let{stop:t}=(0,I.Oo)(window,"pageshow",t=>{t.persisted&&e(t)},{capture:!0});return t}(e=>{d.end();let t=(0,y.DY)(e.timeStamp);d=f(en.BF_CACHE,t,void 0)})),{addTiming:(e,t=(0,y.n$)())=>{d.addTiming(e,t)}
4,setLoadingTime:e=>d.setLoadingTime(e),startView:(e,t)=>{d.end({endClocks:t}),d=f(en.ROUTE_CHANGE,t,e)},setViewContext:e=>{d.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{d.contextManager.setContextProperty(e,t)},setViewName:e=>{d.setViewName(e)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),s&&s(),d.end(),c.forEach(e=>e.stop())}}}(e,v,C,r,A,!r.trackViewsManually,o));!function(e){let t=window,r=new Map;function n(){t.DD_SOURCE_CODE_CONTEXT&&((0,U.eG)({feature:"source-code-context"}),(0,te.qP)(t.DD_SOURCE_CODE_CONTEXT).forEach(([e,t])=>{let n=(0,D._)({stack:e}).stack[0];if(!n.url){(0,U.Sz)("Source code context: missing frame url",{stack:e});return}r.has(n.url)||r.set(n.url,t)}),t.DD_SOURCE_CODE_CONTEXT={})}n(),e.register(({domainContext:e,rawRumEvent:t})=>{if(n(),0===r.size)return e2.kb;let i=function(e,t){let r;if("long_task"===t.type&&"long-animation-frame"===t.long_task.entry_type)return t.long_task.scripts[0]?.source_url;"handlingStack"in e&&(r=e.handlingStack),"error"===t.type&&t.error.stack&&(r=t.error.stack);let n=(0,D._)({stack:r});return n.stack[0]?.url}(e,t),o=i&&r.get(i);return o?{type:t.type,service:o.service,version:o.version}:e2.kb})}(O),h.push(ed);let ef=function(e,t){let r=(0,_.C)(nd)(),n=function(e){let t=new Set,r=e.subscribe(8,e=>{t.add(e),t.size>1e3&&t.delete(t.values().next().value)});return{getMatchingRequest(e){let r,n=1/0;for(let i of t){let t=e.startTime-i.startClocks.relative;0<=t&&t<n&&i.url===e.name&&(n=Math.abs(t),r=i)}return r&&t.delete(r),r},stop(){r.unsubscribe()}}}(e),i=ra({type:m.RESOURCE,buffered:!0}).subscribe(r=>{for(let i of r)"xmlhttprequest"===i.initiatorType||"fetch"===i.initiatorType?(0,e4.iK)(()=>{let r=n_(i,n.getMatchingRequest(i),t);r&&e.notify(12,r)},50):a(()=>n_(i,void 0,t))}),{stop:o}=(0,nf.T)("interactive",()=>{a(()=>n_(ng(),void 0,t))});function a(t){r.push(()=>{let r=t();r&&e.notify(12,r)})}let s=rV(e),u={startResource:function(e,t={},r=(0,y.$I)()){let n=t.resourceKey??e;s.start(n,r,{url:e,...t})},stopResource:function(t,r={},n=(0,y.$I)()){let i=r.resourceKey??t,o=s.stop(i,n,{context:r.context,type:r.type});if(!o)return;let a=(0,y._J)(o.startClocks.relative,n.relative),u={date:o.startClocks.timeStamp,type:et.RESOURCE,resource:{id:o.id,type:o.type||tz.OTHER,url:tQ(o.url),duration:(0,y.dg)(a),method:o.method,status_code:r.statusCode,size:r.size},_dd:{},context:o.context};e.notify(12,{rawRumEvent:u,startClocks:o.startClocks,duration:a,domainContext:{isManual:!0}})}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{o(),r.stop(),i.unsubscribe(),s.stopAll()}}}(e,r);h.push(ef.stop);let{stop:em}=function(e,t){let r=ra({type:rs(m.LONG_ANIMATION_FRAME)?m.LONG_ANIMATION_FRAME:m.LONG_TASK,buffered:!0}).subscribe(r=>{for(let n of r){if(!t.trackLongTasks)break;let r=(0,y.DY)(n.startTime),i=function(e,t){let r=(0,Q.DO)(),n=(0,y.dg)(e.duration),i={date:t.timeStamp,type:et.LONG_TASK,_dd:{discarded:!1}};return e.entryType===m.LONG_TASK?{...i,long_task:{id:r,entry_type:er.LONG_TASK,duration:n}}:{...i,long_task:{id:r,entry_type:er.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,y.dg)(e.blockingDuration),first_ui_event_timestamp:(0,y.dg)(e.firstUIEventTimestamp),render_start:(0,y.dg)(e.renderStart),style_and_layout_start:(0,y.dg)(e.styleAndLayoutStart),start_time:(0,y.dg)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,y.dg)(e.duration),pause_duration:(0,y.dg)(e.pauseDuration),forced_style_and_layout_duration:(0,y.dg)(e.forcedStyleAndLayoutDuration),start_time:(0,y.dg)(e.startTime),execution_start:(0,y.dg)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))}}}(n,r);e.notify(12,{rawRumEvent:i,startClocks:r,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop:()=>r.unsubscribe()}}(e,r);h.push(em);let{addError:ey}=function(e,t){let r=new g.y$;return t.subscribe(({data:e,type:t})=>{0===t?r.notify(e):3===t&&e.api===L.vA.error&&r.notify(e.error)}),(function(e){let t=[];e.includes(na.cspViolation)&&t.push(new g.y$(e=>{if(!(0,I.jO)(document,"securitypolicyviolation"))return;let{stop:t}=(0,I.Oo)(document,"securitypolicyviolation",t=>{e.notify(function(e){let t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return ns({type:e.effectiveDirective,message:`${na.cspViolation}: ${t}
4`,originalError:e,csp:{disposition:e.disposition},stack:nu(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${(0,Q._z)(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(t))});return t}));let r=e.filter(e=>e!==na.cspViolation);return r.length&&t.push(new g.y$(e=>{if(!window.ReportingObserver)return;let t=(0,w.zk)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return ns({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:nu(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),n=new window.ReportingObserver(t,{types:r,buffered:!0});return n.observe(),()=>{n.disconnect()}})),(0,g.$Z)(...t)})([na.cspViolation,na.intervention]).subscribe(e=>r.notify(e)),r.subscribe(t=>e.notify(14,{error:t})),e.subscribe(14,({error:t})=>{e.notify(12,function(e){let t={date:e.startClocks.timeStamp,error:{id:(0,Q.DO)(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:et.ERROR,context:e.context},r={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:r}}(t))}),{addError:({error:t,handlingStack:r,componentStack:n,startClocks:i,context:o})=>{let a=(0,j.AP)({originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:"Provided",source:B.z.CUSTOM,handling:"handled"});a.context=(0,J.$e)(a.context,o),e.notify(14,{error:a})}}}(e,a);!function(e,t,r,n,i,o){let a={clearTracingIfNeeded:t2,traceFetch:e=>t5(t,e,r,n,i,t=>{if(e.input instanceof Request&&!e.init?.headers)e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,ec.mv)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat((0,te.qP)(t))}}),traceXhr:(e,o)=>t5(t,e,r,n,i,e=>{try{Object.keys(e).forEach(t=>{o.setRequestHeader(t,e[t])})}catch{}})};(function(e,t,r){let n=[];n.push(H().subscribe(e=>{"start"===e.state&&tX(e.url)&&(t.traceXhr(e,e.xhr),t4(e))})),n.push(r.subscribe(({data:r,type:n})=>{if(2===n&&tX(r.url))switch(r.state){case"start":t4(r),e.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"complete":t.clearTracingIfNeeded(r),e.notify(8,{...r,type:tV.XHR,isAbortedOnStart:!1})}}))})(e,a,o),function(e,t,r,n){let i=[];i.push(x({responseBodyAction:e=>t6(e.url,t)?.trackResponseErrors?1:0}).subscribe(e=>{"start"===e.state&&tX(e.url)&&(r.traceFetch(e),t4(e))})),i.push(n.subscribe(({data:t,type:n})=>{if(1===n&&tX(t.url))switch(t.state){case"start":t4(t),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":r.clearTracingIfNeeded(t),e.notify(8,{...t,duration:(0,y._J)(t.startClocks.timeStamp,(0,y.n$)()),type:tV.FETCH,requestBody:t.init?.body})}}))}(e,t,a,o)}(e,r,n,F,G,a);let eg=function(e,t){let r=rV(e);function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,n8(r))}return{addOperationStepVital:function(t,r,n,i){let{operationKey:o,context:a,description:s,handlingStack:u}=n||{},c={name:t,type:ea.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,y.$I)(),context:(0,K.N)(a),description:s,handlingStack:u};e.notify(12,n8(c))},addDurationVital:n,startDurationVital:function(t,n={},i=(0,y.$I)()){let{id:o}=r.start(n.vitalKey??t,i,{name:t,...n});e.notify(16,{id:o,name:t,startClocks:i,...n})},stopDurationVital:function(e,t={},i=(0,y.$I)()){let o=r.stop(t.vitalKey??e,i,t);o&&n({type:ea.DURATION,...o})}}}(e,R),ev=(d=r.applicationId,f=W.actionContexts,{get:e=>{let t=P.findView(e),r=N.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=f.findActionId(e);return{application_id:d,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:W.addAction,startAction:W.startAction,stopAction:W.stopAction,startResource:ef.startResource,stopResource:ef.stopResource,addEvent:(t,r,n,i)=>{iu.includes(r.type)&&e.notify(12,{startClocks:(0,y.DY)(t),rawRumEvent:r,domainContext:n,duration:i})},addError:ey,addTiming:q,setLoadingTime:Z,addFeatureFlagEvaluation:M.addFeatureFlagEvaluation,startView:X,setViewContext:ee,setViewContextProperty:es,getViewContext:el,setViewName:Y,viewHistory:P,sessionManager:n,stopSession:()=>n.expire(),getInternalContext:ev.get,startDurationVital:eg.startDurationVital,stopDurationVital:eg.stopDurationVital,addDurationVital:eg.addDurationVital,addOperationStepVital:eg.addOperationStepVital,globalContext:$,userContext:F,accountContext:G,stop:()=>
4h.forEach(e=>e())}}(v,c,e,t,r,i,a,d,A);return h.push(R),a.unbuffer(),h.push(()=>n.stop()),{...P,lifeCycle:v,sessionManager:t,stopSession:()=>t.expire(),telemetry:s,stop:()=>{h.forEach(e=>e())},hooks:c}}function il(e,t,r={}){let n=function(e){let t=new g.y$;function r(){return e===v.GRANTED}return{tryToInit(t){e||(e=t)},onGrantedOnce(e){if(r())e();else{let n=t.subscribe(()=>{r()&&(e(),n.unsubscribe())})}},update(r){e=r,t.notify()},isGranted:r,observable:t}}(),i=function(){let e=new g.fk(500,e=>{(0,U.eJ)("Early data collection dropped data on unbuffer",{count:e})}),t=[];function r(r,n){t.push(n.subscribe(t=>{e.notify({type:r,data:t})}))}return r(0,(0,_.C)($)()),r(1,x()),r(2,H()),r(3,function(e){let t=e.map(e=>(W[e]||(W[e]=new g.y$(t=>{let r=L.jG[e];return L.jG[e]=(...n)=>{r.apply(console,n);let i=(0,G.Xp)("console error");(0,w.L6)(()=>{t.notify(function(e,t,r){let n=e.map(e=>"string"==typeof e?(0,K.N)(e):(0,j.VZ)(e)?(0,G.jN)((0,D._)(e)):(0,F.l)((0,K.N)(e),void 0,2)).join(" ");if(t===L.vA.error){let i=e.find(j.VZ),o=(0,j.AP)({originalError:i,handlingStack:r,startClocks:(0,y.$I)(),source:B.z.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=n,{api:t,message:n,handlingStack:r,error:o}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,e,i))})},()=>{L.jG[e]=r}})),W[e]));return(0,g.$Z)(...t)}(Object.values(L.vA))),{observable:e,stop:()=>t.forEach(e=>e.unsubscribe())}}(),o=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,n){let i,o,s,u,c,l;let d=new g.fk(500,e=>{(0,U.eJ)("preStartRum buffer data lost",{count:e})}),f=e1();Z(f,X.globalContext,d);let p=e5();Z(p,X.userContext,d);let h=e3();Z(h,X.accountContext,d);let m={assemble:(0,e2.Bi)(),assembleTelemetry:(0,e2.Bi)()},b=r.observable.subscribe(k),A={},C=!1;function k(){let e;if(C||!s||!u||!c||!l)return;if(b.unsubscribe(),u.trackViewsManually){if(!i)return;e=i.options}let t=u.trackViewsManually?i?.callback:void 0,r=n(u,c,o,e,l,m);C=!0,d.subscribe(e=>{e!==t&&e(r)}),d.unbuffer()}function O(e,n){var i;let d=(0,e6.xT)();if(d&&(e={...i=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:i.defaultPrivacyLevel??e6.Ad()?.getPrivacyLevel()}),s=e,u){ee("DD_RUM",e);return}let f=function(e,t){if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||L.jf.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){L.jf.error("Application ID is not configured, no RUM data will be collected.");return}if(!eS(e.sessionReplaySampleRate,"Session Replay")||!eS(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls)){L.jf.error("Excluded Activity Urls should be an array");return}let r=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls)){L.jf.error("Allowed Tracing URLs should be an array");return}if(0!==e.allowedTracingUrls.length&&void 0===e.service){L.jf.error("Service needs to be configured when tracing is enabled");return}let t=[];return e.allowedTracingUrls.forEach(e=>{let r=eV(e);r?t.push(r):L.jf.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!r)return;let n=function(e,t){var r,n;if(!e?.clientToken){L.jf.error("Client Token is not configured, we will not send any data.");return}if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins)){L.jf.error("Allowed Tracking Origins must be an array");return}if((!(r=e.site)||"string"!=typeof r||/(datadog|ddog|datad0g|dd0g)/.test(r)||(L.jf.error(`Site should be a valid Datadog site. ${L.IA} ${L.aA}/getting_started/site/.`),0))&&eS(e.sessionSampleRate,"Session")&&eS(e.telemetrySampleRate,"Telemetry")&&eS(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&eS(e.telemetryUsageSampleRate,"Telemetry Usage")&&eE(e.version,"Version")&&eE(e.env,"Env")&&eE(e.service,"Service")&&function(e,t){let r=(0,_.C)(S.Z.location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!ev(e)&&ev(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(L.jf.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=ey(i,n);return o||L.jf.error("SDK initialized on a non-allowed domain."),o}(e,t??"")){if(void 0!==e.trackingConsent&&!(0,ec.E5)(v,e.trackingConsent)){L.jf.error('Tracking Consent should be either "granted" or "not-granted"');return}return{clientToken:e.clientToken,proxy:e.proxy,site:e.site||e_.D_,source:"flutter"===(n=e.source)||"unity"===n?n:"browser",beforeSend:e.beforeSend&&(0,es.Z)(e.beforeSend,"beforeSend threw an error:"),cookieOptions:function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=function(e=S.Z.location?.hostname??"",t="undefined"!=typeof document?document.referrer:""){if("undefined"!=typeof document){if(void 0===a){let r=function(e,t){try{return e||(0,E.Q2)(t).hostname}catch{}}(e,t);if(r){let e=`dd_site_test_${(0,Q.DO)()}`,t=r.split("."),n=t.pop();for(;t.length&&!ed(e);)n=`${t.pop()}.${n}`,el(e,"test",y.WT,{domain:n});el(e,"",0,{domain:n}),a=n}}return a}}();if(!e)return;t.domain=e}return t}(e),sessionPersistence:e.sessionPersistence,sessionSampleRate:e.sessionSampleRate??100,telemetrySampleRate:e.telemetrySampleRate??20,telemetryConfigurationSampleRate:e.telemetryConfigurationSampleRate??5,telemetryUsageSampleRate:e.telemetryUsageSampleRate??5,service:e.service??void 0,env:e.env??void 0,version:e.version??void 0,datacenter:e.datacenter??void 0,silentMultipleInit:!!e.silentMultipleInit,trackingConsent:e.trackingConsent??v.GRANTED,trackAnonymousUser:e.trackA
4nonymousUser??!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,variant:e.variant,sdkVersion:e.sdkVersion,replica:e.replica}}}(e,t),i=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return L.jf.warn("allowedGraphQlUrls should be an array"),[];let t=[];return e.allowedGraphQlUrls.forEach(e=>{em(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,eh.s)(e)&&em(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!n)return;let o=e.sessionReplaySampleRate??0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:o,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===o,traceSampleRate:e.traceSampleRate??100,rulePsr:(0,eu.hj)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:r,excludedActivityUrls:e.excludedActivityUrls??[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(e.trackUserInteractions??!0),trackViewsManually:!!e.trackViewsManually,trackResources:!!(e.trackResources??!0),trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return ez.map(e=>({name:e}));if(!Array.isArray(t))return L.jf.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return L.jf.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return t.forEach((e,t)=>{if(!(0,eh.s)(e)||!em(e.name)){L.jf.warn(`trackResourceHeaders[${t}] should be a MatchHeader object with a 'name' property`);return}if(void 0!==e.url&&!em(e.url)){L.jf.warn(`trackResourceHeaders[${t}].url should be a MatchOption`);return}if(void 0!==e.extractor&&!(e.extractor instanceof RegExp)){L.jf.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`);return}if(void 0!==e.location&&!eJ.includes(e.location)){L.jf.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`);return}r.push({...e,name:"string"==typeof e.name?e.name.toLowerCase():e.name})}),r}(e),trackLongTasks:!!(e.trackLongTasks??!0),subdomain:e.subdomain,defaultPrivacyLevel:(0,ec.E5)(eb,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:eb.MASK_USER_INPUT,enablePrivacyForActionName:!1!==e.enablePrivacyForActionName,traceContextInjection:(0,ec.E5)(ew,e.traceContextInjection)?e.traceContextInjection:ew.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:e.profilingSampleRate??0,propagateTraceBaggage:!1!==e.propagateTraceBaggage,allowedGraphQlUrls:i,...n}}(e,n);f&&(!f.compressIntakeRequests||d||!t||(o=t(f,"Datadog RUM",T.Z)))&&(u=f,r.tryToInit(f.trackingConsent),r.onGrantedOnce(()=>{let t;let{assembleTelemetry:n}=m;if(function(e,t){e.register(()=>t.isGranted()?e2.kb:e2.C_)}(n,r),l=(0,_.C)(U.VL)("browser-rum-sdk",f,n),S.j){L.jf.warn("The RUM SDK is not supported in a web or service worker environment.");return}((0,e6.xT)()?(t={id:(0,Q.DO)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,y.n$)()},Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new g.y$,expireObservable:new g.y$,expire:T.Z,updateSessionState:e=>{t={...t,...e}}})):(0,_.C)(tR)(f,r)).then(t=>{t&&(function(e,t,r){e.register(({startTime:e})=>{let n=t.findTrackedSession(e);return n?{session:{id:n.id},anonymous_id:n.anonymousId,...r}:e2.kb})}(n,c=t,{application:{id:f.applicationId}}),(0,U.Uo)(function(e){var t,r,n;let i={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant};return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,prop
4agate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:(0,eA.Of)(e.allowedTracingUrls),use_allowed_graph_ql_urls:(0,eA.Of)(e.allowedGraphQlUrls),use_track_graph_ql_payload:(t=e.allowedGraphQlUrls,(0,eA.Of)(t)&&t.some(e=>(0,eh.s)(e)&&e.trackPayload)),use_track_graph_ql_response_errors:(r=e.allowedGraphQlUrls,(0,eA.Of)(r)&&r.some(e=>(0,eh.s)(e)&&e.trackResponseErrors)),selected_tracing_propagators:function(e){let t=new Set;return(0,eA.Of)(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(e=>{eV(e)?.propagatorTypes.forEach(e=>t.add(e))}),Array.from(t)}(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:(0,eA.Of)(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:e.plugins?.map(e=>({name:e.name,...e.getConfigurationTelemetry?.()})),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:eG(e),profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:!0===(n=e.trackResourceHeaders)?"default_headers":Array.isArray(n)?"custom":void 0,...i}}(e)),k())}).catch(w.$y)}))}return{init(t,r,n){if(!t){L.jf.error("Missing configuration");return}if((0,tI.fG)(t.enableExperimentalFeatures),(0,I.$k)(t.allowUntrustedEvents),s=t,!(e&&tU())){if(eq(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),eG(t)){let e={user:p,context:f};if(t.remoteConfigurationId||t.remoteConfiguration?.sync)ej(t,e).then(e=>{e&&O(e,n)}).catch(w.$y);else{let r=function(e,t){let r=function({remoteConfigurationId:e}){let t=`dd_rc_${e}`;return{read(){let e,r;try{e=localStorage.getItem(t)}catch{return{status:"error"}}if(null===e)return{status:"miss"};try{r=JSON.parse(e)}catch{return this.remove(),{status:"error"}}return!function(e){if("object"!=typeof e||null===e)return!1;let t="version"in e&&1===e.version,r="config"in e&&"object"==typeof e.config&&null!==e.config;return t&&r}(r)?(this.remove(),{status:"error"}):{status:"hit",config:r.config}},remove(){try{localStorage.removeItem(t)}catch{}},write(e){let r={version:1,config:e,fetchedAt:(0,y.n$)()};try{localStorage.setItem(t,JSON.stringify(r))}catch{}}}}({remoteConfigurationId:eG(e)}),n=e$(),i=r.read();return(n.increment("cache",eU[i.status]),!function(e,t,r){eF(e).then(e=>{e.ok?(r.increment("fetch","success"),t.write(e.value)):(r.increment("fetch","failure"),L.jf.error(e.error))}).catch(w.$y).finally(()=>{(0,U.qZ)("remote configuration metrics",{metrics:r.get()})})}(e,r,n),"hit"===i.status)?eB(e,i.config,t,n):e.remoteConfiguration?.required?void 0:e}(t,e);r&&O(r,n)}}else O(t,n)}},get initConfiguration(){return s},getInternalContext:T.Z,stopSession:T.Z,addTiming(e,t=(0,y.n$)()){d.notify(r=>r.addTiming(e,t))},setLoadingTime:e=>{d.notify(t=>t.setLoadingTime(e))},startView(e,t=(0,y.$I)()){let r=r=>{r.startView(e,t)};d.notify(r),i||(i={options:e,callback:r},k())}
4,setViewName(e){d.notify(t=>t.setViewName(e))},setViewContext(e){d.notify(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.notify(r=>r.setViewContextProperty(e,t))},getViewContext:()=>A,globalContext:f,userContext:p,accountContext:h,addAction(e){d.notify(t=>t.addAction(e))},startAction(e,t){let r=(0,y.$I)();d.notify(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,y.$I)();d.notify(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,y.$I)();d.notify(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,y.$I)();d.notify(n=>n.stopResource(e,t,r))},addError(e){d.notify(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.notify(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital(e,t){let r=(0,y.$I)();d.notify(n=>n.startDurationVital(e,t,r))},stopDurationVital(e,t){let r=(0,y.$I)();d.notify(n=>n.stopDurationVital(e,t,r))},addDurationVital(e){d.notify(t=>t.addDurationVital(e))},addOperationStepVital:(e,t,r,n)=>{d.notify(i=>i.addOperationStepVital((0,K.N)(e),t,(0,K.N)(r),(0,K.N)(n)))}}}(r,n,(n,a,s,u,c,l)=>{let d=s&&r.createDeflateEncoder?e=>r.createDeflateEncoder(s,e):z.G,f=(0,_.C)(ic)(n,a,e,t,u,d,i.observable,c,l,r.sdkName);return e.onRumStart(f.lifeCycle,n,a,f.viewHistory,s,f.telemetry),t.onRumStart(f.lifeCycle,f.hooks,n,a,f.viewHistory,d),o={...o,init:e=>{ee("DD_RUM",e)},getInternalContext:f.getInternalContext,stopSession:f.stopSession,getViewContext:f.getViewContext,globalContext:f.globalContext,userContext:f.userContext,accountContext:f.accountContext},eq(n.plugins,"onRumStart",{addEvent:f.addEvent,addError:f.addError}),f}),s=()=>o,u=(0,V.r)({init:e=>{let t=Error().stack;(0,w.L6)(()=>o.init(e,u,t))},setTrackingConsent:(0,w.zk)(e=>{n.update(e),(0,U.eG)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,w.zk)(e=>{o.setViewName(e),(0,U.eG)({feature:"set-view-name"})}),setViewContext:(0,w.zk)(e=>{o.setViewContext(e),(0,U.eG)({feature:"set-view-context"})}),setViewContextProperty:(0,w.zk)((e,t)=>{o.setViewContextProperty(e,t),(0,U.eG)({feature:"set-view-context-property"})}),getViewContext:(0,w.zk)(()=>((0,U.eG)({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:(0,w.zk)(e=>o.getInternalContext(e)),getInitConfiguration:(0,w.zk)(()=>(0,J.I8)(o.initConfiguration)),addAction:(e,t)=>{let r=(0,G.Xp)("action");(0,w.L6)(()=>{o.addAction({name:(0,K.N)(e),context:(0,K.N)(t),startClocks:(0,y.$I)(),type:ei.CUSTOM,handlingStack:r}),(0,U.eG)({feature:"add-action"})})},startAction:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"start-action"}),o.startAction((0,K.N)(e),{type:(0,K.N)(t?.type),context:(0,K.N)(t?.context),actionKey:t?.actionKey})}),stopAction:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"stop-action"}),o.stopAction((0,K.N)(e),{type:(0,K.N)(t?.type),context:(0,K.N)(t?.context),actionKey:t?.actionKey})}),startResource:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"start-resource"}),o.startResource((0,K.N)(e),{type:(0,K.N)(t?.type),method:(0,K.N)(t?.method),context:(0,K.N)(t?.context),resourceKey:t?.resourceKey})}),stopResource:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"stop-resource"}),o.stopResource((0,K.N)(e),{type:(0,K.N)(t?.type),statusCode:t?.statusCode,size:t?.size,context:(0,K.N)(t?.context),resourceKey:t?.resourceKey})}),addError:(e,t)=>{let r=(0,G.Xp)("error");(0,w.L6)(()=>{o.addError({error:e,handlingStack:r,context:(0,K.N)(t),startClocks:(0,y.$I)()}),(0,U.eG)({feature:"add-error"})})},addTiming:(0,w.zk)((e,t)=>{o.addTiming((0,K.N)(e),t)}),setViewLoadingTime:(0,w.zk)(()=>{let e=(0,y.n$)();o.setLoadingTime(e),(0,U.eG)({feature:"addViewLoadingTime"})}),setGlobalContext:q(s,X.globalContext,Y.setContext,"set-global-context"),getGlobalContext:q(s,X.globalContext,Y.getContext,"get-global-context"),setGlobalContextProperty:q(s,X.globalContext,Y.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:q(s,X.globalContext,Y.removeContextProperty,"remove-global-context-property"),clearGlobalContext:q(s,X.globalContext,Y.clearContext,"clear-global-context"),setUser:q(s,X.userContext,Y.setContext,"set-user"),getUser:q(s,X.userContext,Y.getContext,"get-user"),setUserProperty:q(s,X.userContext,Y.setContextProperty,"set-user-property"),removeUserProperty:q(s,X.userContext,Y.removeContextProperty,"remove-user-property"),clearUser:q(s,X.userContext,Y.clearContext,"clear-user"),setAccount:q(s,X.accountContext,Y.setContext,"set-account"),getAccount:q(s,X.accountContext,Y.getContext,"get-account"),setAccountProperty:q(s,X.accountContext,Y.setContextProperty,"set-account-property"),removeAccountProperty:q(s,X.accountContext,Y.removeContextProperty,"remove-account-property"),clearAccount:q(s,X.accountContext,Y.clearContext,"clear-account"),startView:e=>{let t=(0,G.Xp)("view");(0,w.L6)(()=>{o.startView({..."object"==typeof e?e:{name:e},handlingStack:t}),(0,U.eG)({feature:"start-view"})})},stopSession:(0,w.zk)(()=>{o.stopSession(),(0,U.eG)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,w.zk)((e,t)=>{o.addFeatureFlagEvaluation((0,K.N)(e),(0,K.N)(t)),(0,U.eG)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,w.zk)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,w.zk)(t=>{e.start(t),(0,U.eG)({feature:"start-session-replay-recording",force:t?.force})}),stopSessionReplayRecording:(0,w.zk)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,G.Xp)("vital");(0,w.L6)(()=>{(0,U.eG)({feature:"add-duration-vital"}
4),o.addDurationVital({id:(0,Q.DO)(),name:(0,K.N)(e),type:ea.DURATION,startClocks:(0,y.lO)(t.startTime),duration:t.duration,context:(0,K.N)(t?.context),description:(0,K.N)(t?.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,G.Xp)("vital");(0,w.L6)(()=>{(0,U.eG)({feature:"start-duration-vital"}),o.startDurationVital((0,K.N)(e),{vitalKey:t?.vitalKey,context:(0,K.N)(t?.context),description:(0,K.N)(t?.description),handlingStack:r})})},stopDurationVital:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"stop-duration-vital"}),o.stopDurationVital((0,K.N)(e),{vitalKey:t?.vitalKey,context:(0,K.N)(t?.context),description:(0,K.N)(t?.description)})}),startFeatureOperation:(e,t)=>{let r=(0,G.Xp)("vital");(0,w.L6)(()=>{(0,U.eG)({feature:"add-operation-step-vital",action_type:"start"}),o.addOperationStepVital(e,"start",{...t,handlingStack:r})})},succeedFeatureOperation:(0,w.zk)((e,t)=>{(0,U.eG)({feature:"add-operation-step-vital",action_type:"succeed"}),o.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,w.zk)((e,t,r)=>{(0,U.eG)({feature:"add-operation-step-vital",action_type:"fail"}),o.addOperationStepVital(e,"end",r,t)}),DEFAULT_TRACKED_RESOURCE_HEADERS:ez});return u}function id(e,{session:t,viewContext:r,errorType:n}){let i=t?t.id:"no-session-id",o=[];void 0!==n&&o.push(`error-type=${n}`),r&&(o.push(`seed=${r.id}`),o.push(`from=${r.startClocks.timeStamp}`));let a=function(e){let t=e.site,r=e.subdomain||function(e){switch(e.site){case e_.D_:case e_.Ds:return"app";case e_.DZ:return"dd";default:return}}(e);return`https://${r?`${r}.`:""}${t}`}(e),s=`/rum/replay/sessions/${i}`;return`${a}${s}?${o.join("&")}`}function ip(e,t,r,n){let i=(0,nz.UF)([(0,eC.Ez)(e,"profile")],e=>{t.notify(14,{error:e}),(0,U.eJ)("Error reported to customer",{"error.message":e.message})}),o=r(n);return{async send({event:e,...t}){let r=new FormData,n=(0,F.l)(e);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let a=n.length;for(let[e,n]of(0,te.qP)(t)){let t=(0,F.l)(n);if(!t)throw Error("Failed to serialize attachment");let i=await function(e,t){return new Promise(r=>{e.write(t),e.finish(e=>{r(e)})})}(o,t);a+=i.outputBytesCount,r.append(e,new Blob([i.output]),e)}i.send({data:r,bytesCount:a})}}}},98290:function(e,t,r){"use strict";let n;function i(e){return c(e).segments_count}function o(e){c(e).segments_count+=1}function a(e){c(e).records_count+=1}function s(e,t){c(e).segments_total_raw_size+=t}function u(e){return n?.get(e)}function c(e){let t;return n||(n=new Map),n.has(e)?t=n.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},n.set(e,t),n.size>1e3&&function(){if(!n)return;let e=n.keys().next().value;e&&n.delete(e)}()),t}r.d(t,{FT:function(){return i},MA:function(){return u},pk:function(){return s},ui:function(){return o},xK:function(){return a}})},95957:function(e,t,r){"use strict";function n(e,t){var r=t&&t.cache?t.cache:u,n=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:function(e,t){var r,n,a=1===e.length?i:o;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function i(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function o(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}r.r(t),r.d(t,{memoize:function(){return n},strategies:function(){return c}});var a=function(){return JSON.stringify(arguments)},s=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),u={create:function(){return new s}},c={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)}}},26913:function(e,t,r){"use strict";r.r(t),r.d(t,{ErrorCode:function(){return p},FormatError:function(){return es},IntlMessageFormat:function(){return eh},InvalidValueError:function(){return eu},InvalidValueTypeError:function(){return ec},MissingValueError:function(){return el},PART_TYPE:function(){return h},default:function(){return em},formatToParts:function(){return ef},isFormatXMLElementFn:function(){return ed}});var n,i,o,a,s,u,c,l,d,f,p,h,m=r(65353),y=r(95957);function g(e){return e.type===c.literal}function v(e){return e.type===c.number}function _(e){return e.type===c.date}function b(e){return e.type===c.time}function w(e){return e.type===c.select}function E(e){return e.type===c.plural}function S(e){return e.type===c.tag}function A(e){return!!(e&&"object"==typeof e&&e.type===l.number)}function T(e){return!!(e&&"object"==typeof e&&e.type===l.dateTime)}(n=u||(u={}))[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_
4NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=c||(c={}))[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(o=l||(l={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var C=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,k=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,O=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,x=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,R=/^(@+)?(\+|#+)?[rs]?$/g,I=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function H(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(R,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function N(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function M(e){return N(e)||{}}var L={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
4:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},U=new RegExp("^".concat(C.source,"*")),D=new RegExp("".concat(C.source,"*$"));function j(e,t){return{start:e,end:t}}var B=!!String.prototype.startsWith&&"_a".startsWith("a",1),$=!!String.fromCodePoint,K=!!Object.fromEntries,F=!!String.prototype.codePointAt,G=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},V=!0;try{var J=et("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");V=(null===(d=J.exec("a"))||void 0===d?void 0:d[0])==="a"}catch(e){V=!1}var q=B?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Z=$?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0;i>o;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},X=K?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],o=n[1];t[i]=o}return t},Y=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},Q=G?function(e){return e.trimStart()}:function(e){return e.replace(U,"")},ee=W?function(e){return e.trimEnd()}:function(e){return e.replace(D,"")};function et(e,t){return new RegExp(e,t)}if(V){var er=et("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(e,t){var r;return er.lastIndex=t,null!==(r=er.exec(e)[1])&&void 0!==r?r:""}}else f=function(e,t){for(var r=[];;){var n,i=Y(e,t);if(void 0===i||eo(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>
4=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return Z.apply(void 0,r)};var en=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var a=this.clonePosition();this.bump(),n.push({type:c.pound,location:j(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&ei(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}}else{if(!r)return this.error(u.UNMATCHED_CLOSING_TAG,j(this.clonePosition(),this.clonePosition()));break}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:c.literal,value:"<".concat(n,"/>"),location:j(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(u.INVALID_TAG,j(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(u.UNCLOSED_TAG,j(r,this.clonePosition()));if(this.isEOF()||!ei(this.char()))return this.error(u.INVALID_TAG,j(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(u.UNMATCHED_CLOSING_TAG,j(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:c.tag,value:n,children:o,location:j(r,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,j(a,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var s=j(r,this.clonePosition());return{val:{type:c.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ei(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
4case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return Z.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Z(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,j(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,j(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(u.MALFORMED_ARGUMENT,j(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,j(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:c.argument,value:n,location:j(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,j(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(u.MALFORMED_ARGUMENT,j(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=f(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:j(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,j(o,s));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var h=ee(p.val);if(0===h.length)return this.error(u.EXPECT_ARGUMENT_STYLE,j(this.clonePosition(),this.clonePosition()));d={style:h,styleLocation:j(f,this.clonePosition())}}var y=this.tryParseArgumentClose(n);if(y.err)return y;var g=j(n,this.clonePosition());if(d&&q(null==d?void 0:d.style,"::",0)){var v,_=Q(d.style.slice(2));if("number"===a){var p=this.parseNumberSkeletonFromString(_,d.styleLocation);if(p.err)return p;return{val:{type:c.number,value:r,location:g,style:p.val},err:null}}if(0===_.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,g);var b=_;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),u=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(L[t||""]||L[n||""]||L["".concat(n,"-001")]||L["001"])[0]}(t);for(("H"==u||"k"==u)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=u+r}else"J"===i?r+="H":r+=i}return r}(_,this.locale));var h={type:l.dateTime,pattern:b,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(k,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][t-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][t-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][t-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][t-1];break;case"s":v.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===a?c.date:c.time,value:r,location:g,style:h},err:null}}return{val:{type:"number"===a?c.number:"date"===a?c.date:c.time,value:r,location:g,style:null!==(i=null==d?void 0:d.style)&&void 0!==i?i:null},err:null};
4case"plural":case"selectordinal":case"select":var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,j(w,(0,m.pi)({},w)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),S=0;if("select"!==a&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),E=this.parseIdentifierIfPossible(),S=p.val}var A=this.tryParsePluralOrSelectOptions(e,a,t,E);if(A.err)return A;var y=this.tryParseArgumentClose(n);if(y.err)return y;var T=j(n,this.clonePosition());if("select"===a)return{val:{type:c.select,value:r,options:X(A.val),location:T},err:null};return{val:{type:c.plural,value:r,options:X(A.val),offset:S,pluralType:"plural"===a?"cardinal":"ordinal",location:T},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,j(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,j(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,j(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(O).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0;s<a.length;s++)if(0===a[s].length)throw Error("Invalid number skeleton");r.push({stem:o,options:a})}return r}(e)}catch(e){return this.error(u.INVALID_NUMBER_SKELETON,t)}return{val:{type:l.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,m.pi)((0,m.pi)((0,m.pi)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,m.pi)((0,m.pi)({},e),N(t)||{})},{}));continue;case"engineering":t=(0,m.pi)((0,m.pi)((0,m.pi)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,m.pi)((0,m.pi)({},e),N(t)||{})},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(I,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(P.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(x.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(x,function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,m.pi)((0,m.pi)({}
4,t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,m.pi)((0,m.pi)({},t),H(i)));continue}if(R.test(n.stem)){t=(0,m.pi)((0,m.pi)({},t),H(n.stem));continue}var o=N(n.stem);o&&(t=(0,m.pi)((0,m.pi)({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!P.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);a&&(t=(0,m.pi)((0,m.pi)({},t),a))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,c=n.value,l=n.location;;){if(0===c.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_SELECTOR,u.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=j(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(s.has(c))return this.error("select"===t?u.DUPLICATE_SELECT_ARGUMENT_SELECTOR:u.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?u.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:u.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,j(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([c,{value:h.val,location:j(p,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?u.EXPECT_SELECT_ARGUMENT_SELECTOR:u.EXPECT_PLURAL_ARGUMENT_SELECTOR,j(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(u.MISSING_OTHER_CLAUSE,j(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=j(n,this.clonePosition());return i?z(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Y(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(q(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&eo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ei(e){return e>=97&&e<=122||e>=65&&e<=90}function eo(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ea(e,t){void 0===t&&(t={});var r=new en(e,t=(0,m.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(u[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,w(t)||E(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else v(t)&&A(t.style)?delete t.style.location:(_(t)||b(t))&&T(t.style)?delete t.style.location:S(t)&&e(t.children)})}(r.val),r.val}(a=p||(p={})).MISSING_VALUE="MISSING_VALUE",a.INVALID_VALUE="INVALID_VALUE",a.MISSING_INTL_API="MISSING_INTL_API";var es=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,m.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eu=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),p.INVALID_VALUE,i)||this}return(0,m.ZT)(t,e),t}(es),ec=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),p.INVALID_VALUE,n)||this}return(0,m.ZT)(t,e),t}(es),el=function(e){function t(t,r){return e.call(this,'The intl str
4ing context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),p.MISSING_VALUE,r)||this}return(0,m.ZT)(t,e),t}(es);function ed(e){return"function"==typeof e}function ef(e,t,r,n,i,o,a){if(1===e.length&&g(e[0]))return[{type:h.literal,value:e[0].value}];for(var s=[],u=0;u<e.length;u++){var l=e[u];if(g(l)){s.push({type:h.literal,value:l.value});continue}if(l.type===c.pound){"number"==typeof o&&s.push({type:h.literal,value:r.getNumberFormat(t).format(o)});continue}var d=l.value;if(!(i&&d in i))throw new el(d,a);var f=i[d];if(l.type===c.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?h.literal:h.object,value:f});continue}if(_(l)){var m="string"==typeof l.style?n.date[l.style]:T(l.style)?l.style.parsedOptions:void 0;s.push({type:h.literal,value:r.getDateTimeFormat(t,m).format(f)});continue}if(b(l)){var m="string"==typeof l.style?n.time[l.style]:T(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:h.literal,value:r.getDateTimeFormat(t,m).format(f)});continue}if(v(l)){var m="string"==typeof l.style?n.number[l.style]:A(l.style)?l.style.parsedOptions:void 0;m&&m.scale&&(f*=m.scale||1),s.push({type:h.literal,value:r.getNumberFormat(t,m).format(f)});continue}if(S(l)){var y=l.children,C=l.value,k=i[C];if(!ed(k))throw new ec(C,"function",a);var O=k(ef(y,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map(function(e){return{type:"string"==typeof e?h.literal:h.object,value:e}}))}if(w(l)){var x=l.options[f]||l.options.other;if(!x)throw new eu(l.value,f,Object.keys(l.options),a);s.push.apply(s,ef(x.value,t,r,n,i));continue}if(E(l)){var x=l.options["=".concat(f)];if(!x){if(!Intl.PluralRules)throw new es('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',p.MISSING_INTL_API,a);var R=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));x=l.options[R]||l.options.other}if(!x)throw new eu(l.value,f,Object.keys(l.options),a);s.push.apply(s,ef(x.value,t,r,n,i,f-(l.offset||0)));continue}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===h.literal&&t.type===h.literal?r.value+=t.value:e.push(t),e},[])}function ep(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(s=h||(h={}))[s.literal=0]="literal",s[s.object=1]="object";var eh=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===h.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return ef(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=i||{},c=(u.formatters,(0,m._T)(u,["formatters"]));this.ast=e.__parse(t,(0,m.pi)((0,m.pi)({},c),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=e.formats,n?Object.keys(o).reduce(function(e,t){var r,i;return e[t]=(r=o[t],(i=n[t])?(0,m.pi)((0,m.pi)((0,m.pi)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,m.pi)((0,m.pi)({},r[t]),i[t]||{}),e},{})):r),e},(0,m.pi)({},o)):o),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,y.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,m.ev)([void 0],t,!1)))},{cache:ep(a.number),strategy:y.strategies.variadic}),getDateTimeFormat:(0,y.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,m.ev)([void 0],t,!1)))},{cache:ep(a.dateTime),strategy:y.strategies.variadic}),getPluralRules:(0,y.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,m.ev)([void 0],t,!1)))},{cache:ep(a.pluralRules),strategy:y.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
4,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=ea,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),em=eh},6258:function(e,t,r){"use strict";/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return i}});var i=function e(t,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},29548:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,i=JSON.parse(null!==(n=r.newValue)&&void 0!==n?n:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(u(u({},t),{},{timestamp:d()})))}catch(e){}}}},t.apiBaseUrl=l,t.fetchData=function(e,t,r){return c.apply(this,arguments)},t.now=d;var i=n(r(64687)),o=n(r(38416)),a=n(r(17156));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(){return(c=(0,a.default)(i.default.mark(function e(t,r,n){var o,a,s,c,d,f,p,h,m,y=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=(o=y.length>3&&void 0!==y[3]?y[3]:{}).ctx,c=void 0===(s=o.req)?null==a?void 0:a.req:s,d="".concat(l(r),"/").concat(t),e.prev=2,p={headers:u({"Content-Type":"application/json"},null!=c&&null!==(f=c.headers)&&void 0!==f&&f.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(p.body=JSON.stringify(c.body),p.method="POST"),e.next=7,fetch(d,p);case 7:return h=e.sent,e.next=10,h.json();case 10:if(m=e.sent,h.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function l(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},36925:function(e,t,r){"use strict";var n=r(64836);
4Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a,s,u,c,l=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,a=Array(o=l.length),s=0;s<o;s++)a[s]=l[s];return t.debug("adapter_".concat(n),{args:a}),u=e[n],r.next=6,u.apply(void 0,a);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(n),r.t0),(c=new m(r.t0)).name="".concat(g(n),"Error"),c;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})},t.capitalize=g,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[n],r.next=4,o.apply(void 0,a);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(y(n),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})},t.upperSnake=y;var i=n(r(64687)),o=n(r(17156)),a=n(r(38416)),s=n(r(56690)),u=n(r(89728)),c=n(r(94993)),l=n(r(73808)),d=n(r(61655)),f=n(r(33496));function p(e,t,r){return t=(0,l.default)(t),(0,c.default)(e,h()?Reflect.construct(t,r||[],(0,l.default)(e).constructor):t.apply(e,r))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var m=t.UnknownError=function(e){function t(e){var r,n;return(0,s.default)(this,t),(n=p(this,t,[null!==(r=null==e?void 0:e.message)&&void 0!==r?r:e])).name="UnknownError",n.code=e.code,e instanceof Error&&(n.stack=e.stack),n}return(0,d.default)(t,e),(0,u.default)(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,f.default)(Error));function y(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function g(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.OAuthCallbackError=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","OAuthCallbackError"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.AccountNotLinkedError=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","AccountNotLinkedError"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.MissingAPIRoute=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAPIRouteError"),(0,a.default)(e,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.MissingSecret=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","MissingSecretError"),(0,a.default)(e,"code","NO_SECRET"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.MissingAuthorize=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAuthorizeError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.MissingAdapter=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAdapterError"),(0,a.default)(e,"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.MissingAdapterMethods=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAdapterMethodsError"),(0,a.default)(e,"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.UnsupportedStrategy=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","UnsupportedStrategyError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m),t.InvalidCallbackUrl=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=p(this,t,[].concat(n)),(0,a.default)(e,"name","InvalidCallbackUrl"),(0,a.default)(e,"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,d.default)(t,e),(0,u.default)(t)}(m)},46140:function(e,t){"use strict";function r(e,t,r){n(e,t),t.set(e,r)}function n(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(a(e,t))}function o(e,t,r){return e.set(a(e,t),r),r}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}
4Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=function(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}};var s=new WeakMap,u=new WeakMap,c=new WeakMap,l=new WeakSet;class d{constructor(e,t,a){n(this,l),l.add(this),r(this,s,{}),r(this,u,void 0),r(this,c,void 0),o(c,this,a),o(u,this,e);let{cookies:d}=t,{name:f}=e;if("function"==typeof(null==d?void 0:d.getAll))for(let{name:e,value:t}of d.getAll())e.startsWith(f)&&(i(s,this)[e]=t);else if(d instanceof Map)for(let e of d.keys())e.startsWith(f)&&(i(s,this)[e]=d.get(e));else for(let e in d)e.startsWith(f)&&(i(s,this)[e]=d[e])}get value(){return Object.keys(i(s,this)).sort((e,t)=>{var r,n;return parseInt(null!==(r=e.split(".").pop())&&void 0!==r?r:"0")-parseInt(null!==(n=t.split(".").pop())&&void 0!==n?n:"0")}).map(e=>i(s,this)[e]).join("")}chunk(e,t){let r=a(l,this,p).call(this);for(let n of a(l,this,f).call(this,{name:i(u,this).name,value:e,options:{...i(u,this).options,...t}}))r[n.name]=n;return Object.values(r)}clean(){return Object.values(a(l,this,p).call(this))}}function f(e){let t=Math.ceil(e.value.length/3933);if(1===t)return i(s,this)[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,o=e.value.substr(3933*n,3933);r.push({...e,name:t,value:o}),i(s,this)[t]=o}return i(c,this).debug("CHUNKING_SESSION_COOKIE",{message:"Session cookie exceeds allowed 4096 bytes.",emptyCookieSize:163,valueSize:e.value.length,chunks:r.map(e=>e.value.length+163)}),r}function p(){let e={};for(let r in i(s,this)){var t;null===(t=i(s,this))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...i(u,this).options,maxAge:0}}}return e}t.SessionStore=d},82260:function(e,t,r){"use strict";var n=r(83454),i=r(64836);Object.defineProperty(t,"__esModule",{value:!0});var o={encode:!0,decode:!0,getToken:!0};t.decode=p,t.encode=f,t.getToken=h;var a=r(45595),s=i(r(99718)),u=r(29264),c=r(46140),l=r(76444);Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});let d=()=>Date.now()/1e3|0;async function f(e){let{token:t={},secret:r,maxAge:n=2592e3,salt:i=""}=e,o=await m(r,i);return await new a.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(d()+n).setJti((0,u.v4)()).encrypt(o)}async function p(e){let{token:t,secret:r,salt:n=""}=e;if(!t)return null;let i=await m(r,n),{payload:o}=await (0,a.jwtDecrypt)(t,i,{clockTolerance:15});return o}async function h(e){var t,r;let{req:i,secureCookie:o=null!==(t="https://eventpass.co".startsWith("https://"))&&void 0!==t?t:!!n.env.VERCEL,cookieName:a=o?"__Secure-next-auth.session-token":"next-auth.session-token",raw:s,decode:u=p,logger:l=console,secret:d="6XEtbmhOyXUDBCpfwqOJIpEmdFxTV5KOV3Gi/uoROlE="}=e;if(!i)throw Error("Must pass `req` to JWT getToken()");let f=new c.SessionStore({name:a,options:{secure:o}},{cookies:i.cookies,headers:i.headers},l).value,h=i.headers instanceof Headers?i.headers.get("authorization"):null===(r=i.headers)||void 0===r?void 0:r.authorization;if(f||(null==h?void 0:h.split(" ")[0])!=="Bearer"||(f=decodeURIComponent(h.split(" ")[1])),!f)return null;if(s)return f;try{return await u({token:f,secret:d})}catch(e){return null}}async function m(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},76444:function(e,t){"use strict";
4Object.defineProperty(t,"__esModule",{value:!0})},29264:function(e,t,r){"use strict";r.r(t),r.d(t,{NIL:function(){return x},parse:function(){return y},stringify:function(){return f},v1:function(){return m},v3:function(){return T},v4:function(){return C},v5:function(){return O},validate:function(){return c},version:function(){return R}});var n,i,o,a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}for(var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&u.test(e)},l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},p=0,h=0,m=function(e,t,r){var n=t&&r||0,a=t||Array(16),u=(e=e||{}).node||i,c=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==c){var l=e.random||(e.rng||s)();null==u&&(u=i=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==c&&(c=o=(l[6]<<8|l[7])&16383)}var d=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,y=d-p+(m-h)/1e4;if(y<0&&void 0===e.clockseq&&(c=c+1&16383),(y<0||d>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");p=d,h=m,o=c;var g=((268435455&(d+=122192928e5))*1e4+m)%4294967296;a[n++]=g>>>24&255,a[n++]=g>>>16&255,a[n++]=g>>>8&255,a[n++]=255&g;var v=d/4294967296*1e4&268435455;a[n++]=v>>>8&255,a[n++]=255&v,a[n++]=v>>>24&15|16,a[n++]=v>>>16&255,a[n++]=c>>>8|128,a[n++]=255&c;for(var _=0;_<6;++_)a[n+_]=u[_];return t||f(a)},y=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function g(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return f(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(e){return(e+64>>>9<<4)+14+1}function _(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function b(e,t,r,n,i,o){var a;return _((a=_(_(t,e),_(n,o)))<<i|a>>>32-i,r)}function w(e,t,r,n,i,o,a){return b(t&r|~t&n,e,t,i,o,a)}function E(e,t,r,n,i,o,a){return b(t&n|r&~n,e,t,i,o,a)}function S(e,t,r,n,i,o,a){return b(t^r^n,e,t,i,o,a)}function A(e,t,r,n,i,o,a){return b(r^(t|~n),e,t,i,o,a)}var T=g("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=i,l=o;r=w(r,n,i,o,e[a],7,-680876936),o=w(o,r,n,i,e[a+1],12,-389564586),i=w(i,o,r,n,e[a+2],17,606105819),n=w(n,i,o,r,e[a+3],22,-1044525330),r=w(r,n,i,o,e[a+4],7,-176418897),o=w(o,r,n,i,e[a+5],12,1200080426),i=w(i,o,r,n,e[a+6],17,-1473231341),n=w(n,i,o,r,e[a+7],22,-45705983),r=w(r,n,i,o,e[a+8],7,1770035416),o=w(o,r,n,i,e[a+9],12,-1958414417),i=w(i,o,r,n,e[a+10],17,-42063),n=w(n,i,o,r,e[a+11],22,-1990404162),r=w(r,n,i,o,e[a+12],7,1804603682),o=w(o,r,n,i,e[a+13],12,-40341101),i=w(i,o,r,n,e[a+14],17,-1502002290),n=w(n,i,o,r,e[a+15],22,1236535329),r=E(r,n,i,o,e[a+1],5,-165796510),o=E(o,r,n,i,e[a+6],9,-1069501632),i=E(i,o,r,n,e[a+11],14,643717713),n=E(n,i,o,r,e[a],20,-373897302),r=E(r,n,i,o,e[a+5],5,-701558691),o=E(o,r,n,i,e[a+10],9,38016083),i=E(i,o,r,n,e[a+15],14,-660478335),n=E(n,i,o,r,e[a+4],20,-405537848),r=E(r,n,i,o,e[a+9],5,568446438),o=E(o,r,n,i,e[a+14],9,-1019803690),i=E(i,o,r,n,e[a+3],14,-187363961),n=E(n,i,o,r,e[a+8],20,1163531501),r=E(r,n,i,o,e[a+13],5,-1444681467),o=E(o,r,n,i,e[a+2],9,-51403784),i=E(i,o,r,n,e[a+7],14,1735328473),n=E(n,i,o,r,e[a+12],20,-1926607734),r=S(r,n,i,o,e[a+5],4,-378558),o=S(o,r,n,i,e[a+8],11,-2022574463),i=S(i,o,r,n,e[a+11],16,1839030562),n=S(n,i,o,r,e[a+14],23,-35309556),r=S(r,n,i,o,e[a+1],4,-1530992060),o=S(o,r,n,i,e[a+4],11,1272893353),i=S(i,o,r,n,e[a+7],16,-155497632),n=S(n,i,o,r,e[a+10],23,-1094730640),r=S(r,n,i,o,e[a+13],4,681279174),o=S(o,r,n,i,e[a],11,-358537222),i=S(i,o,r,n,e[a+3],16,-722521979),n=S(n,i,o,r,e[a+6],23,76029189),r=S(r,n,i,o,e[a+9],4,-640364487),o=S(o,r,n,i,e[a+12],11,-421815835),i=S(i,o,r,n,e[a+15],16,530742520),n=S(n,i,o,r,e[a+2],23,-995338651),r=A(r,n,i,o,e[a],6,-198630844),o=A(o,r,n,i,e[a+7],10,1126891415),i=A(i,o,r,n,e[a+14],15,-1416354905),n=A(n,i,o,r,e[a+5],21,-57434055),r
4=A(r,n,i,o,e[a+12],6,1700485571),o=A(o,r,n,i,e[a+3],10,-1894986606),i=A(i,o,r,n,e[a+10],15,-1051523),n=A(n,i,o,r,e[a+1],21,-2054922799),r=A(r,n,i,o,e[a+8],6,1873313359),o=A(o,r,n,i,e[a+15],10,-30611744),i=A(i,o,r,n,e[a+6],15,-1560198380),n=A(n,i,o,r,e[a+13],21,1309151649),r=A(r,n,i,o,e[a+4],6,-145523070),o=A(o,r,n,i,e[a+11],10,-1120210379),i=A(i,o,r,n,e[a+2],15,718787259),n=A(n,i,o,r,e[a+9],21,-343485551),r=_(r,s),n=_(n,u),i=_(i,c),o=_(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(v(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}),C=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return f(n)};function k(e,t){return e<<t|e>>>32-t}var O=g("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=u}a[o-1][14]=(e.length-1)*8/4294967296,a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=(e.length-1)*8&4294967295;for(var l=0;l<o;++l){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=a[l][f];for(var p=16;p<80;++p)d[p]=k(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var h=r[0],m=r[1],y=r[2],g=r[3],v=r[4],_=0;_<80;++_){var b=Math.floor(_/20),w=k(h,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(b,m,y,g)+v+t[b]+d[_]>>>0;v=g,g=y,y=k(m,30)>>>0,m=h,h=w}r[0]=r[0]+h>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),x="00000000-0000-0000-0000-000000000000",R=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},33299:function(e,t,r){"use strict";var n,i,o,a,s=r(83454),u=r(64836),c=r(18698);Object.defineProperty(t,"__esModule",{value:!0});var l={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=function(e){if(!O)throw Error("React Context is unavailable in Server Components");var t,r,n,i,o,a,s=e.children,u=e.basePath,c=e.refetchInterval,l=e.refetchWhenOffline;u&&(T.basePath=u);var f=void 0!==e.session;T._lastSync=f?(0,v.now)():0;var y=m.useState(function(){return f&&(T._session=e.session),e.session}),g=(0,h.default)(y,2),b=g[0],w=g[1],E=m.useState(!f),S=(0,h.default)(E,2),A=S[0],R=S[1];m.useEffect(function(){return T._getSession=(0,p.default)(d.default.mark(function e(){var t,r,n=arguments;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(n.length>0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===T._session)){e.next=10;break}return T._lastSync=(0,v.now)(),e.next=7,x({broadcast:!r});case 7:return T._session=e.sent,w(T._session),e.abrupt("return");case 10:if(!(!t||null===T._session||(0,v.now)()<T._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return T._lastSync=(0,v.now)(),e.next=15,x();case 15:T._session=e.sent,w(T._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),k.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,R(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),T._getSession(),function(){T._lastSync=0,T._session=void 0,T._getSession=function(){}}},[]),m.useEffect(function(){var e=C.receive(function(){return T._getSession({event:"storage"})});return function(){return e()}},[]),m.useEffect(function(){var t=e.refetchOnWindowFocus,r=void 0===t||t,n=function(){r&&"visible"===document.visibilityState&&T._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),function(){return document.removeEventListener("visibilitychange",n,!1)}},[e.refetchOnWindowFocus]);var P=(t=m.useState("undefined"!=typeof navigator&&navigator.onLine),n=(r=(0,h.default)(t,2))[0],i=r[1],o=function(){return i(!0)},a=function(){return i(!1)},m.useEffect(function(){return window.addEventListener("online",o),window.addEventListener("offline",a),function(){window.removeEventListener("online",o),window.removeEventListener("offline",a)}},[]),n),H=!1!==l||P;m.useEffect(function(){if(c&&H){var e=setInterval(function(){T._session&&T._getSession({event:"poll"})},1e3*c);return function(){return clearInterval(e)}}},[c,H]);var N=m.useMemo(function(){return{data:b,status:A?"loading":b?"authenticated":"unauthenticated",update:function(e){return(0,p.default)(d.default.mark(function t(){var r;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(A||!b)){t.next=2;break}return t.abrupt("return");case 2:return R(!0),t.t0=v.fetchData,t.t1=T,t.t2=k,t.next=8,I();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return r=t.sent,R(!1),r&&(w(r),C.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",r);case 19:case"end":return t.stop()}},t)}))()}}},[b,A]);return(0,_.jsx)(O.Provider,{value:N,children:s})},t.getCsrfToken=I,t.getProviders=H,t.getSession=x,t.signIn=function(e,t,r){return M.apply(this,arguments)},t.signOut=function(e){return L.apply(this,arguments)},t.useSession=function(e){if(!O)throw Error("React Context is unavailable in Server Components");var t=m.useContext(O),r=null!=e?e:{},n=r.required,i=r.onUnauthenticated,o=n&&"unauthenticated"===t.status;return(m.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new 
4URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[o,i]),o)?{data:t.data,update:t.update,status:"loading"}:t};var d=u(r(64687)),f=u(r(38416)),p=u(r(17156)),h=u(r(27424)),m=E(r(67294)),y=E(r(26553)),g=u(r(30762)),v=r(29548),_=r(85893),b=r(527);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(w=function(e){return e?r:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var r=w(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){(0,f.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.keys(b).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(l,e))&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))});var T={baseUrl:(0,g.default)("https://eventpass.co").origin,basePath:(0,g.default)("https://eventpass.co").path,baseUrlServer:(0,g.default)(null!==(n=null!==(i=s.env.NEXTAUTH_URL_INTERNAL)&&void 0!==i?i:"https://eventpass.co")&&void 0!==n?n:s.env.VERCEL_URL).origin,basePathServer:(0,g.default)(null!==(o=s.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:"https://eventpass.co").path,_lastSync:0,_session:void 0,_getSession:function(){}},C=(0,v.BroadcastChannel)(),k=(0,y.proxyLogger)(y.default,T.basePath),O=t.SessionContext=null===(a=m.createContext)||void 0===a?void 0:a.call(m,void 0);function x(e){return R.apply(this,arguments)}function R(){return(R=(0,p.default)(d.default.mark(function e(t){var r,n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("session",T,k,t);case 2:return n=e.sent,(null===(r=null==t?void 0:t.broadcast)||void 0===r||r)&&C.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function I(e){return P.apply(this,arguments)}function P(){return(P=(0,p.default)(d.default.mark(function e(t){var r;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("csrf",T,k,t);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function H(){return N.apply(this,arguments)}function N(){return(N=(0,p.default)(d.default.mark(function e(){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("providers",T,k);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return(M=(0,p.default)(d.default.mark(function e(t,r,n){var i,o,a,s,u,c,l,f,p,h,m,y,g,_,b,w,E;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(o=(i=null!=r?r:{}).callbackUrl)?window.location.href:o,u=void 0===(s=i.redirect)||s,c=(0,v.apiBaseUrl)(T),e.next=4,H();case 4:if(l=e.sent){e.next=8;break}return window.location.href="".concat(c,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in l))){e.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:a})),e.abrupt("return");case 11:return f="credentials"===l[t].type,p="email"===l[t].type,h=f||p,m="".concat(c,"/").concat(f?"callback":"signin","/").concat(t),y="".concat(m).concat(n?"?".concat(new 
4URLSearchParams(n)):""),e.t0=fetch,e.t1=y,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=A,e.t5=A({},r),e.t6={},e.next=25,I();case 25:return e.t7=e.sent,e.t8=a,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return g=e.sent,e.next=36,g.json();case 36:if(_=e.sent,!(u||!h)){e.next=42;break}return w=null!==(b=_.url)&&void 0!==b?b:a,window.location.href=w,w.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(E=new URL(_.url).searchParams.get("error"),!g.ok){e.next=46;break}return e.next=46,T._getSession({event:"storage"});case 46:return e.abrupt("return",{error:E,status:g.status,ok:g.ok,url:E?null:_.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(){return(L=(0,p.default)(d.default.mark(function e(t){var r,n,i,o,a,s,u,c,l;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(n=(null!=t?t:{}).callbackUrl)?window.location.href:n,o=(0,v.apiBaseUrl)(T),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,I();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),a={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),a);case 13:return s=e.sent,e.next=16,s.json();case 16:if(u=e.sent,C.post({event:"session",data:{trigger:"signout"}}),!(null===(r=null==t?void 0:t.redirect)||void 0===r||r)){e.next=23;break}return l=null!==(c=u.url)&&void 0!==c?c:i,window.location.href=l,l.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,T._getSession({event:"storage"});case 25:return e.abrupt("return",u);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}},527:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26553:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){var n;r[e]=(n=(0,a.default)(i.default.mark(function r(n,a){var s,d;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(l[e](n,a),"error"===e&&(a=c(a)),a.client=!0,s="".concat(t,"/_log"),d=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({level:e,code:n},a)),!navigator.sendBeacon){r.next=8;break}return r.abrupt("return",navigator.sendBeacon(s,d));case 8:return r.next=10,fetch(s,{method:"POST",body:d,keepalive:!0});case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}},r)})),function(e,t){return n.apply(this,arguments)})};for(var s in e)n(s);return r}catch(e){return l}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var i=n(r(64687)),o=n(r(38416)),a=n(r(17156)),s=r(36925);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){var t;return e instanceof Error&&!(e instanceof s.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=c(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var l={error:function(e,t){t=c(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=l},30762:function(e,t){"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!==(t=e)&&void 0!==t?t:r),i=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${i}`;return{origin:n.origin,host:n.host,path:i,base:o,toString:()=>o}}},26689:function(e,t,r){var n=r(65885);n=n.default||n,e.exports=function(e,t){var r=e.req&&e.req.headers&&e.req.headers.cookie;return new n(r).getAll(t)}},5259:function(e,t){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.extends=r},14640:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(58248),i=r(19959),o=r(53646),a=r(81913);t.useFormatter=n.useFormatter,t.useTranslations=n.useTranslations,t.useLocale=i.default,t.NextIntlClientProvider=o.default,Object.keys(a).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},58248:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(81913);function i(e,t){return function(){try{return t(...arguments)}catch(e){throw Error(void 0)}}}let o=i(0,n.useTranslations),a=i(0,n.useFormatter);t.useFormatter=a,t.useTranslations=o,Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},19959:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(39332),i=r(63949),o=r(78553);t.default=function(){let e;let t=n.useParams();try{e=i.useLocale()}catch(r){if("string"!=typeof(null==t?void 0:t[o.LOCALE_SEGMENT_NAME]))throw r;e=t[o.LOCALE_SEGMENT_NAME]}return e}},53646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5259),i=r(67294),o=r(22566),a=i&&i.__esModule?i:{default:i};t.default=function(e){let{locale:t,...r}=e;if(!t)throw Error(void 0);return a.default.createElement(o.IntlProvider,n.extends({locale:t},r))}},78553:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",t.LOCALE_SEGMENT_NAME="locale"},29750:function(e,t,r){"use strict";r.d(t,{F:function(){return c},f:function(){return l}});var n=r(67294),i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(s))?e:u},l=e=>n.useContext(s)?e.children:n.createElement(f,{...e}),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:u="theme",themes:c=d,defaultTheme:l=r?"system":"light",attribute:f="data-theme",value:g,children:v,nonce:_})=>{let[b,w]=n.useState(()=>h(u,l)),[E,S]=n.useState(()=>h(u)),A=g?Object.values(g):c,T=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=y());let o=g?g[n]:n,s=t?m():null,u=document.documentElement;if("class"===f?(u.classList.remove(...A),o&&u.classList.add(o)):o?u.setAttribute(f,o):u.removeAttribute(f),a){let e=i.includes(l)?l:null,t=i.includes(n)?n:e;u.style.colorScheme=t}null==s||s()},[]),C=n.useCallback(e=>{let t="function"==typeof e?e(e):e;w(t);try{localStorage.setItem(u,t)}catch(e){}},[e]),k=n.useCallback(t=>{S(y(t)),"system"===b&&r&&!e&&T("system")},[b,e]);n.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),n.useEffect(()=>{let e=e=>{e.key===u&&C(e.newValue||l)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),n.useEffect(()=>{T(null!=e?e:b)},[e,b]);let O=n.useMemo(()=>({theme:b,setTheme:C,forcedTheme:e,resolvedTheme:"system"===b?E:b,themes:r?[...c,"system"]:c,systemTheme:r?E:void 0}),[b,C,e,E,r,c]);return n.createElement(s.Provider,{value:O},n.createElement(p,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:a,storageKey:u,themes:c,defaultTheme:l,attribute:f,value:g,children:v,attrs:A,nonce:_}),v)},p=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:u,value:c,attrs:l,nonce:d})=>{let f="system"===u,p="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${l.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?(i.includes(u)?u:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${u}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let o=c?c[e]:e,a=t?e+"|| ''":`'${o}'`,u="";return s&&n&&!t&&i.includes(e)&&(u+=`d.style.colorScheme = '${e}';`),"class"===r?t||o?u+=`c.add(${a})`:u+="null":o&&(u+=`d[s](n,${a})`),u},y=e?`!function(){${p}${m(e)}}()`:a?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${c?`var x=${JSON.stringify(c)};`:""}${m(c?"x[e]":"e",!0)}}${f?"":"else{"+m(u,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${c?`var x=${JSON.stringify(c)};`:""}${m(c?"x[e]":"e",!0)}}else{${m(u,!1,!1)};}${h}}catch(t){}}();`;
4return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:y}})}),h=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},y=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(551)}])},93809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(98267).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98267:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51770:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56612:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return m},usePathname:function(){return y},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return c.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return _},useSelectedLayoutSegment:function(){return b},redirect:function(){return l.redirect},permanentRedirect:function(){return l.permanentRedirect},RedirectType:function(){return l.RedirectType},notFound:function(){return d.notFound}});let n=r(67294),i=r(26216),o=r(50349),a=r(51770),s=r(48865),u=r(75160),c=r(50594),l=r(47573),d=r(29249),f=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function m(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new h(e):null,[e])}function y(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mou
4nted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(i.GlobalLayoutRouterContext),t=(0,n.useContext)(o.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],i=Array.isArray(t),o=i?t[1]:t;!o||o.startsWith(u.PAGE_SEGMENT_KEY)||(i&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):i&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function _(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let c=o[0],l=(0,s.getSegmentValue)(c);return!l||l.startsWith(u.PAGE_SEGMENT_KEY)?i:(i.push(l),e(o,r,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=_(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29249:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52445:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47573:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},redirect:function(){return l},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return p},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return m}});
4let o=r(67714),a=r(93809),s=r(52445),u="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=s.RedirectStatusCode.TemporaryRedirect);let n=Error(u);n.digest=u+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function l(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===u&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in s.RedirectStatusCode}function p(e){return f(e)?e.digest.split(";",3)[2]:null}function h(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(98267).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48865:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50594:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(61757)._(r(67294)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},85809:function(e,t,r){"use strict";r.d(t,{AF:function(){return h},Lw:function(){return u},NM:function(){return i},O:function(){return n},QP:function(){return f},c2:function(){return a},cG:function(){return y},iP:function(){return m},q4:function(){return d},qq:function(){return l},wL:function(){return s},xH:function(){return p},ye:function(){return o},z:function(){return c}});let n="6XEtbmhOyXUDBCpfwqOJIpEmdFxTV5KOV3Gi/uoROlE=",i="https://eventpass.co",o="414027695458963",a="c887ec2d4fd17c4fc70c2ea8d5eec2bc",s="124411842099-uhj3hof63vvt2rmrdrbrthuem7tkj0ef.apps.googleusercontent.com",u="zca_qo3x-y94Zjo22WrcWjp2",c="1657564935",l="848f18751f4bbb426e376b34b54365d5",d="1.3.1",f="https://service.eventpass.co/",p="https://ticket-api.eventpass.co/",h="EVPPS651fe913dbaeee51e0295be5",m="https://ticket.eventpass.co",y="https://short-url-api.eventpass.co/"},96647:function(e,t,r){"use strict";r.d(t,{GA:function(){return i}});let n=r(83454).env.GA_TRACKING_ID2,i={pageview(e){gtag("config","G-2HHNBX7E91",{page_path:e})},pageview2(e){gtag("config",n,{page_path:e})},event(e,t,r,n){gtag("event",e,{event_category:t,event_label:r,value:n})},click_login(e){let{eventCode:t,type:r=""}=e;gtag("event","login",{channel:r,event_code:t})},click_logout(e){let{eventCode:t}=e;gtag("event","logout",{event_code:t})},click_share(e){let{eventCode:t,type:r=""}=e;gtag("event","share",{share_to:r,event_code:t})},view_about_event(e){let{eventCode:t}=e;gtag("event","view_about_event",{event_code:t})},view_video(e){let{eventCode:t}=e;gtag("event","view_video",{event_code:t})},download_pass_id(e){let{eventCode:t}=e;gtag("event","download_pass_id",{event_code:t})},click_app(e){let{eventCode:t,platform:r}=e;
4gtag("event","click_app",{event_code:t,platform:r})},click_map(e){let{eventCode:t}=e;gtag("event","click_on_map",{event_code:t})},change_language(e){let{eventCode:t,language:r}=e;gtag("event","change_language",{event_code:t,to_language:r})},click_element(e){let{eventCode:t,element:r,page:n}=e;console.log("click_element >> ",{eventCode:t,element:r,page:n}),gtag("event","click_element",{event_code:t,element_name:r,page_name:n})},click_email_sms_link(e){let{eventCode:t}=e;gtag("event","click_email_sms_link",{event_code:t})},on_error(e){let{eventCode:t,page:r,location:n}=e;gtag("event","on_error",{event_code:t,page_name:r,location:n})},search_event(e){let{keyword:t,sortBy:r,isLogin:n}=e;console.log("gtag search_event"),"undefined"!=typeof gtag?gtag("event","search_event",{keyword:t,is_login:n,sortBy:r}):console.error("gtag is not defined")},view_item_list(e){let{items:t=[]}=e;"undefined"!=typeof gtag?gtag("event","view_item_list",{items:t}):console.error("gtag is not defined")},view_event_detail(e){let{eventCode:t,isLogin:r,ticketStatus:n}=e;console.log("gtag event detail"),"undefined"!=typeof gtag?gtag("event","view_event_detail",{event_code:t,is_login:r,ticket_status:n}):console.error("gtag is not defined")},view_item(e){let{currency:t="THB",value:r=0,items:n=[]}=e;"undefined"!=typeof gtag?gtag("event","view_item",{currency:t,value:r,items:n}):console.error("gtag is not defined")},add_to_cart(e){let{currency:t="THB",value:r=0,items:n=[]}=e;"undefined"!=typeof gtag?gtag("event","add_to_cart",{currency:t,value:r,items:n}):console.error("gtag is not defined")},remove_from_cart(e){let{currency:t="THB",value:r=0,items:n=[]}=e;"undefined"!=typeof gtag?gtag("event","remove_from_cart",{currency:t,value:r,items:n}):console.error("gtag is not defined")}}},551:function(e,t,r){"use strict";let n,i,o,a,s;r.r(t),r.d(t,{default:function(){return ed}});var u=r(85893),c=r(67294),l=r(14640),d=r(29750),f=r(11163),p=r.n(f),h=r(96647),m=r(8678),y=r(51145),g=r(90890),v=r(76876),_=r(251),b=r(98290),w=r(83206),E=r(51962);function S(e,t){let r,n=0,i=[],o=!0,a=0,s=[],{stop:u}=(0,w.Oo)(e,"message",({data:e})=>{if("wrote"!==e.type||e.streamId!==t)return;let o=s[0];o&&(o.id===e.id?(s.shift(),n+=e.additionalBytesCount,i.push(e.result),r=e.trailer,o.writeCallback?o.writeCallback(e.result.byteLength):o.finishCallback&&o.finishCallback()):o.id<e.id&&u())});function c(){let e=0===i.length?new Uint8Array(0):(0,E.Kb)(i.concat(r)),t={rawBytesCount:n,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return n=0,i=[],t}function l(){o||(e.postMessage({action:"reset",streamId:t}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(r,n){e.postMessage({action:"write",id:a,data:r,streamId:t}),s.push({id:a,writeCallback:n,data:r}),o=!1,a+=1},finish(e){l(),s.length?(s.forEach(e=>{delete e.writeCallback}),s[s.length-1].finishCallback=()=>e(c())):e(c())},finishSync(){l();let e=s.map(e=>e.data).join("");return s.length=0,{...c(),pendingData:e}},estimateEncodedBytesCount:e=>e.length/8,stop(){u()}}}var A=r(64513),T=r(88750),C=r(65483),k=r(13842),O=r(18797);function x({configuredUrl:e,error:t,source:r,scriptType:n}){var i;if(k.jf.error(`${r} failed to start: an error occurred while initializing the ${n}:`,t),t instanceof Event||t instanceof Error&&((i=t.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let t;t=e?`Please make sure the ${n} URL ${e} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",k.jf.error(`${t} See documentation at ${k.aA}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===n&&(0,O.Sz)(t)}let R=30*A.WT;function I(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([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]),n=new Uint8Array([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]),r=new 
vendor: 5,815 bytes, line 4
4Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 8,957 bytes, line 4
4for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
4=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
4i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.3.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let P={status:0};function H(e,t,r){switch(0===P.status&&function(e,t){try{let r=(0,T.C)(I)(e),{stop:n}=(0,w.Oo)(r,"error",r=>{N(e,t,r)}),{stop:i}=(0,w.Oo)(r,"message",({data:r})=>{var n;"errored"===r.type?N(e,t,r.error,r.streamId):"initialized"===r.type&&(n=r.version,1===P.status&&(P={status:3,worker:P.worker,stop:P.stop,version:n}))});r.postMessage({action:"init"}),(0,C.iK)(()=>{1===P.status&&(k.jf.error(`${t} failed to start: a timeout occurred while initializing the Worker`),P.initializationFailureCallbacks.forEach(e=>e()),P={status:2})},R),P={status:1,worker:r,stop:()=>{n(),i()},initializationFailureCallbacks:[]}}catch(r){N(e,t,r)}}(e,t),P.status){case 1:return P.initializationFailureCallbacks.push(r),P.worker;case 3:return P.worker}}function N(e,t,r,n){1===P.status||0===P.status?(x({configuredUrl:e.workerUrl,error:r,source:t,scriptType:"worker"}),1===P.status&&P.initializationFailureCallbacks.forEach(e=>e()),P={status:2}):(0,O.Sz)(r,{worker_version:3===P.status&&P.version,stream_id:n})}var M=r(75721),L=r(10193),U=r(64933);async function D(){try{return await (0,T.C)(j)()}catch(e){x({error:e,source:"Recorder",scriptType:"module"})}}async function j(){return(await r.e(1133).then(r.bind(r,47308))).startRecording}async function B(e,t,r){try{return await r}finally{e.notify(t)}}var $=r(85043);function K(){return void 0!==y.Z.Profiler}var F=r(89643);async function G(){try{return await (0,T.C)(W)()}catch(e){x({error:e,source:"Profiler",scriptType:"module"})}}async function W(){return(await r.e(9050).then(r.bind(r,36878))).createRumProfiler}let z=function(){let e;if((0,v.xT)()&&!(0,v.ke)("records"))return{start:_.Z,stop:_.Z,getReplayStats:()=>void 0,onRumStart:_.Z,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:t,shouldStartImmediately:r}=(e=0,{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:_.Z},shouldStartImmediately:t=>1===e||0===e&&!t.startSessionReplayRecordingManually});return{start:e=>t.start(e),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart:function(e,n,i,o,a,s){let u;t=function(e,t,r,n,i,o){let a,s=0;t.subscribe(9,()=>{(2===s||3===s)&&(d(),s=1)}),t.subscribe(10,()=>{1===s&&l()});let u=new M.y$;!function(e,t){let r,n,i;if(!e.metricsEnabled)return _.Z;let{unsubscribe:o}=t.subscribe(e=>{switch(e.type){case"start":r={forced:e.forced,timestamp:(0,A.n$)()},n=void 0,i=void 0;break;case"document-ready":r&&(n=(0,A._J)(r.timestamp,(0,A.n$)()));break;
4case"recorder-settled":r&&(i=(0,A._J)(r.timestamp,(0,A.n$)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var t,a,s;o(),r&&(0,O.qZ)("Recorder init metrics",{metrics:(t=r.forced,a=i,s=(0,A._J)(r.timestamp,(0,A.n$)()),{forced:t,loadRecorderModuleDuration:a,recorderInitDuration:s,result:e.type,waitForDocReadyDuration:n})})}})}(o,u);let c=async c=>{u.notify({type:"start",forced:c});let[l]=await Promise.all([B(u,{type:"recorder-settled"},D()),B(u,{type:"document-ready"},(0,L._)("interactive"))]);if(2!==s){u.notify({type:"aborted"});return}if(!l){s=0,u.notify({type:"recorder-load-failed"});return}let d=i();if(!d){s=0,u.notify({type:"deflate-encoder-load-failed"});return}({stop:a}=l(t,e,r,n,d,o)),s=3,u.notify({type:"succeeded"})};function l(t){var n;let i=r.findTrackedSession(),o=i?(0,g.nu)(i,e):void 0;if(!(void 0!==o&&(0!==o||t?.force))){s=1;return}if(2===(n=s)||3===n)return;s=2;let a=t&&t.force&&0===o||!1;c(a).catch(U.$y),a&&r.updateSessionState({forcedReplay:"1"})}function d(){3===s&&a?.(),s=0}return{start:l,stop:d,getSessionReplayLink:()=>(function(e,t,r,n){let i=t.findTrackedSession(),o=i?0===(0,g.nu)(i,e)?"incorrect-session-plan":n?void 0:"replay-not-started":"rum-not-tracked",a=r.findView();return(0,g.Gm)(e,{viewContext:a,errorType:o,session:i})})(e,r,n,0!==s),isRecording:()=>3===s}}(n,e,i,o,function(){return!u&&(a??(a=H(n,"Datadog Session Replay",()=>t.stop())),a&&(u=S(a,1))),u},s),r(n)&&t.start()},isRecording:()=>3===P.status&&t.isRecording(),getReplayStats:e=>3===P.status?(0,b.MA)(e):void 0}}(),V=(0,g._r)(z,{onRumStart:function(e,t,r,n,i,o){let a;let u=n.findTrackedSession();if(!u||!(0,$.HR)(u.id,(0,$.HQ)(r.sessionSampleRate,r.profilingSampleRate)))return;let c=(a={status:"starting"},t.assemble.register(({eventType:e})=>e!==g.D$.VIEW&&e!==g.D$.LONG_TASK&&e!==g.D$.ACTION&&e!==g.D$.VITAL?F.kb:{type:e,_dd:{profiling:a}}),{get:()=>a,set:e=>{a=e}});if(!(0,T.C)(K)()){c.set({status:"error",error_reason:"not-supported-by-browser"});return}G().then(t=>{if(!t){c.set({status:"error",error_reason:"failed-to-lazy-load"});return}(s=t(r,e,n,c,o,i,void 0)).start()}).catch(U.$y)},stop:()=>{s?.stop()}},{startDeflateWorker:H,createDeflateEncoder:S,sdkName:"rum"});(0,m.y)(y.Z,"DD_RUM",V);var J=r(70170);let q=[],Z=[];function X(){let e=(0,T.C)(f.useRouter)(),t=(0,T.C)(c.useRef)(null);if(!e.isReady)return null;let r=e.asPath.split(/[?#]/)[0];return t.current!==r&&(t.current=r,function(e){if(n){let t=o?(0,J.Q2)(o,window.location.origin).href:void 0;o=void 0,n.startView({name:e,url:t})}}(e.pathname)),null}r(39332);var Y=r(24507);let Q=[],ee={didCatch:!1,error:null};function et(e,t="ErrorBoundary"){let r=class extends c.Component{constructor(e){super(e),this.resetError=()=>{this.setState(ee)},this.state=ee}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}componentDidCatch(t,r){e(t,r)}render(){return this.state.didCatch?c.createElement(this.props.fallback,{error:this.state.error,resetError:this.resetError}):this.props.children}};return r.displayName=t,r}et(function(e,t){var r;let n=(0,Y.Xp)("react error"),i=(0,A.$I)();r=r=>{(0,U.L6)(()=>{r({error:e,handlingStack:n,componentStack:t.componentStack??void 0,startClocks:i,context:{...e.dd_context,framework:"react"}})})},a?r(a):Q.push(r)}),et(function(e,t){var r;let n=(0,Y.Xp)("nextjs error"),o=(0,A.$I)();r=r=>{(0,U.L6)(()=>{r({error:e,handlingStack:n,componentStack:t?.componentStack??void 0,startClocks:o,context:{...e.dd_context,...e.digest&&{nextjs:{digest:e.digest}},framework:"nextjs"}})})},i?r(i):Z.push(r)});let er=!1;function en(){var e,t,r,o;if(er)return;let a="38e9dffe-5ada-4cea-9451-248a7deaabb3".trim(),s="pubbe52029825815f0a8e3180875eed13d0".trim();if(!a||!s){er=!0;return}let u=["https://service.eventpass.co/","https://ticket-api.eventpass.co/"].filter(
4Boolean).map(e=>String(e).replace(/\/$/,""));try{V.init({applicationId:a,clientToken:s,site:((e="datadoghq.com",void 0===e)?void 0:e.trim())||"datadoghq.com",service:((t="Eventpass-Web",void 0===t)?void 0:t.trim())||"Eventpass-Web",env:((r="prod",void 0===r)?void 0:r.trim())||"prod",version:((o="1.3.1",void 0===o)?void 0:o.trim())||"0.0.0",sessionSampleRate:100,sessionReplaySampleRate:20,trackResources:!0,trackUserInteractions:!0,trackLongTasks:!0,...u.length>0&&{allowedTracingUrls:u},defaultPrivacyLevel:"mask-user-input",beforeSend:e=>{var t,r;return"error"!==e.type||(r=(null===(t=e.error)||void 0===t?void 0:t.message)||"",!(/script error\.?/i.test(r)||/^Load failed$/i.test(r)||/Failed to fetch RSC payload/i.test(r)||/webkit\.messageHandlers/i.test(r)))},plugins:[{name:"nextjs",onInit({publicApi:e,initConfiguration:t}){for(let r of(n=e,t.trackViewsManually=!0,q))r(e)},onRumStart({addError:e}){if(i=e,e)for(let t of Z)t(e)}}]})}catch(e){console.error("[DatadogInit] failed to initialize RUM:",e)}er=!0}function ei(){return en(),(0,u.jsx)(X,{})}en();var eo=r(6258),ea=r(33299),es=r(88152);function eu(){let{status:e}=(0,ea.useSession)(),t=(0,f.useRouter)(),r=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{if("loading"===e)return;let n=eo.Z.get("token");if("authenticated"===e){n&&eo.Z.remove("token"),eo.Z.get("account")&&eo.Z.remove("account"),r.current=!0;return}n&&!r.current&&(r.current=!0,(async()=>{try{await (0,ea.signIn)("bypass",{accessToken:n,locale:t.locale||"th",redirect:!1}),(0,es.K9)(),eo.Z.remove("token"),eo.Z.remove("account")}catch(e){r.current=!1}})())},[e,t.locale]),null}r(89575),r(74471),r(25545),r(29016),r(5389),r(55889),r(6680),r(74402),r(33485),r(11967),r(44672),r(83087);let{SessionProvider:ec}=r(33299);function el(){return c.useEffect(()=>{r.e(1767).then(r.t.bind(r,51767,23)).then(e=>e.default).then(e=>{e.init("1040350040494972",null,{autoConfig:!0,debug:!0}),e.pageView(),p().events.on("routeChangeComplete",()=>{e.pageView()})})}),null}function ed(e){let{Component:t,pageProps:{session:r,message:n,...i}}=e,o=(0,f.useRouter)();return(0,c.useEffect)(()=>{o.events.on("routeChangeComplete",e=>{h.GA.pageview(e),h.GA.pageview2(e)})},[]),(0,u.jsx)(l.NextIntlClientProvider,{locale:o.locale,messages:n,children:(0,u.jsx)(ec,{session:r,children:(0,u.jsxs)(d.f,{attribute:"class",defaultTheme:"light",children:[(0,u.jsx)(eu,{}),(0,u.jsx)(ei,{}),(0,u.jsx)(el,{}),(0,u.jsx)(t,{...i})]})})})}console.log=function(){},console.warn=function(){},console.error=function(){}},88152:function(e,t,r){"use strict";r.d(t,{$X:function(){return v},$q:function(){return c},K9:function(){return m},LP:function(){return g},On:function(){return h},S_:function(){return w},_5:function(){return y},e2:function(){return _}});var n=r(6258),i=r(26689),o=r.n(i),a=r(82260),s=r(33299),u=r(85809);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||"object"!=typeof e)return null;let{accessToken:t,token:r,tokenTicket:n,iat:i,exp:o,jti:a,sub:s,nbf:u,error:c,picture:l,image:d,...f}=e;return f&&0!==Object.keys(f).length?(d&&!f.profile_url&&(f.profile_url=d),l&&!f.profile_url&&(f.profile_url=l),f):null},l=null,d=0,f="",p=!1,h=e=>{f=e||"",p=!0},m=()=>{l=null,d=0,f="",p=!1};function y(){n.Z.remove("token"),n.Z.remove("misc"),n.Z.remove("account"),n.Z.remove("newAccount"),n.Z.remove("session"),n.Z.remove("updateAcc"),m()}let g=async e=>{try{let t=await (0,a.getToken)({req:e.req,secret:u.O});if(null==t?void 0:t.accessToken)return t.accessToken}catch(e){}let{token:t}=o()(e);return t},v=async()=>{let e=Date.now();if(null!==l&&e-d<15e3)return l;let t="";try{let e=await (0,s.getSession)();t=(null==e?void 0:e.accessToken)||"",(null==e?void 0:e.tokenTicket)!==void 0&&h(e.tokenTicket)}catch(e){t=""}return t||(t=n.Z.get("token")||""),l=t,d=e,t},_=(e,t)=>{if(!e)return e||"";try{let r=new URL(e);return r.searchParams.set("source","eventpassweb"),t&&r.searchParams.set("token",t),r.toString()}catch(i){let r=["source=eventpassweb"];t&&r.push("token=".concat(encodeURIComponent(t)));let n=e.includes("?")?"&":"?";return"".concat(e).concat(n).concat(r.join("&"))}},b=async()=>{try{let e=await (0,s.getSession)(),t=(null==e?void 0:e.tokenTicket)||"";return h(t),t}catch(e){return f}},w=async e=>{if(!e)return;let t=p?f:await b();window.location.assign(_(e,t))}},89575:function(){},29016:function(){},74471:function(){},33485:function(){},74402:function(){},55889:function(){},5389:function(){},11967:function(){},44672:function(){},83087:function(){},6680:function(){},25545:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function d(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
4if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},39332:function(e,t,r){e.exports=r(56612)},11163:function(e,t,r){e.exports=r(73035)},65353:function(e,t,r){"use strict";r.d(t,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},65885:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(38087);function i(e,t){void 0===t&&(t={});var r,n=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(r=t.doNotParse)&&(r=!n||"{"!==n[0]&&"["!==n[0]&&'"'!==n[0]),!r)try{return JSON.parse(n)}catch(e){}return e}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?n.Q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=n.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=i(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o(o({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=o(o({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
4);this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},38087:function(e,t){"use strict";/*!
5 * cookie
6 * Copyright(c) 2012-2014 Roman Shtylman
7 * Copyright(c) 2015 Douglas Christopher Wilson
8 * MIT Licensed
9 */t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(";"),o=(t||{}).decode||r,a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");if(!(u<0)){var c=s.substring(0,u).trim();if(void 0==n[c]){var l=s.substring(u+1,s.length).trim();'"'===l[0]&&(l=l.slice(1,-1)),n[c]=function(e,t){try{return t(e)}catch(t){return e}}(l,o)}}}return n},t.q=function(e,t,r){var o=r||{},a=o.encode||n;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=o.maxAge){var c=o.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(o.domain){if(!i.test(o.domain))throw TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
9d");u+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=decodeURIComponent,n=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},22566:function(e,t,r){"use strict";e.exports=r(13928)},63949:function(e,t,r){"use strict";e.exports=r(21214)},81913:function(e,t,r){"use strict";e.exports=r(1617)},70837:function(e,t,r){"use strict";let n=r(67294).createContext(void 0);t.IntlContext=n},13928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(67294),i=r(16414),o=r(70837);r(95957);var a=n&&n.__esModule?n:{default:n};t.IntlProvider=function(e){let{children:t,defaultTranslationValues:r,formats:s,getMessageFallback:u,locale:c,messages:l,now:d,onError:f,timeZone:p}=e,h=n.useMemo(()=>i.createCache(),[c]),m=n.useMemo(()=>i.createIntlFormatters(h),[h]),y=n.useMemo(()=>({...i.initializeConfig({locale:c,defaultTranslationValues:r,formats:s,getMessageFallback:u,messages:l,now:d,onError:f,timeZone:p}),formatters:m,cache:h}),[h,r,s,m,u,c,l,d,f,p]);return a.default.createElement(o.IntlContext.Provider,{value:y},t)}},54633:function(e,t,r){"use strict";var n=r(67294),i=r(70837);function o(){let e=n.useContext(i.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=o,t.useLocale=function(){return o().locale}},21214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(54633);r(67294),r(70837),t.useLocale=n.useLocale},17097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(28973),i=r(16414);r(26913),r(67294),r(95957),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t._createCache=i.createCache,t._createIntlFormatters=i.createIntlFormatters,t.initializeConfig=i.initializeConfig,t.createTranslator=function(e){let{_cache:t=i.createCache(),_formatters:r=i.createIntlFormatters(t),getMessageFallback:o=i.defaultGetMessageFallback,messages:a,namespace:s,onError:u=i.defaultOnError,...c}=e;return function(e,t){let{messages:r,namespace:i,...o}=e;return r=r[t],i=n.resolveNamespace(i,t),n.createBaseTranslator({...o,messages:r,namespace:i})}({...c,onError:u,cache:t,formatters:r,getMessageFallback:o,messages:{"!":a},namespace:s?"!.".concat(s):"!"},"!")}},28973:function(e,t,r){"use strict";var n,i=r(26913),o=r(67294),a=r(16414),s=i&&i.__esModule?i:{default:i};function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let c=((n={}).MISSING_MESSAGE="MISSING_MESSAGE",n.MISSING_FORMAT="MISSING_FORMAT",n.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",n.INSUFFICIENT_PATH="INSUFFICIENT_PATH",n.INVALID_MESSAGE="INVALID_MESSAGE",n.INVALID_KEY="INVALID_KEY",n.FORMATTING_ERROR="FORMATTING_ERROR",n);class l extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),u(this,"code",void 0),u(this,"originalMessage",void 0),this.code=e,t&&(this.originalMessage=t)}}function d(e,t){return e?Object.keys(e).reduce((r,n)=>(r[n]={timeZone:t,...e[n]},r),{}):e}function f(e,t,r,n){let i=a.joinPath(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+" (".concat(e,")"));o=r}),o}let p=365/12*86400,h={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};t.IntlError=l,t.IntlErrorCode=c,t.createBaseTranslator=function(e){let t=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultOnError;try{if(!t)throw Error(void 0);let n=r?f(e,t,r):t;if(!n)throw Error(r);return n}catch(t){let e=new l(c.MISSING_MESSAGE,t.message);return n(e),e}}(e.locale,e.messages,e.namespace,e.onError);return function(e){let{cache:t,defaultTranslationValues:r,formats:n,formatters:i,getMessageFallback:u=a.defaultGetMessageFallback,locale:p,messagesOrError:h,namespace:m,onError:y,timeZone:g}=e,v=h instanceof l;function _(e,t,r){let n=new l(t,r);return y(n),u({error:n,key:e,namespace:m})}function b(e,l,y){let b,w;if(v)return u({error:h,key:e,namespace:m});try{b=f(p,h,e,m)}catch(t){return _(e,c.MISSING_MESSAGE,t.message)}if("object"==typeof b){let t;return _(e,Array.isArray(b)?c.INVALID_MESSAGE:c.INSUFFICIENT_PATH,t)}let E=function(e,t){if(t)return;let r=e.replace(/'([{}])/gi,"$1");return/<|{/.test(r)?void 0:r}(b,l);if(E)return E;i.getMessageFormat||(i.getMessageFormat=a.memoFn(function(){return new s.default(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],{formatters:i,...arguments.length<=3?void 0:arguments[3]})},t.message));try{w=i.getMessageFormat(b,p,function(e,t){let r=t?{...e,dateTime:d(e.dateTime,t)}:e,n=s.default.formats.date,i=t?d(n,t):n,o=s.default.formats.time,a=t?d(o,t):o;return{...r,date:{...i,...r.dateTime},time:{...a,...r.dateTime}}}({...n,...y},g),{formatters:{...i,getDateTimeFormat:(e,t)=>
9i.getDateTimeFormat(e,{timeZone:g,...t})}})}catch(t){return _(e,c.INVALID_MESSAGE,t.message)}try{let e=w.format(function(e){if(0===Object.keys(e).length)return;let t={};return Object.keys(e).forEach(r=>{let n,i=0,a=e[r];n="function"==typeof a?e=>{let t=a(e);return o.isValidElement(t)?o.cloneElement(t,{key:r+i++}):t}:a,t[r]=n}),t}({...r,...l}));if(null==e)throw Error(void 0);return o.isValidElement(e)||Array.isArray(e)||"string"==typeof e?e:String(e)}catch(t){return _(e,c.FORMATTING_ERROR,t.message)}}function w(e,t,r){let n=b(e,t,r);return"string"!=typeof n?_(e,c.INVALID_MESSAGE,void 0):n}return w.rich=b,w.markup=(e,t,r)=>{let n=b(e,t,r);if("string"!=typeof n){let t=new l(c.FORMATTING_ERROR,void 0);return y(t),u({error:t,key:e,namespace:m})}return n},w.raw=e=>{if(v)return u({error:h,key:e,namespace:m});try{return f(p,h,e,m)}catch(t){return _(e,c.MISSING_MESSAGE,t.message)}},w.has=e=>{if(v)return!1;try{return f(p,h,e,m),!0}catch(e){return!1}},w}({...e,messagesOrError:t})},t.createFormatter=function(e){let{_cache:t=a.createCache(),_formatters:r=a.createIntlFormatters(t),formats:n,locale:i,now:o,onError:s=a.defaultOnError,timeZone:u}=e;function d(e){var t;return null!==(t=e)&&void 0!==t&&t.timeZone||(u?e={...e,timeZone:u}:s(new l(c.ENVIRONMENT_FALLBACK,void 0))),e}function f(e,t,r,n){let i;try{i=function(e,t){let r;if("string"==typeof t){if(!(r=null==e?void 0:e[t])){let e=new l(c.MISSING_FORMAT,void 0);throw s(e),e}}else r=t;return r}(t,e)}catch(e){return n()}try{return r(i)}catch(e){return s(new l(c.FORMATTING_ERROR,e.message)),n()}}function m(e,t){return f(t,null==n?void 0:n.dateTime,t=>(t=d(t),r.getDateTimeFormat(i,t).format(e)),()=>String(e))}function y(){return o||(s(new l(c.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:m,number:function(e,t){return f(t,null==n?void 0:n.number,t=>r.getNumberFormat(i,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let o,a;let s={};t instanceof Date||"number"==typeof t?o=new Date(t):t&&(o=null!=t.now?new Date(t.now):y(),a=t.unit,s.style=t.style,s.numberingSystem=t.numberingSystem),o||(o=y());let u=(new Date(e).getTime()-o.getTime())/1e3;a||(a=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<p?"week":t<31536e3?"month":"year"}(u)),s.numeric="second"===a?"auto":"always";let c=(n=a,Math.round(u/h[n]));return r.getRelativeTimeFormat(i,s).format(c,a)}catch(t){return s(new l(c.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t){let o=[],a=new Map,s=0;for(let t of e){let e;"object"==typeof t?(e=String(s),a.set(e,t)):e=String(t),o.push(e),s++}return f(t,null==n?void 0:n.list,e=>{let t=r.getListFormat(i,e).formatToParts(o).map(e=>"literal"===e.type?e.value:a.get(e.value)||e.value);return a.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,o){return f(o,null==n?void 0:n.dateTime,n=>(n=d(n),r.getDateTimeFormat(i,n).formatRange(e,t)),()=>[m(e),m(t)].join(" – "))}}},t.resolveNamespace=function(e,t){return e===t?void 0:e.slice((t+".").length)}},1617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(28973),i=r(17097),o=r(16414),a=r(13928),s=r(85982),u=r(54633);r(26913),r(67294),r(95957),r(70837),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.createTranslator=i.createTranslator,t._createCache=o.createCache,t._createIntlFormatters=o.createIntlFormatters,t.initializeConfig=o.initializeConfig,t.IntlProvider=a.IntlProvider,t.useFormatter=s.useFormatter,t.useMessages=s.useMessages,t.useNow=s.useNow,t.useTimeZone=s.useTimeZone,t.useTranslations=s.useTranslations,t.useLocale=u.useLocale},16414:function(e,t,r){"use strict";var n=r(95957);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(".")}function o(e){return i(e.namespace,e.key)}function a(e){console.error(e)}function s(e,t){return n.memoize(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:n.strategies.variadic})}function u(e,t){return s(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)},t)}t.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},t.createIntlFormatters=function(e){return{getDateTimeFormat:u(Intl.DateTimeFormat,e.dateTime),getNumberFormat:u(Intl.NumberFormat,e.number),getPluralRules:u(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:u(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:u(Intl.ListFormat,e.list),getDisplayNames:u(Intl.DisplayNames,e.displayNames)}},t.defaultGetMessageFallback=o,t.defaultOnError=a,t.initializeConfig=function(e){let{getMessageFallback:t,messages:r,onError:n,...i}=e;return{...i,messages:r,onError:n||a,getMessageFallback:t||o}},t.joinPath=i,t.memoFn=s},85982:function(e,t,r){"use strict";
9Object.defineProperty(t,"__esModule",{value:!0});var n=r(13928),i=r(54633),o=r(67294),a=r(28973);r(16414),r(95957),r(70837),r(26913);let s=!1,u="undefined"==typeof window;t.IntlProvider=n.IntlProvider,t.useLocale=i.useLocale,t.useFormatter=function(){let{formats:e,formatters:t,locale:r,now:n,onError:s,timeZone:u}=i.useIntlContext();return o.useMemo(()=>a.createFormatter({formats:e,locale:r,now:n,onError:s,timeZone:u,_formatters:t}),[e,t,n,r,s,u])},t.useMessages=function(){let e=i.useIntlContext();if(!e.messages)throw Error(void 0);return e.messages},t.useNow=function(e){let t=null==e?void 0:e.updateInterval,{now:r}=i.useIntlContext(),[n,a]=o.useState(r||new Date);return o.useEffect(()=>{if(!t)return;let e=setInterval(()=>{a(new Date)},t);return()=>{clearInterval(e)}},[r,t]),null==t&&r?r:n},t.useTimeZone=function(){return i.useIntlContext().timeZone},t.useTranslations=function(e){return function(e,t,r){let{cache:n,defaultTranslationValues:c,formats:l,formatters:d,getMessageFallback:f,locale:p,onError:h,timeZone:m}=i.useIntlContext(),y=e[r],g=a.resolveNamespace(t,r);return m||s||!u||(s=!0,h(new a.IntlError(a.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>a.createBaseTranslator({cache:n,formatters:d,getMessageFallback:f,messages:y,defaultTranslationValues:c,namespace:g,onError:h,formats:l,locale:p,timeZone:m}),[n,d,f,y,c,g,h,l,p,m])}({"!":i.useIntlContext().messages},e?"!.".concat(e):"!","!")}},83801:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},66115:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},17156:function(e){function t(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,r){var n=r(69617),i=r(6015);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return r&&i(a,r.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e,t,r){var n=r(64062);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e,t,r){var n=r(64062);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,t,r){var n=r(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}
vendor: 6,824 bytes, line 9
9,64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},46035:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},69617:function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,r){var n=r(18698).default,i=r(66115);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},72331:function(e,t,r){var n=r(61169);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(e,i,o,a){var s=Object.create((i&&i.prototype instanceof l?i:l).prototype);return n(s,"_invoke",function(e,n,i){var o,a,s,u=0,l=i||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return o=e,a=0,s=t,f.n=r,c}};function p(e,n){for(a=e,s=n,r=0;!d&&u&&!i&&r<l.length;r++){var i,o=l[r],p=f.p,h=o[2];e>3?(i=h===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=e<2&&p<o[1])?(a=0,f.v=n,f.n=o[1]):p<h&&(i=e<3||o[0]>n||n>h)&&(o[4]=e,o[5]=n,f.n=h,a=0))}if(i||e>1)return c;throw d=!0,n}return function(i,l,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,h),a=l,s=h;(r=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(u=2,o){if(a||(i="next"),r=o[i]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=o.return)&&r.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((r=(d=f.n<0)?s:e.call(n,f))!==c)break}catch(e){o=t,a=1,s=e}finally{u=1}}return{value:r,done:d}}}(e,o,a),!0),s}var c={};function l(){}function d(){}function f(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),h=f.prototype=l.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=f,n(h,"constructor",f),n(f,"constructor",d),d.displayName="GeneratorFunction",n(f,s,"GeneratorFunction"),n(h),n(h,s,"Generator"),n(h,a,function(){return this}),n(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:u,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},34132:function(e,t,r){var n=r(91034);e.exports=function(e,t,r,i,o){var a=n(e,t,r,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},91034:function(e,t,r){var n=r(72331),i=r(73524);e.exports=function(e,t,r,o,a){return new i(n().w(e,t,r,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},73524:function(e,t,r){var n=r(83801),i=r(61169);e.exports=function e(t,r){var o;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,i,a){function s(){return new r(function(i,o){(function e(i,o,a,s){try{var u=t[i](o),c=u.value;return c instanceof n?r.resolve(c.v).then(function(t){e("next",t,a,s)},function(t){e("throw",t,a,s)}):r.resolve(c).then(function(e){u.value=e,a(u)},function(t){return e("throw",t,a,s)})}catch(e){s(e)}})(e,a,i,o)})}return o=o?o.then(s,s):s()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},61169:function(e){function t(r,n,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}e.exports=t=function(e,r,n,i){function o(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},62261:function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,r){var n=r(83801),i=r(72331),o=r(34132),a=r(91034),s=r(73524),u=r(62261),c=r(38249);function l(){"use strict";var t=i(),r=t.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,c(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,i){return t.w(h(e),r,n,i&&i.reverse())},isGeneratorFunction:f,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:s,async:function(e,t,r,n,i){return(f(t)?a:o)(h(e),t,r,n,i)},keys:u,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},38249:function(e,t,r){var n=r(18698).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
9if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),i=r(68872),o=r(86116),a=r(12218);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,i=r(95036);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},33496:function(e,t,r){var n=r(73808),i=r(6015),o=r(46035),a=r(3515);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,r){var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},64513:function(e,t,r){"use strict";let n;r.d(t,{$I:function(){return h},DY:function(){return y},MN:function(){return _},P5:function(){return s},Pv:function(){return b},U:function(){return w},WK:function(){return f},WT:function(){return i},_J:function(){return l},_q:function(){return p},cQ:function(){return m},dV:function(){return a},dg:function(){return d},lO:function(){return g},m6:function(){return u},n$:function(){return c},yR:function(){return o},zj:function(){return v}});let i=1e3,o=6e4,a=36e5,s=31536e6;function u(){return new Date().getTime()}function c(){return u()}function l(e,t){return t-e}function d(e){return"number"!=typeof e?e:Math.round(1e6*e)}function f(e,t){return e+t}function p(){return performance.now()}function h(){return{relative:p(),timeStamp:c()}}function m(){return{relative:0,timeStamp:w()}}function y(e){return{relative:e,timeStamp:function(e){let t=u()-performance.now();return t>w()?Math.round(t+e):Math.round(w()+e)}(e)}}function g(e){return{relative:v(e),timeStamp:e}}function v(e){return e-w()}function _(e){return e<s}function b(){return Math.round(u()-(w()+performance.now()))}function w(){return void 0===n&&(n=performance.timing?.navigationStart??performance.timeOrigin),n}},99718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a},hkdf:function(){return a}});let n=()=>
9{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")};var i=async(e,t,r,i,o)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),o<<3))};function o(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function a(e,t,r,n,a){return i(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=o(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),o(r,"salt"),function(e){let t=o(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(n),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}(a,e))}},45595:function(e,t,r){"use strict";r.r(t),r.d(t,{CompactEncrypt:function(){return tf},CompactSign:function(){return tm},EmbeddedJWK:function(){return tA},EncryptJWT:function(){return tb},FlattenedEncrypt:function(){return e6},FlattenedSign:function(){return th},GeneralEncrypt:function(){return e4},GeneralSign:function(){return tg},SignJWT:function(){return t_},UnsecuredJWT:function(){return tH},base64url:function(){return i},calculateJwkThumbprint:function(){return tE},calculateJwkThumbprintUri:function(){return tS},compactDecrypt:function(){return eX},compactVerify:function(){return tr},createLocalJWKSet:function(){return tx},createRemoteJWKSet:function(){return tP},cryptoRuntime:function(){return tF},decodeJwt:function(){return tU},decodeProtectedHeader:function(){return tL},errors:function(){return n},exportJWK:function(){return e2},exportPKCS8:function(){return e1},exportSPKI:function(){return e0},flattenedDecrypt:function(){return eZ},flattenedVerify:function(){return tt},generalDecrypt:function(){return eY},generalVerify:function(){return tn},generateKeyPair:function(){return t$},generateSecret:function(){return tK},importJWK:function(){return eD},importPKCS8:function(){return eU},importSPKI:function(){return eM},importX509:function(){return eL},jwtDecrypt:function(){return td},jwtVerify:function(){return tl}});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:function(){return S},JOSEError:function(){return b},JOSENotSupported:function(){return A},JWEDecompressionFailed:function(){return C},JWEDecryptionFailed:function(){return T},JWEInvalid:function(){return k},JWKInvalid:function(){return R},JWKSInvalid:function(){return I},JWKSMultipleMatchingKeys:function(){return H},JWKSNoMatchingKey:function(){return P},JWKSTimeout:function(){return N},JWSInvalid:function(){return O},JWSSignatureVerificationFailed:function(){return M},JWTClaimValidationFailed:function(){return w},JWTExpired:function(){return E},JWTInvalid:function(){return x}});var i={};r.r(i),r.d(i,{decode:function(){return tM},encode:function(){return tN}});var o=crypto;let a=e=>e instanceof CryptoKey,s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await o.subtle.digest(r,t))},u=new TextEncoder,c=new TextDecoder;function l(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),n=0;return e.forEach(e=>{r.set(e,n),n+=e.length}),r}function d(e,t,r){if(t<0||t>=4294967296)throw RangeError(`value must be >= 0 and <= ${4294967296-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function f(e){let t=new Uint8Array(8);return d(t,Math.floor(e/4294967296),0),d(t,e%4294967296,4),t}function p(e){let t=new Uint8Array(4);return d(t,e),t}function h(e){return l(p(e.length),e)}async function m(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(p(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await s("sha256",n),32*t)}return i.slice(0,t>>3)}let y=e=>{let t=e;"string"==typeof t&&(t=u.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))},g=e=>y(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),v=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},_=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return v(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};
9class b extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class w extends b{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class E extends b{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class S extends b{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class A extends b{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class T extends b{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class C extends b{constructor(){super(...arguments),this.code="ERR_JWE_DECOMPRESSION_FAILED",this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}class k extends b{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class O extends b{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class x extends b{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class R extends b{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class I extends b{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class P extends b{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class H extends b{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class N extends b{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class M extends b{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}var L=o.getRandomValues.bind(o);function U(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new A(`Unsupported JWE Algorithm: ${e}`)}}var D=e=>L(new Uint8Array(U(e)>>3)),j=(e,t)=>{if(t.length<<3!==U(e))throw new k("Invalid Initialization Vector length")},B=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new k(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},$=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};function K(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function F(e,t){return e.name===t}function G(e){return parseInt(e.name.slice(4),10)}function W(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function z(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!F(e.algorithm,"AES-GCM"))throw K("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw K(r,"algorithm.length");break}
9case"A128KW":case"A192KW":case"A256KW":{if(!F(e.algorithm,"AES-KW"))throw K("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw K(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw K("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!F(e.algorithm,"PBKDF2"))throw K("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!F(e.algorithm,"RSA-OAEP"))throw K("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(G(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}W(e,r)}function V(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var J=(e,...t)=>V("Key must be ",e,...t);function q(e,t,...r){return V(`Key for the ${e} algorithm must be `,t,...r)}var Z=e=>a(e);let X=["CryptoKey"];async function Y(e,t,r,n,i,a){let s,u;if(!(t instanceof Uint8Array))throw TypeError(J(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),d=await o.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),p=await o.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),h=l(a,n,r,f(a.length<<3)),m=new Uint8Array((await o.subtle.sign("HMAC",p,h)).slice(0,c>>3));try{s=$(i,m)}catch(e){}if(!s)throw new T;try{u=new Uint8Array(await o.subtle.decrypt({iv:n,name:"AES-CBC"},d,r))}catch(e){}if(!u)throw new T;return u}async function Q(e,t,r,n,i,a){let s;t instanceof Uint8Array?s=await o.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(z(t,e,"decrypt"),s=t);try{return new Uint8Array(await o.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,l(r,i)))}catch(e){throw new T}}let ee=async(e,t,r,n,i,o)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(J(t,...X,"Uint8Array"));switch(j(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&B(t,parseInt(e.slice(-3),10)),Y(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&B(t,parseInt(e.slice(1,4),10)),Q(e,t,r,n,i,o);default:throw new A("Unsupported JWE Content Encryption Algorithm")}},et=async()=>{throw new A('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},er=async()=>{throw new A('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')};var en=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function ei(e){if(!("object"==typeof e&&null!==e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var eo=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ea(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function es(e,t,r){if(a(e))return z(e,t,r),e;if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(J(e,...X,"Uint8Array"))}let eu=async(e,t,r)=>{let n=await es(t,e,"wrapKey");ea(n,e);let i=await o.subtle.importKey("raw",r,...eo);return new Uint8Array(await o.subtle.wrapKey("raw",i,n,"AES-KW"))},ec=async(e,t,r)=>{let n=await es(t,e,"unwrapKey");ea(n,e);let i=await o.subtle.unwrapKey("raw",r,n,"AES-KW",...eo);return new Uint8Array(await o.subtle.exportKey("raw",i))};async function el(e,t,r,n,i=new Uint8Array(0),s=new Uint8Array(0)){let c;if(!a(e))throw TypeError(J(e,...X));if(z(e,"ECDH"),!a(t))throw TypeError(J(t,...X));z(t,"ECDH","deriveBits");let d=l(h(u.encode(r)),h(i),h(s),p(n));return c="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,m(new 
9Uint8Array(await o.subtle.deriveBits({name:e.algorithm.name,public:e},t,c)),n,d)}async function ed(e){if(!a(e))throw TypeError(J(e,...X));return o.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ef(e){if(!a(e))throw TypeError(J(e,...X));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}async function ep(e,t,r,n){!function(e){if(!(e instanceof Uint8Array)||e.length<8)throw new k("PBES2 Salt Input must be 8 or more octets")}(e);let i=l(u.encode(t),new Uint8Array([0]),e),s=parseInt(t.slice(13,16),10),c={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},d=await function(e,t){if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return z(e,t,"deriveBits","deriveKey"),e;throw TypeError(J(e,...X,"Uint8Array"))}(n,t);if(d.usages.includes("deriveBits"))return new Uint8Array(await o.subtle.deriveBits(c,d,s));if(d.usages.includes("deriveKey"))return o.subtle.deriveKey(c,d,{length:s,name:"AES-KW"},!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eh=async(e,t,r,n=2048,i=L(new Uint8Array(16)))=>{let o=await ep(i,e,n,t);return{encryptedKey:await eu(e.slice(-6),o,r),p2c:n,p2s:g(i)}},em=async(e,t,r,n,i)=>{let o=await ep(i,e,n,t);return ec(e.slice(-6),o,r)};function ey(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new A(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var eg=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};let ev=async(e,t,r)=>{if(!a(t))throw TypeError(J(t,...X));if(z(t,e,"encrypt","wrapKey"),eg(e,t),t.usages.includes("encrypt"))return new Uint8Array(await o.subtle.encrypt(ey(e),t,r));if(t.usages.includes("wrapKey")){let n=await o.subtle.importKey("raw",r,...eo);return new Uint8Array(await o.subtle.wrapKey("raw",n,t,ey(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},e_=async(e,t,r)=>{if(!a(t))throw TypeError(J(t,...X));if(z(t,e,"decrypt","unwrapKey"),eg(e,t),t.usages.includes("decrypt"))return new Uint8Array(await o.subtle.decrypt(ey(e),t,r));if(t.usages.includes("unwrapKey")){let n=await o.subtle.unwrapKey("raw",r,t,ey(e),...eo);return new Uint8Array(await o.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eb(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new A(`Unsupported JWE Algorithm: ${e}`)}}var ew=e=>L(new Uint8Array(eb(e)>>3)),eE=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----
10${r}
11-----END ${t}-----`};let eS=async(e,t,r)=>{if(!a(r))throw TypeError(J(r,...X));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eE(y(new Uint8Array(await o.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eA=e=>eS("public","spki",e),eT=e=>eS("private","pkcs8",e),eC=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eC(e,t,n+1))},ek=e=>{switch(!0){case eC(e,[42,134,72,206,61,3,1,7]):return"P-256";case eC(e,[43,129,4,0,34]):return"P-384";case eC(e,[43,129,4,0,35]):return"P-521";case eC(e,[43,101,110]):return"X25519";case eC(e,[43,101,111]):return"X448";case eC(e,[43,101,112]):return"Ed25519";case eC(e,[43,101,113]):return"Ed448";default:throw new A("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eO=async(e,t,r,n,i)=>{var a;let s,u;let c=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),l="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},u=l?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},u=l?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},u=l?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},u=l?["verify"]:["sign"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},u=l?["verify"]:["sign"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},u=l?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=ek(c);s=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},u=l?[]:["deriveBits"];break}
11case"EdDSA":s={name:ek(c)},u=l?["verify"]:["sign"];break;default:throw new A('Invalid or unsupported "alg" (Algorithm) value')}return o.subtle.importKey(t,c,s,null!==(a=null==i?void 0:i.extractable)&&void 0!==a&&a,u)},ex=(e,t,r)=>eO(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),eR=(e,t,r)=>eO(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eI(e){let t=[],r=0;for(;r<e.length;){let n=eP(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eP(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}let eH=(e,t,r)=>{let n;try{n=eE(function(e){let t=eI(eI(eP(e).contents)[0].contents);return y(t[160===t[0].raw[0]?6:5].raw)}(v(e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return eR(n,t,r)},eN=async e=>{var t,r;if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:n,keyUsages:i}=function(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new A(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new A('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),a=[n,null!==(t=e.ext)&&void 0!==t&&t,null!==(r=e.key_ops)&&void 0!==r?r:i];if("PBKDF2"===n.name)return o.subtle.importKey("raw",_(e.k),...a);let s={...e};return delete s.alg,delete s.use,o.subtle.importKey("jwk",s,...a)};async function eM(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eR(e,t,r)}async function eL(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return eH(e,t,r)}async function eU(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return ex(e,t,r)}async function eD(e,t,r){var n;if(!ei(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');
11if(null!=r||(r=!0!==e.ext),r)return eN({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return _(e.k);case"RSA":if(void 0!==e.oth)throw new A('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eN({...e,alg:t});default:throw new A('Unsupported "kty" (Key Type) Parameter value')}}let ej=(e,t)=>{if(!(t instanceof Uint8Array)){if(!Z(t))throw TypeError(q(e,t,...X,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${X.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},eB=(e,t,r)=>{if(!Z(t))throw TypeError(q(e,t,...X));if("secret"===t.type)throw TypeError(`${X.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${X.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${X.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${X.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${X.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)};var e$=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?ej(e,t):eB(e,t,r)};async function eK(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(J(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await o.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),u=await o.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await o.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),d=l(i,n,c,f(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await o.subtle.sign("HMAC",u,d)).slice(0,a>>3))}}async function eF(e,t,r,n,i){let a;r instanceof Uint8Array?a=await o.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(z(r,e,"encrypt"),a=r);let s=new Uint8Array(await o.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},a,t)),u=s.slice(-16);return{ciphertext:s.slice(0,-16),tag:u}}let eG=async(e,t,r,n,i)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(J(r,...X,"Uint8Array"));switch(j(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&B(r,parseInt(e.slice(-3),10)),eK(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&B(r,parseInt(e.slice(1,4),10)),eF(e,t,r,n,i);default:throw new A("Unsupported JWE Content Encryption Algorithm")}};async function eW(e,t,r,n){let i=e.slice(0,7);n||(n=D(i));let{ciphertext:o,tag:a}=await eG(i,r,t,n,new Uint8Array(0));return{encryptedKey:o,iv:g(n),tag:g(a)}}async function ez(e,t,r,n,i){return ee(e.slice(0,7),t,r,n,i,new Uint8Array(0))}async function eV(e,t,r,n,i){switch(e$(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new k("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new k("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ei(n.epk))throw new k('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ef(t))throw new A("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eD(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new k('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=_(n.apu)}catch(e){throw new k("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new k('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=_(n.apv)}catch(e){throw new k("Failed to base64url decode the apv")}}let s=await el(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eb(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new k("JWE Encrypted Key missing");return ec(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new k("JWE Encrypted Key missing");return e_(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new k("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new k('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=(null==i?void 0:i.maxPBES2Count)||1e4;if(n.p2c>a)throw new k('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new k('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=_(n.p2s)}catch(e){throw new k("Failed to base64url decode the p2s")}return em(e,t,r,n.p2c,o)}
11case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new k("JWE Encrypted Key missing");return ec(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new k("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new k('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new k('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=_(n.iv)}catch(e){throw new k("Failed to base64url decode the iv")}try{o=_(n.tag)}catch(e){throw new k("Failed to base64url decode the tag")}return ez(e,t,r,i,o)}default:throw new A('Invalid or unsupported "alg" (JWE Algorithm) header value')}}var eJ=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new A(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},eq=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function eZ(e,t,r){var n;let i,o,a,s,d,f,p;if(!ei(e))throw new k("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new k("JOSE Header missing");if("string"!=typeof e.iv)throw new k("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new k("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new k("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new k("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new k("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new k("JWE AAD incorrect type");if(void 0!==e.header&&!ei(e.header))throw new k("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ei(e.unprotected))throw new k("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=_(e.protected);i=JSON.parse(c.decode(t))}catch(e){throw new k("JWE Protected Header is invalid")}if(!en(i,e.header,e.unprotected))throw new k("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let h={...i,...e.header,...e.unprotected};if(eJ(k,new Map,null==r?void 0:r.crit,i,h),void 0!==h.zip){if(!i||!i.zip)throw new k('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==h.zip)throw new A('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:m,enc:y}=h;if("string"!=typeof m||!m)throw new k("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof y||!y)throw new k("missing JWE Encryption Algorithm (enc) in JWE Header");let g=r&&eq("keyManagementAlgorithms",r.keyManagementAlgorithms),v=r&&eq("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(g&&!g.has(m))throw new S('"alg" (Algorithm) Header Parameter not allowed');if(v&&!v.has(y))throw new S('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{o=_(e.encrypted_key)}catch(e){throw new k("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(i,e),b=!0);try{a=await eV(m,t,o,h,r)}catch(e){if(e instanceof TypeError||e instanceof k||e instanceof A)throw e;a=ew(y)}try{s=_(e.iv)}catch(e){throw new k("Failed to base64url decode the iv")}try{d=_(e.tag)}catch(e){throw new k("Failed to base64url decode the tag")}let w=u.encode(null!==(n=e.protected)&&void 0!==n?n:"");f=void 0!==e.aad?l(w,u.encode("."),u.encode(e.aad)):w;try{p=_(e.ciphertext)}catch(e){throw new k("Failed to base64url decode the ciphertext")}let E=await ee(y,a,p,s,d,f);"DEF"===h.zip&&(E=await ((null==r?void 0:r.inflateRaw)||et)(E));let T={plaintext:E};if(void 0!==e.protected&&(T.protectedHeader=i),void 0!==e.aad)try{T.additionalAuthenticatedData=_(e.aad)}catch(e){throw new k("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(T.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(T.unprotectedHeader=e.header),b)?{...T,key:t}:T}async function eX(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new k("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new k("Invalid Compact JWE");
11let l=await eZ({ciphertext:a,iv:o||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:i||void 0},t,r),d={plaintext:l.plaintext,protectedHeader:l.protectedHeader};return"function"==typeof t?{...d,key:l.key}:d}async function eY(e,t,r){if(!ei(e))throw new k("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ei))throw new k("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new k("JWE Recipients has no members");for(let n of e.recipients)try{return await eZ({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new T}let eQ=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:g(e)};if(!a(e))throw TypeError(J(e,...X,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...s}=await o.subtle.exportKey("jwk",e);return s};async function e0(e){return eA(e)}async function e1(e){return eT(e)}async function e2(e){return eQ(e)}async function e5(e,t,r,n,i={}){let o,a,s;switch(e$(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ef(r))throw new A("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await ed(r)).privateKey);let{x:d,y:f,crv:p,kty:h}=await e2(l),m=await el(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eb(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:d,crv:p,kty:h}},"EC"===h&&(a.epk.y=f),u&&(a.apu=g(u)),c&&(a.apv=g(c)),"ECDH-ES"===e){s=m;break}s=n||ew(t);let y=e.slice(-6);o=await eu(y,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||ew(t),o=await ev(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||ew(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await eh(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||ew(t),o=await eu(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||ew(t);let{iv:u}=i;({encryptedKey:o,...a}=await eW(e,r,s,u));break}default:throw new A('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}}let e3=Symbol();class e6{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a,s,d;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new k("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!en(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new k("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let f={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(eJ(k,new Map,null==t?void 0:t.crit,this._protectedHeader,f),void 0!==f.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new k('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==f.zip)throw new A('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:p,enc:h}=f;if("string"!=typeof p||!p)throw new k('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof h||!h)throw new k('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===p){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===p&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:n,encryptedKey:r,parameters:i}=await e5(p,h,e,this._cek,this._keyManagementParameters)),i&&(t&&e3 in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=D(h)),o=this._protectedHeader?u.encode(g(JSON.stringify(this._protectedHeader))):u.encode(""),this._aad?(a=g(this._aad),i=l(o,u.encode("."),u.encode(a))):i=o,"DEF"===f.zip){let e=await ((null==t?void 0:t.deflateRaw)||er)(this._plaintext);({ciphertext:s,tag:d}
11=await eG(h,e,n,this._iv,i))}else({ciphertext:s,tag:d}=await eG(h,this._plaintext,n,this._iv,i));let m={ciphertext:g(s),iv:g(this._iv),tag:g(d)};return r&&(m.encrypted_key=g(r)),a&&(m.aad=a),this._protectedHeader&&(m.protected=c.decode(o)),this._sharedUnprotectedHeader&&(m.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(m.header=this._unprotectedHeader),m}}class e8{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class e4{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new e8(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let i;if(!this._recipients.length)throw new k("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new e6(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!en(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new k("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new k('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new k('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new k('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(i){if(i!==r.enc)throw new k('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else i=r.enc;
11if(eJ(k,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new k('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let o=ew(i),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let u=this._recipients[s],c={};a.recipients.push(c);let l=({...this._protectedHeader,...this._unprotectedHeader,...u.unprotectedHeader}).alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new e6(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(o).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(u.unprotectedHeader).setKeyManagementParameters({p2c:l}).encrypt(u.key,{...u.options,...e,[e3]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:d,parameters:f}=await e5((null===(t=u.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(n=this._unprotectedHeader)||void 0===n?void 0:n.alg),i,u.key,o,{p2c:l});c.encrypted_key=g(d),(u.unprotectedHeader||f)&&(c.header={...u.unprotectedHeader,...f})}return a}}function e9(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new A(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function e7(e,t,r){if(a(t))return!function(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!F(e.algorithm,"HMAC"))throw K("HMAC");let r=parseInt(t.slice(2),10);if(G(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!F(e.algorithm,"RSASSA-PKCS1-v1_5"))throw K("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(G(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}
11case"PS256":case"PS384":case"PS512":{if(!F(e.algorithm,"RSA-PSS"))throw K("RSA-PSS");let r=parseInt(t.slice(2),10);if(G(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw K("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!F(e.algorithm,"ECDSA"))throw K("ECDSA");let r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t);if(e.algorithm.namedCurve!==r)throw K(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}W(e,r)}(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(J(t,...X));return o.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(J(t,...X,"Uint8Array"))}let te=async(e,t,r,n)=>{let i=await e7(e,t,"verify");eg(e,i);let a=e9(e,i.algorithm);try{return await o.subtle.verify(a,i,r,n)}catch(e){return!1}};async function tt(e,t,r){var n;let i,o;if(!ei(e))throw new O("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new O('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new O("JWS Protected Header incorrect type");if(void 0===e.payload)throw new O("JWS Payload missing");if("string"!=typeof e.signature)throw new O("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ei(e.header))throw new O("JWS Unprotected Header incorrect type");let a={};if(e.protected)try{let t=_(e.protected);a=JSON.parse(c.decode(t))}catch(e){throw new O("JWS Protected Header is invalid")}if(!en(a,e.header))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let s={...a,...e.header},d=eJ(O,new Map([["b64",!0]]),null==r?void 0:r.crit,a,s),f=!0;if(d.has("b64")&&"boolean"!=typeof(f=a.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:p}=s;if("string"!=typeof p||!p)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');let h=r&&eq("algorithms",r.algorithms);if(h&&!h.has(p))throw new S('"alg" (Algorithm) Header Parameter not allowed');if(f){if("string"!=typeof e.payload)throw new O("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new O("JWS Payload must be a string or an Uint8Array instance");let m=!1;"function"==typeof t&&(t=await t(a,e),m=!0),e$(p,t,"verify");let y=l(u.encode(null!==(n=e.protected)&&void 0!==n?n:""),u.encode("."),"string"==typeof e.payload?u.encode(e.payload):e.payload);try{i=_(e.signature)}catch(e){throw new O("Failed to base64url decode the signature")}if(!await te(p,t,i,y))throw new M;if(f)try{o=_(e.payload)}catch(e){throw new O("Failed to base64url decode the payload")}else o="string"==typeof e.payload?u.encode(e.payload):e.payload;let g={payload:o};return(void 0!==e.protected&&(g.protectedHeader=a),void 0!==e.header&&(g.unprotectedHeader=e.header),m)?{...g,key:t}:g}async function tr(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new O("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new O("Invalid Compact JWS");let s=await tt({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}async function tn(e,t,r){if(!ei(e))throw new O("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ei))throw new O("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tt({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new M}var ti=e=>Math.floor(e.getTime()/1e3);let to=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var ta=e=>{let t=to.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*r);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*r);case"day":case"days":case"d":return Math.round(86400*r);case"week":case"weeks":case"w":return Math.round(604800*r);default:return Math.round(31557600*r)}};let ts=e=>e.toLowerCase().replace(/^application\//,""),tu=(e,t)=>
11"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));var tc=(e,t,r={})=>{let n,i;let{typ:o}=r;if(o&&("string"!=typeof e.typ||ts(e.typ)!==ts(o)))throw new w('unexpected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(c.decode(t))}catch(e){}if(!ei(n))throw new x("JWT Claims Set must be a top-level JSON object");let{requiredClaims:a=[],issuer:s,subject:u,audience:l,maxTokenAge:d}=r;for(let e of(void 0!==d&&a.push("iat"),void 0!==l&&a.push("aud"),void 0!==u&&a.push("sub"),void 0!==s&&a.push("iss"),new Set(a.reverse())))if(!(e in n))throw new w(`missing required "${e}" claim`,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new w('unexpected "iss" claim value',"iss","check_failed");if(u&&n.sub!==u)throw new w('unexpected "sub" claim value',"sub","check_failed");if(l&&!tu(n.aud,"string"==typeof l?[l]:l))throw new w('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=ta(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:f}=r,p=ti(f||new Date);if((void 0!==n.iat||d)&&"number"!=typeof n.iat)throw new w('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new w('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>p+i)throw new w('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new w('"exp" claim must be a number',"exp","invalid");if(n.exp<=p-i)throw new E('"exp" claim timestamp check failed',"exp","check_failed")}if(d){let e=p-n.iat;if(e-i>("number"==typeof d?d:ta(d)))throw new E('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-i)throw new w('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tl(e,t,r){var n;let i=await tr(e,t,r);if((null===(n=i.protectedHeader.crit)||void 0===n?void 0:n.includes("b64"))&&!1===i.protectedHeader.b64)throw new x("JWTs MUST NOT use unencoded payload");let o={payload:tc(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return"function"==typeof t?{...o,key:i.key}:o}async function td(e,t,r){let n=await eX(e,t,r),i=tc(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new w('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new w('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new w('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tf{constructor(e){this._flattened=new e6(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let tp=async(e,t,r)=>{let n=await e7(e,t,"sign");eg(e,n);let i=await o.subtle.sign(e9(e,n.algorithm),n,r);return new Uint8Array(i)};class th{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new O("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!en(this._protectedHeader,this._unprotectedHeader))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=eJ(O,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
11if("string"!=typeof a||!a)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');e$(a,e,"sign");let s=this._payload;o&&(s=u.encode(g(s)));let d=l(r=this._protectedHeader?u.encode(g(JSON.stringify(this._protectedHeader))):u.encode(""),u.encode("."),s),f={signature:g(await tp(a,e,d)),payload:""};return o&&(f.payload=c.decode(s)),this._unprotectedHeader&&(f.header=this._unprotectedHeader),this._protectedHeader&&(f.protected=c.decode(r)),f}}class tm{constructor(e){this._flattened=new th(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class ty{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tg{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new ty(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new O("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new th(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new O("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(o)}return e}}class tv{constructor(e){if(!ei(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:ti(new Date)+ta(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:ti(new Date)+ta(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:ti(new Date)}:this._payload={...this._payload,iat:e},this}}class t_ extends tv{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tm(u.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new x("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tb extends tv{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new tf(u.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tw=(e,t)=>{if("string"!=typeof e||!e)throw new R(`${t} missing or invalid`)};async function tE(e,t){let r;if(!ei(e))throw TypeError("JWK must be an object");
11if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tw(e.crv,'"crv" (Curve) Parameter'),tw(e.x,'"x" (X Coordinate) Parameter'),tw(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tw(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tw(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tw(e.e,'"e" (Exponent) Parameter'),tw(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tw(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new A('"kty" (Key Type) Parameter missing or unsupported')}let n=u.encode(JSON.stringify(r));return g(await s(t,n))}async function tS(e,t){null!=t||(t="sha256");let r=await tE(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tA(e,t){let r={...e,...null==t?void 0:t.header};if(!ei(r.jwk))throw new O('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eD({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new O('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tT(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tC)}function tC(e){return ei(e)}class tk{constructor(e){if(this._cached=new WeakMap,!tT(e))throw new I("JSON Web Key Set malformed");this._jwks="function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}async getKey(e,t){let{alg:r,kid:n}={...e,...null==t?void 0:t.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new A('Unsupported "alg" value for a JSON Web Key Set')}}(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new P;if(1!==s){let e=new H,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await tO(t,e,r)}catch(e){continue}},e}return tO(this._cached,a,r)}}async function tO(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await eD({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new I("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function tx(e){let t=new tk(e);return async function(e,r){return t.getKey(e,r)}}let tR=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new N;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new b("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new b("Failed to parse the JSON Web Key Set HTTP response as JSON")}};class tI extends tk{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof P&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pe
11ndingFetch=void 0),this._pendingFetch||(this._pendingFetch=tR(this._url,this._timeoutDuration,this._options).then(e=>{if(!tT(e))throw new I("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tP(e,t){let r=new tI(e,t);return async function(e,t){return r.getKey(e,t)}}class tH extends tv{encode(){let e=g(JSON.stringify({alg:"none"})),t=g(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new x("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new x("Invalid Unsecured JWT");try{if(r=JSON.parse(c.decode(_(n))),"none"!==r.alg)throw Error()}catch(e){throw new x("Invalid Unsecured JWT")}return{payload:tc(r,_(i),t),header:r}}}let tN=g,tM=_;function tL(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(c.decode(tM(t)));if(!ei(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function tU(e){let t,r;if("string"!=typeof e)throw new x("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new x("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new x("Invalid JWT");if(!n)throw new x("JWTs must contain a payload");try{t=tM(n)}catch(e){throw new x("Failed to base64url decode the payload")}try{r=JSON.parse(c.decode(t))}catch(e){throw new x("Failed to parse the decoded payload as JSON")}if(!ei(r))throw new x("Invalid JWT Claims Set");return r}async function tD(e,t){var r;let n,i,a;switch(e){case"HS256":case"HS384":case"HS512":n=parseInt(e.slice(-3),10),i={name:"HMAC",hash:`SHA-${n}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return n=parseInt(e.slice(-3),10),L(new Uint8Array(n>>3));case"A128KW":case"A192KW":case"A256KW":i={name:"AES-KW",length:n=parseInt(e.slice(1,4),10)},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":i={name:"AES-GCM",length:n=parseInt(e.slice(1,4),10)},a=["encrypt","decrypt"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(i,null!==(r=null==t?void 0:t.extractable)&&void 0!==r&&r,a)}function tj(e){var t;let r=null!==(t=null==e?void 0:e.modulusLength)&&void 0!==t?t:2048;if("number"!=typeof r||r<2048)throw new A("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function tB(e,t){var r,n,i;let a,s;switch(e){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tj(t)},s=["sign","verify"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tj(t)},s=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tj(t)},s=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign","verify"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign","verify"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign","verify"];break;case"EdDSA":s=["sign","verify"];let u=null!==(r=null==t?void 0:t.crv)&&void 0!==r?r:"Ed25519";
11switch(u){case"Ed25519":case"Ed448":a={name:u};break;default:throw new A("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{s=["deriveKey","deriveBits"];let e=null!==(n=null==t?void 0:t.crv)&&void 0!==n?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":a={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":a={name:e};break;default:throw new A("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(a,null!==(i=null==t?void 0:t.extractable)&&void 0!==i&&i,s)}async function t$(e,t){return tB(e,t)}async function tK(e,t){return tD(e,t)}var tF="WebCryptoAPI"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(73035)}),_N_E=e.O()}]);

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