PageSourceSearch

https://www.qualidoc.com.br/_next/static/chunks/pages/_app-45ddaa49500695b0.js

js qualidoc.com.br collected 2026-09-24 12:31:29 UTC 1,173,674 bytes, 70 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{8678:function(a,x,w){"use strict";w.d(x,{r:function(){return makePublicApi},y:function(){return defineGlobal}});var A=w(40812),k=w(64933),F=w(13842);function makePublicApi(a){let x={version:"6.26.0",onReady(a){a()},...a};return Object.defineProperty(x,"_setDebug",{get:()=>k.yD,enumerable:!1}),x}function defineGlobal(a,x,w){let k=a[x];k&&!k.q&&k.version&&F.jf.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),a[x]=w,k&&k.q&&k.q.forEach(a=>(0,A.Z)(a,"onReady callback threw an error:")())}},83206:function(a,x,w){"use strict";w.d(x,{O:function(){return addEventListener},y:function(){return addEventListeners}});var A=w(64933),k=w(59693);function addEventListener(a,x,w,A,k){return addEventListeners(a,x,[w],A,k)}function addEventListeners(a,x,w,F,{once:V,capture:B,passive:z}={}){let G=(0,A.zk)(x=>{(x.isTrusted||x.__ddIsTrusted||a.allowUntrustedEvents)&&(V&&stop(),F(x))}),$=z?{capture:B,passive:z}:B,W=window.EventTarget&&x instanceof EventTarget?window.EventTarget.prototype:x,Z=(0,k.I)(W,"addEventListener");function stop(){let a=(0,k.I)(W,"removeEventListener");w.forEach(w=>a.call(x,w,G,$))}return w.forEach(a=>Z.call(x,a,G,$)),{stop}}},27752:function(a,x,w){"use strict";w.d(x,{h:function(){return fetch}});var A=w(59693),k=w(51145);function fetch(a,x){return(0,A.I)((0,k.Rf)(),"fetch")(a,x)}},47581:function(a,x,w){"use strict";w.d(x,{FP:function(){return createPageMayExitObservable},PT:function(){return isPageExitReason},k$:function(){return V}});var A=w(75721),k=w(94776),F=w(83206);let V={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function createPageMayExitObservable(a){return new A.y$(x=>{let{stop:w}=(0,F.y)(a,window,["visibilitychange","freeze"],a=>{"visibilitychange"===a.type&&"hidden"===document.visibilityState?x.notify({reason:V.HIDDEN}):"freeze"===a.type&&x.notify({reason:V.FROZEN})},{capture:!0}),A=(0,F.O)(a,window,"beforeunload",()=>{x.notify({reason:V.UNLOADING})}).stop;return()=>{w(),A()}})}function isPageExitReason(a){return(0,k.TT)(V).includes(a)}},10193:function(a,x,w){"use strict";w.d(x,{T:function(){return runOnReadyState},_:function(){return asyncRunOnReadyState}});var A=w(251),k=w(83206);function runOnReadyState(a,x,w){return document.readyState===x||"complete"===document.readyState?(w(),{stop:A.Z}):(0,k.O)(a,window,"complete"===x?"load":"DOMContentLoaded",w,{once:!0})}function asyncRunOnReadyState(a,x){return new Promise(w=>{runOnReadyState(a,x,w)})}},68826:function(a,x,w){"use strict";w.d(x,{T:function(){return getConnectivity}});var A=w(51145);function getConnectivity(){var a;let x=A.Zf.navigator;return{status:x.onLine?"connected":"not_connected",interfaces:x.connection&&x.connection.type?[x.connection.type]:void 0,effective_type:null===(a=x.connection)||void 0===a?void 0:a.effectiveType}}},45242:function(a,x,w){"use strict";w.d(x,{AP:function(){return computeRawError},K$:function(){return z},VZ:function(){return isError}});var A=w(68566),k=w(19012),F=w(22685),V=w(24507),B=w(33234);let z="No stack, consider using an instance of Error";function computeErrorBase({originalError:a,stackTrace:x,source:w,useFallbackStack:B=!0,nonErrorPrefix:G}){var $;let W=isError(a);return!x&&W&&(x=(0,F._)(a)),{source:w,type:x?x.name:void 0,message:(null==($=x)?void 0:$.message)&&(null==$?void 0:$.name)?$.message:W?"Empty message":G?`${G} ${(0,k.l)((0,A.N)(a))}`:(0,k.l)((0,A.N)(a)),stack:x?(0,V.P3)(x):B?z:void 0}}function computeRawError({stackTrace:a,originalError:x,handlingStack:w,componentStack:A,startClocks:k,nonErrorPrefix:F,useFallbackStack:V=!0,source:z,handling:G}){let $=computeErrorBase({originalError:x,stackTrace:a,source:z,useFallbackStack:V,nonErrorPrefix:F});return{startClocks:k,handling:G,handlingStack:w,componentStack:A,originalError:x,...$,causes:isError(x)?function(a,x){let w=[],A=a.cause;for(;null!=A&&w.length<10;){let a=computeErrorBase({originalError:A,source:x,useFallbackStack:!1});w.push(a),A=isError(A)?A.cause:void 0}return w.length?w:void 0}(x,z):void 0,fingerprint:isError(x)&&"dd_fingerprint"in x?String(x.dd_fingerprint):void 0,context:function(a){if
1((0,B.s)(a))return a.dd_context}(x)}}function isError(a){return a instanceof Error||"[object Error]"===Object.prototype.toString.call(a)}},42419:function(a,x,w){"use strict";w.d(x,{z:function(){return A}});let A={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},93909:function(a,x,w){"use strict";w.d(x,{DZ:function(){return A},D_:function(){return F},Ds:function(){return V},Rg:function(){return G},by:function(){return k},iL:function(){return z},y7:function(){return B}});let A="datad0g.com",k="dd0g-gov.com",F="datadoghq.com",V="datadoghq.eu",B="ddog-gov.com",z="pci.browser-intake-datadoghq.com",G=["ddsource","dd-api-key","dd-request-id"]},19276:function(a,x,w){"use strict";w.d(x,{MS:function(){return buildTags}});var A=w(13842);function buildTags(a){let{env:x,service:w,version:A,datacenter:k,sdkVersion:F,variant:V}=a,B=[buildTag("sdk_version",null!=F?F:"6.26.0")];return x&&B.push(buildTag("env",x)),w&&B.push(buildTag("service",w)),A&&B.push(buildTag("version",A)),k&&B.push(buildTag("datacenter",k)),V&&B.push(buildTag("variant",V)),B}function buildTag(a,x){let w=x?`${a}:${x}`:a;return(w.length>200||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(a){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(w))&&A.jf.warn(`Tag ${w} doesn't meet tag requirements and will be sanitized. ${A.IA} ${A.aA}/getting_started/tagging/#defining-tags`),w.replace(/,/g,"_")}},18797:function(a,x,w){"use strict";let A;w.d(x,{Uo:function(){return addTelemetryConfiguration},eJ:function(){return addTelemetryDebug},Sz:function(){return addTelemetryError},qZ:function(){return addTelemetryMetrics},eG:function(){return addTelemetryUsage},VL:function(){return startTelemetry}});var k=w(13842),F=w(45242),V=w(24507),B=w(57549),z=w(19276),G=w(93909),$=w(75721),W=w(25026),Z=w(64933),K=w(38971),Y=w(73603),J=w(19012),ee=w(92904),et=w(22685),er=w(68826),en=w(76876),ei=w(53789),eo=w(30481),ea=w(5419),es=w(89643),el=w(51145);let eu={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},ec=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],ed=[G.y7];function getTelemetryObservable(){return A||(A=new $.fk(100)),A}function startTelemetry(a,x,w,A,k,F){let V=new $.y$,{stop:et}=function(a,x,w,A,k){let F=[];if((0,en.xT)()){let a=(0,en.Ad)(),x=k.subscribe(x=>a.send("internal_telemetry",x));F.push(x.unsubscribe)}else{let V=[a.rumEndpointBuilder];a.replica&&a.site===G.DZ&&V.push(a.replica.rumEndpointBuilder);let B=(0,ei.n)({encoder:A(4),request:(0,eo.UF)(V,x),flushController:(0,ea.rK)({pageMayExitObservable:w,sessionExpireObservable:new $.y$})});F.push(B.stop);let z=k.subscribe(B.add);F.push(z.unsubscribe)}return{stop:()=>F.forEach(a=>a())}}(x,A,k,F,V),{enabled:ec,metricsEnabled:ef}=function(a,x,w,A,k=1,F=15){var V;let G={},$=!ed.includes(x.site)&&(0,Y.y7)(x.telemetrySampleRate),et={[eu.LOG]:$,[eu.CONFIGURATION]:$&&(0,Y.y7)(x.telemetryConfigurationSampleRate),[eu.USAGE]:$&&(0,Y.y7)(x.telemetryUsageSampleRate),metric:$&&(0,Y.y7)(k)},en={is_local_file:(null===(V=el.Zf.location)||void 0===V?void 0:V.protocol)==="file:",is_worker:el.jX},ei=getTelemetryObservable();return ei.subscribe(({rawEvent:k,metricName:V})=>{if(V&&!et.metric||!et[k.type])return;let $=V||k.status||k.type,Z=G[$];if(Z||(Z=G[$]=new Set),Z.size>=F)return;let Y=(0,J.l)(k);if(Z.has(Y))return;let ei=w.triggerHook(1,{startTime:(0,W.$I)().relative});if(ei===es.C_)return;let eo=function(a,w,A,k){let F=(0,W.$I)(),V={type:"telemetry",date:F.timeStamp,service:w,version:"6.26.0",source:"browser",_dd:{format_version:2},telemetry:(0,ee.$e)(A,{runtime_env:k,connectivity:(0,er.T)(),sdk_setup:"npm"}),ddtags:(0,z.MS)(x).join(","),experimental_features:Array.from((0,B.u0)())};return(0,ee.$e)(V,a)}(ei,a,k,en);A.notify(eo),(0,K.j)("telemetry",eo),Z.add(Y)}),ei.unbuffer(),(0,Z.P_)(addTelemetryError),{enabled:$,metricsEnabled:et.metric}}(a,x,w,V);return{stop:et,enabled:ec,metricsEnabled:ef}}function addTelemetryDebug(a,x){(0,Z.DV)(k.vA.debug,a,x),getTelemetryObservable().notify({rawEvent:{type:eu.LOG,message:a,status:"debug",...x}})}function addTelemetryError(a,x){getTelemetryObservable().notify({rawEvent:{type:eu.LOG,status:"error",...function(a){if
1((0,F.VZ)(a)){let x=(0,et._)(a);return{error:{kind:x.name,stack:(0,V.P3)((x.stack=x.stack.filter(a=>!a.url||ec.some(x=>a.url.startsWith(x))),x))},message:x.message}}return{error:{stack:F.K$},message:`Uncaught ${(0,J.l)(a)}`}}(a),...x}})}function addTelemetryConfiguration(a){getTelemetryObservable().notify({rawEvent:{type:eu.CONFIGURATION,configuration:a}})}function addTelemetryMetrics(a,x){getTelemetryObservable().notify({rawEvent:{type:eu.LOG,message:a,status:"debug",...x},metricName:a})}function addTelemetryUsage(a){getTelemetryObservable().notify({rawEvent:{type:eu.USAGE,usage:a}})}},89643:function(a,x,w){"use strict";w.d(x,{C_:function(){return k},kb:function(){return F},uR:function(){return abstractHooks}});var A=w(92904);let k="DISCARDED",F="SKIPPED";function abstractHooks(){let a={};return{register:(x,w)=>(a[x]||(a[x]=[]),a[x].push(w),{unregister:()=>{a[x]=a[x].filter(a=>a!==w)}}),triggerHook(x,w){let V=a[x]||[],B=[];for(let a of V){let x=a(w);if(x===k)return k;x!==F&&B.push(x)}return(0,A.$e)(...B)}}}},40812:function(a,x,w){"use strict";w.d(x,{Z:function(){return catchUserErrors}});var A=w(13842);function catchUserErrors(a,x){return(...w)=>{try{return a(...w)}catch(a){A.jf.error(x,a)}}}},13842:function(a,x,w){"use strict";w.d(x,{IA:function(){return $},Qo:function(){return G},aA:function(){return z},jG:function(){return k},jf:function(){return B},vA:function(){return A}});let A={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},k=console,F={};Object.keys(A).forEach(a=>{F[a]=k[a]});let V="Datadog Browser SDK:",B={debug:F.debug.bind(k,V),log:F.log.bind(k,V),info:F.info.bind(k,V),warn:F.warn.bind(k,V),error:F.error.bind(k,V)},z="https://docs.datadoghq.com",G=`${z}/real_user_monitoring/browser/troubleshooting`,$="More details:"},57549:function(a,x,w){"use strict";w.d(x,{W_:function(){return isExperimentalFeatureEnabled},fG:function(){return initFeatureFlags},u0:function(){return getExperimentalFeatures},uh:function(){return k}});var A,k,F=w(94162);(A=k||(k={})).TRACK_INTAKE_REQUESTS="track_intake_requests",A.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",A.FEATURE_OPERATION_VITAL="feature_operation_vital",A.SHORT_SESSION_INVESTIGATION="short_session_investigation",A.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive",A.START_STOP_ACTION="start_stop_action",A.USE_CHANGE_RECORDS="use_change_records",A.SOURCE_CODE_CONTEXT="source_code_context";let V=new Set;function initFeatureFlags(a){Array.isArray(a)&&function(a){a.forEach(a=>{V.add(a)})}(a.filter(a=>(0,F.E5)(k,a)))}function isExperimentalFeatureEnabled(a){return V.has(a)}function getExperimentalFeatures(){return V}},59693:function(a,x,w){"use strict";w.d(x,{I:function(){return getZoneJsOriginalValue}});var A=w(51145);function getZoneJsOriginalValue(a,x){let w;let k=(0,A.Rf)();return k.Zone&&"function"==typeof k.Zone.__symbol__&&(w=a[k.Zone.__symbol__(x)]),w||(w=a[x]),w}},51145:function(a,x,w){"use strict";function getGlobalObject(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let a=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof a&&(a="object"==typeof self?self:"object"==typeof window?window:{}),a}w.d(x,{Rf:function(){return getGlobalObject},Zf:function(){return A},jX:function(){return k}});let A=getGlobalObject(),k="WorkerGlobalScope"in A},55801:function(a,x,w){"use strict";w.d(x,{S:function(){return instrumentMethod},X:function(){return instrumentSetter}});var A=w(65483),k=w(64933),F=w(251),V=w(24507);function instrumentMethod(a,x,w,{computeHandlingStack:A}={}){let B=a[x];if("function"!=typeof B){if(!(x in a&&"string"==typeof x&&x.startsWith("on")))return{stop:F.Z};B=F.Z}let z=!1,instrumentation=function(){let a;if(z)return B.apply(this,arguments);let x=Array.from(arguments);(0,k.L6)(w,null,[{target:this,parameters:x,onPostCall:x=>{a=x},handlingStack:A?(0,V.Xp)("instrumented method"):void 0}]);let F=B.apply(this,x);return a&&(0,k.L6)(a,null,[F]),F};return a[x]=instrumentation,{stop:()=>{z=!0,a[x]===instrumentation&&(a[x]=B)}}}function instrumentSetter(a,x,w){let k=Object.getOwnPropertyDescriptor(a,x);if(!k||!k.set||!k.configurable)return{stop:F.Z};
1let V=F.Z,instrumentation=(a,x)=>{(0,A.iK)(()=>{instrumentation!==V&&w(a,x)},0)},instrumentationWrapper=function(a){k.set.call(this,a),instrumentation(this,a)};return Object.defineProperty(a,x,{set:instrumentationWrapper}),{stop:()=>{var w;(null===(w=Object.getOwnPropertyDescriptor(a,x))||void 0===w?void 0:w.set)===instrumentationWrapper&&Object.defineProperty(a,x,k),instrumentation=V}}}},92904:function(a,x,w){"use strict";w.d(x,{$e:function(){return combine},I8:function(){return deepClone}});var A=w(33234);function mergeInto(a,x,w=function(){if("undefined"!=typeof WeakSet){let a=new WeakSet;return{hasAlreadyBeenSeen(x){let w=a.has(x);return w||a.add(x),w}}}let a=[];return{hasAlreadyBeenSeen(x){let w=a.indexOf(x)>=0;return w||a.push(x),w}}}()){if(void 0===x)return a;if("object"!=typeof x||null===x)return x;if(x instanceof Date)return new Date(x.getTime());if(x instanceof RegExp){let a=x.flags||[x.global?"g":"",x.ignoreCase?"i":"",x.multiline?"m":"",x.sticky?"y":"",x.unicode?"u":""].join("");return new RegExp(x.source,a)}if(w.hasAlreadyBeenSeen(x))return;if(Array.isArray(x)){let A=Array.isArray(a)?a:[];for(let a=0;a<x.length;++a)A[a]=mergeInto(A[a],x[a],w);return A}let k="object"===(0,A.o)(a)?a:{};for(let a in x)Object.prototype.hasOwnProperty.call(x,a)&&(k[a]=mergeInto(k[a],x[a],w));return k}function deepClone(a){return mergeInto(void 0,a)}function combine(...a){let x;for(let w of a)null!=w&&(x=mergeInto(x,w));return x}},64933:function(a,x,w){"use strict";let A;w.d(x,{$y:function(){return monitorError},DV:function(){return displayIfDebugEnabled},L6:function(){return callMonitored},P_:function(){return startMonitorErrorCollection},yD:function(){return setDebugMode},zk:function(){return monitor}});var k=w(13842);let F=!1;function startMonitorErrorCollection(a){A=a}function setDebugMode(a){F=a}function monitor(a){return function(...x){return callMonitored(a,this,x)}}function callMonitored(a,x,w){try{return a.apply(x,w)}catch(a){monitorError(a)}}function monitorError(a){if(displayIfDebugEnabled(a),A)try{A(a)}catch(a){displayIfDebugEnabled(a)}}function displayIfDebugEnabled(...a){F&&k.jf.error("[MONITOR]",...a)}},75721:function(a,x,w){"use strict";w.d(x,{fk:function(){return BufferedObservable},y$:function(){return Observable},$Z:function(){return mergeObservables}});var A=w(64933),k=w(51145);function queueMicrotask(a){var x;let w=null===(x=k.Zf.queueMicrotask)||void 0===x?void 0:x.bind(k.Zf);"function"==typeof w?w((0,A.zk)(a)):Promise.resolve().then((0,A.zk)(a))}let Observable=class Observable{constructor(a){this.onFirstSubscribe=a,this.observers=[]}subscribe(a){return this.addObserver(a),{unsubscribe:()=>this.removeObserver(a)}}notify(a){this.observers.forEach(x=>x(a))}addObserver(a){this.observers.push(a),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(a){this.observers=this.observers.filter(x=>a!==x),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function mergeObservables(...a){return new Observable(x=>{let w=a.map(a=>a.subscribe(a=>x.notify(a)));return()=>w.forEach(a=>a.unsubscribe())})}let BufferedObservable=class BufferedObservable extends Observable{constructor(a){super(),this.maxBufferSize=a,this.buffer=[]}notify(a){this.buffer.push(a),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(a)}subscribe(a){let x=!1;return queueMicrotask(()=>{for(let w of this.buffer){if(x)return;a(w)}x||this.addObserver(a)}),{unsubscribe:()=>{x=!0,this.removeObserver(a)}}}unbuffer(){queueMicrotask(()=>{this.maxBufferSize=this.buffer.length=0})}}},428:function(a,x,w){"use strict";w.d(x,{Kk:function(){return requestIdleCallback}});var A=w(65483),k=w(64933),F=w(25026);function requestIdleCallback(a,x){if(window.requestIdleCallback&&window.cancelIdleCallback){let w=window.requestIdleCallback((0,k.zk)(a),x);return()=>window.cancelIdleCallback(w)}return function(a){let x=(0,F.m6)(),w=(0,A.iK)(()=>{a({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,F.m6)()-x))})},0);return()=>(0,A.gr)(w)}(a)}},38971:function(a,x,w){"use strict";w.d(x,{j:function(){return sendToExtension}});var A=w(51145);function sendToExtension(a,x){let w=A.Zf.__ddBrowserSdkExtensionCallback;w&&w({type:a,payload:x})}},19012:function(a,x,w){"use strict";w.d(x,{l:function(){return jsonStringify},y:function(){return detachToJsonMethod}});var A=w(251);function jsonStringify(a,x,w){if("object"!=typeof a||null===a)return JSON.stringify(a);let A=detachToJsonMethod(Object.prototype),k=detachToJsonMethod(Array.prototype),F=detachToJsonMethod(Object.getPrototypeOf(a)),V=detachToJsonMethod(a);try{return JSON.stringify(a,x,w)}catch(a){return"<error: unable to serialize object>"}finally{A(),k(),F(),V()}}function detachToJsonMethod(a){let x=a.toJSON;return x?(delete a.toJSON,()=>{a.toJSON=x}):A.Z}},68566:function(a,x,w){"use strict";w.d(x,{N:function(){return sanitize}});var A=w(13842),k=w(51962),F=w(19012);let V=220*k.Hi;function sanitize(a,x=V){let w=(0,F.y)(Object.prototype),A=(0,F.y)(Array.prototype),k=[],B=new WeakMap,z=sanitizeProcessor(a,"$",void 0,k,B),G=JSON.stringify(z),$=G?G.length:0;if($>x){warnOverCharacterLimit(x,"discarded",a);return}for(;k.length>0&&$<x;){let w=k.shift(),A=0;if(Array.isArray(w.source))for(let F=0;F<w.source.length;F++){let V=sanitizeProcessor(w.source[F],w.path,F,k,B);if(void 0!==V?$+=JSON.stringify(V).length:$+=4,$+=A,A=1,$>x){warnOverCharacterLimit(x,"truncated",a);break}w.target[F]=V}else for(let F in w.source)if(Object.prototype.hasOwnProperty.call(w.source,F)){let V=sanitizeProcessor(w.source[F],w.path,F,k,B);if(void 0!==V&&($+=JSON.stringify(V).length+A+F.length+3,A=1),$>x){warnOverCharacterLimit(x,"truncated",a);break}w.target[F]=V}}return w(),A(),z}
1function sanitizeProcessor(a,x,w,A,k){let F=function(a){if(a&&"function"==typeof a.toJSON)try{return a.toJSON()}catch(a){}return a}(a);if(!F||"object"!=typeof F)return"bigint"==typeof F?`[BigInt] ${F.toString()}`:"function"==typeof F?`[Function] ${F.name||"unknown"}`:"symbol"==typeof F?`[Symbol] ${F.description||F.toString()}`:F;let V=function sanitizeObjects(a){try{if(a instanceof Event)return{type:a.type,isTrusted:a.isTrusted,currentTarget:a.currentTarget?sanitizeObjects(a.currentTarget):null,target:a.target?sanitizeObjects(a.target):null};if(a instanceof RegExp)return`[RegExp] ${a.toString()}`;let x=Object.prototype.toString.call(a),w=x.match(/\[object (.*)\]/);if(w&&w[1])return`[${w[1]}]`}catch(a){}return"[Unserializable]"}(F);if("[Object]"!==V&&"[Array]"!==V&&"[Error]"!==V)return V;if(k.has(a))return`[Reference seen at ${k.get(a)}]`;let B=void 0!==w?`${x}.${w}`:x,z=Array.isArray(F)?[]:{};return k.set(a,B),A.push({source:F,target:z,path:B}),z}function warnOverCharacterLimit(a,x,w){A.jf.warn(`The data provided has been ${x} as it is over the limit of ${a} characters:`,w)}},22685:function(a,x,w){"use strict";let A;w.d(x,{_:function(){return computeStackTrace},f:function(){return computeStackTraceFromOnErrorMessage}});var k=w(33234);function computeStackTrace(a){var x,w;let k=[],F=tryToGetString(a,"stack"),V=String(a);if(F&&F.startsWith(V)&&(F=F.slice(V.length)),F&&F.split("\n").forEach(a=>{let x=function(a){let x=B.exec(a);if(!x)return;let w=x[2]&&0===x[2].indexOf("native"),A=x[2]&&0===x[2].indexOf("eval"),k=z.exec(x[2]);return A&&k&&(x[2]=k[1],x[3]=k[2],x[4]=k[3]),{args:w?[x[2]]:[],column:x[4]?+x[4]:void 0,func:x[1]||"?",line:x[3]?+x[3]:void 0,url:w?void 0:x[2]}}(a)||function(a){let x=G.exec(a);if(x)return{args:[],column:x[4]?+x[4]:void 0,func:x[1]||"?",line:x[3]?+x[3]:void 0,url:x[2]}}(a)||function(a){let x=$.exec(a);if(x)return{args:[],column:x[4]?+x[4]:void 0,func:x[1]||"?",line:+x[3],url:x[2]}}(a)||function(a){let x=W.exec(a);if(!x)return;let w=x[3]&&x[3].indexOf(" > eval")>-1,A=Z.exec(x[3]);return w&&A&&(x[3]=A[1],x[4]=A[2],x[5]=void 0),{args:x[2]?x[2].split(","):[],column:x[5]?+x[5]:void 0,func:x[1]||"?",line:x[4]?+x[4]:void 0,url:x[3]}}(a);x&&(!x.func&&x.line&&(x.func="?"),k.push(x))}),k.length>0&&function(){if(void 0!==A)return A;let[a,x]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(a=>new a);return A=isNonNativeClassPrototype(Object.getPrototypeOf(a))&&x.stack!==a.stack}()&&a instanceof Error){let A=[],F=a;for(;(F=Object.getPrototypeOf(F))&&isNonNativeClassPrototype(F);){let a=(null===(x=F.constructor)||void 0===x?void 0:x.name)||"?";A.push(a)}for(let a=A.length-1;a>=0&&(null===(w=k[0])||void 0===w?void 0:w.func)===A[a];a--)k.shift()}return{message:tryToGetString(a,"message"),name:tryToGetString(a,"name"),stack:k}}let F="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",V="(?::(\\d+))",B=RegExp(`^\\s*at (.*?) ?\\(${F}${V}?${V}?\\)?\\s*$`,"i"),z=RegExp(`\\((\\S*)${V}${V}\\)`),G=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${F}${V}?${V}??\\s*$`,"i"),$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,W=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,Z=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tryToGetString(a,x){return(0,k.s)(a)&&"string"==typeof a[x]?a[x]:void 0}function computeStackTraceFromOnErrorMessage(a,x,w,A){let k,F;if(void 0===x)return;let{name:V,message:B}=("[object String]"===({}).toString.call(a)&&([,k,F]=K.exec(a)),{name:k,message:F});return{name:V,message:B,stack:[{url:x,column:A,line:w}]}}let K=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function isNonNativeClassPrototype(a){return String(a.constructor).startsWith("class ")}},24507:function(a,x,w){"use strict";w.d(x,{P3:function(){return toStackTraceString},Xp:function(){return createHandlingStack},jN:function(){return formatErrorMessage}});var A=w(64933),k=w(22685);function createHandlingStack(a){let x;let w=Error(a);return w.name="HandlingStack",(0,A.L6)(()=>{let a=(0,k._)(w);a.stack=a.stack.slice(2),x=toStackTraceString(a)}),x}
1function toStackTraceString(a){let x=formatErrorMessage(a);return a.stack.forEach(a=>{let w="?"===a.func?"<anonymous>":a.func,A=a.args&&a.args.length>0?`(${a.args.join(", ")})`:"",k=a.line?`:${a.line}`:"",F=a.line&&a.column?`:${a.column}`:"";x+=`
2  at ${w}${A} @ ${a.url}${k}${F}`}),x}function formatErrorMessage(a){return`${a.name||"Error"}: ${a.message}`}},65483:function(a,x,w){"use strict";w.d(x,{Zi:function(){return setInterval},cv:function(){return clearInterval},gr:function(){return clearTimeout},iK:function(){return setTimeout}});var A=w(59693),k=w(64933),F=w(51145);function setTimeout(a,x){return(0,A.I)((0,F.Rf)(),"setTimeout")((0,k.zk)(a),x)}function clearTimeout(a){(0,A.I)((0,F.Rf)(),"clearTimeout")(a)}function setInterval(a,x){return(0,A.I)((0,F.Rf)(),"setInterval")((0,k.zk)(a),x)}function clearInterval(a){(0,A.I)((0,F.Rf)(),"clearInterval")(a)}},12172:function(a,x,w){"use strict";let A;function isChromium(){return 0===detectBrowserCached()}function isSafari(){return 1===detectBrowserCached()}function detectBrowserCached(){return null!=A?A:A=function(a=window){var x;let w=a.navigator.userAgent;return a.chrome||/HeadlessChrome/.test(w)?0:(null===(x=a.navigator.vendor)||void 0===x?void 0:x.indexOf("Apple"))===0||/safari/i.test(w)&&!/chrome|android/i.test(w)?1:2}()}w.d(x,{G6:function(){return isSafari},mJ:function(){return isChromium}})},51962:function(a,x,w){"use strict";w.d(x,{Hi:function(){return A},Kb:function(){return concatBuffers},X9:function(){return k},qt:function(){return computeBytesCount}});let A=1024,k=1024*A,F=/[^\u0000-\u007F]/;function computeBytesCount(a){return F.test(a)?void 0!==window.TextEncoder?new TextEncoder().encode(a).length:new Blob([a]).size:a.length}function concatBuffers(a){if(1===a.length)return a[0];let x=a.reduce((a,x)=>a+x.length,0),w=new Uint8Array(x),A=0;for(let x of a)w.set(x,A),A+=x.length;return w}},251:function(a,x,w){"use strict";w.d(x,{P:function(){return throttle},Z:function(){return noop}});var A=w(65483);function throttle(a,x,w){let k,F;let V=!w||void 0===w.leading||w.leading,B=!w||void 0===w.trailing||w.trailing,z=!1;return{throttled:(...w)=>{if(z){k=w;return}V?a(...w):k=w,z=!0,F=(0,A.iK)(()=>{B&&k&&a(...k),z=!1,k=void 0},x)},cancel:()=>{(0,A.gr)(F),z=!1,k=void 0}}}function noop(){}},73603:function(a,x,w){"use strict";function performDraw(a){return 0!==a&&100*Math.random()<=a}function round(a,x){return+a.toFixed(x)}function isPercentage(a){return isNumber(a)&&a>=0&&a<=100}function isNumber(a){return"number"==typeof a}w.d(x,{NM:function(){return round},hj:function(){return isNumber},y7:function(){return performDraw},zz:function(){return isPercentage}})},94162:function(a,x,w){"use strict";function shallowClone(a){return{...a}}function objectHasValue(a,x){return Object.keys(a).some(w=>a[w]===x)}function isEmptyObject(a){return 0===Object.keys(a).length}function mapValues(a,x){let w={};for(let A of Object.keys(a))w[A]=x(a[A]);return w}w.d(x,{E5:function(){return objectHasValue},Q8:function(){return mapValues},Qr:function(){return isEmptyObject},mv:function(){return shallowClone}})},94776:function(a,x,w){"use strict";function findLast(a,x){for(let w=a.length-1;w>=0;w-=1){let A=a[w];if(x(A,w,a))return A}}function objectValues(a){return Object.values(a)}function objectEntries(a){return Object.entries(a)}w.d(x,{TT:function(){return objectValues},dF:function(){return findLast},qP:function(){return objectEntries}})},29100:function(a,x,w){"use strict";function isServerError(a){return a>=500}function tryToClone(a){try{return a.clone()}catch(a){return}}w.d(x,{o:function(){return isServerError},u:function(){return tryToClone}})},88129:function(a,x,w){"use strict";function generateUUID(a){return a?(parseInt(a,10)^16*Math.random()>>parseInt(a,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,generateUUID)}w.d(x,{DO:function(){return generateUUID},MY:function(){return findCommaSeparatedValue},_z:function(){return safeTruncate},kq:function(){return findCommaSeparatedValues},ql:function(){return findAllCommaSeparatedValues}});let A=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function findCommaSeparatedValue(a,x){for(A.lastIndex=0;;){let w=A.exec(a);if(w){if(w[1]===x)return w[2]}else break}}function findAllCommaSeparatedValues(a){let x=new Map;for(A.lastIndex=0;;){let w=A.exec(a);if(w){let a=w[1],A=w[2];x.has(a)?x.get(a).push(A):x.set(a,[A])}else break}return x}function findCommaSeparatedValues(a){let x=new Map;for(A.lastIndex=0;;){let w=A.exec(a);if(w)x.set(w[1],w[2]);else break}return x}
2function safeTruncate(a,x,w=""){let A=a.charCodeAt(x-1),k=A>=55296&&A<=56319?x+1:x;return a.length<=k?a:`${a.slice(0,k)}${w}`}},25026:function(a,x,w){"use strict";let A;w.d(x,{$I:function(){return clocksNow},Cn:function(){return looksLikeRelativeTime},DY:function(){return relativeToClocks},P5:function(){return z},QA:function(){return currentDrift},WK:function(){return addDuration},WT:function(){return F},_J:function(){return elapsed},_q:function(){return relativeNow},c0:function(){return toServerDuration},cQ:function(){return clocksOrigin},dV:function(){return B},lO:function(){return timeStampToClocks},m6:function(){return dateNow},n$:function(){return timeStampNow},ni:function(){return getRelativeTime},yR:function(){return V}});var k=w(73603);let F=1e3,V=60*F,B=60*V,z=365*(24*B);function relativeToClocks(a){return{relative:a,timeStamp:function(a){var x,w;let A=dateNow()-performance.now();return A>getNavigationStart()?Math.round((x=A)+(w=a)):Math.round(getNavigationStart()+a)}(a)}}function timeStampToClocks(a){return{relative:getRelativeTime(a),timeStamp:a}}function currentDrift(){var a;return Math.round(dateNow()-(getNavigationStart()+performance.now()))}function toServerDuration(a){return(0,k.hj)(a)?(0,k.NM)(1e6*a,0):a}function dateNow(){return new Date().getTime()}function timeStampNow(){return dateNow()}function relativeNow(){return performance.now()}function clocksNow(){return{relative:relativeNow(),timeStamp:timeStampNow()}}function clocksOrigin(){return{relative:0,timeStamp:getNavigationStart()}}function elapsed(a,x){return x-a}function addDuration(a,x){return a+x}function getRelativeTime(a){return a-getNavigationStart()}function looksLikeRelativeTime(a){return a<z}function getNavigationStart(){var a,x;return void 0===A&&(A=null!==(x=null===(a=performance.timing)||void 0===a?void 0:a.navigationStart)&&void 0!==x?x:performance.timeOrigin),A}},33234:function(a,x,w){"use strict";function getType(a){return null===a?"null":Array.isArray(a)?"array":typeof a}function isIndexableObject(a){return"object"===getType(a)}w.d(x,{o:function(){return getType},s:function(){return isIndexableObject}})},70170:function(a,x,w){"use strict";let A;w.d(x,{D5:function(){return normalizeUrl},Q2:function(){return buildUrl},jv:function(){return isValidUrl},ye:function(){return getPathName}});var k=w(51145);function normalizeUrl(a){return buildUrl(a,location.href).href}function isValidUrl(a){try{return!!buildUrl(a)}catch(a){return!1}}function getPathName(a){let x=buildUrl(a).pathname;return"/"===x[0]?x:`/${x}`}function buildUrl(a,x){let{URL:w}=function(){if(!A){let a,x;try{(a=document.createElement("iframe")).style.display="none",document.body.appendChild(a),x=a.contentWindow}catch(a){x=k.Zf}A={URL:x.URL},null==a||a.remove()}return A}();try{return void 0!==x?new w(a,x):new w(a)}catch(a){throw Error(`Failed to construct URL: ${String(a)}`)}}},53789:function(a,x,w){"use strict";w.d(x,{n:function(){return createBatch}});var A=w(13842),k=w(94776),F=w(47581),V=w(19012),B=w(51962);let z=256*B.Hi;function createBatch({encoder:a,request:x,flushController:w}){let G={},$=w.flushObservable.subscribe(w=>(function(w){let A=(0,k.TT)(G).join("\n");G={};let V=(0,F.PT)(w.reason),z=V?x.sendOnExit:x.send;if(V&&a.isAsync){let x=a.finishSync();x.outputBytesCount&&z(formatPayloadFromEncoder(x));let w=[x.pendingData,A].filter(Boolean).join("\n");w&&z({data:w,bytesCount:(0,B.qt)(w)})}else A&&a.write(a.isEmpty?A:`
3${A}`),a.finish(a=>{z(formatPayloadFromEncoder(a))})})(w));function addOrUpdate(x,k){let F=(0,V.l)(x),$=a.estimateEncodedBytesCount(F);if($>=z){A.jf.warn(`Discarded a message whose size was bigger than the maximum allowed size ${z/B.Hi}KiB. ${A.IA} ${A.Qo}/#technical-limitations`);return}void 0!==k&&void 0!==G[k]&&function(x){let A=G[x];delete G[x];let k=a.estimateEncodedBytesCount(A);w.notifyAfterRemoveMessage(k)}(k),w.notifyBeforeAddMessage($),void 0!==k?(G[k]=F,w.notifyAfterAddMessage()):a.write(a.isEmpty?F:`
4${F}`,a=>{w.notifyAfterAddMessage(a-$)})}return{flushController:w,add:addOrUpdate,upsert:addOrUpdate,stop:$.unsubscribe}}function formatPayloadFromEncoder(a){return{data:"string"==typeof a.output?a.output:new Blob([a.output],{type:"text/plain"}),bytesCount:a.outputBytesCount,encoding:a.encoding}}},76876:function(a,x,w){"use strict";w.d(x,{Ad:function(){return getEventBridge},ke:function(){return bridgeSupports},xT:function(){return canUseEventBridge}});var A=w(51145);function getEventBridge(){let a=(0,A.Rf)().DatadogEventBridge;if(a)return{getCapabilities(){var x;return JSON.parse((null===(x=a.getCapabilities)||void 0===x?void 0:x.call(a))||"[]")},getPrivacyLevel(){var x;return null===(x=a.getPrivacyLevel)||void 0===x?void 0:x.call(a)},getAllowedWebViewHosts:()=>JSON.parse(a.getAllowedWebViewHosts()),send(x,w,A){a.send(JSON.stringify({eventType:x,event:w,view:A?{id:A}:void 0}))}}}function bridgeSupports(a){let x=getEventBridge();return!!x&&x.getCapabilities().includes(a)}function canUseEventBridge(a){var x;void 0===a&&(a=null===(x=(0,A.Rf)().location)||void 0===x?void 0:x.hostname);let w=getEventBridge();return!!w&&w.getAllowedWebViewHosts().some(x=>a===x||a.endsWith(`.${x}`))}},5419:function(a,x,w){"use strict";w.d(x,{rK:function(){return createFlushController}});var A=w(51145),k=w(75721),F=w(65483),V=w(25026),B=w(30481);let z=30*V.WT,G=A.jX?1:50;function createFlushController({pageMayExitObservable:a,sessionExpireOb
4servable:x}){let w;let A=a.subscribe(a=>flush(a.reason)),V=x.subscribe(()=>flush("session_expire")),$=new k.y$(()=>()=>{A.unsubscribe(),V.unsubscribe()}),W=0,Z=0;function flush(a){if(0===Z)return;let x=Z,w=W;Z=0,W=0,cancelDurationLimitTimeout(),$.notify({reason:a,messagesCount:x,bytesCount:w})}function cancelDurationLimitTimeout(){(0,F.gr)(w),w=void 0}return{flushObservable:$,get messagesCount(){return Z},notifyBeforeAddMessage(a){W+a>=B.Wj&&flush("bytes_limit"),Z+=1,W+=a,void 0===w&&(w=(0,F.iK)(()=>{flush("duration_limit")},z))},notifyAfterAddMessage(a=0){W+=a,Z>=G?flush("messages_limit"):W>=B.Wj&&flush("bytes_limit")},notifyAfterRemoveMessage(a){W-=a,0==(Z-=1)&&cancelDurationLimitTimeout()}}}},30481:function(a,x,w){"use strict";w.d(x,{Wj:function(){return ee},UF:function(){return createHttpRequest}});var A=w(27752),k=w(64933),F=w(57549),V=w(75721),B=w(51962),z=w(65483),G=w(25026),$=w(29100),W=w(42419);let Z=80*B.Hi,K=20*B.X9,Y=G.yR,J=G.WT;function sendWithRetryStrategy(a,x,w,A,k,F){0===x.transportStatus&&0===x.queuedPayloads.size()&&x.bandwidthMonitor.canHandle(a)?send(a,x,w,F,{onSuccess:()=>retryQueuedPayloads(0,x,w,A,k,F),onFailure:()=>{x.queuedPayloads.enqueue(a)||F.notify({type:"queue-full",bandwidth:x.bandwidthMonitor.stats(),payload:a}),function scheduleRetry(a,x,w,A,k){2===a.transportStatus&&(0,z.iK)(()=>{let F=a.queuedPayloads.first();send(F,a,x,k,{onSuccess:()=>{a.queuedPayloads.dequeue(),a.currentBackoffTime=J,retryQueuedPayloads(1,a,x,w,A,k)},onFailure:()=>{a.currentBackoffTime=Math.min(Y,2*a.currentBackoffTime),scheduleRetry(a,x,w,A,k)}})},a.currentBackoffTime)}(x,w,A,k,F)}}):x.queuedPayloads.enqueue(a)||F.notify({type:"queue-full",bandwidth:x.bandwidthMonitor.stats(),payload:a})}function send(a,x,w,A,{onSuccess:k,onFailure:F}){x.bandwidthMonitor.add(a),w(a,w=>{x.bandwidthMonitor.remove(a),"opaque"!==w.type&&(0===w.status&&!navigator.onLine||408===w.status||429===w.status||(0,$.o)(w.status))?(x.transportStatus=x.bandwidthMonitor.ongoingRequestCount>0?1:2,a.retry={count:a.retry?a.retry.count+1:1,lastFailureStatus:w.status},A.notify({type:"failure",bandwidth:x.bandwidthMonitor.stats(),payload:a}),F()):(x.transportStatus=0,A.notify({type:"success",bandwidth:x.bandwidthMonitor.stats(),payload:a}),k())})}function retryQueuedPayloads(a,x,w,A,k,F){0===a&&x.queuedPayloads.isFull()&&!x.queueFullReported&&(k({message:`Reached max ${A} events size queued for upload: ${K/B.X9}MiB`,source:W.z.AGENT,startClocks:(0,G.$I)()}),x.queueFullReported=!0);let V=x.queuedPayloads;for(x.queuedPayloads=newPayloadQueue();V.size()>0;)sendWithRetryStrategy(V.dequeue(),x,w,A,k,F)}function newPayloadQueue(){let a=[];return{bytesCount:0,enqueue(x){return!this.isFull()&&(a.push(x),this.bytesCount+=x.bytesCount,!0)},first:()=>a[0],dequeue(){let x=a.shift();return x&&(this.bytesCount-=x.bytesCount),x},size:()=>a.length,isFull(){return this.bytesCount>=K}}}let ee=16*B.Hi;function createHttpRequest(a,x,w=ee){let B=new V.y$,z={transportStatus:0,currentBackoffTime:J,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(a){return 0===this.ongoingRequestCount||this.ongoingByteCount+a.bytesCount<=Z&&this.ongoingRequestCount<32},add(a){this.ongoingRequestCount+=1,this.ongoingByteCount+=a.bytesCount},remove(a){this.ongoingRequestCount-=1,this.ongoingByteCount-=a.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:newPayloadQueue(),queueFullReported:!1};return{observable:B,send:V=>{for(let G of a)sendWithRetryStrategy(V,z,(a,x)=>{(0,F.W_)(F.uh.AVOID_FETCH_KEEPALIVE)?fetchStrategy(G,a,x):function(a,x,w,F){let V=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(a){return!1}}()&&w.bytesCount<x;if(V){let x=a.build("fetch-keepalive",w);(0,A.h)(x,{method:"POST",body:w.data,keepalive:!0,mode:"cors"}).then((0,k.zk)(a=>null==F?void 0:F({status:a.status,type:a.type}))).catch((0,k.zk)(()=>fetchStrategy(a,w,F)))}else fetchStrategy(a,w,F)}(G,w,a,x)},G.trackType,x,B)},sendOnExit:x=>{for(let A of a)!function(a,x,w){let A=!!navigator.sendBeacon&&w.bytesCount<x;if(A)try{let x=a.build("beacon",w),A=navigator.sendBeacon(x,w.data);if(A)return}catch(a){et||(et=!0,(0,k.$y)(a))}fetchStrategy(a,w)}(A,w,x)}}}let et=!1;function fetchStrategy(a,x,w){let F=a.build("fetch",x);(0,A.h)(F,{method:"POST",body:x.data,mode:"cors"}).then((0,k.zk)(a=>null==w?void 0:w({status:a.status,type:a.type}))).catch((0,k.zk)(()=>null==w?void 0:w({status:0})))}},59981:function(a,x,w){"use strict";let A,k,F,V,B,z,G,$,W,Z,K;w.d(x,{Us:function(){return eA},Xn:function(){return tN}
4,k6:function(){return tk},zx:function(){return tO},$n:function(){return tP},nw:function(){return tR},D$:function(){return ew},QB:function(){return createFormDataTransport},Uo:function(){return forEachChildNodes},q5:function(){return getMutationObserverConstructor},IE:function(){return getNodePrivacyLevel},SZ:function(){return getNodeSelfPrivacyLevel},Ow:function(){return getParentNode},$1:function(){return getScrollX},X_:function(){return getScrollY},Gm:function(){return getSessionReplayUrl},FB:function(){return getTextContent},PA:function(){return getViewportDimension},Sn:function(){return hasChildNodes},AX:function(){return initViewportObservable},Tv:function(){return isElementNode},aT:function(){return isNodeShadowHost},VO:function(){return isNodeShadowRoot},HR:function(){return isSampled},_r:function(){return makeRumPublicApi},Ch:function(){return reducePrivacyLevel},Pu:function(){return sanitizeIfLongDataUrl},vv:function(){return shouldMaskAttribute},gR:function(){return shouldMaskNode},iB:function(){return startRum}});var Y,J,ee,et,er,en=w(75721);let ei={GRANTED:"granted",NOT_GRANTED:"not-granted"};var eo=w(55801),ea=w(25026),es=w(22685),el=w(51145),eu=w(45242),ec=w(42419),ed=w(51962);function createIdentityEncoder(){let a="",x=0;return{isAsync:!1,get isEmpty(){return!a},write(w,A){let k=(0,ed.qt)(w);x+=k,a+=w,A&&A(k)},finish(a){a(this.finishSync())},finishSync(){let w={output:a,outputBytesCount:x,rawBytesCount:x,pendingData:""};return a="",x=0,w},estimateEncodedBytesCount:a=>a.length}}var ef=w(64933),ep=w(18797),eh=w(8678),em=w(92904),eg=w(24507),ev=w(68566),ey=w(57549);function defineContextMethod(a,x,w,A){return(0,ef.zk)((...k)=>(A&&(0,ep.eG)({feature:A}),a()[x][w](...k)))}let eb={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},e_={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};var ex=w(13842);function displayAlreadyInitializedError(a,x){x.silentMultipleInit||ex.jf.error(`${a} is already initialized.`)}let ew={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},eS={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},eE={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},eA={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},eC={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},eT={DURATION:"duration",OPERATION_STEP:"operation_step"};var eO=w(88129);function startDurationVital({vitalsByName:a,vitalsByReference:x},w,A={}){let k={name:w,startClocks:(0,ea.$I)(),...A},F={__dd_vital_reference:!0};return a.set(w,k),x.set(F,k),F}function stopDurationVital(a,{vitalsByName:x,vitalsByReference:w},A,k={}){let F="string"==typeof A?x.get(A):w.get(A);if(F){var V,B,z;a((V=F.startClocks,B=(0,ea.$I)(),{name:F.name,type:eT.DURATION,startClocks:V,duration:(0,ea._J)(V.timeStamp,B.timeStamp),context:(0,em.$e)(F.context,k.context),description:null!==(z=k.description)&&void 0!==z?z:F.description})),"string"==typeof A?x.delete(A):w.delete(A)}}function processVital(a){let{startClocks:x,type:w,name:A,description:k,context:F}=a,V={id:(0,eO.DO)(),type:w,name:A,description:k,...w===eT.DURATION?{duration:(0,ea.c0)(a.duration)}:{step_type:a.stepType,operation_key:a.operationKey,failure_reason:a.failureReason}};return{rawRumEvent:{date:x.timeStamp,vital:V,type:ew.VITAL,context:F},startTime:x.relative,duration:w===eT.DURATION?a.duration:void 0,domainContext:{}}}function callPluginsMethod(a,x,w){if(a)for(let A of a){let a=A[x];a&&a(w)}}function removeItem(a,x){let w=a.indexOf(x);w>=0&&a.splice(w,1)}function isNonEmptyArray(a){return Array.isArray(a)&&a.length>0}var eP=w(83206),eR=w(94162);let ek=[];function storeContextManager(a,x,w,A){let k=`_dd_c_${w}_${A}`;ek.push((0,eP.O)(a,window,"storage",({key:a})=>{k===a&&x.setContext(getFromStorage())})),x.changeObservable.subscribe(function(){localStorage.setItem(k,JSON.stringify(x.getContext()))});let F=(0,em.$e)(getFromStorage(),x.getContext());function getFromStorage(){let a=localStorage.getItem(k);return a?JSON.parse(a):{}}(0,eR.Qr)(F)||x.setContext(F)}var eN=w(33234);function ensureProperties(a,x,w){let A={...a};for(let[a,{required:k,type:F}]of Object.entries(x))"string"!==F||isDefined(A[a])||(A[a]=String(A[a])),k&&isDefined(A[a])&&ex.jf.warn(`The property ${a} of ${w} is required; context will not be sent to the intake.`);return A}function isDefined(a){return null==a||""===a}function createContextManager(a="",{propertiesConfig:x={}}={}){let w={},A=new en.y$,k={getContext:()=>(0,em.I8)(w),setContext:F=>{!function(a){let x="object"===(0,eN.o)(a);return x||ex.jf.error("Unsupported context:",a),x}
4(F)?k.clearContext():w=(0,ev.N)(ensureProperties(F,x,a)),A.notify()},setContextProperty:(k,F)=>{w=(0,ev.N)(ensureProperties({...w,[k]:F},x,a)),A.notify()},removeContextProperty:k=>{delete w[k],ensureProperties(w,x,a),A.notify()},clearContext:()=>{w={},A.notify()},changeObservable:A};return k}function buildGlobalContextManager(){return createContextManager("global context")}var eI=w(89643);function buildUserContextManager(){return createContextManager("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function buildAccountContextManager(){return createContextManager("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var eD=w(76876),eM=w(251),eL=w(70170);async function readBytesFromStream(a,x){let w=a.getReader(),A=[];for(;;){let a=await w.read();if(a.done)break;x.collectStreamBody&&A.push(a.value)}return w.cancel().catch(eM.Z),x.collectStreamBody?(0,ed.Kb)(A):void 0}var ej=w(29100);let eF=[];function initFetchObservable({responseBodyAction:a}={}){return a&&eF.push(a),A||(A=new en.y$(a=>{if(!el.Zf.fetch)return;let{stop:x}=(0,eo.S)(el.Zf,"fetch",x=>(function({parameters:a,onPostCall:x,handlingStack:w},A){let[k,F]=a,V=F&&F.method;void 0===V&&k instanceof Request&&(V=k.method);let B=void 0!==V?String(V).toUpperCase():"GET",z=k instanceof Request?k.url:(0,eL.D5)(String(k)),G=(0,ea.$I)(),$={state:"start",init:F,input:k,method:B,startClocks:G,url:z,handlingStack:w};A.notify($),a[0]=$.input,a[1]=$.init,x(a=>{afterSend(A,a,$).catch(ef.$y)})})(x,a),{computeHandlingStack:!0});return x})),A}async function afterSend(a,x,w){var A,k;let F;w.state="resolve";try{F=await x}catch(x){w.status=0,w.isAborted=(null===(k=null===(A=w.init)||void 0===A?void 0:A.signal)||void 0===k?void 0:k.aborted)||x instanceof DOMException&&x.code===DOMException.ABORT_ERR,w.error=x,a.notify(w);return}w.response=F,w.status=F.status,w.responseType=F.type,w.isAborted=!1;let V=eF.reduce((a,x)=>Math.max(a,x(w)),0);if(0!==V){let a=(0,ej.u)(F);if(a&&a.body)try{let x=await readBytesFromStream(a.body,{collectStreamBody:2===V});w.responseBody=x&&new TextDecoder().decode(x)}catch(a){}}a.notify(w)}function setCookie(a,x,w=0,A){let k=new Date;k.setTime(k.getTime()+w);let F=`expires=${k.toUTCString()}`,V=A&&A.crossSite?"none":"strict",B=A&&A.domain?`;domain=${A.domain}`:"",z=A&&A.secure?";secure":"",G=A&&A.partitioned?";partitioned":"";document.cookie=`${a}=${x};${F};path=/;samesite=${V}${B}${z}${G}`}function getCookie(a){return(0,eO.MY)(document.cookie,a)}function getInitCookie(a){return k||(k=(0,eO.kq)(document.cookie)),k.get(a)}function getCurrentSite(a=location.hostname,x=document.referrer){if(void 0===F){let w=function(a,x){try{return a||(0,eL.Q2)(x).hostname}catch(a){}}(a,x);if(w){let a=`dd_site_test_${(0,eO.DO)()}`,x=w.split("."),A=x.pop();for(;x.length&&!getCookie(a);)A=`${x.pop()}.${A}`,setCookie(a,"test",ea.WT,{domain:A});setCookie(a,"",0,{domain:A}),F=A}}return F}function willSyntheticsInjectRum(){return!el.jX&&!!(el.Zf._DATADOG_SYNTHETICS_INJECTS_RUM||getInitCookie("datadog-synthetics-injects-rum"))}function getSyntheticsTestId(){let a=window._DATADOG_SYNTHETICS_PUBLIC_ID||getInitCookie("datadog-synthetics-public-id");return"string"==typeof a?a:void 0}function getSyntheticsResultId(){let a=window._DATADOG_SYNTHETICS_RESULT_ID||getInitCookie("datadog-synthetics-result-id");return"string"==typeof a?a:void 0}function isSyntheticsTest(){return!!(getSyntheticsTestId()&&getSyntheticsResultId())}var eV=w(40812),eU=w(73603),eB=w(65483),eq=w(12172);let ez="_dd_s";var eH=w(94776);let eG=4*ea.dV,e$=15*ea.yR,eW=ea.P5,eZ={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},eK=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function getExpiredSessionState(a,x){let w={isExpired:"1"};return x.trackAnonymousUser&&(null==a?void 0:a.anonymousId)&&(w.anonymousId=null==a?void 0:a.anonymousId),w}function isSessionInNotStartedState(a){return(0,eR.Qr)(a)}function isSessionInExpiredState(a){return void 0!==a.isExpired||!((void 0===a.created||(0,ea.m6)()-Number(a.created)<eG)&&(void 0===a.expire||(0,ea.m6)()<Number(a.expire)))}function expandSessionState(a){a.expire=String((0,ea.m6)()+e$)}function toSessionString(a){return(0,eH.qP)(a).map(([a,x])=>"anonymousId"===a?`aid=${x}`:`${a}=${x}`).join("&")}function toSessionState(a){let x={};return a&&(-1!==a.indexOf("&")||eK.test(a))&&a.split("&").forEach(a=>{let w=eK.exec(a);if(null!==w){let[,a,A]=w;"aid"===a?x.anonymousId=A:x[a]=A}}),x}function selectCookieStrategy(a){let x=function(a){let x={};if(x.secure=!!a.useSecureSessionCookie||!!a.usePartitionedCrossSiteSessionCookie,x.crossSite=!!a.usePartitionedCrossSiteSessionCookie,x.partitioned=!!a.usePartitionedCrossSiteSessionCookie,a.trackSe
4ssionAcrossSubdomains){let a=getCurrentSite();if(!a)return;x.domain=a}return x}(a);return x&&function(a){if(void 0===document.cookie||null===document.cookie)return!1;try{let x=`dd_cookie_test_${(0,eO.DO)()}`,w="test";setCookie(x,w,ea.yR,a);let A=getCookie(x)===w;return setCookie(x,"",0,a),A}catch(a){return ex.jf.error(a),!1}}(x)?{type:eZ.COOKIE,cookieOptions:x}:void 0}function storeSessionCookie(a,x,w,A){let k=toSessionString(w);x.betaEncodeCookieOptions&&(k=toSessionString({...w,...(0,eR.Qr)(w)?{}:{c:encodeCookieOptions(a)}})),setCookie(ez,k,x.trackAnonymousUser?eW:A,a)}function retrieveSessionCookie(a,x){if(x.betaEncodeCookieOptions)return function(a){let x;let w=(0,eO.ql)(document.cookie).get(ez)||[],A=encodeCookieOptions(a);for(let a of w.reverse())if((x=toSessionState(a)).c===A)break;return null==x||delete x.c,null!=x?x:{}}(a);let w=getCookie(ez),A=toSessionState(w);return A}function encodeCookieOptions(a){let x=a.domain?a.domain.split(".").length-1:0;return(0|x<<1|(a.crossSite?1:0)).toString(16)}function selectLocalStorageStrategy(){try{let a=(0,eO.DO)(),x=`_dd_test_${a}`;localStorage.setItem(x,a);let w=localStorage.getItem(x);return localStorage.removeItem(x),a===w?{type:eZ.LOCAL_STORAGE}:void 0}catch(a){return}}function persistInLocalStorage(a){localStorage.setItem(ez,toSessionString(a))}function retrieveSessionFromLocalStorage(){let a=localStorage.getItem(ez);return toSessionState(a)}let eQ=ea.WT,eY=[];function processSessionStoreOperations(a,x,w=0){var A;let k;let{isLockEnabled:F,persistSession:B,expireSession:z}=x,persistWithLock=a=>B({...a,lock:k}),retrieveStore=()=>{let{lock:a,...w}=x.retrieveSession();return{session:w,lock:a&&!function(a){let[,x]=a.split("--");return!x||(0,ea._J)(Number(x),(0,ea.n$)())>eQ}(a)?a:void 0}};if(V||(V=a),a!==V){eY.push(a);return}if(F&&w>=100){next(x);return}let G=retrieveStore();if(F&&(G.lock||(k=(0,eO.DO)()+"--"+(0,ea.n$)(),persistWithLock(G.session),(G=retrieveStore()).lock!==k))){retryLater(a,x,w);return}let $=a.process(G.session);if(F&&(G=retrieveStore()).lock!==k){retryLater(a,x,w);return}if($&&(isSessionInExpiredState($)?z($):(expandSessionState($),F?persistWithLock($):B($))),F&&!($&&isSessionInExpiredState($))){if((G=retrieveStore()).lock!==k){retryLater(a,x,w);return}B(G.session),$=G.session}null===(A=a.after)||void 0===A||A.call(a,$||G.session),next(x)}function retryLater(a,x,w){(0,eB.iK)(()=>{processSessionStoreOperations(a,x,w+1)},10)}function next(a){V=void 0;let x=eY.shift();x&&processSessionStoreOperations(x,a)}let eJ=ea.WT;function isMatchOption(a){let x=(0,eN.o)(a);return"string"===x||"function"===x||a instanceof RegExp}function matchList(a,x,w=!1){return a.some(a=>{try{if("function"==typeof a)return a(x);if(a instanceof RegExp)return a.test(x);if("string"==typeof a)return w?x.startsWith(a):a===x}catch(a){ex.jf.error(a)}return!1})}let eX=["chrome-extension://","moz-extension://"];function containsExtensionUrl(a){return eX.some(x=>a.includes(x))}var e0=w(93909);function createEndpointBuilder(a,x,w){let A=function(a,x){let w=`/api/v2/${x}`,A=a.proxy;if("string"==typeof A){let a=(0,eL.D5)(A);return x=>`${a}?ddforward=${encodeURIComponent(`${w}?${x}`)}`}if("function"==typeof A)return a=>A({path:w,parameters:a});let k=buildEndpointHost(x,a);return a=>`https://${k}${w}?${a}`}(a,x);return{build(k,F){let V=function({clientToken:a,internalAnalyticsSubdomain:x,source:w="browser"},A,k,{retry:F,encoding:V},B=[]){let z=[`ddsource=${w}`,`dd-api-key=${a}`,`dd-evp-origin-version=${encodeURIComponent("6.26.0")}`,"dd-evp-origin=browser",`dd-request-id=${(0,eO.DO)()}`].concat(B);return V&&z.push(`dd-evp-encoding=${V}`),"rum"===A&&(z.push(`batch_time=${(0,ea.n$)()}`,`_dd.api=${k}`),F&&z.push(`_dd.retry_count=${F.count}`,`_dd.retry_after=${F.lastFailureStatus}`)),x&&z.reverse(),z.join("&")}(a,x,k,F,w);return A(V)},trackType:x}}function buildEndpointHost(a,x){let{site:w=e0.D_,internalAnalyticsSubdomain:A}=x;if("logs"===a&&x.usePciIntake&&w===e0.D_)return e0.iL;if(A&&w===e0.D_)return`${A}.${e0.D_}`;if(w===e0.by)return`http-intake.logs.${w}`;let k=w.split("."),F=k.pop();return`browser-intake-${k.join("-")}.${F}`}let e1={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},e2={ALL:"all",SAMPLED:"sampled"};function isString(a,x){return null==a||"string"==typeof a||(ex.jf.error(`${x} must be defined as a string`),!1)}function isSampleRate(a,x){return!!(void 0===a||(0,eU.zz)(a))||(ex.jf.error(`${x} Sample Rate should be a number between 0 and 100`),!1)}let e5=["tracecontext","datadog"];function normalizeTracingOption(a){return isMatchOption(a)?{match:a,propagatorTypes:e5}:(0,eN.s)(a)&&isMatchOption(a.match)&&(null===a.propagatorTypes||void 0===a.propagatorTypes||Array.isArray(a.propagatorTypes))?{match:a.match,propagatorTypes:a.propagatorTypes||e5}:void 0}var e3=w(27752);let e4=/[a-zA-Z_$]/,e6=/[a-zA-Z0-9_$]/,e8=/[0-9]/,e7=/[a-fA-F0-9]/,e9={0:()=>
4!1,1:()=>!1,2:a=>e4.test(a),3:a=>e6.test(a),4:a=>"."===a,5:a=>"["===a,6:a=>"]"===a,7:a=>e8.test(a),8:a=>"'\"".includes(a),9:(a,x)=>a===x.quote,10:()=>!0,11:a=>"\\"===a,12:(a,x)=>void 0===x.escapeSequence?`${x.quote}/\\bfnrtu`.includes(a):!!x.escapeSequence.startsWith("u")&&x.escapeSequence.length<5&&e7.test(a)},te={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]},tt=[2,3,7,10],tr=[4,5,6],tn={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},ti=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function fetchAndApplyRemoteConfiguration(a,x){let w;let A=function(){let a={fetch:{}};return{get:()=>a,increment:(x,w)=>{a[x]||(a[x]={}),a[x][w]||(a[x][w]=0),a[x][w]=a[x][w]+1}}}(),k=await fetchRemoteConfiguration(a);return k.ok?(A.increment("fetch","success"),w=function(a,x,w,A){let k={...a};return ti.forEach(a=>{a in x&&(k[a]=resolveConfigurationProperty(x[a]))}
4),Object.keys(w).forEach(a=>{void 0!==x[a]&&function(a,x){x.forEach(({key:x,value:w})=>{a.setContextProperty(x,resolveConfigurationProperty(w))})}(w[a],x[a])}),k;function resolveConfigurationProperty(a){if(Array.isArray(a))return a.map(resolveConfigurationProperty);if((0,eN.s)(a)){if("rcSerializedType"in a){let x=a.rcSerializedType;switch(x){case"string":return a.value;case"regex":return resolveRegex(a.value);case"dynamic":return function(a){let x;let w=a.strategy;switch(w){case"cookie":x=function({name:a}){let x=getCookie(a);return A.increment("cookie",void 0!==x?"success":"missing"),x}(a);break;case"dom":x=function({selector:a,attribute:x}){let w;try{w=document.querySelector(a)}catch(x){ex.jf.error(`Invalid selector in the remote configuration: '${a}'`),A.increment("dom","failure");return}if(!w){A.increment("dom","missing");return}if("password"===w.getAttribute("type")&&"value"===x){ex.jf.error(`Forbidden element selected by the remote configuration: '${a}'`),A.increment("dom","failure");return}let k=void 0!==x?w.getAttribute(x):w.textContent;if(null===k){A.increment("dom","missing");return}return A.increment("dom","success"),k}(a);break;case"js":x=function({path:a}){let x=window,w=function(a){let x;let w=[],A=0,k={quote:void 0,escapeSequence:void 0},F="";for(let z of a){if(!(x=te[A].find(a=>e9[a](z,k))))return[];if(void 0!==k.escapeSequence&&12!==x){var V,B;if(V=k.escapeSequence,!("\"'/\\bfnrt".includes(V)||V.startsWith("u")&&5===V.length))return[];F+=(B=k.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(B.slice(1),16)):tn[B],k.escapeSequence=void 0}tt.includes(x)?F+=z:tr.includes(x)&&""!==F?(w.push(F),F=""):12===x?k.escapeSequence=k.escapeSequence?`${k.escapeSequence}${z}`:z:8===x?k.quote=z:9===x&&(k.quote=void 0),A=x}return te[A].includes(1)?(""!==F&&w.push(F),w):[]}(a);if(0===w.length){ex.jf.error(`Invalid JSON path in the remote configuration: '${a}'`),A.increment("js","failure");return}for(let k of w){if(!(k in x)){A.increment("js","missing");return}try{x=x[k]}catch(x){ex.jf.error(`Error accessing: '${a}'`,x),A.increment("js","failure");return}}return A.increment("js","success"),x}(a);break;default:ex.jf.error(`Unsupported remote configuration: "strategy": "${w}"`);return}let k=a.extractor;return void 0!==k&&"string"==typeof x?function(a,x){let w=resolveRegex(a.value);if(void 0===w)return;let A=w.exec(x);if(null===A)return;let[k,F]=A;return F||k}(k,x):x}(a);default:ex.jf.error(`Unsupported remote configuration: "rcSerializedType": "${x}"`);return}}return(0,eR.Q8)(a,resolveConfigurationProperty)}return a}}(a,k.value,x,A)):(A.increment("fetch","failure"),ex.jf.error(k.error)),(0,ep.qZ)("remote configuration metrics",{metrics:A.get()}),w}function resolveRegex(a){try{return new RegExp(a)}catch(x){ex.jf.error(`Invalid regex in the remote configuration: '${a}'`)}}async function fetchRemoteConfiguration(a){let x;try{x=await (0,e3.h)(a.remoteConfigurationProxy?a.remoteConfigurationProxy:`https://sdk-configuration.${buildEndpointHost("rum",a)}/v1/${encodeURIComponent(a.remoteConfigurationId)}.json`)}catch(a){x=void 0}if(!x||!x.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let w=await x.json();return w.rum?{ok:!0,value:w.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function preStartRum_bufferContextCalls(a,x,w){a.changeObservable.subscribe(()=>{let A=a.getContext();w.add(a=>a[x].setContext(A))})}function makeRumPublicApi(a,x,w,A={}){let k=function(a){let x=new en.y$;return{tryToInit(x){a||(a=x)},update(w){a=w,x.notify()},isGranted:()=>a===ei.GRANTED,observable:x}}(),F=function(){let a=new Map,x=new WeakMap;return{vitalsByName:a,vitalsByReference:x}}(),V=function(a=function(){return new en.y$(a=>{let handleRuntimeError=(x,w)=>{let A=(0,eu.AP)({stackTrace:w,originalError:x,startClocks:(0,ea.$I)(),nonErrorPrefix:"Uncaught",source:ec.z.SOURCE,handling:"unhandled"});a.notify(A)},{stop:x}=(0,eo.S)((0,el.Rf)(),"onerror",({parameters:[a,x,w,A,k]})=>{let F;(0,eu.VZ)(k)||(F=(0,es.f)(a,x,w,A)),handleRuntimeError(null!=k?k:a,F)}),{stop:w}=(0,eo.S)((0,el.Rf)(),"onunhandledrejection",({parameters:[a]})=>{handleRuntimeError(a.reason||"Empty reason")});return()=>{x(),w()}})}){let x=new en.fk(500),w=a().subscribe(a=>{x.notify({type:0,error:a})});return{observable:x,stop:()=>{w.unsubscribe()}}}().observable,B=function({ignoreInitIfSyntheticsWillInjectRum:a=!0,startDeflateWorker:x},w,A,k){let F,V,B,z;let G=function(){let a=[];return{add:x=>{let w=a.push(x);w>500&&a.splice(0,1)},remove:x=>{removeItem(a,x)},drain:x=>{a.forEach(a=>a(x)),a.length=0}}}(),$=buildGlobalContextManager();preStartRum_bufferContextCalls($,eb.globalContext,G);let W=buildUserContextManager();preStartRum_bufferContextCalls(W,eb.userContext,G);let Z=buildAccountContextManager();preStartRum_bufferContextCalls(Z,eb.accountContext,G);let K=w.observable.subscribe(tryStartRum),Y={};function tryStartRum(){let a;if(!B||!z||!w.isGranted())return;if(K.unsubscribe(),z.trackViewsManually){if(!F)return;G.remove(F.callback),a=F.options}let x=k(z,V,a);G.drain(x)}function doInit(a,A){var k,F,G;let $=(0,eD.xT)();if($&&(a={...k=a,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(F=k.defaultPrivacyLevel)&&void 0!==F?F:null===(G=(0,eD.Ad)())||void 0===G?void 0:G.getPrivacyLevel()}),B=a,(0,ep.Uo)(function(a){var x,w,A;let k={session_sample_rate:a.sessionSampleRate,telemetry_sample_rate:a.telemetrySampleRate,telemetry_configuration_sample_rate:a.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:a.telemetryUsageSampleRate,use_before_send:!!a.beforeSend,use_partitioned_cross_site_session_cookie:a.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:a.useSecureSessionCookie,use_proxy:!!a.proxy,silent_multiple_init:a.silentMultipleInit,track_session_across_subdomains:a.trackSe
4ssionAcrossSubdomains,track_anonymous_user:a.trackAnonymousUser,session_persistence:a.sessionPersistence,allow_fallback_to_local_storage:!!a.allowFallbackToLocalStorage,store_contexts_across_pages:!!a.storeContextsAcrossPages,allow_untrusted_events:!!a.allowUntrustedEvents,tracking_consent:a.trackingConsent,use_allowed_tracking_origins:Array.isArray(a.allowedTrackingOrigins),beta_encode_cookie_options:a.betaEncodeCookieOptions,source:a.source,sdk_version:a.sdkVersion,variant:a.variant};return{session_replay_sample_rate:a.sessionReplaySampleRate,start_session_replay_recording_manually:a.startSessionReplayRecordingManually,trace_sample_rate:a.traceSampleRate,trace_context_injection:a.traceContextInjection,propagate_trace_baggage:a.propagateTraceBaggage,action_name_attribute:a.actionNameAttribute,use_allowed_tracing_urls:isNonEmptyArray(a.allowedTracingUrls),use_allowed_graph_ql_urls:isNonEmptyArray(a.allowedGraphQlUrls),use_track_graph_ql_payload:isNonEmptyArray(w=a.allowedGraphQlUrls)&&w.some(a=>(0,eN.s)(a)&&a.trackPayload),use_track_graph_ql_response_errors:isNonEmptyArray(A=a.allowedGraphQlUrls)&&A.some(a=>(0,eN.s)(a)&&a.trackResponseErrors),selected_tracing_propagators:function(a){let x=new Set;return isNonEmptyArray(a.allowedTracingUrls)&&a.allowedTracingUrls.forEach(a=>{var w;null===(w=normalizeTracingOption(a))||void 0===w||w.propagatorTypes.forEach(a=>x.add(a))}),Array.from(x)}(a),default_privacy_level:a.defaultPrivacyLevel,enable_privacy_for_action_name:a.enablePrivacyForActionName,use_excluded_activity_urls:isNonEmptyArray(a.excludedActivityUrls),use_worker_url:!!a.workerUrl,compress_intake_requests:a.compressIntakeRequests,track_views_manually:a.trackViewsManually,track_user_interactions:a.trackUserInteractions,track_resources:a.trackResources,track_long_task:a.trackLongTasks,track_bfcache_views:a.trackBfcacheViews,track_early_requests:a.trackEarlyRequests,plugins:null===(x=a.plugins)||void 0===x?void 0:x.map(a=>{var x;return{name:a.name,...null===(x=a.getConfigurationTelemetry)||void 0===x?void 0:x.call(a)}}),track_feature_flags_for_events:a.trackFeatureFlagsForEvents,remote_configuration_id:a.remoteConfigurationId,profiling_sample_rate:a.profilingSampleRate,use_remote_configuration_proxy:!!a.remoteConfigurationProxy,...k}}(a)),z){displayAlreadyInitializedError("DD_RUM",a);return}let W=function(a,x){var w,A,k,F,V,B,z;if(void 0===a.trackFeatureFlagsForEvents||Array.isArray(a.trackFeatureFlagsForEvents)||ex.jf.warn("trackFeatureFlagsForEvents should be an array"),!a.applicationId){ex.jf.error("Application ID is not configured, no RUM data will be collected.");return}if(!isSampleRate(a.sessionReplaySampleRate,"Session Replay")||!isSampleRate(a.traceSampleRate,"Trace"))return;if(void 0!==a.excludedActivityUrls&&!Array.isArray(a.excludedActivityUrls)){ex.jf.error("Excluded Activity Urls should be an array");return}let G=function(a){if(void 0===a.allowedTracingUrls)return[];if(!Array.isArray(a.allowedTracingUrls)){ex.jf.error("Allowed Tracing URLs should be an array");return}if(0!==a.allowedTracingUrls.length&&void 0===a.service){ex.jf.error("Service needs to be configured when tracing is enabled");return}let x=[];return a.allowedTracingUrls.forEach(a=>{let w=normalizeTracingOption(a);w?x.push(w):ex.jf.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",a)}),x}(a);if(!G)return;let $=function(a,x){var w,A,k,F,V,B,z,G,$,W,Z;if(!a||!a.clientToken){ex.jf.error("Client Token is not configured, we will not send any data.");return}if(void 0!==a.allowedTrackingOrigins&&!Array.isArray(a.allowedTrackingOrigins)){ex.jf.error("Allowed Tracking Origins must be an array");return}if((!(Z=a.site)||"string"!=typeof Z||/(datadog|ddog|datad0g|dd0g)/.test(Z)||(ex.jf.error(`Site should be a valid Datadog site. ${ex.IA} ${ex.aA}/getting_started/site/.`),0))&&isSampleRate(a.sessionSampleRate,"Session")&&isSampleRate(a.telemetrySampleRate,"Telemetry")&&isSampleRate(a.telemetryConfigurationSampleRate,"Telemetry Configuration")&&isSampleRate(a.telemetryUsageSampleRate,"Telemetry Usage")&&isString(a.version,"Version")&&isString(a.env,"Env")&&isString(a.service,"Service")&&function(a,x,w="undefined"!=typeof location?location.origin:""){let A=a.allowedTrackingOrigins;if(!A)return!function(a,x=""){if(containsExtensionUrl(a))return!1;let w=x.split("\n").filter(a=>{let x=a.trim();return x.length&&/^at\s+|@/.test(x)}),A=w[1]||"";return containsExtensionUrl(A)}(w,x)||(ex.jf.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let k=matchList(A,w);return k||ex.jf.error("SDK initialized on a non-allowed domain."),k}(a,null!=x?x:"")){if(void 0!==a.trackingConsent&&!(0,eR.E5)(ei,a.trackingConsent)){ex.jf.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:a.beforeSend&&(0,eV.Z)(a.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:el.jX?void 0:function(a){switch(a.sessionPersistence){case eZ.COOKIE:return selectCookieStrategy(a);case eZ.LOCAL_STORAGE:return selectLocalStorageStrategy();case void 0:{let x=selectCookieStrategy(a);
4return!x&&a.allowFallbackToLocalStorage&&(x=selectLocalStorageStrategy()),x}default:ex.jf.error(`Invalid session persistence '${String(a.sessionPersistence)}'`)}}(a),sessionSampleRate:null!==(w=a.sessionSampleRate)&&void 0!==w?w:100,telemetrySampleRate:null!==(A=a.telemetrySampleRate)&&void 0!==A?A:20,telemetryConfigurationSampleRate:null!==(k=a.telemetryConfigurationSampleRate)&&void 0!==k?k:5,telemetryUsageSampleRate:null!==(F=a.telemetryUsageSampleRate)&&void 0!==F?F:5,service:null!==(V=a.service)&&void 0!==V?V:void 0,env:null!==(B=a.env)&&void 0!==B?B:void 0,version:null!==(z=a.version)&&void 0!==z?z:void 0,datacenter:null!==(G=a.datacenter)&&void 0!==G?G:void 0,silentMultipleInit:!!a.silentMultipleInit,allowUntrustedEvents:!!a.allowUntrustedEvents,trackingConsent:null!==($=a.trackingConsent)&&void 0!==$?$:ei.GRANTED,trackAnonymousUser:null===(W=a.trackAnonymousUser)||void 0===W||W,storeContextsAcrossPages:!!a.storeContextsAcrossPages,betaEncodeCookieOptions:!!a.betaEncodeCookieOptions,variant:a.variant,sdkVersion:a.sdkVersion,...function(a){var x,w;let A=a.site||e0.D_,k="flutter"===(x=a.source)||"unity"===x?x:"browser",F={logsEndpointBuilder:createEndpointBuilder(w={...a,site:A,source:k},"logs"),rumEndpointBuilder:createEndpointBuilder(w,"rum"),profilingEndpointBuilder:createEndpointBuilder(w,"profile"),sessionReplayEndpointBuilder:createEndpointBuilder(w,"replay"),exposuresEndpointBuilder:createEndpointBuilder(w,"exposures"),flagEvaluationEndpointBuilder:createEndpointBuilder(w,"flagevaluation")},V=function(a){if(!a.replica)return;let x={...a,site:e0.D_,clientToken:a.replica.clientToken};return{logsEndpointBuilder:createEndpointBuilder(x,"logs"),rumEndpointBuilder:createEndpointBuilder(x,"rum",[`application.id=${a.replica.applicationId}`])}}({...a,site:A,source:k}
4);return{replica:V,site:A,source:k,...F}}(a)}}}(a,x),W=function(a){if(!a.allowedGraphQlUrls)return[];if(!Array.isArray(a.allowedGraphQlUrls))return ex.jf.warn("allowedGraphQlUrls should be an array"),[];let x=[];return a.allowedGraphQlUrls.forEach(a=>{isMatchOption(a)?x.push({match:a,trackPayload:!1,trackResponseErrors:!1}):(0,eN.s)(a)&&isMatchOption(a.match)&&x.push({match:a.match,trackPayload:!!a.trackPayload,trackResponseErrors:!!a.trackResponseErrors})}),x}(a);if(!$)return;let Z=null!==(w=a.sessionReplaySampleRate)&&void 0!==w?w:0;return{applicationId:a.applicationId,actionNameAttribute:a.actionNameAttribute,betaTrackActionsInShadowDom:!!a.betaTrackActionsInShadowDom,sessionReplaySampleRate:Z,startSessionReplayRecordingManually:void 0!==a.startSessionReplayRecordingManually?!!a.startSessionReplayRecordingManually:0===Z,traceSampleRate:null!==(A=a.traceSampleRate)&&void 0!==A?A:100,rulePsr:(0,eU.hj)(a.traceSampleRate)?a.traceSampleRate/100:void 0,allowedTracingUrls:G,excludedActivityUrls:null!==(k=a.excludedActivityUrls)&&void 0!==k?k:[],workerUrl:a.workerUrl,compressIntakeRequests:!!a.compressIntakeRequests,trackUserInteractions:!!(null===(F=a.trackUserInteractions)||void 0===F||F),trackViewsManually:!!a.trackViewsManually,trackResources:!!(null===(V=a.trackResources)||void 0===V||V),trackLongTasks:!!(null===(B=a.trackLongTasks)||void 0===B||B),trackBfcacheViews:!!a.trackBfcacheViews,trackEarlyRequests:!!a.trackEarlyRequests,subdomain:a.subdomain,defaultPrivacyLevel:(0,eR.E5)(e1,a.defaultPrivacyLevel)?a.defaultPrivacyLevel:e1.MASK,enablePrivacyForActionName:!!a.enablePrivacyForActionName,traceContextInjection:(0,eR.E5)(e2,a.traceContextInjection)?a.traceContextInjection:e2.SAMPLED,plugins:a.plugins||[],trackFeatureFlagsForEvents:a.trackFeatureFlagsForEvents||[],profilingSampleRate:null!==(z=a.profilingSampleRate)&&void 0!==z?z:0,propagateTraceBaggage:!!a.propagateTraceBaggage,allowedGraphQlUrls:W,...$}}(a,A);if(W){if(!$&&!W.sessionStoreStrategyType){ex.jf.warn("No storage available for session. We will not send any data.");return}(!W.compressIntakeRequests||$||!x||(V=x(W,"Datadog RUM",eM.Z)))&&(z=W,initFetchObservable().subscribe(eM.Z),w.tryToInit(W.trackingConsent),tryStartRum())}}let addDurationVital=a=>{G.add(x=>x.addDurationVital(a))},J={init(x,w,A){if(!x){ex.jf.error("Missing configuration");return}(0,ey.fG)(x.enableExperimentalFeatures),B=x,a&&willSyntheticsInjectRum()||(callPluginsMethod(x.plugins,"onInit",{initConfiguration:x,publicApi:w}),x.remoteConfigurationId?fetchAndApplyRemoteConfiguration(x,{user:W,context:$}).then(a=>{a&&doInit(a,A)}).catch(ef.$y):doInit(x,A))},get initConfiguration(){return B},getInternalContext:eM.Z,stopSession:eM.Z,addTiming(a,x=(0,ea.n$)()){G.add(w=>w.addTiming(a,x))},startView(a,x=(0,ea.$I)()){let callback=w=>{w.startView(a,x)};G.add(callback),F||(F={options:a,callback},tryStartRum())},setViewName(a){G.add(x=>
4x.setViewName(a))},setViewContext(a){G.add(x=>x.setViewContext(a))},setViewContextProperty(a,x){G.add(w=>w.setViewContextProperty(a,x))},getViewContext:()=>Y,globalContext:$,userContext:W,accountContext:Z,addAction(a){G.add(x=>x.addAction(a))},startAction(a,x){let w=(0,ea.$I)();G.add(A=>A.startAction(a,x,w))},stopAction(a,x){let w=(0,ea.$I)();G.add(A=>A.stopAction(a,x,w))},addError(a){G.add(x=>x.addError(a))},addFeatureFlagEvaluation(a,x){G.add(w=>w.addFeatureFlagEvaluation(a,x))},startDurationVital:(a,x)=>startDurationVital(A,a,x),stopDurationVital(a,x){stopDurationVital(addDurationVital,A,a,x)},addDurationVital,addOperationStepVital:(a,x,w,A)=>{G.add(k=>k.addOperationStepVital((0,ev.N)(a),x,(0,ev.N)(w),(0,ev.N)(A)))}};return J}(A,k,F,(z,G,$)=>{let W=G&&A.createDeflateEncoder?a=>A.createDeflateEncoder(z,G,a):createIdentityEncoder,Z=a(z,x,w,$,W,k,F,V,A.sdkName);return x.onRumStart(Z.lifeCycle,z,Z.session,Z.viewHistory,G,Z.telemetry),w.onRumStart(Z.lifeCycle,Z.hooks,z,Z.session,Z.viewHistory,Z.longTaskContexts,W),B={init:a=>{displayAlreadyInitializedError("DD_RUM",a)},initConfiguration:B.initConfiguration,...Z},callPluginsMethod(z.plugins,"onRumStart",{strategy:B,addEvent:Z.addEvent}),Z}),getStrategy=()=>B,z=(0,ef.zk)(a=>{let x="object"==typeof a?a:{name:a};B.startView(x),(0,ep.eG)({feature:"start-view"})}),G=(0,eh.r)({init:a=>{let x=Error().stack;(0,ef.L6)(()=>B.init(a,G,x))},setTrackingConsent:(0,ef.zk)(a=>{k.update(a),(0,ep.eG)({feature:"set-tracking-consent",tracking_consent:a})}),setViewName:(0,ef.zk)(a=>{B.setViewName(a),(0,ep.eG)({feature:"set-view-name"})}),setViewContext:(0,ef.zk)(a=>{B.setViewContext(a),(0,ep.eG)({feature:"set-view-context"})}),setViewContextProperty:(0,ef.zk)((a,x)=>{B.setViewContextProperty(a,x),(0,ep.eG)({feature:"set-view-context-property"})}),getViewContext:(0,ef.zk)(()=>((0,ep.eG)({feature:"set-view-context-property"}),B.getViewContext())),getInternalContext:(0,ef.zk)(a=>B.getInternalContext(a)),getInitConfiguration:(0,ef.zk)(()=>(0,em.I8)(B.initConfiguration)),addAction:(a,x)=>{let w=(0,eg.Xp)("action");(0,ef.L6)(()=>{B.addAction({name:(0,ev.N)(a),context:(0,ev.N)(x),startClocks:(0,ea.$I)(),type:eA.CUSTOM,handlingStack:w}),(0,ep.eG)({feature:"add-action"})})},startAction:(0,ef.zk)((a,x)=>{(!B.initConfiguration||(0,ey.W_)(ey.uh.START_STOP_ACTION))&&B.startAction((0,ev.N)(a),{type:(0,ev.N)(x&&x.type),context:(0,ev.N)(x&&x.context),actionKey:x&&x.actionKey})}),stopAction:(0,ef.zk)((a,x)=>{(!B.initConfiguration||(0,ey.W_)(ey.uh.START_STOP_ACTION))&&B.stopAction((0,ev.N)(a),{type:(0,ev.N)(x&&x.type),context:(0,ev.N)(x&&x.context),actionKey:x&&x.actionKey})}),addError:(a,x)=>{let w=(0,eg.Xp)("error");(0,ef.L6)(()=>{B.addError({error:a,handlingStack:w,context:(0,ev.N)(x),startClocks:(0,ea.$I)()}),(0,ep.eG)({feature:"add-error"})})},addTiming:(0,ef.zk)((a,x)=>{B.addTiming((0,ev.N)(a),x)}),setGlobalContext:defineContextMethod(getStrategy,eb.globalContext,e_.setContext,"set-global-context"),getGlobalContext:defineContextMethod(getStrategy,eb.globalContext,e_.getContext,"get-global-context"),setGlobalContextProperty:defineContextMethod(getStrategy,eb.globalContext,e_.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:defineContextMethod(getStrategy,eb.globalContext,e_.removeContextProperty,"remove-global-context-property"),clearGlobalContext:defineContextMethod(getStrategy,eb.globalContext,e_.clearContext,"clear-global-context"),setUser:defineContextMethod(getStrategy,eb.userContext,e_.setContext,"set-user"),getUser:defineContextMethod(getStrategy,eb.userContext,e_.getContext,"get-user"),setUserProperty:defineContextMethod(getStrategy,eb.userContext,e_.setContextProperty,"set-user-property"),removeUserProperty:defineContextMethod(getStrategy,eb.userContext,e_.removeContextProperty,"remove-user-property"),clearUser:defineContextMethod(getStrategy,eb.userContext,e_.clearContext,"clear-user"),setAccount:defineContextMethod(getStrategy,eb.accountContext,e_.setContext,"set-account"),getAccount:defineContextMethod(getStrategy,eb.accountContext,e_.getContext,"get-account"),setAccountProperty:defineContextMethod(getStrategy,eb.accountContext,e_.setContextProperty,"set-account-property"),removeAccountProperty:defineContextMethod(getStrategy,eb.accountContext,e_.removeContextProperty,"remove-account-property"),clearAccount:defineContextMethod(getStrategy,eb.accountContext,e_.clearContext,"clear-account"),startView:z,stopSession:(0,ef.zk)(()=>{B.stopSession(),(0,ep.eG)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,ef.zk)((a,x)=>{B.addFeatureFlagEvaluation((0,ev.N)(a),(0,ev.N)(x)),(0,ep.eG)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,ef.zk)(()=>x.getSessionReplayLink()),startSessionReplayRecording:(0,ef.zk)(a=>{x.start(a),(0,ep.eG)({feature:"start-session-replay-recording",force:a&&a.force})}),stopSessionReplayRecording:(0,ef.zk)(()=>x.stop()),addDurationVital:(0,ef.zk)((a,x)=>{(0,ep.eG)({feature:"add-duration-vital"}),B.addDurationVital({name:(0,ev.N)(a),type:eT.DURATION,startClocks:(0,ea.lO)(x.startTime),duration:x.duration,context:(0,ev.N)(x&&x.context),description:(0,ev.N)(x&&x.description)})}),startDurationVital:(0,ef.zk)((a,x)=>((0,ep.eG)({feature:"start-duration-vital"}),B.startDurationVital((0,ev.N)(a),{context:(0,ev.N)(x&&x.context),description:(0,ev.N)(x&&x.description)}))),stopDurationVital:(0,ef.zk)((a,x)=>{(0,ep.eG)({feature:"stop-duration-vital"}),B.stopDurationVital("string"==typeof a?(0,ev.N)(a):a,{context:(0,ev.N)(x&&x.context),description:(0,ev.N)(x&&x.description)})}),startFeatureOperation:(0,ef.zk)((a,x)=>{(0,ep.eG)({feature:"add-operation-step-vital",action_type:"start"}),B.addOperationStepVital(a,"start",x)}),succeedFeatureOperation:(0,ef.zk)((a,x)=>{(0,ep.eG)({feature:"add-operation-step-vital",action_type:"succeed"}),B.addOperationStepVital(a,"end",x)}),failFeatureOperation:(0,ef.zk)((a,x,w)=>{(0,ep.eG)({feature:"add-operation-step-vital",action_type:"fail"}),B.addOperationStepVital(a,"end",w,x)})});return G}var to=w(38971),ta=w(47581),ts=w(59693);function getMutationObserverConstructor(){let a;let x=window;if(x.Zone&&(a=(0,ts.I)(x,"MutationObserver"),x.MutationObserver&&a===x.MutationObserver)){let w=new x.MutationObserver(eM.Z),A=(0,ts.I)(w,"originalInstance");a=A&&A.constructor}return a||(a=x.MutationObserver),a}let tl=class{constructor(){this.callbacks={}}notify(a,x){let w=this.callbacks[a];
4w&&w.forEach(a=>a(x))}subscribe(a,x){return this.callbacks[a]||(this.callbacks[a]=[]),this.callbacks[a].push(x),{unsubscribe:()=>{this.callbacks[a]=this.callbacks[a].filter(a=>x!==a)}}}},tu=1/0,tc=ea.yR,td=null,tf=new Set;function createValueHistory({expireDelay:a,maxEntries:x}){let w=[];td||(td=(0,eB.Zi)(()=>void tf.forEach(a=>a()),tc));let clearExpiredValues=()=>{let x=(0,ea._q)()-a;for(;w.length>0&&w[w.length-1].endTime<x;)w.pop()};return tf.add(clearExpiredValues),{add:function(a,A){let k={value:a,startTime:A,endTime:tu,remove:()=>{removeItem(w,k)},close:a=>{k.endTime=a}};return x&&w.length>=x&&w.pop(),w.unshift(k),k},find:function(a=tu,x={returnInactive:!1}){for(let A of w)if(A.startTime<=a){if(x.returnInactive||a<=A.endTime)return A.value;break}},closeActive:function(a){let x=w[0];x&&x.endTime===tu&&x.close(a)},findAll:function(a=tu,x=0){let A=(0,ea.WK)(a,x);return w.filter(x=>x.startTime<=A&&a<=x.endTime).map(a=>a.value)},reset:function(){w=[]},stop:function(){tf.delete(clearExpiredValues),0===tf.size&&td&&((0,eB.cv)(td),td=null)}}}let tp=new WeakMap;function openXhr({target:a,parameters:[x,w]}){tp.set(a,{state:"open",method:String(x).toUpperCase(),url:(0,eL.D5)(String(w))})}function abortXhr({target:a}){let x=tp.get(a);x&&(x.isAborted=!0)}let th={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},tm={FETCH:th.FETCH,XHR:th.XHR},tg="initial_document",tv=[[th.DOCUMENT,a=>tg===a],[th.XHR,a=>"xmlhttprequest"===a],[th.FETCH,a=>"fetch"===a],[th.BEACON,a=>"beacon"===a],[th.CSS,(a,x)=>/\.css$/i.test(x)],[th.JS,(a,x)=>/\.js$/i.test(x)],[th.IMAGE,(a,x)=>["image","img","icon"].includes(a)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(x)],[th.FONT,(a,x)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(x)],[th.MEDIA,(a,x)=>["audio","video"].includes(a)||null!==/\.(mp3|mp4)$/i.exec(x)]];function areInOrder(...a){for(let x=1;x<a.length;x+=1)if(a[x-1]>a[x])return!1;return!0}function isResourceEntryRequestType(a){return"xmlhttprequest"===a.initiatorType||"fetch"===a.initiatorType}function hasValidResourceEntryDuration(a){return a.duration>=0}function hasValidResourceEntryTimings(a){let x=areInOrder(a.startTime,a.fetchStart,a.domainLookupStart,a.domainLookupEnd,a.connectStart,a.connectEnd,a.requestStart,a.responseStart,a.responseEnd),w=!(a.redirectEnd>a.startTime)||areInOrder(a.startTime,a.redirectStart,a.redirectEnd,a.fetchStart);return x&&w}function formatTiming(a,x,w){if(a<=x&&x<=w)return{duration:(0,ea.c0)((0,ea._J)(x,w)),start:(0,ea.c0)((0,ea._J)(a,x))}}function isAllowedRequestUrl(a){return a&&(!e0.Rg.every(x=>a.includes(x))||(0,ey.W_)(ey.uh.TRACK_INTAKE_REQUESTS))}let ty=/data:(.+)?(;base64)?,/g;function sanitizeIfLongDataUrl(a,x=24e3){if(a.length<=x||!a.startsWith("data:"))return a;let w=a.substring(0,100).match(ty);return w?`${w[0]}[...]`:a}let tb=new Map;function isSampled(a,x){let w;if(100===x)return!0;if(0===x)return!1;let A=tb.get(x);return A&&a===A.sessionId?A.decision:(w=window.BigInt?function(a,x){let w=BigInt("1111111111111111111"),A=BigInt("0x10000000000000000");return Number(a*w%A)<=x/100*Number(A)}(BigInt(`0x${a.split("-")[4]}`),x):(0,eU.y7)(x),tb.set(x,{sessionId:a,decision:w}),w)}function createIdentifier(a){let x=crypto.getRandomValues(new Uint32Array(2));return 63===a&&(x[x.length-1]>>>=1),{toString(a=10){let w=x[1],A=x[0],k="";do{let x=w%a*4294967296+A;w=Math.floor(w/a),A=Math.floor(x/a),k=(x%a).toString(a)+k}while(w||A);return k}}}function toPaddedHexadecimalString(a){return a.toString(16).padStart(16,"0")}function clearTracingIfNeeded(a){0!==a.status||a.isAborted||(a.traceId=void 0,a.spanId=void 0,a.traceSampled=void 0)}function injectHeadersIfTracingAllowed(a,x,w,A,k,F){let V=w.findTrackedSession();if(!V)return;let B=a.allowedTracingUrls.find(a=>matchList([a.match],x.url,!0));if(!B)return;let z=isSampled(V.id,a.traceSampleRate),G=z||a.traceContextInjection===e2.ALL;G&&(x.traceSampled=z,x.traceId=createIdentifier(64),x.spanId=createIdentifier(63),F(function(a,x,w,A,k,F,V,B){let z={};if(k.forEach(A=>{switch(A){case"datadog":Object.assign(z,{"x-datadog-origin":"rum","x-datadog-parent-id":x.toString(),"x-datadog-sampling-priority":w?"1":"0","x-datadog-trace-id":a.toString()});break;case"tracecontext":Object.assign(z,{traceparent:`00-0000000000000000${toPaddedHexadecimalString(a)}-${toPaddedHexadecimalString(x)}-0${w?"1":"0"}`,tracestate:`dd=s:${w?"1":"0"};o:rum`});break;case"b3":Object.assign(z,{b3:`${toPaddedHexadecimalString(a)}-${toPaddedHexadecimalString(x)}-${w?"1":"0"}`});break;case"b3multi":Object.assign(z,{"X-B3-TraceId":toPaddedHexadecimalString(a),"X-B3-SpanId":toPaddedHexadecimalString(x),"X-B3-Sampled":w?"1":"0"})}}),B.propagateTraceBaggage){let a={"session.id":A},x=F.getContext().id;"string"==typeof x&&(a["user.id"]=x);let w=V.getContext().id;"string"==typeof w&&(a["account.id"]=w);let k=Object.entries(a).map(([a,x])=>`${a}=${encodeURIComponent(x)}`).join(",");k&&(z.baggage=k)}return z}(x.traceId,x.spanId,x.traceSampled,V.id,B.propagatorTypes,A,k,a)))}let t_=32*ed.Hi;function findGraphQlConfiguration(a,x){return x.allowedGraphQlUrls.find(x=>matchList([x.match],a))}let tx=1;function getNextRequestIndex(){let a=tx;return tx+=1,a}function discardNegativeDuration(a){return(0,eU.hj)(a)&&a<0?void 0:a}function isTextNode(a){return a.nodeType===Node.TEXT_NODE}function isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}function isNodeShadowHost(a){return isElementNode(a)&&!!a.shadowRoot}function isNodeShadowRoot(a){return!!a.host&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&isElementNode(a.host)}function hasChildNodes(a){return a.childNodes.length>0||isNodeShadowHost(a)}function forEachChildNodes(a,x){let w=a.firstChild;for(;w;)x(w),w=w.nextSibling;isNodeShadowHost(a)&&x(a.shadowRoot)}function getParentNode(a){return isNodeShadowRoot(a)?a.host:a.parentNode}function getParentElement(a){if(a.parentElement)return a.parentElement;let x=a.parentNode;return x&&isNodeShadowRoot(x)?x.host:null}function createPerformanceObservable(a,x){return new en.y$(w=>{let A,k;if(!window.PerformanceObserver)return;let handlePerformanceEntries=a=>{let x=a.filter(a=>!(a.entryType===er.RESOURCE&&(!isAllowedRequestUrl(a.name)||!hasValidResourceEntryDuration(a))));x.length>0&&w.notify(x)},F=!0,V=new PerformanceObserver((0,ef.zk)(a=>{F?A=(0,eB.iK)(()=>handlePerformanceEntries(a.getEntries())):handlePerformanceEntries(a.getEntries())}));try{V.observe(x)}catch(w){let a=[er.RESOURCE,er.NAVIGATION,er.LONG_TASK,er.PAINT];if(a.includes(x.type)){x.buffered&&(A=(0,eB.iK)(()=>handlePerformanceEntries(performance.getEntriesByType(x.type))));try{V.observe({entryTypes:[x.type]})}catch(a){return}}}return F=!1,!z&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(z=(0,eP.O)(a,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),supportPerformanceTimingEvent(er.FIRST_INPUT)||x.type!==er.FIRST_INPUT||({stop:k}=function(a,x){let w=(0,ea.m6)(),A=!1,{stop:k}=(0,eP.y)(a,window,["click","mousedown","keydown","touchstart","pointerdown"],x=>{if(!x.cancelable)return;let w={entryType:"first-input",processingStart:(0,ea._q)(),processingEnd:(0,ea._q)(),startTime:x.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===x.type?(0,eP.y)(a,window,["pointerup","pointercancel"],a=>{"pointerup"===a.type&&sendTiming(w)},{once:!0}):sendTiming(w)},{passive:!0,capture:!0});return{stop:k};function sendTiming(a){if(!A){A=!0,k();let F=a.processingStart-a.startTime;F>=0&&F<(0,ea.m6)()-w&&x(a)}}}(a,a=>{handlePerformanceEntries([a])})),()=>{V.disconnect(),k&&k(),(0,eB.gr)(A)}})}function supportPerformanceTimingEvent(a){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(a)}(et=er||(er={})).EVENT="event",et.FIRST_INPUT="first-input",et.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",et.LAYOUT_SHIFT="layout-shift",et.LONG_TASK="longtask",et.LONG_ANIMATION_FRAME="long-animation-frame",et.NAVIGATION="navigation",et.PAINT="paint",et.RESOURCE="resource",et.VISIBILITY_STATE="visibility-state";let tw="data-dd-excluded-activity-mutations";function waitPageActivityEnd(a,x,w,A,k,F){let V=new en.y$(k=>{let F;let V=[],B=0;return V.push(x.subscribe(a=>{a.every(isExcludedMutation)||notifyPageActivity()}),w.subscribe(notifyPageActivity),createPerformanceObservable(A,{type:er.RESOURCE}).subscribe(a=>{a.some(a=>!isExcludedUrl(A,a.name))&&notifyPageActivity()}),a.subscribe(7,a=>{isExcludedUrl(A,a.url)||(void 0===F&&(F=a.requestIndex),B+=1,notifyPageActivity())}),a.subscribe(8,a=>{isExcludedUrl(A,a.url)||void 0===F||a.requestIndex<F||(B-=1,notifyPageActivity())})),()=>
4{V.forEach(a=>a.unsubscribe())};function notifyPageActivity(){k.notify({isBusy:B>0})}});return function(a,x,w){let A;let k=!1,F=(0,eB.iK)((0,ef.zk)(()=>complete({hadActivity:!1})),100),V=void 0!==w?(0,eB.iK)((0,ef.zk)(()=>complete({hadActivity:!0,end:(0,ea.n$)()})),w):void 0,B=a.subscribe(({isBusy:a})=>{(0,eB.gr)(F),(0,eB.gr)(A);let x=(0,ea.n$)();a||(A=(0,eB.iK)((0,ef.zk)(()=>complete({hadActivity:!0,end:x})),100))}),stop=()=>{k=!0,(0,eB.gr)(F),(0,eB.gr)(A),(0,eB.gr)(V),B.unsubscribe()};function complete(a){k||(stop(),x(a))}return{stop}}(V,k,F)}function isExcludedUrl(a,x){return matchList(a.excludedActivityUrls,x)}function isExcludedMutation(a){let x="characterData"===a.type?a.target.parentElement:a.target;return!!(x&&isElementNode(x)&&x.matches(`[${tw}], [${tw}] *`))}let tS="data-dd-action-name",tE="Masked Element",tA=[tS,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tC=[getStableAttributeSelector,function(a){if(a.id&&!isGeneratedValue(a.id))return`#${CSS.escape(a.id)}`}],tT=[getStableAttributeSelector,function(a){if("BODY"===a.tagName)return;let x=a.classList;for(let w=0;w<x.length;w+=1){let A=x[w];if(!isGeneratedValue(A))return`${CSS.escape(a.tagName)}.${CSS.escape(A)}`}},function(a){return CSS.escape(a.tagName)}];function getSelectorFromElement(a,x){let w;if(!a.isConnected)return;let A=a;for(;A&&"HTML"!==A.nodeName;){let a=findSelector(A,tC,isSelectorUniqueGlobally,x,w);if(a)return a;let k=findSelector(A,tT,isSelectorUniqueAmongSiblings,x,w);w=k||combineSelector(function(a){let x=a.parentElement.firstElementChild,w=1;for(;x&&x!==a;)x.tagName===a.tagName&&(w+=1),x=x.nextElementSibling;return`${CSS.escape(a.tagName)}:nth-of-type(${w})`}(A),w),A=A.parentElement}return w}function isGeneratedValue(a){return/[0-9]/.test(a)}function getStableAttributeSelector(a,x){if(x){let a=getAttributeSelector(x);if(a)return a}for(let a of tA){let x=getAttributeSelector(a);if(x)return x}function getAttributeSelector(x){if(a.hasAttribute(x))return`${CSS.escape(a.tagName)}[${x}="${CSS.escape(a.getAttribute(x))}"]`}}function findSelector(a,x,w,A,k){for(let F of x){let x=F(a,A);if(x&&w(a,x,k))return combineSelector(x,k)}}function isSelectorUniqueGlobally(a,x,w){return 1===a.ownerDocument.querySelectorAll(combineSelector(x,w)).length}function isSelectorUniqueAmongSiblings(a,x,w){let A;if(void 0===w)A=a=>a.matches(x);else{let a=combineSelector(`${x}:scope`,w);A=x=>null!==x.querySelector(a)}let k=a.parentElement,F=k.firstElementChild;for(;F;){if(F!==a&&A(F))return!1;F=F.nextElementSibling}return!0}function combineSelector(a,x){return x?`${a}>${x}`:a}let tO={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:e1.ALLOW,MASK:e1.MASK,MASK_USER_INPUT:e1.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:e1.MASK_UNLESS_ALLOWLISTED},tP="data-dd-privacy",tR="hidden",tk="***",tN="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",tI={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function getPrivacySelector(a){return`[${tP}="${a}"], .dd-privacy-${a}`}function getNodePrivacyLevel(a,x,w){if(w&&w.has(a))return w.get(a);let A=getParentNode(a),k=A?getNodePrivacyLevel(A,x,w):x,F=getNodeSelfPrivacyLevel(a),V=reducePrivacyLevel(F,k);return w&&w.set(a,V),V}function reducePrivacyLevel(a,x){switch(x){case tO.HIDDEN:case tO.IGNORE:return x}switch(a){case tO.ALLOW:case tO.MASK:case tO.MASK_USER_INPUT:case tO.MASK_UNLESS_ALLOWLISTED:case tO.HIDDEN:case tO.IGNORE:return a;default:return x}}function getNodeSelfPrivacyLevel(a){if(isElementNode(a)){if("BASE"===a.tagName)return tO.ALLOW;if("INPUT"===a.tagName){if("password"===a.type||"email"===a.type||"tel"===a.type||"hidden"===a.type)return tO.MASK;let x=a.getAttribute("autocomplete");if(x&&(x.startsWith("cc-")||x.endsWith("-password")))return tO.MASK}return a.matches(getPrivacySelector(tO.HIDDEN))?tO.HIDDEN:a.matches(getPrivacySelector(tO.MASK))?tO.MASK:a.matches(getPrivacySelector(tO.MASK_UNLESS_ALLOWLISTED))?tO.MASK_UNLESS_ALLOWLISTED:a.matches(getPrivacySelector(tO.MASK_USER_INPUT))?tO.MASK_USER_INPUT:a.matches(getPrivacySelector(tO.ALLOW))?tO.ALLOW:!function(a){if
4("SCRIPT"===a.nodeName)return!0;if("LINK"===a.nodeName){let a=getLowerCaseAttribute("rel");return/preload|prefetch/i.test(a)&&"script"===getLowerCaseAttribute("as")||"shortcut icon"===a||"icon"===a}if("META"===a.nodeName){let x=getLowerCaseAttribute("name"),w=getLowerCaseAttribute("rel"),A=getLowerCaseAttribute("property");return/^msapplication-tile(image|color)$/.test(x)||"application-name"===x||"icon"===w||"apple-touch-icon"===w||"shortcut icon"===w||"keywords"===x||"description"===x||/^(og|twitter|fb):/.test(A)||/^(og|twitter):/.test(x)||"pinterest"===x||"robots"===x||"googlebot"===x||"bingbot"===x||a.hasAttribute("http-equiv")||"author"===x||"generator"===x||"framework"===x||"publisher"===x||"progid"===x||/^article:/.test(A)||/^product:/.test(A)||"google-site-verification"===x||"yandex-verification"===x||"csrf-token"===x||"p:domain_verify"===x||"verify-v1"===x||"verification"===x||"shopify-checkout-api-token"===x}function getLowerCaseAttribute(x){return(a.getAttribute(x)||"").toLowerCase()}return!1}(a)?void 0:tO.IGNORE}}function shouldMaskNode(a,x){switch(x){case tO.MASK:case tO.HIDDEN:case tO.IGNORE:return!0;case tO.MASK_UNLESS_ALLOWLISTED:if(isTextNode(a))return!!isFormElement(a.parentNode)||!isAllowlisted(a.textContent||"");return isFormElement(a);case tO.MASK_USER_INPUT:return isTextNode(a)?isFormElement(a.parentNode):isFormElement(a);default:return!1}}function shouldMaskAttribute(a,x,w,A,k){if(A!==tO.MASK&&A!==tO.MASK_UNLESS_ALLOWLISTED||x===tP||tA.includes(x)||x===k.actionNameAttribute)return!1;switch(x){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===a&&"href"===x||"IFRAME"===a&&"srcdoc"===x||w&&x.startsWith("data-"))||("IMG"===a||"SOURCE"===a)&&("src"===x||"srcset"===x)}function isFormElement(a){if(!a||a.nodeType!==a.ELEMENT_NODE)return!1;if("INPUT"===a.tagName)switch(a.type){case"button":case"color":case"reset":case"submit":return!1}return!!tI[a.tagName]}let censorText=a=>a.replace(/\S/g,"x");function getTextContent(a,x){var w;let A=null===(w=a.parentElement)||void 0===w?void 0:w.tagName,k=a.textContent||"";if("HEAD"!==A||k.trim()){if("SCRIPT"===A)k=tk;else if(x===tO.HIDDEN)k=tk;else if(shouldMaskNode(a,x)){if("DATALIST"===A||"SELECT"===A||"OPTGROUP"===A){if(!k.trim())return}else k="OPTION"===A?tk:x===tO.MASK_UNLESS_ALLOWLISTED?maskDisallowedTextContent(k):censorText(k)}return k}}function isAllowlisted(a){var x;return!(a&&a.trim())||(null===(x=window.$DD_ALLOW)||void 0===x?void 0:x.has(a.toLocaleLowerCase()))||!1}function maskDisallowedTextContent(a,x){return isAllowlisted(a)?a:x||censorText(a)}let tD=ea.WT;function getActionNameFromElementProgrammatically(a,x){let w=function(a,x){let w=a;for(;w;){if(w.matches(x))return w;w=getParentElement(w)}return null}(a,`[${x}]`);if(!w)return;let A=w.getAttribute(x);return truncate(normalizeWhitespace(A.trim()))}let tM=[(a,x,w)=>{if("labels"in a&&a.labels&&a.labels.length>0)return getActionNameFromTextualContent(a.labels[0],x,w)},a=>{if("INPUT"===a.nodeName){let x=a.getAttribute("type");if("button"===x||"submit"===x||"reset"===x)return{name:a.value,nameSource:"text_content"}}},(a,x,w)=>{if("BUTTON"===a.nodeName||"LABEL"===a.nodeName||"button"===a.getAttribute("role"))return getActionNameFromTextualContent(a,x,w)},(a,x,w)=>getActionNameFromStandardAttribute(a,"aria-label",x,w),(a,x,w)=>{let A=a.getAttribute("aria-labelledby");if(A)return{name:A.split(/\s+/).map(x=>(function(a,x){let w=a.getRootNode();if(w instanceof ShadowRoot){let a=w.getElementById(x);if(a)return a}return a.ownerDocument?a.ownerDocument.getElementById(x):null})(a,x)).filter(a=>!!a).map(a=>getTextualContent(a,x,w)).join(" "),nameSource:"text_content"}},(a,x,w)=>getActionNameFromStandardAttribute(a,"alt",x,w),(a,x,w)=>getActionNameFromStandardAttribute(a,"name",x,w),(a,x,w)=>getActionNameFromStandardAttribute(a,"title",x,w),(a,x,w)=>getActionNameFromStandardAttribute(a,"placeholder",x,w),(a,x,w)=>{if("options"in a&&a.options.length>0)return getActionNameFromTextualContent(a.options[0],x,w)}],tL=[(a,x,w)=>getActionNameFromTextualContent(a,x,w)];function getActionNameFromElementForStrategies(a,x,w,A){let k=a,F=0;for(;F<=10&&k&&"BODY"!==k.nodeName&&"HTML"!==k.nodeName&&"HEAD"!==k.nodeName;){for(let a of x){let x=a(k,w,A);if(x){let{name:a,nameSource:w}=x,A=a&&a.trim();if(A)return{name:truncate(normalizeWhitespace(A)),nameSource:w}}}if("FORM"===k.nodeName)break;k=getParentElement(k),F+=1}}function normalizeWhitespace(a){return a.replace(/\s+/g," ")}function truncate(a){return a.length>100?`${(0,eO._z)(a,100)} [...]`:a}function getActionNameFromStandardAttribute(a,x,w,A){let{enablePrivacyF
4orActionName:k,defaultPrivacyLevel:F}=w,V=a.getAttribute(x);if(V&&k){let k=getNodePrivacyLevel(a,F,A);shouldMaskAttribute(a.tagName,x,V,k,w)&&(V=maskDisallowedTextContent(V,tE))}else V||(V="");return{name:V,nameSource:"standard_attribute"}}function getActionNameFromTextualContent(a,x,w){return{name:getTextualContent(a,x,w)||"",nameSource:"text_content"}}function getTextualContent(a,x,w){if(a.isContentEditable)return;let{enablePrivacyForActionName:A,actionNameAttribute:k,defaultPrivacyLevel:F}=x;if((0,ey.W_)(ey.uh.USE_TREE_WALKER_FOR_ACTION_NAME))return function(a,x,w,A,k){let F=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(a){let F=getNodePrivacyLevel(a,A,k);if(w&&F&&shouldMaskNode(a,F))return NodeFilter.FILTER_REJECT;if(isElementNode(a)){if(a.hasAttribute(tS)||x&&a.hasAttribute(x))return NodeFilter.FILTER_REJECT;let w=getComputedStyle(a);if("visible"!==w.visibility||"none"===w.display||w.contentVisibility&&"visible"!==w.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),V="";for(;F.nextNode();){let a=F.currentNode;if(isElementNode(a)){("BR"===a.nodeName||"P"===a.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(a).display))&&(V+=" ");continue}V+=a.textContent||""}return V.replace(/\s+/g," ").trim()}(a,k,A,F,w);if("innerText"in a){let x=a.innerText,removeTextFromElements=w=>{let A=a.querySelectorAll(w);for(let a=0;a<A.length;a+=1){let w=A[a];if("innerText"in w){let a=w.innerText;a&&a.trim().length>0&&(x=x.replace(a,""))}}};return removeTextFromElements(`[${tS}]`),k&&removeTextFromElements(`[${k}]`),A&&removeTextFromElements(`${getPrivacySelector(tO.HIDDEN)}, ${getPrivacySelector(tO.MASK)}`),x}return a.textContent}function isSelectionEmpty(){let a=window.getSelection();return!a||a.isCollapsed}function isValidPointerEvent(a){return a.target instanceof Element&&!1!==a.isPrimary}function isDead(a){if(a.hasPageActivity||a.getUserActivity().input||a.getUserActivity().scroll)return!1;let x=a.event.target;return"LABEL"===x.tagName&&x.hasAttribute("for")&&(x=document.getElementById(x.getAttribute("for"))),!x||!x.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 tj=10*ea.WT,tF=new Map;function updateInteractionSelector(a,x){tF.set(a,x),tF.forEach((a,x)=>{(0,ea._J)(x,(0,ea._q)())>tj&&tF.delete(x)})}function getEventTarget(a){if(a.composed&&isNodeShadowHost(a.target)&&"function"==typeof a.composedPath){let x=a.composedPath();if(x.length>0&&x[0]instanceof Element)return x[0]}return a.target}function trackEventCounts({lifeCycle:a,isChildEvent:x,onChange:w=eM.Z}
4){let A={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},k=a.subscribe(13,a=>{var k;if("view"!==a.type&&"vital"!==a.type&&x(a))switch(a.type){case ew.ERROR:A.errorCount+=1,w();break;case ew.ACTION:A.actionCount+=1,a.action.frustration&&(A.frustrationCount+=a.action.frustration.type.length),w();break;case ew.LONG_TASK:A.longTaskCount+=1,w();break;case ew.RESOURCE:(null===(k=a._dd)||void 0===k?void 0:k.discarded)||(A.resourceCount+=1,w())}});return{stop:()=>{k.unsubscribe()},eventCounts:A}}let tV=5*ea.yR;function processAction(a){let x="events"in a,w=discardNegativeDuration((0,ea.c0)(a.duration));return{rawRumEvent:{type:ew.ACTION,date:a.startClocks.timeStamp,action:{id:a.id,target:{name:a.name},type:a.type,...void 0!==w&&{loading_time:w},...a.counts&&{error:{count:a.counts.errorCount},long_task:{count:a.counts.longTaskCount},resource:{count:a.counts.resourceCount}},frustration:{type:a.frustrationTypes}},...x?{_dd:{action:{target:a.target,position:a.position,name_source:a.nameSource}}}:{context:a.context}},duration:a.duration,startTime:a.startClocks.relative,domainContext:x?{events:a.events}:{handlingStack:a.handlingStack}}}var tU=w(19012);let tB={},tq={intervention:"intervention",cspViolation:"csp_violation"};function buildRawReportError(a){return{startClocks:(0,ea.$I)(),source:ec.z.REPORT,handling:"unhandled",...a}}function buildStack(a,x,w,A,k){return w?(0,eg.P3)({name:a,message:x,stack:[{func:"?",url:w,line:null!=A?A:void 0,column:null!=k?k:void 0}]}):void 0}var tz=w(428);let tH=ea.WT,tG=new WeakSet;function endTime(a){return(0,ea.WK)(a.startTime,a.duration)}var t$=w(10193);let tW=2*ea.yR;function createDocumentTraceData(a,x){let w=x&&Number(x);if(a&&w)return{traceId:a,traceTime:w}}function getTraceCommentFromNode(a){if(a&&a.nodeType===Node.COMMENT_NODE){let x=/^\s*DATADOG;(.*?)\s*$/.exec(a.data);if(x)return x[1]}}function getNavigationEntry(){if(supportPerformanceTimingEvent(er.NAVIGATION)){let a=performance.getEntriesByType(er.NAVIGATION)[0];if(a)return a}let a=function(){let a={},x=performance.timing;for(let w in x)if((0,eU.hj)(x[w])){let A=x[w];a[w]=0===A?0:(0,ea.ni)(A)}return a}(),x={entryType:er.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:a.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...x,toJSON:void 0}),...a};return x}function processResourceEntry(a,x,w,A){let k=isResourceEntryRequestType(a)&&A?A.getMatchingRequest(a):void 0;return assembleResource(a,k,w,x)}function assembleResource(a,x,w,A){var k,F;if(!a&&!x)return;let V=x?function(a,x){let w=a.traceSampled&&a.traceId&&a.spanId;if(w)return{_dd:{span_id:a.spanId.toString(),trace_id:a.traceId.toString(),rule_psr:x.rulePsr}}}(x,A):function(a,x){let w=a.traceId;if(w)return{_dd:{trace_id:a.traceId,span_id:createIdentifier(63).toString(),rule_psr:x.rulePsr}}}(a,A);if(!A.trackResources&&!V)return;let B=a?(0,ea.DY)(a.startTime):x.startClocks,z=a?function(a){let{duration:x,startTime:w,responseEnd:A}=a;return 0===x&&w<A?(0,ea._J)(w,A):x}(a):(k=x.duration,w.wasInPageStateDuringPeriod("frozen",B.relative,k)?void 0:k),G=x&&function(a,x){let w=findGraphQlConfiguration(a.url,x);if(w)return function(a,x){let w=function(a,x=!1){let w,A,k,F;if(!a||"string"!=typeof a)return;try{w=JSON.parse(a)}catch(a){return}if(!w)return;if(w.query){var V;let a=w.query.trim();A=null===(V=a.match(/^\s*(query|mutation|subscription)\b/i))||void 0===V?void 0:V[1],x&&(k=(0,eO._z)(a,t_,"..."))}let B=w.operationName;return w.variables&&(F=JSON.stringify(w.variables)),{operationType:A,operationName:B,variables:F,payload:k}}(a.requestBody,x.trackPayload);if(w){if(x.trackResponseErrors&&a.responseBody){let x=function(a){let x;try{x=JSON.parse(a)}catch(a){return}if(!x||"object"!=typeof x)return;let w=x;if(!isNonEmptyArray(w.errors))return;let A=w.errors.map(a=>{var x;let w={message:a.message,path:a.path,locations:a.locations,code:null===(x=a.extensions)||void 0===x?void 0:x.code};return w});return A}(a.responseBody);x&&(w.error_count=x.length,w.errors=x)}return w}}(a,w)}(x,A),$=(0,em.$e)({date:B.timeStamp,resource:{id:(0,eO.DO)(),duration:(0,ea.c0)(z),type:x?x.type===tm.XHR?th.XHR:th.FETCH:function(a){let x=a.name;if(!(0,eL.jv)(x))return th.OTHER;let w=(0,eL.ye)(x);for(let[x,A]of tv)if(A(a.initiatorType,w))return x;return th.OTHER}(a),method:x?x.method:void 0,status_code:x?x.status:0===(F=a.responseStatus)?void 0:F,url:x?sanitizeIfLongDataUrl(x.url):a.name,protocol:a&&(""===a.nextHopProtocol?void 0:a.nextHopProtocol),delivery_type:a&&(""===a.deliveryType?"other":a.deliveryType),graphql:G},type:ew.RESOURCE,_dd:{discarded:!A.trackResources}},V,a&&function(a){let{renderBlockingStatus:x}=a;
4return{resource:{render_blocking_status:x,...function(a){if(a.startTime<a.responseStart){let{encodedBodySize:x,decodedBodySize:w,transferSize:A}=a;return{size:w,encoded_body_size:x,decoded_body_size:w,transfer_size:A}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(a),...function(a){if(!hasValidResourceEntryTimings(a))return;let{startTime:x,fetchStart:w,workerStart:A,redirectStart:k,redirectEnd:F,domainLookupStart:V,domainLookupEnd:B,connectStart:z,secureConnectionStart:G,connectEnd:$,requestStart:W,responseStart:Z,responseEnd:K}=a,Y={download:formatTiming(x,Z,K),first_byte:formatTiming(x,W,Z)};return 0<A&&A<w&&(Y.worker=formatTiming(x,A,w)),w<$&&(Y.connect=formatTiming(x,z,$),z<=G&&G<=$&&(Y.ssl=formatTiming(x,G,$))),w<B&&(Y.dns=formatTiming(x,V,B)),x<F&&(Y.redirect=formatTiming(x,k,F)),Y}(a)}}}(a));return{startTime:B.relative,duration:z,rawRumEvent:$,domainContext:function(a,x){if(x){let w={performanceEntry:a,isAborted:x.isAborted,handlingStack:x.handlingStack};return x.type===tm.XHR?{xhr:x.xhr,...w}:{requestInput:x.input,requestInit:x.init,response:x.response,error:x.error,...w}}return{performanceEntry:a}}(a,x)}}let tZ=10*ea.yR,tK=10*ea.yR;function trackFirstHidden(a,x,w=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:eM.Z};if(supportPerformanceTimingEvent(er.VISIBILITY_STATE)){let a=performance.getEntriesByType(er.VISIBILITY_STATE).filter(a=>"hidden"===a.name).find(a=>a.startTime>=x.relative);if(a)return{timeStamp:a.startTime,stop:eM.Z}}let A=1/0,{stop:k}=(0,eP.y)(a,w,["pagehide","visibilitychange"],a=>{("pagehide"===a.type||"hidden"===document.visibilityState)&&(A=a.timeStamp,k())},{capture:!0});return{get timeStamp(){return A},stop:k}}let calculateArea=(a,x)=>a*x,calculateIntersectionArea=(a,x)=>{let w=Math.max(a.left,x.left),A=Math.max(a.top,x.top),k=Math.min(a.right,x.right),F=Math.min(a.bottom,x.bottom);return w>=k||A>=F?0:calculateArea(k-w,F-A)},getClsAttributionImpactedArea=a=>{let x=calculateArea(a.previousRect.width,a.previousRect.height),w=calculateArea(a.currentRect.width,a.currentRect.height),A=calculateIntersectionArea(a.previousRect,a.currentRect);return x+w-A};function asRumRect({x:a,y:x,width:w,height:A}){return{x:a,y:x,width:w,height:A}}let tQ=5*ea.WT,tY=ea.WT,tJ=0,tX=1/0,t0=0,getInteractionCount=()=>G?tJ:window.performance.interactionCount||0,t1=1*ea.yR;function getScrollX(){let a=window.visualViewport;return Math.round(a?a.pageLeft-a.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function getScrollY(){let a=window.visualViewport;return Math.round(a?a.pageTop-a.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function initViewportObservable(a){return $||($=new en.y$(x=>{let{throttled:w}=(0,eM.P)(()=>{x.notify(getViewportDimension())},200);return(0,eP.O)(a,window,"resize",w,{capture:!0,passive:!0}).stop})),$}function getViewportDimension(){let a=window.visualViewport;return a?{width:Number(a.width*a.scale),height:Number(a.height*a.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let t2=ea.WT,t5=5*ea.yR,t3=5*ea.yR;function getPathFromHash(a){let x=a.indexOf("?");return x<0?a:a.slice(0,x)}let t4=ea.yR,t6=[];async function reportUnexpectedSessionState(a){let x,w;let A=a.sessionStoreStrategyType;A&&(A.type===eZ.COOKIE?(x=retrieveSessionCookie(A.cookieOptions,a),w={co
4okie:await getSessionCookies(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):x=retrieveSessionFromLocalStorage(),(0,ep.eJ)("Unexpected session state",{sessionStoreStrategyType:A.type,session:x,isSyntheticsTest:isSyntheticsTest(),createdTimestamp:null==x?void 0:x.created,expireTimestamp:null==x?void 0:x.expire,...w}))}async function getSessionCookies(){let a;return{count:(a="cookieStore"in window?await window.cookieStore.getAll(ez):document.cookie.split(/\s*;\s*/).filter(a=>a.startsWith(ez))).length,domain:getCurrentSite()||"undefined",...a}}var t8=w(53789),t7=w(30481),t9=w(5419);function getHistoryInstrumentationTarget(a){return Object.prototype.hasOwnProperty.call(history,a)?history:History.prototype}let re=10*ea.WT;function sendCurrentPeriodMeasures(){0!==W.batchCount&&((0,ep.qZ)("Customer data measures",W),initCurrentPeriodMeasures())}function createMeasure(){return{min:1/0,max:0,sum:0}}function updateMeasure(a,x){a.sum+=x,a.min=Math.min(a.min,x),a.max=Math.max(a.max,x)}function initCurrentPeriodMeasures(){W={batchCount:0,batchBytesCount:createMeasure(),batchMessagesCount:createMeasure()}}function getPageState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let rt=ea.WT;function watchCookieFallback(a,x){let w=(0,eO.MY)(document.cookie,a),A=(0,eB.Zi)(()=>{let A=(0,eO.MY)(document.cookie,a);A!==w&&x(A)},rt);return()=>{(0,eB.cv)(A)}}let rr="datadog-ci-visibility-test-execution-id";function createEventRateLimiter(a,x,w=3e3){let A=0,k=!1;return{isLimitReached(){if(0===A&&(0,eB.iK)(()=>{A=0},ea.yR),(A+=1)<=w||k)return k=!1,!1;if(A===w+1){k=!0;try{x({message:`Reached max number of ${a}s by minute: ${w}`,source:ec.z.AGENT,startClocks:(0,ea.$I)()})}finally{k=!1}}return!0}}}var rn=w(19276);function isValidObject(a){return"object"===(0,eN.o)(a)}let ri={"view.name":"string","view.url":"string","view.referrer":"string"},ro={context:"object"},ra={service:"string",version:"string"};var rs=w(68826);let rl=eI.uR,ru=[ew.ACTION,ew.ERROR,ew.LONG_TASK,ew.RESOURCE,ew.VITAL];function startRum(a,x,w,A,k,F,V,z,$){let et=[],ei=new tl,el=rl();ei.subscribe(13,a=>(0,to.j)("rum",a));let reportError=a=>{ei.notify(14,{error:a}),(0,ep.eJ)("Error reported to customer",{"error.message":a.message})},ed=(0,ta.FP)(a),eh=ed.subscribe(a=>{ei.notify(11,a)});et.push(()=>eh.unsubscribe());let eb=(0,ep.VL)("browser-rum-sdk",a,el,reportError,ed,k);et.push(eb.stop);let e_=(0,eD.xT)()?function(){let a={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:(0,eD.ke)("records")?1:0};return{findTrackedSession:()=>a,expire:eM.Z,expireObservable:new en.y$,setForcedReplay:eM.Z}}():function(a,x,w){let A=function(a,x,w,A){let k=new en.y$,F=new en.y$,V=function(a,x,w,A,k=(Y=a,J=x,Y.type===eZ.COOKIE?function(a,x){let w={isLockEnabled:(0,eq.mJ)(),persistSession:w=>storeSessionCookie(x,a,w,e$),retrieveSession:()=>retrieveSessionCookie(x,a),expireSession:w=>storeSessionCookie(x,a,getExpiredSessionState(w,a),eG)};return function(a){let x=getInitCookie(ez);if(!x){let x=getInitCookie("_dd"),w=getInitCookie("_dd_r"),A=getInitCookie("_dd_l"),k={};x&&(k.id=x),A&&/^[01]$/.test(A)&&(k.logs=A),w&&/^[012]$/.test(w)&&(k.rum=w),isSessionInNotStartedState(k)||(expandSessionState(k),a.persistSession(k))}}(w),w}(J,Y.cookieOptions):(ee=J,{isLockEnabled:!1,persistSession:persistInLocalStorage,retrieveSession:retrieveSessionFromLocalStorage,expireSession:a=>{persistInLocalStorage(getExpiredSessionState(a,ee))}}))){let F;let V=new en.y$,B=new en.y$,z=new en.y$,G=(0,eB.Zi)(function(){let a=k.retrieveSession();isSessionInExpiredState(a)?processSessionStoreOperations({process:a=>isSessionInExpiredState(a)?getExpiredSessionState(a,x):void 0,after:synchronizeSession},k):synchronizeSession(a)},eJ);startSession();let{throttled:$,cancel:W}=(0,eM.P)(()=>{processSessionStoreOperations({process:a=>{if(isSessionInNotStartedState(a))return;let x=synchronizeSession(a);return function(a){if(isSessionInNotStartedState(a))return 0;let x=A(a[w]);a[w]=x,delete a.isExpired,"0"===x||a.id||(a.id=(0,eO.DO)(),a.created=String((0,ea.m6)()))}(x),x},after:a=>{!isSessionInNotStartedState(a)&&!hasSessionInCache()&&(F=a,V.notify()),F=a}},k)},eJ);function synchronizeSession(a){var A;return isSessionInExpiredState(a)&&(a=getExpiredSessionState(a,x)),hasSessionInCache()&&((A=a,F.id!==A.id||F[w]!==A[w])?(F=getExpiredSessionState(F,x),B.notify()):(z.notify({previousState:F,newState:a}),F=a)),a}function startSession(){processSessionStoreOperations({process:a=>{if(isSessionInNotStartedState(a))return a.anonymousId=(0,eO.DO)(),getExpiredSessionState(a,x)},after:a=>{F=a}},k)}function hasSessionInCache(){return(null==F?void 0:F[w])!==void 0}return{expandOrRenewSession:$,expandSession:function(){processSessionStoreOperations({process:a=>hasSessionInCache()?synchronizeSession(a):void 0},k)},getSession:()=>
4F,renewObservable:V,expireObservable:B,sessionStateUpdateObservable:z,restartSession:startSession,expire:a=>{W(),!1===a&&F&&delete F.anonymousId,k.expireSession(F),synchronizeSession(getExpiredSessionState(F,x))},stop:()=>{(0,eB.cv)(G)},updateSessionState:function(a){processSessionStoreOperations({process:x=>({...x,...a}),after:synchronizeSession},k)}}}(a.sessionStoreStrategyType,a,x,w);t6.push(()=>V.stop());let B=createValueHistory({expireDelay:eG});if(t6.push(()=>B.stop()),V.renewObservable.subscribe(()=>{B.add(buildSessionContext(),(0,ea._q)()),k.notify()}),V.expireObservable.subscribe(()=>{F.notify(),B.closeActive((0,ea._q)())}),V.expandOrRenewSession(),B.add(buildSessionContext(),(0,ea.cQ)().relative),(0,ey.W_)(ey.uh.SHORT_SESSION_INVESTIGATION)){let x=V.getSession();x&&function(a,x){if(!window.cookieStore||!x.created)return;let w=Number(x.created),A=(0,ea.m6)(),{stop:k}=(0,eP.O)(a,cookieStore,"change",function(a){let F=(0,eH.dF)(a.changed,a=>a.name===ez);if(!F)return;let V=(0,ea.m6)()-w;if(V>14*ea.yR)k();else{let a=toSessionState(F.value);if(a.id&&a.id!==x.id){k();let w=(0,ea.m6)()-A;getSessionCookies().then(A=>{(0,ep.eJ)("Session cookie changed",{time:w,session_age:V,old:x,new:a,cookie:A})}).catch(ef.$y)}}});t6.push(k)}(a,x)}function buildSessionContext(){let w=V.getSession();return w?{id:w.id,trackingType:w[x],isReplayForced:!!w.forcedReplay,anonymousId:w.anonymousId}:(reportUnexpectedSessionState(a).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return A.observable.subscribe(()=>{A.isGranted()?V.expandOrRenewSession():V.expire(!1)}),function(a,x){let{stop:w}=(0,eP.y)(a,window,["click","touchstart","keydown","scroll"],x,{capture:!0,passive:!0});t6.push(w)}(a,()=>{A.isGranted()&&V.expandOrRenewSession()}),function(a,x){let expandSessionWhenVisible=()=>{"visible"===document.visibilityState&&x()},{stop:w}=(0,eP.O)(a,document,"visibilitychange",expandSessionWhenVisible);t6.push(w);let A=(0,eB.Zi)(expandSessionWhenVisible,t4);t6.push(()=>{(0,eB.cv)(A)})}(a,()=>V.expandSession()),function(a,x){let{stop:w}=(0,eP.O)(a,window,"resume",x,{capture:!0});t6.push(w)}(a,()=>V.restartSession()),{findSession:(a,x)=>B.find(a,x),renewObservable:k,expireObservable:F,sessionStateUpdateObservable:V.sessionStateUpdateObservable,expire:V.expire,updateSessionState:V.updateSessionState}}(a,"rum",x=>"0"===x||"1"===x||"2"===x?x:(0,eU.y7)(a.sessionSampleRate)?(0,eU.y7)(a.sessionReplaySampleRate)?"1":"2":"0",w);return A.expireObservable.subscribe(()=>{x.notify(9)}),A.renewObservable.subscribe(()=>{x.notify(10)}),A.sessionStateUpdateObservable.subscribe(({previousState:a,newState:x})=>{if(!a.forcedReplay&&x.forcedReplay){let a=A.findSession();a&&(a.isReplayForced=!0)}}),{findTrackedSession:a=>{let x=A.findSession(a);if(x&&"0"!==x.trackingType)return{id:x.id,sessionReplay:"1"===x.trackingType?1:x.isReplayForced?2:0,anonymousId:x.anonymousId}},expire:A.expire,expireObservable:A.expireObservable,setForcedReplay:()=>A.updateSessionState({forcedReplay:"1"})}}(a,ei,F);if((0,eD.xT)())!function(a){let x=(0,eD.Ad)();a.subscribe(13,a=>{x.send("rum",a)})}(ei);else{var ek;let x=function(a,x,w,A,k,F){let V=[a.rumEndpointBuilder];a.replica&&V.push(a.replica.rumEndpointBuilder);let B=(0,t8.n)({encoder:F(2),request:(0,t7.UF)(V,w),flushController:(0,t9.rK)({pageMayExitObservable:A,sessionExpireObservable:k})});return x.subscribe(13,a=>{a.type===ew.VIEW?B.upsert(a,a.view.id):B.add(a)}),B}(a,ei,reportError,ed,e_.expireObservable,k);et.push(()=>x.stop()),ek=x.flushController.flushObservable,eb.metricsEnabled&&(initCurrentPeriodMeasures(),Z=!1,ei.subscribe(13,()=>{Z=!0}),ek.subscribe(({bytesCount:a,messagesCount:x})=>{Z&&(Z=!1,W.batchCount+=1,updateMeasure(W.batchBytesCount,a),updateMeasure(W.batchMessagesCount,x))}),(0,eB.Zi)(sendCurrentPeriodMeasures,re))}!function(a,x){a.register(1,()=>{let a=x.isGranted();return a?eI.kb:eI.C_})}(el,F);let{stop:eL}=function(a,x){if(!x.metricsEnabled)return{stop:eM.Z};let{unsubscribe:w}=a.subscribe(4,({initialViewMetrics:a})=>{if(a.largestContentfulPaint&&a.navigationTimings){var x,A;(0,ep.qZ)("Initial view metrics",{metrics:(x=a.largestContentfulPaint,A=a.navigationTimings,{lcp:{value:x.value},navigation:{domComplete:A.domComplete,domContentLoaded:A.domContentLoaded,domInteractive:A.domInteractive,firstByte:A.firstByte,loadEvent:A.loadEvent}})}),w()}});return{stop:w}}(ei,eb);
4et.push(eL);let{stop:ej,...eF}=function(a,x,w,A,k,F,V,z,$,W){var Z,Y,J,ee;let et;let ei=[],el=function(){let a=getMutationObserverConstructor();return new en.y$(x=>{if(!a)return;let w=new a((0,ef.zk)(a=>x.notify(a)));return w.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>w.disconnect()})}(),ed=(Z=location,et=(0,eR.mv)(Z),new en.y$(a=>{let{stop:x}=function(a,x){let{stop:w}=(0,eo.S)(getHistoryInstrumentationTarget("pushState"),"pushState",({onPostCall:a})=>{a(x)}),{stop:A}=(0,eo.S)(getHistoryInstrumentationTarget("replaceState"),"replaceState",({onPostCall:a})=>{a(x)}),{stop:k}=(0,eP.O)(a,window,"popstate",x);return{stop:()=>{w(),A(),k()}}}(w,onLocationChange),{stop:A}=(0,eP.O)(w,window,"hashchange",onLocationChange);function onLocationChange(){if(et.href===Z.href)return;let x=(0,eR.mv)(Z);a.notify({newLocation:x,oldLocation:et}),et=x}return()=>{x(),A()}})),{observable:eh,stop:eb}=function(){let a=new en.y$,{stop:x}=(0,eo.S)(window,"open",()=>a.notify());return{observable:a,stop:x}}();ei.push(eb),x.register(0,({eventType:a})=>{let x=w.source;return{type:a,_dd:{format_version:2,drift:(0,ea.QA)(),configuration:{session_sample_rate:(0,eU.NM)(w.sessionSampleRate,3),session_replay_sample_rate:(0,eU.NM)(w.sessionReplaySampleRate,3),profiling_sample_rate:(0,eU.NM)(w.profilingSampleRate,3),trace_sample_rate:(0,eU.NM)(w.traceSampleRate,3),beta_encode_cookie_options:w.betaEncodeCookieOptions},browser_sdk_version:(0,eD.xT)()?"6.26.0":void 0,sdk_name:$},application:{id:w.applicationId},date:(0,ea.n$)(),source:x}}),x.register(1,()=>({application:{id:w.applicationId}}));let e_=function(a,x,w=500){let A;let k=createValueHistory({expireDelay:eG,maxEntries:4e3});if(supportPerformanceTimingEvent(er.VISIBILITY_STATE)){let a=performance.getEntriesByType(er.VISIBILITY_STATE);a.forEach(a=>{let x="hidden"===a.name?"hidden":"active";addPageState(x,a.startTime)})}addPageState(getPageState(),(0,ea._q)());let{stop:F}=(0,eP.y)(x,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],a=>{addPageState("freeze"===a.type?"frozen":"pagehide"===a.type?a.persisted?"frozen":"terminated":getPageState(),a.timeStamp)},{capture:!0});function addPageState(a,x=(0,ea._q)()){a!==A&&(A=a,k.closeActive(x),k.add({state:A,startTime:x},x))}function wasInPageStateDuringPeriod(a,x,w){return k.findAll(x,w).some(x=>x.state===a)}return a.register(0,({startTime:a,duration:x=0,eventType:A})=>
4{if(A===ew.VIEW){let F=k.findAll(a,x);return{type:A,_dd:{page_states:function(a,x,w){if(0!==a.length)return a.slice(-w).reverse().map(({state:a,startTime:w})=>({state:a,start:(0,ea.c0)((0,ea._J)(x,w))}))}(F,a,w)}}}return A===ew.ACTION||A===ew.ERROR?{type:A,view:{in_foreground:wasInPageStateDuringPeriod("active",a,0)}}:eI.kb}),{wasInPageStateDuringPeriod,addPageState,stop:()=>{F(),k.stop()}}}(x,w);ei.push(()=>e_.stop());let ek=function(a){let x=createValueHistory({expireDelay:eG});return a.subscribe(1,a=>{x.add({service:a.service,version:a.version,context:a.context,id:a.id,name:a.name,startClocks:a.startClocks},a.startClocks.relative)}),a.subscribe(6,({endClocks:a})=>{x.closeActive(a.relative)}),a.subscribe(3,a=>{let w=x.find(a.startClocks.relative);w&&(a.name&&(w.name=a.name),a.context&&(w.context=a.context),w.sessionIsActive=a.sessionIsActive)}),a.subscribe(10,()=>{x.reset()}),{findView:a=>x.find(a),stop:()=>{x.stop()}}}(a);ei.push(()=>ek.stop());let eL=function(a,x,w,A){let k;let F=createValueHistory({expireDelay:eG});a.subscribe(1,({startClocks:a})=>{let x=A.href;F.add(buildUrlContext({url:x,referrer:k||document.referrer}),a.relative),k=x}),a.subscribe(6,({endClocks:a})=>{F.closeActive(a.relative)});let V=w.subscribe(({newLocation:a})=>{let x=F.find();if(x){let w=(0,ea._q)();F.closeActive(w),F.add(buildUrlContext({url:a.href,referrer:x.referrer}),w)}});function buildUrlContext({url:a,referrer:x}){return{url:a,referrer:x}}return x.register(0,({startTime:a,eventType:x})=>{let w=F.find(a);return w?{type:x,view:{url:w.url,referrer:w.referrer}}:eI.C_}),{findUrl:a=>F.find(a),stop:()=>{V.unsubscribe(),F.stop()}}}(a,x,ed,location);ei.push(()=>eL.stop());let ej=function(a,x,w){let A=createValueHistory({expireDelay:eG});return a.subscribe(1,({startClocks:a})=>{A.add({},a.relative)}),a.subscribe(6,({endClocks:a})=>{A.closeActive(a.relative)}),x.register(0,({startTime:a,eventType:x})=>{let k=w.trackFeatureFlagsForEvents.concat([ew.VIEW,ew.ERROR]);if(!k.includes(x))return eI.kb;let F=A.find(a);return!F||(0,eR.Qr)(F)?eI.kb:{type:x,feature_flags:F}}),{addFeatureFlagEvaluation:(a,x)=>{let w=A.find();w&&(w[a]=x)}}}(a,x,w);x.register(0,({eventType:a,startTime:x})=>{let w,F,V;let B=A.findTrackedSession(x),z=ek.findView(x);return B&&z?(a===ew.VIEW?(w=!!k.getReplayStats(z.id)||void 0,F=1===B.sessionReplay,V=!!z.sessionIsActive&&void 0):w=!!k.isRecording()||void 0,{type:a,session:{id:B.id,type:"user",has_replay:w,sampled_for_replay:F,is_active:V}}):eI.C_}),x.register(1,({startTime:a})=>{let x=A.findTrackedSession(a);return x?{session:{id:x.id}}:eI.kb}),function(a){a.register(0,({eventType:a})=>({type:a,connectivity:(0,rs.T)()}))}(x);let eF=function(a,x,w,A){let k=buildGlobalContextManager();return x.storeContextsAcrossPages&&storeContextManager(x,k,"rum",2),a.register(0,()=>{let a=k.getContext();return A?{context:a}:a}),k}(x,w,0,!0),eV=function(a,x,w,A){let k=buildUserContextManager();return x.storeContextsAcrossPages&&storeContextManager(x,k,"rum",1),a.register(0,({eventType:a,startTime:A})=>{let F=k.getContext(),V=w.findTrackedSession(A);return(V&&V.anonymousId&&!F.anonymous_id&&x.trackAnonymousUser&&(F.anonymous_id=V.anonymousId),(0,eR.Qr)(F))?eI.kb:{type:a,usr:F}}),a.register(1,({startTime:a})=>{var x;return{anonymous_id:null===(x=w.findTrackedSession(a))||void 0===x?void 0:x.anonymousId}}),k}(x,w,A,0),eq=function(a,x,w){let A=buildAccountContextManager();return x.storeContextsAcrossPages&&storeContextManager(x,A,"rum",4),a.register(0,()=>{let a=A.getContext();return(0,eR.Qr)(a)||!a.id?eI.kb:{account:a}}),A}(x,w,0),ez=function(a,x,w,A,k){let F=function(a){let x=createValueHistory({expireDelay:tV}),w=new Set,A=a.subscribe(10,()=>
4{x.reset(),w.forEach(a=>a.stop()),w.clear()});return{createTrackedAction:function(A){let k;let F=(0,eO.DO)(),V=x.add(F,A.relative),B=trackEventCounts({lifeCycle:a,isChildEvent:a=>void 0!==a.action&&(Array.isArray(a.action.id)?a.action.id.includes(F):a.action.id===F)});function cleanup(){B.stop(),w.delete(B)}return w.add(B),{id:F,startClocks:A,get duration(){return k},get counts(){return B.eventCounts},stop(a){V.close(a),k=(0,ea._J)(A.relative,a),cleanup()},discard(){V.remove(),cleanup()}}},findActionId:function(a){let w=x.findAll(a);return w.length?w:void 0},stop:function(){A.unsubscribe(),w.forEach(a=>a.stop()),w.clear(),x.reset(),x.stop()}}}(a),{unsubscribe:V}=a.subscribe(0,x=>{a.notify(12,processAction(x))}),B=eM.Z;k.trackUserInteractions&&({stop:B}=function(a,x,w,A,k){let F;let V=new en.y$;a.subscribe(5,stopClickChain),a.subscribe(11,stopClickChain);let{stop:B}=function(a,{onPointerDown:x,onPointerUp:w}){let A,k;let F={selection:!1,input:!1,scroll:!1},V=[(0,eP.O)(a,window,"pointerdown",a=>{isValidPointerEvent(a)&&(A=isSelectionEmpty(),F={selection:!1,input:!1,scroll:!1},k=x(a))},{capture:!0}),(0,eP.O)(a,window,"selectionchange",()=>{A&&isSelectionEmpty()||(F.selection=!0)},{capture:!0}),(0,eP.O)(a,window,"scroll",()=>{F.scroll=!0},{capture:!0,passive:!0}),(0,eP.O)(a,window,"pointerup",a=>{if(isValidPointerEvent(a)&&k){let x=F;w(k,a,()=>x),k=void 0}},{capture:!0}),(0,eP.O)(a,window,"input",()=>{F.input=!0},{capture:!0})];return{stop:()=>
4{V.forEach(a=>a.stop())}}}(A,{onPointerDown:k=>(function(a,x,w,A,k){let F;let V=a.betaTrackActionsInShadowDom?getEventTarget(A):A.target;if((F=a.enablePrivacyForActionName?getNodePrivacyLevel(V,a.defaultPrivacyLevel):tO.ALLOW)===tO.HIDDEN)return;let B=function(a,x,w){let A=a.target,k=A.getBoundingClientRect(),F=getSelectorFromElement(A,w.actionNameAttribute);F&&updateInteractionSelector(a.timeStamp,F);let V=w.betaTrackActionsInShadowDom?getEventTarget(a):a.target,{name:B,nameSource:z}=function(a,x,w=tO.ALLOW){let A=new Map,{actionNameAttribute:k}=x,F=getActionNameFromElementProgrammatically(a,tS)||k&&getActionNameFromElementProgrammatically(a,k);return F?{name:F,nameSource:"custom_attribute"}:w===tO.MASK?{name:tE,nameSource:"mask_placeholder"}:getActionNameFromElementForStrategies(a,tM,x,A)||getActionNameFromElementForStrategies(a,tL,x,A)||{name:"",nameSource:"blank"}}(V,w,x);return{type:eA.CLICK,target:{width:Math.round(k.width),height:Math.round(k.height),selector:F},position:{x:Math.round(a.clientX-k.left),y:Math.round(a.clientY-k.top)},name:B,nameSource:z}}(A,F,a),z=!1;return waitPageActivityEnd(x,w,k,a,a=>{z=a.hadActivity},100),{clickActionBase:B,hadActivityOnPointerDown:()=>z}})(A,a,x,k,w),onPointerUp:({clickActionBase:F,hadActivityOnPointerDown:B},z,G)=>{!function(a,x,w,A,k,F,V,B,z,G,$){var W;let Z=function newClick(a,x,w,A,k){let F;let V=x.createTrackedAction((0,ea.DY)(k.timeStamp)),B=0,z=[],G=new en.y$;function stop(a){0===B&&(B=1,(F=a)?V.stop((0,ea.ni)(F)):V.discard(),G.notify())}return{event:k,stop,stopObservable:G,get hasError(){return V.counts.errorCount>0},get hasPageActivity(){return void 0!==F},getUserActivity:w,addFrustration:a=>{z.push(a)},get startClocks(){return V.startClocks},isStopped:()=>1===B||2===B,clone:()=>newClick(a,x,w,A,k),validate:x=>{if(stop(),1!==B)return;let w={startClocks:V.startClocks,duration:V.duration,id:V.id,frustrationTypes:z,counts:V.counts,events:null!=x?x:[k],event:k,...A};a.notify(0,w),B=2},discard:()=>{stop(),B=2}}}(x,k,G,B,z);V(Z);let K=null===(W=null==B?void 0:B.target)||void 0===W?void 0:W.selector;K&&updateInteractionSelector(z.timeStamp,K);let{stop:Y}=waitPageActivityEnd(x,w,A,a,a=>{a.hadActivity&&a.end<Z.startClocks.timeStamp?Z.discard():a.hadActivity?Z.stop(a.end):$()?Z.stop(Z.startClocks.timeStamp):Z.stop()},tj),J=x.subscribe(5,({endClocks:a})=>{Z.stop(a.timeStamp)}),ee=x.subscribe(11,()=>{Z.stop((0,ea.n$)())}),et=F.subscribe(()=>{Z.stop()});Z.stopObservable.subscribe(()=>{ee.unsubscribe(),J.unsubscribe(),Y(),et.unsubscribe()})}(A,a,x,w,k,V,appendClickToClickChain,F,z,G,B)}});return{stop:()=>{stopClickChain(),V.notify(),B()}};function appendClickToClickChain(a){if(!F||!F.tryAppend(a)){let x=a.clone();F=function(a,x){let w;let A=[],k=0;function appendClick(a){a.stopObservable.subscribe(tryFinalize),A.push(a),(0,eB.gr)(w),w=(0,eB.iK)(dontAcceptMoreClick,tD)}function tryFinalize(){1===k&&A.every(a=>a.isStopped())&&(k=2,x(A))}function dontAcceptMoreClick(){(0,eB.gr)(w),0===k&&(k=1,tryFinalize())}return appendClick(a),{tryAppend:a=>{var x,w;return 0===k&&(!(A.length>0)||(x=A[A.length-1].event,w=a.event,x.target===w.target&&100>=Math.sqrt(Math.pow(x.clientX-w.clientX,2)+Math.pow(x.clientY-w.clientY,2))&&x.timeStamp-w.timeStamp<=tD)?(appendClick(a),!0):(dontAcceptMoreClick(),!1))},stop:()=>{dontAcceptMoreClick()}}}(a,a=>{(function(a,x){let{isRage:w}=function(a,x){if(function(a){if(a.some(a=>a.getUserActivity().selection||a.getUserActivity().scroll))return!1;for(let x=0;x<a.length-2;x+=1)if(a[x+3-1].event.timeStamp-a[x].event.timeStamp<=ea.WT)return!0;return!1}(a))return x.addFrustration(eC.RAGE_CLICK),a.some(isDead)&&x.addFrustration(eC.DEAD_CLICK),x.hasError&&x.addFrustration(eC.ERROR_CLICK),{isRage:!0};let w=a.some(a=>a.getUserActivity().selection);return a.forEach(a=>{a.hasError&&a.addFrustration(eC.ERROR_CLICK),isDead(a)&&!w&&a.addFrustration(eC.DEAD_CLICK)}),{isRage:!1}}(a,x);w?(a.forEach(a=>a.discard()),x.stop((0,ea.n$)()),x.validate(a.map(a=>a.event))):(x.discard(),a.forEach(a=>a.validate()))})(a,x),F=void 0})}}function stopClickChain(){F&&F.stop()}}(a,w,A,k,F));let z=function(a,x,w){let A=new Map;return a.subscribe(10,()=>A.clear()),{addAction:function(a){w({id:(0,eO.DO)(),frustrationTypes:[],...a})},startAction:function(a,w={},k=(0,ea.$I)()){var F;let V=null!==(F=w.actionKey)&&void 0!==F?F:a,B=A.get(V);B&&(B.trackedAction.discard(),A.delete(V));let z=x.createTrackedAction(k);A.set(V,{name:a,type:w.type,context:w.context,trackedAction:z})},stopAction:function(a,x={},k=(0,ea.$I)()){var F,V;let B=null!==(F=x.actionKey)&&void 0!==F?F:a,z=A.get(B);if(!z)return;z.trackedAction.stop(k.relative);let G=[];z.trackedAction.counts.errorCount>0&&G.push(eC.ERROR_CLICK);let $={id:z.trackedAction.id,name:z.name,type:(null!==(V=x.type)&&void 0!==V?V:z.type)||eA.CUSTOM,startClocks:z.trackedAction.startClocks,duration:z.trackedAction.duration,context:(0,em.$e)(z.context,x.context),counts:z.trackedAction.counts,frustrationTypes:G};w($),A.delete(B)},stop:function(){A.forEach(a=>a.trackedAction.discard()),A.clear()}}}(a,F,x=>{a.notify(12,processAction(x))}),G={findActionId:F.findActionId};return x.register(0,({startTime:a,eventType:x})=>{if(x!==ew.ERROR&&x!==ew.RESOURCE&&x!==ew.LONG_TASK)return eI.kb;let w=x===ew.LONG_TASK?(0,ea.WK)(a,1):a,A=G.findActionId(w);return A?{type:x,action:{id:A}}:eI.kb}),x.register(1,({startTime:a})=>({action:{id:G.findActionId(a)}})),{addAction:z.addAction,startAction:z.startAction,stopAction:z.stopAction,actionContexts:G,stop:()=>{V(),B(),z.stop(),F.stop()}}}(a,x,el,eh,w);ei.push(ez.stop);let e$=function(a,x){let w;let A=requestAnimationFrame((0,ef.zk)(()=>{w=getViewportDimension()})),k=initViewportObservable(x).subscribe(a=>{w=a}).unsubscribe;return a.register(0,({eventType:a})=>({type:a,display:w?{viewport:w}:void 0})),{stop:()=>{k(),A&&cancelAnimationFrame(A)}}}(x,w);ei.push(e$.stop);let eW=function(a,x,w=function(a,x){let w=window.cookieStore?(x,w)=>{let A=(0,eP.O)(a,window.cookieStore,"change",a=>{let A=a.changed.find(a=>a.name===x)||a.deleted.find(a=>a.name===x);A&&w(A.value)});
4return A.stop}:watchCookieFallback;return new en.y$(a=>w(x,x=>a.notify(x)))}(a,rr)){var A;let k=getInitCookie(rr)||(null===(A=window.Cypress)||void 0===A?void 0:A.env("traceId")),F=w.subscribe(a=>{k=a});return x.register(0,({eventType:a})=>"string"!=typeof k?eI.kb:{type:a,session:{type:"ci_test"},ci_test:{test_execution_id:k}}),{stop:()=>{F.unsubscribe()}}}(w,x);ei.push(eW.stop),function(a){a.register(0,({eventType:a})=>{if(!isSyntheticsTest())return eI.kb;let x=getSyntheticsTestId(),w=getSyntheticsResultId();return{type:a,session:{type:"synthetics"},synthetics:{test_id:x,result_id:w,injected:willSyntheticsInjectRum()}}})}(x),function(a,x,w,A,k){K={[ew.VIEW]:{"view.performance.lcp.resource_url":"string",...ro,...ri,...ra},[ew.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...ro,...ri,...ra},[ew.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...ro,...ri,...ra},[ew.ACTION]:{"action.target.name":"string",...ro,...ri,...ra},[ew.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...ro,...ri,...ra},[ew.VITAL]:{...ro,...ri,...ra}};let F={[ew.ERROR]:createEventRateLimiter(ew.ERROR,A,k),[ew.ACTION]:createEventRateLimiter(ew.ACTION,A,k),[ew.VITAL]:createEventRateLimiter(ew.VITAL,A,k)};x.subscribe(12,({startTime:A,duration:k,rawRumEvent:V,domainContext:B})=>{let z=w.triggerHook(0,{eventType:V.type,rawRumEvent:V,domainContext:B,startTime:A,duration:k});if(z===eI.C_)return;let G=(0,em.$e)(z,V,{ddtags:(0,rn.MS)(a).join(",")});(function(a,x,w,A){var k;if(x){let A=function(a,x,w){let A=(0,em.I8)(a),k=w(A);return(0,eH.qP)(x).forEach(([x,w])=>(function setValueAtPath(a,x,w,A){let[k,...F]=w;if("[]"===k){Array.isArray(a)&&Array.isArray(x)&&a.forEach((a,w)=>setValueAtPath(a,x[w],F,A));return}if(isValidObject(a)&&isValidObject(x)){if(F.length>0)return setValueAtPath(a[k],x[k],F,A);(function(a,x,w,A){let k=(0,eN.o)(w);k===A?a[x]=(0,ev.N)(w):"object"===A&&("undefined"===k||"null"===k)&&(a[x]={})})(a,k,x[k],A)}})(a,A,x.split(/\.|(?=\[\])/),w)),k}(a,K[a.type],a=>x(a,w));if(!1===A&&a.type!==ew.VIEW)return!1;!1===A&&ex.jf.warn("Can't dismiss view events using beforeSend!")}let F=null===(k=A[a.type])||void 0===k?void 0:k.isLimitReached();return!F})(G,a.beforeSend,B,F)&&((0,eR.Qr)(G.context)&&delete G.context,x.notify(13,G))})}(w,a,x,W);let{addTiming:eZ,startView:eK,setViewName:eQ,setViewContext:eY,setViewContextProperty:eJ,getViewContext:eX,stop:e0}=(Y=location,a.subscribe(4,x=>a.notify(12,function(a,x,w){var A,k,F,V,B,z,G,$,W,Z,K,Y,J,ee,et,er,en,ei;let eo=w.getReplayStats(a.id),es=null===(k=null===(A=a.commonViewMetrics)||void 0===A?void 0:A.cumulativeLayoutShift)||void 0===k?void 0:k.devicePixelRatio,el={_dd:{document_version:a.documentVersion,replay_stats:eo,cls:es?{device_pixel_ratio:es}:void 0,configuration:{start_session_replay_recording_manually:x.startSessionReplayRecordingManually}},date:a.startClocks.timeStamp,type:ew.VIEW,view:{action:{count:a.eventCounts.actionCount},frustration:{count:a.eventCounts.frustrationCount},cumulative_layout_shift:null===(F=a.commonViewMetrics.cumulativeLayoutShift)||void 0===F?void 0:F.value,cumulative_layout_shift_time:(0,ea.c0)(null===(V=a.commonViewMetrics.cumulativeLayoutShift)||void 0===V?void 0:V.time),cumulative_layout_shift_target_selector:null===(B=a.commonViewMetrics.cumulativeLayoutShift)||void 0===B?void 0:B.targetSelector,first_byte:(0,ea.c0)(null===(z=a.initialViewMetrics.navigationTimings)||void 0===z?void 0:z.firstByte),dom_complete:(0,ea.c0)(null===(G=a.initialViewMetrics.navigationTimings)||void 0===G?void 0:G.domComplete),dom_content_loaded:(0,ea.c0)(null===($=a.initialViewMetrics.navigationTimings)||void 0===$?void 0:$.domContentLoaded),dom_interactive:(0,ea.c0)(null===(W=a.initialViewMetrics.navigationTimings)||void 0===W?void 0:W.domInteractive),error:{count:a.eventCounts.errorCount},first_contentful_paint:(0,ea.c0)(a.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,ea.c0)(null===(Z=a.initialViewMetrics.firstInput)||void 0===Z?void 0:Z.delay),first_input_time:(0,ea.c0)(null===(K=a.initialViewMetrics.firstInput)||void 0===K?void 0:K.time),first_input_target_selector:null===(Y=a.initialViewMetrics.firstInput)||void 0===Y?void 0:Y.targetSelector,interaction_to_next_paint:(0,ea.c0)(null===(J=a.commonViewMetrics.interactionToNextPaint)||void 0===J?void 0:J.value),interaction_to_next_paint_time:(0,ea.c0)(null===(ee=a.commonViewMetrics.interactionToNextPaint)||void 0===ee?void 0:ee.time),interaction_to_next_paint_target_selector:null===(et=a.commonViewMetrics.interactionToNextPaint)||void 0===et?void 0:et.targetSelector,is_active:a.isActive,name:a.name,largest_contentful_paint:(0,ea.c0)(null===(er=a.initialViewMetrics.largestContentfulPaint)||void 0===er?void 0:er.value),largest_contentful_paint_target_selector:null===(en=a.initialViewMetrics.largestContentfulPaint)||void 0===en?void 0:en.targetSelector,load_event:(0,ea.c0)(null===(ei=a.initialViewMetrics.navigationTimings)||void 0===ei?void 0:ei.loadEvent),loading_time:discardNegativeDuration((0,ea.c0)(a.commonViewMetrics.loadingTime)),loading_type:a.loadingType,long_task:{count:a.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:a,interactionToNextPaint:x},{firstContentfulPaint:w,firstInput:A,largestContentfulPaint:k}){return{cls:a&&{score:a.value,timestamp:(0,ea.c0)(a.time),target_selector:a.targetSelector,previous_rect:a.previousRect,current_rect:a.currentRect},fcp:w&&{timestamp:(0,ea.c0)(w)},fid:A&&{duration:(0,ea.c0)(A.delay),timestamp:(0,ea.c0)(A.time),target_selector:A.targetSelector},inp:x&&{duration:(0,ea.c0)(x.value),timestamp:(0,ea.c0)(x.time),target_selector:x.targetSelector},lcp:k&&{timestamp:(0,ea.c0)(k.value),target_selector:k.targetSelector,resource_url:k.resourceUrl}}}(a.commonViewMetrics,a.initialViewMetrics),resource:{count:a.eventCounts.resourceCount},time_spent:(0,ea.c0)(a.duration)},display:a.commonViewMetrics.scroll?{scroll:{max_depth:a.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:a.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:a.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,ea.c0)(a.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:x.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{let a=new Intl.DateTimeFormat;return a.resolvedOptions().timeZone}catch(a){return}}()}};return(0,eR.Qr)(a.customTimings)||(el.view.custom_timings=(0,eR.Q8)(a.customTimings,ea.c0)),{rawRumEvent:el,startTime:a.startClocks.relative,duration:a.duration,domainContext:{location:a.location}}}(x,w,k))),x.register(0,({startTime:a,eventType:x})=>{let w=ek.findView(a);return w?{type:x,service:w.service,version:w.version,context:w.context,view:{id:w.id,name:w.name}}:eI.C_}),x.register(1,({startTime:a})=>{var x;return{view:{id:null===(x=ek.findView(a))||void 0===x?void 0:x.id}}}),function(a,x,w,A,k,F,V,B){let z,$;let W=new Set,Z=startNewView(eE.INITIAL_LOAD,(0,ea.cQ)(),B);function startNewView(F,V,B){let z=function(a,x,w,A,k,F,V=(0,ea.$I)(),B){let z;let $=(0,eO.DO)(),W=new en.y$,Z={},K=0,Y=(0,eR.mv)(k),J=createContextManager(),ee=!0,et=null==B?void 0:B.name,ei=(null==B?void 0:B.service)||A.service,eo=(null==B?void 0:B.version)||A.version,es=null==B?void 0:B.context;es&&J.setContext(es);let el={id:$,name:et,startClocks:V,service:ei,version:eo,context:es};a.notify(1,el),a.notify(2,el);let{throttled:eu,cancel:ec}=(0,eM.P)(triggerViewUpdate,3e3,{leading:!1}),{setLoadEvent:ed,setViewEnd:ep,stop:eh,stopINPTracking:em,getCommonViewMetrics:eg}=function(a,x,w,A,k,F,V){let B={},{stop:z,setLoadEvent:$}=function(a,x,w,A,k,F,V){let B=k===eE.INITIAL_LOAD,z=!0,G=[],$=trackFirstHidden(A,F);function invokeCallbackIfAllCandidatesAreReceived(){if(!z&&!B&&G.length>0){let a=Math.max(...G);
4a<$.timeStamp-F.relative&&V(a)}}let{stop:W}=waitPageActivityEnd(a,x,w,A,a=>{z&&(z=!1,a.hadActivity&&G.push((0,ea._J)(F.timeStamp,a.end)),invokeCallbackIfAllCandidatesAreReceived())});return{stop:()=>{W(),$.stop()},setLoadEvent:a=>{B&&(B=!1,G.push(a),invokeCallbackIfAllCandidatesAreReceived())}}}(a,x,w,A,F,V,a=>{B.loadingTime=a,k()}),{stop:W}=function(a,x,w,A=function(a,x=t2){return new en.y$(w=>{if(window.ResizeObserver){let A=(0,eM.P)(function(){w.notify(function(){let a=getScrollY(),{height:x}=getViewportDimension(),w=Math.round((document.scrollingElement||document.documentElement).scrollHeight);return{scrollHeight:w,scrollDepth:Math.round(x+a),scrollTop:a}}())},x,{leading:!1,trailing:!0}),k=document.scrollingElement||document.documentElement,F=new ResizeObserver((0,ef.zk)(A.throttled));k&&F.observe(k);let V=(0,eP.O)(a,window,"scroll",A.throttled,{passive:!0});return()=>{A.cancel(),F.disconnect(),V.stop()}}})}(a)){let k=0,F=0,V=0,B=A.subscribe(({scrollDepth:a,scrollTop:A,scrollHeight:B})=>{let z=!1;if(a>k&&(k=a,z=!0),B>F){F=B;let a=(0,ea._q)();V=(0,ea._J)(x.relative,a),z=!0}z&&w({maxDepth:Math.min(k,F),maxDepthScrollTop:A,maxScrollHeight:F,maxScrollHeightTime:V})});return{stop:()=>B.unsubscribe()}}(A,V,a=>{B.scroll=a}),{stop:Z}=function(a,x,w){let A,k,F,V,B;if(!(supportPerformanceTimingEvent(er.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:eM.Z};let z=0;w({value:0});let G=(V=0,B=0,{update:a=>{let x;let w=void 0===k||a.startTime-F>=tY||a.startTime-k>=tQ;return w?(k=F=a.startTime,B=V=a.value,x=!0):(V+=a.value,F=a.startTime,(x=a.value>B)&&(B=a.value)),{cumulatedValue:V,isMaxValue:x}}}),$=createPerformanceObservable(a,{type:er.LAYOUT_SHIFT,buffered:!0}).subscribe(k=>{var F;for(let V of k){if(V.hadRecentInput||V.startTime<x)continue;let{cumulatedValue:k,isMaxValue:B}=G.update(V);
4if(B){let a=function(a){let x;for(let w of a)if(w.node&&isElementNode(w.node)){let a=getClsAttributionImpactedArea(w);(!x||getClsAttributionImpactedArea(x)<a)&&(x=w)}return x}(V.sources);A={target:(null==a?void 0:a.node)?new WeakRef(a.node):void 0,time:(0,ea._J)(x,V.startTime),previousRect:null==a?void 0:a.previousRect,currentRect:null==a?void 0:a.currentRect,devicePixelRatio:window.devicePixelRatio}}if(k>z){z=k;let x=null===(F=null==A?void 0:A.target)||void 0===F?void 0:F.deref();w({value:(0,eU.NM)(z,4),targetSelector:x&&getSelectorFromElement(x,a.actionNameAttribute),time:null==A?void 0:A.time,previousRect:(null==A?void 0:A.previousRect)?asRumRect(A.previousRect):void 0,currentRect:(null==A?void 0:A.currentRect)?asRumRect(A.currentRect):void 0,devicePixelRatio:null==A?void 0:A.devicePixelRatio})}}});return{stop:()=>{$.unsubscribe()}}}(A,V.relative,a=>{B.cumulativeLayoutShift=a,k()}),{stop:K,getInteractionToNextPaint:Y,setViewEnd:J}=function(a,x,w){let A,k;if(!(supportPerformanceTimingEvent(er.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:eM.Z,stop:eM.Z};let{getViewInteractionCount:F,stopViewInteractionCount:V}=function(a){"interactionCount"in performance||G||(G=new window.PerformanceObserver((0,ef.zk)(a=>{a.getEntries().forEach(a=>{a.interactionId&&(tX=Math.min(tX,a.interactionId),tJ=((t0=Math.max(t0,a.interactionId))-tX)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let x=a===eE.INITIAL_LOAD?0:getInteractionCount(),w={stopped:!1};return{getViewInteractionCount:()=>w.stopped?w.interactionCount:getInteractionCount()-x,stopViewInteractionCount:()=>{w={stopped:!0,interactionCount:getInteractionCount()-x}}}}(w),B=1/0,z=function(a){let x=[];function sortAndTrimLongestInteractions(){x.sort((a,x)=>x.duration-a.duration).splice(10)}return{process(a){let w=x.findIndex(x=>a.interactionId===x.interactionId),A=x[x.length-1];-1!==w?a.duration>x[w].duration&&(x[w]=a,sortAndTrimLongestInteractions()):(x.length<10||a.duration>A.duration)&&(x.push(a),sortAndTrimLongestInteractions())},estimateP98Interaction(){let w=Math.min(x.length-1,Math.floor(a()/50));return x[w]}}}(F),$=-1;function handleEntries(w){for(let a of w)a.interactionId&&a.startTime>=x&&a.startTime<=B&&z.process(a);let F=z.estimateP98Interaction();F&&F.duration!==$&&($=F.duration,k=(0,ea._J)(x,F.startTime),!(A=function(a){let x=tF.get(a);return tF.delete(a),x}(F.startTime))&&F.target&&isElementNode(F.target)&&(A=getSelectorFromElement(F.target,a.actionNameAttribute)))}let W=createPerformanceObservable(a,{type:er.FIRST_INPUT,buffered:!0}).subscribe(handleEntries),Z=createPerformanceObservable(a,{type:er.EVENT,durationThreshold:40,buffered:!0}).subscribe(handleEntries);return{getInteractionToNextPaint:()=>$>=0?{value:Math.min($,t1),targetSelector:A,time:k}:F()?{value:0}:void 0,setViewEnd:a=>{B=a,V()},stop:()=>{Z.unsubscribe(),W.unsubscribe()}}}(A,V.relative,F);return{stop:()=>{z(),Z(),W()},stopINPTracking:K,setLoadEvent:$,setViewEnd:J,getCommonViewMetrics:()=>(B.interactionToNextPaint=Y(),B)}}(a,x,w,A,scheduleViewUpdate,F,V),{stop:ev,initialViewMetrics:ey}=F===eE.INITIAL_LOAD?function(a,x,w,A){let k={},{stop:F}=function(a,x,w=getNavigationEntry){return function(a,x){let w;let{stop:A}=(0,t$.T)(a,"complete",()=>{w=(0,eB.iK)(()=>x())});return{stop:()=>{A(),(0,eB.gr)(w)}}}(a,()=>{let a=w();a.loadEventEnd<=0||x({domComplete:a.domComplete,domContentLoaded:a.domContentLoadedEventEnd,domInteractive:a.domInteractive,loadEvent:a.loadEventEnd,firstByte:a.responseStart>=0&&a.responseStart<=(0,ea._q)()?a.responseStart:void 0})})}(a,a=>{w(a.loadEvent),k.navigationTimings=a,A()}),V=trackFirstHidden(a,x),{stop:B}=function(a,x,w){let A=createPerformanceObservable(a,{type:er.PAINT,buffered:!0}).subscribe(a=>{let A=a.find(a=>"first-contentful-paint"===a.name&&a.startTime<x.timeStamp&&a.startTime<tZ);A&&w(A.startTime)});return{stop:A.unsubscribe}}(a,V,a=>{k.firstContentfulPaint=a,A()}),{stop:z}=function(a,x,w,A){let k=1/0,{stop:F}=(0,eP.y)(a,w,["pointerdown","keydown"],a=>{k=a.timeStamp},{capture:!0,once:!0}),V=0,B=createPerformanceObservable(a,{type:er.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(w=>{let F=(0,eH.dF)(w,a=>a.entryType===er.LARGEST_CONTENTFUL_PAINT&&a.startTime<k&&a.startTime<x.timeStamp&&a.startTime<tK&&a.size>V);if(F){let x;F.element&&(x=getSelectorFromElement(F.element,a.actionNameAttribute)),A({value:F.startTime,targetSelector:x,resourceUrl:""===F.url?void 0:F.url}),V=F.size}}
4);return{stop:()=>{F(),B.unsubscribe()}}}(a,V,window,a=>{k.largestContentfulPaint=a,A()}),{stop:G}=function(a,x,w){let A=createPerformanceObservable(a,{type:er.FIRST_INPUT,buffered:!0}).subscribe(A=>{let k=A.find(a=>a.startTime<x.timeStamp);if(k){let x;let A=(0,ea._J)(k.startTime,k.processingStart);k.target&&isElementNode(k.target)&&(x=getSelectorFromElement(k.target,a.actionNameAttribute)),w({delay:A>=0?A:0,time:k.startTime,targetSelector:x})}});return{stop:()=>{A.unsubscribe()}}}(a,V,a=>{k.firstInput=a,A()});return{stop:function(){F(),B(),z(),G(),V.stop()},initialViewMetrics:k}}(A,V,ed,scheduleViewUpdate):{stop:eM.Z,initialViewMetrics:{}};if(F===eE.BF_CACHE){var eb,e_;eb=V.relative,e_=a=>{ey.firstContentfulPaint=a,ey.largestContentfulPaint={value:a},scheduleViewUpdate()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{e_((0,ea._J)(eb,(0,ea._q)()))})})}let{stop:ew,eventCounts:eS}=function(a,x,w){let{stop:A,eventCounts:k}=trackEventCounts({lifeCycle:a,isChildEvent:a=>a.view.id===x,onChange:w});return{stop:A,eventCounts:k}}(a,$,scheduleViewUpdate),eA=(0,eB.Zi)(triggerViewUpdate,t5),eC=a.subscribe(11,a=>{a.reason===ta.k$.UNLOADING&&triggerViewUpdate()});function triggerBeforeViewUpdate(){a.notify(3,{id:$,name:et,context:J.getContext(),startClocks:V,sessionIsActive:ee})}function scheduleViewUpdate(){triggerBeforeViewUpdate(),eu()}function triggerViewUpdate(){ec(),triggerBeforeViewUpdate(),K+=1;let x=void 0===z?(0,ea.n$)():z.timeStamp;a.notify(4,{customTimings:Z,documentVersion:K,id:$,name:et,service:ei,version:eo,context:J.getContext(),loadingType:F,location:Y,startClocks:V,commonViewMetrics:eg(),initialViewMetrics:ey,duration:(0,ea._J)(V.timeStamp,x),isActive:void 0===z,sessionIsActive:ee,eventCounts:eS})}return triggerViewUpdate(),J.changeObservable.subscribe(scheduleViewUpdate),{get name(){return et},service:ei,version:eo,contextManager:J,stopObservable:W,end(x={}){var w,A;z||(z=null!==(w=x.endClocks)&&void 0!==w?w:(0,ea.$I)(),ee=null===(A=x.sessionIsActive)||void 0===A||A,a.notify(5,{endClocks:z}),a.notify(6,{endClocks:z}),(0,eB.cv)(eA),ep(z.relative),eh(),eC.unsubscribe(),triggerViewUpdate(),(0,eB.iK)(()=>{this.stop()},t3))},stop(){ev(),ew(),em(),W.notify()},addTiming(a,x){if(z)return;let w=(0,ea.Cn)(x)?x:(0,ea._J)(V.timeStamp,x);Z[function(a){let x=a.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return x!==a&&ex.jf.warn(`Invalid timing name: ${a}, sanitized to: ${x}`),x}(a)]=w,scheduleViewUpdate()},setViewName(a){et=a,triggerViewUpdate()}}}(x,w,A,k,a,F,V,B);return W.add(z),z.stopObservable.subscribe(()=>{W.delete(z)}),z}return x.subscribe(10,()=>{Z=startNewView(eE.ROUTE_CHANGE,void 0,{name:Z.name,service:Z.service,version:Z.version,context:Z.contextManager.getContext()})}),x.subscribe(9,()=>{Z.end({sessionIsActive:!1})}),V&&($=F.subscribe(({oldLocation:a,newLocation:x})=>{(a.pathname!==x.pathname||!function(a){let x=a.substring(1);return""!==x&&!!document.getElementById(x)}(x.hash)&&getPathFromHash(x.hash)!==getPathFromHash(a.hash))&&(Z.end(),Z=startNewView(eE.ROUTE_CHANGE))}),k.trackBfcacheViews&&(z=function(a,x){let{stop:w}=(0,eP.O)(a,window,"pageshow",a=>{a.persisted&&x(a)},{capture:!0});return w}(k,a=>{Z.end();let x=(0,ea.DY)(a.timeStamp);Z=startNewView(eE.BF_CACHE,x,void 0)}))),{addTiming:(a,x=(0,ea.n$)())=>{Z.addTiming(a,x)},startView:(a,x)=>{Z.end({endClocks:x}),Z=startNewView(eE.ROUTE_CHANGE,x,a)},setViewContext:a=>{Z.contextManager.setContext(a)},setViewContextProperty:(a,x)=>{Z.contextManager.setContextProperty(a,x)},setViewName:a=>{Z.setViewName(a)},getViewContext:()=>Z.contextManager.getContext(),stop:()=>{$&&$.unsubscribe(),z&&z(),Z.end(),W.forEach(a=>a.stop())}}}(Y,a,el,eh,w,ed,!w.trackViewsManually,F));!function(a){if(!(0,ey.W_)(ey.uh.SOURCE_CODE_CONTEXT))return;let x=window,w=new Map;function buildContextByFile(){x.DD_SOURCE_CODE_CONTEXT&&((0,eH.qP)(x.DD_SOURCE_CODE_CONTEXT).forEach(([a,x])=>{let A=(0,es._)({stack:a}),k=A.stack[0];if(!k.url){(0,ep.Sz)("Source code context: missing frame url",{stack:a});return}w.has(k.url)||w.set(k.url,x)}),x.DD_SOURCE_CODE_CONTEXT={})}buildContextByFile(),a.register(0,({domainContext:a,rawRumEvent:x})=>{buildContextByFile();let A=function(a,x){var w,A;let k;if("long_task"===x.type&&"long-animation-frame"===x.long_task.entry_type)return null===(w=x.long_task.scripts[0])||void 0===w?void 0:w.source_url;"handlingStack"in a&&(k=a.handlingStack),"error"===x.type&&x.error.stack&&(k=x.error.stack);let F=(0,es._)({stack:k});return null===(A=F.stack[0])||void 0===A?void 0:A.url}(a,x);if(A){let a=w.get(A);if(a)return{type:x.type,service:a.service,version:a.version}}return eI.kb})}(x),ei.push(e0);let{stop:e1}=function(a,x,w,A=function(){let a=[];function run(x){let w;if(x.didTimeout){let a=performance.now();w=()=>30-(performance.now()-a)}else w=x.timeRemaining.bind(x);for(;w()>0&&a.length;)a.shift()();a.length&&scheduleNextRun()}function scheduleNextRun(){(0,tz.Kk)(run,{timeout:tH})}return{push(x){1===a.push(x)&&scheduleNextRun()},stop(){a.length=0}}}(),k=function(a,x,w=getNavigationEntry){(0,t$.T)(a,"interactive",()=>{let a=w(),A=Object.assign(a.toJSON(),{entryType:er.RESOURCE,initiatorType:tg,duration:a.responseEnd,traceId:function(a){let x=function(a){let x=a.querySelector("meta[name=dd-trace-id]"),w=a.querySelector("meta[name=dd-trace-time]");
4return createDocumentTraceData(x&&x.content,w&&w.content)}(a)||function(a){let x=function(a){for(let x=0;x<a.childNodes.length;x+=1){let w=getTraceCommentFromNode(a.childNodes[x]);if(w)return w}if(a.body)for(let x=a.body.childNodes.length-1;x>=0;x-=1){let w=a.body.childNodes[x],A=getTraceCommentFromNode(w);if(A)return A;if(!isTextNode(w))break}}(a);if(x)return createDocumentTraceData((0,eO.MY)(x,"trace-id"),(0,eO.MY)(x,"trace-time"))}(a);if(!(!x||x.traceTime<=(0,ea.m6)()-tW))return x.traceId}(document),toJSON:()=>({...A,toJSON:void 0})});x(A)})}){let F;let V=x.trackEarlyRequests;V?F=function(a){let x=new Set,w=a.subscribe(8,a=>{x.add(a),x.size>1e3&&((0,ep.eJ)("Too many requests"),x.delete(x.values().next().value))});return{getMatchingRequest(a){let w,A=1/0;for(let k of x){let x=a.startTime-k.startClocks.relative;0<=x&&x<A&&k.url===a.name&&(A=Math.abs(x),w=k)}return w&&x.delete(w),w},stop(){w.unsubscribe()}}}(a):a.subscribe(8,a=>{handleResource(()=>(function(a,x,w){let A=function(a){if(!performance||!("getEntriesByName"in performance))return;let x=performance.getEntriesByName(a.url,"resource");if(!x.length||!("toJSON"in x[0]))return;let w=x.filter(a=>!tG.has(a)).filter(a=>hasValidResourceEntryDuration(a)&&hasValidResourceEntryTimings(a)).filter(x=>{var w,A;return w=a.startClocks.relative,A=endTime({startTime:a.startClocks.relative,duration:a.duration}),x.startTime>=w-1&&endTime(x)<=(0,ea.WK)(A,1)});if(1===w.length)return tG.add(w[0]),w[0].toJSON()}(a);return assembleResource(A,a,w,x)})(a,x,w))});let B=createPerformanceObservable(x,{type:er.RESOURCE,buffered:!0}).subscribe(a=>{for(let A of a)(V||!isResourceEntryRequestType(A))&&handleResource(()=>processResourceEntry(A,x,w,F))});function handleResource(x){A.push(()=>{let w=x();w&&a.notify(12,w)})}return k(x,a=>{handleResource(()=>processResourceEntry(a,x,w,F))}),{stop:()=>{A.stop(),B.unsubscribe()}}}(a,w,e_);ei.push(e1);let{stop:e2,longTaskContexts:e5}=function(a,x){let w=createValueHistory({expireDelay:eG}),A=supportPerformanceTimingEvent(er.LONG_ANIMATION_FRAME)?er.LONG_ANIMATION_FRAME:er.LONG_TASK,k=createPerformanceObservable(x,{type:A,buffered:!0}).subscribe(k=>{for(let F of k){if(!x.trackLongTasks)break;let k=(0,ea.DY)(F.startTime),V=(0,eO.DO)(),B=function(a,x,w){let A={date:x.timeStamp,type:ew.LONG_TASK,_dd:{discarded:!1}};return a.entryType===er.LONG_TASK?{...A,long_task:{id:w,entry_type:eS.LONG_TASK,duration:(0,ea.c0)(a.duration)}}:{...A,long_task:{id:w,entry_type:eS.LONG_ANIMATION_FRAME,duration:(0,ea.c0)(a.duration),blocking_duration:(0,ea.c0)(a.blockingDuration),first_ui_event_timestamp:(0,ea.c0)(a.firstUIEventTimestamp),render_start:(0,ea.c0)(a.renderStart),style_and_layout_start:(0,ea.c0)(a.styleAndLayoutStart),start_time:(0,ea.c0)(a.startTime),scripts:a.scripts.map(a=>({duration:(0,ea.c0)(a.duration),pause_duration:(0,ea.c0)(a.pauseDuration),forced_style_and_layout_duration:(0,ea.c0)(a.forcedStyleAndLayoutDuration),start_time:(0,ea.c0)(a.startTime),execution_start:(0,ea.c0)(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))}}}(F,k,V);a.notify(12,{rawRumEvent:B,startTime:k.relative,duration:F.duration,domainContext:{performanceEntry:F}}),w.add({id:V,startClocks:k,duration:F.duration,entryType:A},k.relative),w.closeActive((0,ea.WK)(k.relative,F.duration))}});return{stop:()=>{k.unsubscribe(),w.stop()},longTaskContexts:{findLongTasks:(a,x)=>w.findAll(a,x)}}}(a,w);ei.push(e2);let{addError:e3}=function(a,x,w){let A=new en.y$;return w.subscribe(a=>{0===a.type&&A.notify(a.error)}),(function(a){let x=a.map(a=>(tB[a]||(tB[a]=new en.y$(x=>{let w=ex.jG[a];return ex.jG[a]=(...A)=>{w.apply(console,A);let k=(0,eg.Xp)("console error");(0,ef.L6)(()=>{x.notify(function(a,x,w){let A=a.map(a=>"string"==typeof a?(0,ev.N)(a):(0,eu.VZ)(a)?(0,eg.jN)((0,es._)(a)):(0,tU.l)((0,ev.N)(a),void 0,2)).join(" ");if(x===ex.vA.error){let k=a.find(eu.VZ),F=(0,eu.AP)({originalError:k,handlingStack:w,startClocks:(0,ea.$I)(),source:ec.z.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return F.message=A,{api:x,message:A,handlingStack:w,error:F}}return{api:x,message:A,error:void 0,handlingStack:w}}(A,a,k))})},()=>{ex.jG[a]=w}})),tB[a]));return(0,en.$Z)(...x)})([ex.vA.error]).subscribe(a=>A.notify(a.error)),!function(a,x){(function(a,x){let w=[];x.includes(tq.cspViolation)&&w.push(new en.y$(x=>{let{stop:w}=(0,eP.O)(a,document,"securitypolicyviolation",a=>{x.notify(function(a){let x=`'${a.blockedURI}' blocked by '${a.effectiveDirective}' directive`;return buildRawReportError({type:a.effectiveDirective,message:`${tq.cspViolation}: ${x}
4`,originalError:a,csp:{disposition:a.disposition},stack:buildStack(a.effectiveDirective,a.originalPolicy?`${x} of the policy "${(0,eO._z)(a.originalPolicy,100,"...")}"`:"no policy",a.sourceFile,a.lineNumber,a.columnNumber)})}(a))});return w}));let A=x.filter(a=>a!==tq.cspViolation);return A.length&&w.push(new en.y$(a=>{if(!window.ReportingObserver)return;let x=(0,ef.zk)((x,w)=>x.forEach(x=>a.notify(function(a){let{type:x,body:w}=a;return buildRawReportError({type:w.id,message:`${x}: ${w.message}`,originalError:a,stack:buildStack(w.id,w.message,w.sourceFile,w.lineNumber,w.columnNumber)})}(x)))),w=new window.ReportingObserver(x,{types:A,buffered:!0});return w.observe(),()=>{w.disconnect()}})),(0,en.$Z)(...w)})(a,[tq.cspViolation,tq.intervention]).subscribe(a=>x.notify(a))}(x,A),A.subscribe(x=>a.notify(14,{error:x})),a.subscribe(14,({error:x})=>{a.notify(12,function(a){let x={date:a.startClocks.timeStamp,error:{id:(0,eO.DO)(),message:a.message,source:a.source,stack:a.stack,handling_stack:a.handlingStack,component_stack:a.componentStack,type:a.type,handling:a.handling,causes:a.causes,source_type:"browser",fingerprint:a.fingerprint,csp:a.csp},type:ew.ERROR,context:a.context},w={error:a.originalError,handlingStack:a.handlingStack};return{rawRumEvent:x,startTime:a.startClocks.relative,domainContext:w}}(x))}),{addError:({error:x,handlingStack:w,componentStack:A,startClocks:k,context:F})=>{let V=(0,eu.AP)({originalError:x,handlingStack:w,componentStack:A,startClocks:k,nonErrorPrefix:"Provided",source:ec.z.CUSTOM,handling:"handled"});V.context=(0,em.$e)(V.context,F),a.notify(14,{error:V})}}}(a,w,z);!function(a,x,w,A,k){let F={clearTracingIfNeeded,traceFetch:a=>injectHeadersIfTracingAllowed(x,a,w,A,k,x=>{var w;if(a.input instanceof Request&&!(null===(w=a.init)||void 0===w?void 0:w.headers))a.input=new Request(a.input),Object.keys(x).forEach(w=>{a.input.headers.append(w,x[w])});else{a.init=(0,eR.mv)(a.init);let w=[];a.init.headers instanceof Headers?a.init.headers.forEach((a,x)=>{w.push([x,a])}):Array.isArray(a.init.headers)?a.init.headers.forEach(a=>{w.push(a)}):a.init.headers&&Object.keys(a.init.headers).forEach(x=>{w.push([x,a.init.headers[x]])}),a.init.headers=w.concat((0,eH.qP)(x))}}),traceXhr:(a,F)=>injectHeadersIfTracingAllowed(x,a,w,A,k,a=>{Object.keys(a).forEach(x=>{F.setRequestHeader(x,a[x])})})};(function(a,x,w){(B||(B=new en.y$(a=>{let{stop:w}=(0,eo.S)(XMLHttpRequest.prototype,"open",openXhr),{stop:A}=(0,eo.S)(XMLHttpRequest.prototype,"send",w=>{(function({target:a,parameters:[x],handlingStack:w},A,k){let F=tp.get(a);if(!F)return;F.state="start",F.startClocks=(0,ea.$I)(),F.isAborted=!1,F.xhr=a,F.handlingStack=w,F.requestBody=x;let V=!1,{stop:B}=(0,eo.S)(a,"onreadystatechange",()=>{a.readyState===XMLHttpRequest.DONE&&onEnd()}),onEnd=()=>{z(),B(),V||(V=!0,F.state="complete",F.duration=(0,ea._J)(F.startClocks.timeStamp,(0,ea.n$)()),F.status=a.status,"string"==typeof a.response&&(F.responseBody=a.response),k.notify((0,eR.mv)(F)))},{stop:z}=(0,eP.O)(A,a,"loadend",onEnd);k.notify(F)})(w,x,a)},{computeHandlingStack:!0}),{stop:k}=(0,eo.S)(XMLHttpRequest.prototype,"abort",abortXhr);return()=>{w(),A(),k()}})),B).subscribe(x=>{if(isAllowedRequestUrl(x.url))switch(x.state){case"start":w.traceXhr(x,x.xhr),x.requestIndex=getNextRequestIndex(),a.notify(7,{requestIndex:x.requestIndex,url:x.url});break;case"complete":w.clearTracingIfNeeded(x),a.notify(8,{duration:x.duration,method:x.method,requestIndex:x.requestIndex,spanId:x.spanId,startClocks:x.startClocks,status:x.status,traceId:x.traceId,traceSampled:x.traceSampled,type:tm.XHR,url:x.url,xhr:x.xhr,isAborted:x.isAborted,handlingStack:x.handlingStack,requestBody:x.requestBody,responseBody:x.responseBody})}})})(a,x,F),function(a,x,w){initFetchObservable({responseBodyAction:a=>{var w;return(null===(w=findGraphQlConfiguration(a.url,x))||void 0===w?void 0:w.trackResponseErrors)?2:1}}).subscribe(x=>{var A;if(isAllowedRequestUrl(x.url))switch(x.state){case"start":w.traceFetch(x),x.requestIndex=getNextRequestIndex(),a.notify(7,{requestIndex:x.requestIndex,url:x.url});break;case"resolve":w.clearTracingIfNeeded(x),a.notify(8,{duration:(0,ea._J)(x.startClocks.timeStamp,(0,ea.n$)()),method:x.method,requestIndex:x.requestIndex,responseType:x.responseType,spanId:x.spanId,startClocks:x.startClocks,status:x.status,traceId:x.traceId,traceSampled:x.traceSampled,type:tm.FETCH,url:x.url,response:x.response,init:x.init,input:x.input,isAborted:x.isAborted,handlingStack:x.handlingStack,requestBody:null===(A=x.init)||void 0===A?void 0:A.body,responseBody:x.responseBody})}})}(a,x,F)}(a,w,A,eV,eq);let e4=function(a,x,w){function addDurationVital(w){x.wasInPageStateDuringPeriod("frozen",w.startClocks.relative,w.duration)||a.notify(12,processVital(w))}return{addOperationStepVital:function(x,w,A,k){if(!(0,ey.W_)(ey.uh.FEATURE_OPERATION_VITAL))return;let{operationKey:F,context:V,description:B}=A||{}
4,z={name:x,type:eT.OPERATION_STEP,operationKey:F,failureReason:k,stepType:w,startClocks:(0,ea.$I)(),context:(0,ev.N)(V),description:B};a.notify(12,processVital(z))},addDurationVital,startDurationVital:(a,x={})=>startDurationVital(w,a,x),stopDurationVital:(a,x={})=>{stopDurationVital(addDurationVital,w,a,x)}}}(a,e_,V),e6=(J=w.applicationId,ee=ez.actionContexts,{get:a=>{let x=ek.findView(a),w=eL.findUrl(a),k=A.findTrackedSession(a);if(k&&x&&w){let A=ee.findActionId(a);return{application_id:J,session_id:k.id,user_action:A?{id:A}:void 0,view:{id:x.id,name:x.name,referrer:w.referrer,url:w.url}}}}});return{addAction:ez.addAction,startAction:ez.startAction,stopAction:ez.stopAction,addEvent:(x,w,A,k)=>{ru.includes(w.type)&&a.notify(12,{startTime:x,rawRumEvent:w,domainContext:A,duration:k})},addError:e3,addTiming:eZ,addFeatureFlagEvaluation:ej.addFeatureFlagEvaluation,startView:eK,setViewContext:eY,setViewContextProperty:eJ,getViewContext:eX,setViewName:eQ,viewHistory:ek,getInternalContext:e6.get,startDurationVital:e4.startDurationVital,stopDurationVital:e4.stopDurationVital,addDurationVital:e4.addDurationVital,addOperationStepVital:e4.addOperationStepVital,globalContext:eF,userContext:eV,accountContext:eq,longTaskContexts:e5,stop:()=>ei.forEach(a=>a())}}(ei,el,a,e_,x,A,V,z,$,reportError);return et.push(ej),z.unbuffer(),et.push(()=>w.stop()),{...eF,lifeCycle:ei,session:e_,stopSession:()=>e_.expire(),telemetry:eb,stop:()=>{et.forEach(a=>a())},hooks:el}}function getSessionReplayUrl(a,{session:x,viewContext:w,errorType:A}){let k=x?x.id:"no-session-id",F=[];void 0!==A&&F.push(`error-type=${A}`),w&&(F.push(`seed=${w.id}`),F.push(`from=${w.startClocks.timeStamp}`));let V=function(a){let x=a.site,w=a.subdomain||function(a){switch(a.site){case e0.D_:case e0.Ds:return"app";case e0.DZ:return"dd";default:return}}(a);return`https://${w?`${w}.`:""}${x}`}(a),B=`/rum/replay/sessions/${k}`;return`${V}${B}?${F.join("&")}`}function createFormDataTransport(a,x,w,A){let k=(0,t7.UF)([a.profilingEndpointBuilder],a=>{x.notify(14,{error:a}),(0,ep.eJ)("Error reported to customer",{"error.message":a.message})}),F=w(A);return{async send({event:a,...x}){let w=new FormData,A=(0,tU.l)(a);if(!A)throw Error("Failed to serialize event");w.append("event",new Blob([A],{type:"application/json"}),"event.json");let V=A.length;for(let[a,A]of(0,eH.qP)(x)){let x=(0,tU.l)(A);if(!x)throw Error("Failed to serialize attachment");let k=await function(a,x){return new Promise(w=>{a.write(x),a.finish(a=>{w(a)})})}(F,x);V+=k.outputBytesCount,w.append(a,new Blob([k.output]),a)}k.send({data:w,bytesCount:V})}}}},98290:function(a,x,w){"use strict";let A;function getSegmentsCount(a){return getOrCreateReplayStats(a).segments_count}function addSegment(a){getOrCreateReplayStats(a).segments_count+=1}function addRecord(a){getOrCreateReplayStats(a).records_count+=1}function addWroteData(a,x){getOrCreateReplayStats(a).segments_total_raw_size+=x}function getReplayStats(a){return null==A?void 0:A.get(a)}function getOrCreateReplayStats(a){let x;return A||(A=new Map),A.has(a)?x=A.get(a):(x={records_count:0,segments_count:0,segments_total_raw_size:0},A.set(a,x),A.size>1e3&&function(){if(!A)return;let a=A.keys().next().value;a&&A.delete(a)}()),x}w.d(x,{FT:function(){return getSegmentsCount},MA:function(){return getReplayStats},pk:function(){return addWroteData},ui:function(){return addSegment},xK:function(){return addRecord}})},86947:function(a,x,w){"use strict";let A;w.d(x,{v:function(){return es}});var k=w(8678),F=w(51145),V=w(59981),B=w(76876),z=w(251),G=w(98290),$=w(83206),W=w(51962);function createDeflateEncoder(a,x,w){let A,k=0,F=[],V=!0,B=0,z=[],{stop:G}=(0,$.O)(a,x,"message",({data:a})=>{if("wrote"!==a.type||a.streamId!==w)return;let x=z[0];x&&(x.id===a.id?(z.shift(),k+=a.additionalBytesCount,F.push(a.result),A=a.trailer,x.writeCallback?x.writeCallback(a.result.byteLength):x.finishCallback&&x.finishCallback()):x.id<a.id&&G())});function consumeResult(){let a=0===F.length?new Uint8Array(0):(0,W.Kb)(F.concat(A)),x={rawBytesCount:k,output:a,outputBytesCount:a.byteLength,encoding:"deflate"};return k=0,F=[],x}function sendResetIfNeeded(){V||(x.postMessage({action:"reset",streamId:w}),V=!0)}return{isAsync:!0,get isEmpty(){return V},write(a,A){x.postMessage({action:"write",id:B,data:a,streamId:w}
4),z.push({id:B,writeCallback:A,data:a}),V=!1,B+=1},finish(a){sendResetIfNeeded(),z.length?(z.forEach(a=>{delete a.writeCallback}),z[z.length-1].finishCallback=()=>a(consumeResult())):a(consumeResult())},finishSync(){sendResetIfNeeded();let a=z.map(a=>a.data).join("");return z.length=0,{...consumeResult(),pendingData:a}},estimateEncodedBytesCount:a=>a.length/8,stop(){G()}}}var Z=w(25026),K=w(65483),Y=w(13842),J=w(18797);function reportScriptLoadingError({configuredUrl:a,error:x,source:w,scriptType:A}){var k;if(Y.jf.error(`${w} failed to start: an error occurred while initializing the ${A}:`,x),x instanceof Event||x instanceof Error&&((k=x.message).includes("Content Security Policy")||k.includes("requires 'TrustedScriptURL'"))){let x;x=a?`Please make sure the ${A} URL ${a} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",Y.jf.error(`${x} See documentation at ${Y.aA}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===A&&(0,J.Sz)(x)}let ee=30*Z.WT;function createDeflateWorker(a){return new Worker(a.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 Uint8Array([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&&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;
4)(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))},C=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)}},D=!1,M=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)},j=M,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}()),T=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},O={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=j,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=O[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;for(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?M(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);C(t,t.dyn_ltree,e-1),C(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=T(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]
4);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||!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){D||(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)}(),D=!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||!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&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(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=T(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=T(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=T(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=T(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=T(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=T(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||!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(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&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||!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(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){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:"6.26.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(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 et={status:0};function startDeflateWorker(a,x,w,A=createDeflateWorker){switch(0===et.status&&function(a,x,w=createDeflateWorker){try{let A=w(a),{stop:k}=(0,$.O)(a,A,"error",w=>{onError(a,x,w)}),{stop:F}=(0,$.O)(a,A,"message",({data:w})=>{var A;"errored"===w.type?onError(a,x,w.error,w.streamId):"initialized"===w.type&&(A=w.version,1===et.status&&(et={status:3,worker:et.worker,stop:et.stop,version:A}))});A.postMessage({action:"init"}),(0,K.iK)(()=>{1===et.status&&(Y.jf.error(`${x} failed to start: a timeout occurred while initializing the Worker`),et.initializationFailureCallbacks.forEach(a=>a()),et={status:2})},ee),et={status:1,worker:A,stop:()=>{k(),F()},initializationFailureCallbacks:[]}}catch(w){onError(a,x,w)}}(a,x,A),et.status){case 1:return et.initializationFailureCallbacks.push(w),et.worker;case 3:return et.worker}}function onError(a,x,w,A){1===et.status||0===et.status?(reportScriptLoadingError({configuredUrl:a.workerUrl,error:w,source:x,scriptType:"worker"}),1===et.status&&et.initializationFailureCallbacks.forEach(a=>a()),et={status:2}):(0,J.Sz)(w,{worker_version:3===et.status&&et.version,stream_id:A})}function isBrowserSupported(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}var er=w(75721),en=w(10193),ei=w(64933);async function notifyWhenSettled(a,x,w){try{return await w}finally{a.notify(x)}}async function lazyLoadRecorder(a=importRecorder){try{return await a()}catch(a){reportScriptLoadingError({error:a,source:"Recorder",scriptType:"module"})}}async function importRecorder(){let a=await w.e(7538).then(w.bind(w,26716));return a.startRecording}var eo=w(89643);async function lazyLoadProfiler(a=importProfiler){try{return await a()}catch(a){reportScriptLoadingError({error:a,source:"Profiler",scriptType:"module"})}}async function importProfiler(){let a=await w.e(9983).then(w.bind(w,55915));return a.createRumProfiler}let ea=function(a,x){let w;if((0,B.xT)()&&!(0,B.ke)("records")||!isBrowserSupported())return{start:z.Z,stop:z.Z,getReplayStats:()=>void 0,onRumStart:z.Z,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:A,shouldStartImmediately:k}=(w=0,{strategy:{start(){w=1},stop(){w=2},isRecording:()=>!1,getSessionReplayLink:z.Z},shouldStartImmediately:a=>1===w||0===w&&!a.startSessionReplayRecordingManually});return{start:a=>A.start(a),stop:()=>A.stop(),getSessionReplayLink:()=>A.getSessionReplayLink(),onRumStart:function(x,w,F,B,G,$){let W;A=function(a,x,w,A,k,F,B){let G,$=0;x.subscribe(9,()=>{(2===$||3===$)&&(stop(),$=1)}),x.subscribe(10,()=>{1===$&&start()});let W=new er.y$;!function(a,x){let w,A,k;if(!a.metricsEnabled)return z.Z;let{unsubscribe:F}=x.subscribe(a=>{switch(a.type){case"start":w={forced:a.forced,timestamp:(0,Z.n$)()},A=void 0,k=void 0;break;case"document-ready":w&&(A=(0,Z._J)(w.timestamp,(0,Z.n$)()));break;
4case"recorder-settled":w&&(k=(0,Z._J)(w.timestamp,(0,Z.n$)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var x,V,B;F(),w&&(0,J.qZ)("Recorder init metrics",{metrics:(x=w.forced,V=k,B=(0,Z._J)(w.timestamp,(0,Z.n$)()),{forced:x,loadRecorderModuleDuration:V,recorderInitDuration:B,result:a.type,waitForDocReadyDuration:A})})}})}(B,W);let doStart=async V=>{W.notify({type:"start",forced:V});let[z]=await Promise.all([notifyWhenSettled(W,{type:"recorder-settled"},k()),notifyWhenSettled(W,{type:"document-ready"},(0,en._)(a,"interactive"))]);if(2!==$){W.notify({type:"aborted"});return}if(!z){$=0,W.notify({type:"recorder-load-failed"});return}let Z=F();if(!Z){$=0,W.notify({type:"deflate-encoder-load-failed"});return}({stop:G}=z(x,a,w,A,Z,B)),$=3,W.notify({type:"succeeded"})};function start(a){var x;let A=w.findTrackedSession();if(!A||0===A.sessionReplay&&(!a||!a.force)){$=1;return}if(2===(x=$)||3===x)return;$=2;let k=a&&a.force&&0===A.sessionReplay||!1;doStart(k).catch(ei.$y),k&&w.setForcedReplay()}function stop(){3===$&&(null==G||G()),$=0}return{start,stop,getSessionReplayLink:()=>(function(a,x,w,A){let k=x.findTrackedSession(),F=isBrowserSupported()?k?0===k.sessionReplay?"incorrect-session-plan":A?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",B=w.findView();return(0,V.Gm)(a,{viewContext:B,errorType:F,session:k})})(a,w,A,0!==$),isRecording:()=>3===$}}(w,x,F,B,a,function(){return!W&&(null!=G||(G=startDeflateWorker(w,"Datadog Session Replay",()=>{A.stop()},void 0)),G&&(W=createDeflateEncoder(w,G,1))),W},$),k(w)&&A.start()},isRecording:()=>3===et.status&&A.isRecording(),getReplayStats:a=>3===et.status?(0,G.MA)(a):void 0}}(lazyLoadRecorder),es=(0,V._r)(V.iB,ea,{onRumStart:function(a,x,w,k,B,z,G){let $;let W=k.findTrackedSession();if(!W||!(0,V.HR)(W.id,w.profilingSampleRate))return;let Z=($={status:"starting"},x.register(0,({eventType:a})=>a!==V.D$.VIEW&&a!==V.D$.LONG_TASK?eo.kb:{type:a,_dd:{profiling:$}}),{get:()=>$,set:a=>{$=a}});if(!function(){let a=(0,F.Rf)(),x=a.Profiler;return void 0!==x}()){Z.set({status:"error",error_reason:"not-supported-by-browser"});return}lazyLoadProfiler().then(x=>{if(!x){Z.set({status:"error",error_reason:"failed-to-lazy-load"});return}(A=x(w,a,k,Z,z,G,B,void 0)).start()}).catch(ei.$y)},stop:()=>{null==A||A.stop().catch(ei.$y)}},{startDeflateWorker:startDeflateWorker,createDeflateEncoder:createDeflateEncoder,sdkName:"rum"});(0,k.y)((0,F.Rf)(),"DD_RUM",es)},19477:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default=function({html:a,height:x=null,width:w=null,children:F,dataNtpc:V=""}){return(0,k.useEffect)(()=>{V&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${V}`}})},[V]),(0,A.jsxs)(A.Fragment,{children:[F,a?(0,A.jsx)("div",{style:{height:null!=x?`${x}px`:"auto",width:null!=w?`${w}px`:"auto"},"data-ntpc":V,dangerouslySetInnerHTML:{__html:a}}):null]})};let A=w(85893),k=w(67294)},7834:function(a,x,w){"use strict";let A;var k=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.GoogleAnalytics=function(a){let{gaId:x,debugMode:w,dataLayerName:k="dataLayer",nonce:z}=a;return void 0===A&&(A=k),(0,V.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(B.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
5          window['${k}'] = window['${k}'] || [];
6          function gtag(){window['${k}'].push(arguments);}
7          gtag('js', new Date());
8
9          gtag('config', '${x}' ${w?",{ 'debug_mode': true }":""});`},nonce:z}),(0,F.jsx)(B.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${x}`,nonce:z})]})},x.sendGAEvent=function(...a){if(void 0===A){console.warn("@next/third-parties: GA has not been initialized");return}window[A]?window[A].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${A} does not exist`)};let F=w(85893),V=w(67294),B=k(w(4298))},83632:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.default=function(a){let{apiKey:x,...w}=a,A={...w,key:x},{html:B}=(0,F.GoogleMapsEmbed)(A);return(0,k.jsx)(V.default,{height:A.height||null,width:A.width||null,html:B,dataNtpc:"GoogleMapsEmbed"})};let k=w(85893),F=w(86257),V=A(w(19477))},30674:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.sendGTMEvent=void 0,x.GoogleTagManager=function(a){let{gtmId:x,gtmScriptUrl:w,dataLayerName:A="dataLayer",auth:z,preview:G,dataLayer:$,nonce:W}=a;B=A;let Z=new URL(w||"https://www.googletagmanager.com/gtm.js");return x&&Z.searchParams.set("id",x),"dataLayer"!==A&&Z.searchParams.set("l",A),z&&Z.searchParams.set("gtm_auth",z),G&&(Z.searchParams.set("gtm_preview",G),Z.searchParams.set("gtm_cookies_win","x")),(0,F.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(V.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
10      (function(w,l){
11        w[l]=w[l]||[];
12        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
13        ${$?`w[l].push(${JSON.stringify($)})`:""}
14      })(window,'${A}');`},nonce:W}),(0,k.jsx)(V.default,{id:"_next-gtm","data-ntpc":"GTM",src:Z.href,nonce:W})]})};let k=w(85893),F=w(67294),V=A(w(4298)),B="dataLayer";x.sendGTMEvent=(a,x)=>{let w=x||B;window[w]=window[w]||[],window[w].push(a)}},19692:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.sendGAEvent=x.GoogleAnalytics=x.sendGTMEvent=x.GoogleTagManager=x.YouTubeEmbed=x.GoogleMapsEmbed=void 0;var k=w(83632);Object.defineProperty(x,"GoogleMapsEmbed",{enumerable:!0,get:function(){return A(k).default}});var F=w(11494);Object.defineProperty(x,"YouTubeEmbed",{enumerable:!0,get:function(){return A(F).default}});var V=w(30674);Object.defineProperty(x,"GoogleTagManager",{enumerable:!0,get:function(){return V.GoogleTagManager}}),Object.defineProperty(x,"sendGTMEvent",{enumerable:!0,get:function(){return V.sendGTMEvent}});var B=w(7834);Object.defineProperty(x,"GoogleAnalytics",{enumerable:!0,get:function(){return B.GoogleAnalytics}}),Object.defineProperty(x,"sendGAEvent",{enumerable:!0,get:function(){return B.sendGAEvent}})},11494:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.default=function(a){let{html:x,scripts:w,stylesheets:A}=(0,V.YouTubeEmbed)(a);return(0,k.jsx)(B.default,{height:a.height||null,width:a.width||null,html:x,dataNtpc:"YouTubeEmbed",children:null==w?void 0:w.map(a=>(0,k.jsx)(F.default,{src:a.url,strategy:z[a.strategy],stylesheets:A},a.url))})};let k=w(85893),F=A(w(4298)),V=w(86257),B=A(w(19477)),z={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},79742:function(a,x){"use strict";x.byteLength=function(a){var x=getLens(a),w=x[0],A=x[1];return(w+A)*3/4-A},x.toByteArray=function(a){var x,w,F=getLens(a),V=F[0],B=F[1],z=new k((V+B)*3/4-B),G=0,$=B>0?V-4:V;for(w=0;w<$;w+=4)x=A[a.charCodeAt(w)]<<18|A[a.charCodeAt(w+1)]<<12|A[a.charCodeAt(w+2)]<<6|A[a.charCodeAt(w+3)],z[G++]=x>>16&255,z[G++]=x>>8&255,z[G++]=255&x;return 2===B&&(x=A[a.charCodeAt(w)]<<2|A[a.charCodeAt(w+1)]>>4,z[G++]=255&x),1===B&&(x=A[a.charCodeAt(w)]<<10|A[a.charCodeAt(w+1)]<<4|A[a.charCodeAt(w+2)]>>2,z[G++]=x>>8&255,z[G++]=255&x),z},x.fromByteArray=function(a){for(var x,A=a.length,k=A%3,F=[],V=0,B=A-k;V<B;V+=16383)F.push(function(a,x,A){for(var k,F=[],V=x;V<A;V+=3)F.push(w[(k=(a[V]<<16&16711680)+(a[V+1]<<8&65280)+(255&a[V+2]))>>18&63]+w[k>>12&63]+w[k>>6&63]+w[63&k]);return F.join("")}(a,V,V+16383>B?B:V+16383));return 1===k?F.push(w[(x=a[A-1])>>2]+w[x<<4&63]+"=="):2===k&&F.push(w[(x=(a[A-2]<<8)+a[A-1])>>10]+w[x>>4&63]+w[x<<2&63]+"="),F.join("")};for(var w=[],A=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
14+/",V=0,B=F.length;V<B;++V)w[V]=F[V],A[F.charCodeAt(V)]=V;function getLens(a){var x=a.length;if(x%4>0)throw Error("Invalid string. Length must be a multiple of 4");var w=a.indexOf("=");-1===w&&(w=x);var A=w===x?0:4-w%4;return[w,A]}A["-".charCodeAt(0)]=62,A["_".charCodeAt(0)]=63},48764:function(a,x,w){"use strict";/*!
15 * The buffer module from node.js, for the browser.
16 *
17 * @author   Feross Aboukhadijeh <https://feross.org>
18 * @license  MIT
19 */var A=w(79742),k=w(80645),F="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(a){if(a>2147483647)throw RangeError('The value "'+a+'" is invalid for option "size"');var x=new Uint8Array(a);return Object.setPrototypeOf(x,Buffer.prototype),x}function Buffer(a,x,w){if("number"==typeof a){if("string"==typeof x)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(a)}return from(a,x,w)}function from(a,x,w){if("string"==typeof a)return function(a,x){if(("string"!=typeof x||""===x)&&(x="utf8"),!Buffer.isEncoding(x))throw TypeError("Unknown encoding: "+x);var w=0|byteLength(a,x),A=createBuffer(w),k=A.write(a,x);return k!==w&&(A=A.slice(0,k)),A}(a,x);if(ArrayBuffer.isView(a))return function(a){if(isInstance(a,Uint8Array)){var x=new Uint8Array(a);return fromArrayBuffer(x.buffer,x.byteOffset,x.byteLength)}return fromArrayLike(a)}(a);if(null==a)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(isInstance(a,ArrayBuffer)||a&&isInstance(a.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(a,SharedArrayBuffer)||a&&isInstance(a.buffer,SharedArrayBuffer)))return fromArrayBuffer(a,x,w);if("number"==typeof a)throw TypeError('The "value" argument must not be of type number. Received type number');var A=a.valueOf&&a.valueOf();if(null!=A&&A!==a)return Buffer.from(A,x,w);var k=function(a){if(Buffer.isBuffer(a)){var x,w=0|checked(a.length),A=createBuffer(w);return 0===A.length||a.copy(A,0,0,w),A}return void 0!==a.length?"number"!=typeof a.length||(x=a.length)!=x?createBuffer(0):fromArrayLike(a):"Buffer"===a.type&&Array.isArray(a.data)?fromArrayLike(a.data):void 0}(a);if(k)return k;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof a[Symbol.toPrimitive])return Buffer.from(a[Symbol.toPrimitive]("string"),x,w);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}function assertSize(a){if("number"!=typeof a)throw TypeError('"size" argument must be of type number');if(a<0)throw RangeError('The value "'+a+'" is invalid for option "size"')}function allocUnsafe(a){return assertSize(a),createBuffer(a<0?0:0|checked(a))}function fromArrayLike(a){for(var x=a.length<0?0:0|checked(a.length),w=createBuffer(x),A=0;A<x;A+=1)w[A]=255&a[A];return w}function fromArrayBuffer(a,x,w){var A;if(x<0||a.byteLength<x)throw RangeError('"offset" is outside of buffer bounds');if(a.byteLength<x+(w||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(A=void 0===x&&void 0===w?new Uint8Array(a):void 0===w?new Uint8Array(a,x):new Uint8Array(a,x,w),Buffer.prototype),A}function checked(a){if(a>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|a}function byteLength(a,x){if(Buffer.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||isInstance(a,ArrayBuffer))return a.byteLength;if("string"!=typeof a)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);var w=a.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===w)return 0;for(var k=!1;;)switch(x){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return utf8ToBytes(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*w;case"hex":return w>>>1;case"base64":return base64ToBytes(a).length;default:if(k)return A?-1:utf8ToBytes(a).length;x=(""+x).toLowerCase(),k=!0}}function slowToString(a,x,w){var k,F,V=!1;if((void 0===x||x<0)&&(x=0),x>this.length||((void 0===w||w>this.length)&&(w=this.length),w<=0||(w>>>=0)<=(x>>>=0)))return"";for(a||(a="utf8");;)switch(a){case"hex":return function(a,x,w){var A=a.length;(!x||x<0)&&(x=0),(!w||w<0||w>A)&&(w=A);for(var k="",F=x;F<w;++F)k+=B[a[F]];return k}(this,x,w);case"utf8":case"utf-8":return utf8Slice(this,x,w);case"ascii":return function(a,x,w){var A="";w=Math.min(a.length,w);for(var k=x;k<w;++k)A+=String.fromCharCode(127&a[k]);return A}(this,x,w);case"latin1":case"binary":return function(a,x,w){var A="";w=Math.min(a.length,w);for(var k=x;k<w;++k)A+=String.fromCharCode(a[k]);return A}(this,x,w);case"base64":return k=x,F=w,0===k&&F===this.length?A.fromByteArray(this):A.fromByteArray(this.slice(k,F));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(a,x,w){for(var A=a.slice(
vendor: 17,484 bytes, line 19
19x,w),k="",F=0;F<A.length-1;F+=2)k+=String.fromCharCode(A[F]+256*A[F+1]);return k}(this,x,w);default:if(V)throw TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),V=!0}}function swap(a,x,w){var A=a[x];a[x]=a[w],a[w]=A}function bidirectionalIndexOf(a,x,w,A,k){var F;if(0===a.length)return -1;if("string"==typeof w?(A=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),(F=w=+w)!=F&&(w=k?0:a.length-1),w<0&&(w=a.length+w),w>=a.length){if(k)return -1;w=a.length-1}else if(w<0){if(!k)return -1;w=0}if("string"==typeof x&&(x=Buffer.from(x,A)),Buffer.isBuffer(x))return 0===x.length?-1:arrayIndexOf(a,x,w,A,k);if("number"==typeof x)return(x&=255,"function"==typeof Uint8Array.prototype.indexOf)?k?Uint8Array.prototype.indexOf.call(a,x,w):Uint8Array.prototype.lastIndexOf.call(a,x,w):arrayIndexOf(a,[x],w,A,k);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(a,x,w,A,k){var F,V=1,B=a.length,z=x.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(a.length<2||x.length<2)return -1;V=2,B/=2,z/=2,w/=2}function read(a,x){return 1===V?a[x]:a.readUInt16BE(x*V)}if(k){var G=-1;for(F=w;F<B;F++)if(read(a,F)===read(x,-1===G?0:F-G)){if(-1===G&&(G=F),F-G+1===z)return G*V}else -1!==G&&(F-=F-G),G=-1}else for(w+z>B&&(w=B-z),F=w;F>=0;F--){for(var $=!0,W=0;W<z;W++)if(read(a,F+W)!==read(x,W)){$=!1;break}if($)return F}return -1}function utf8Slice(a,x,w){w=Math.min(a.length,w);for(var A=[],k=x;k<w;){var F,V,B,z,G=a[k],$=null,W=G>239?4:G>223?3:G>191?2:1;if(k+W<=w)switch(W){case 1:G<128&&($=G);break;case 2:(192&(F=a[k+1]))==128&&(z=(31&G)<<6|63&F)>127&&($=z);break;case 3:F=a[k+1],V=a[k+2],(192&F)==128&&(192&V)==128&&(z=(15&G)<<12|(63&F)<<6|63&V)>2047&&(z<55296||z>57343)&&($=z);break;case 4:F=a[k+1],V=a[k+2],B=a[k+3],(192&F)==128&&(192&V)==128&&(192&B)==128&&(z=(15&G)<<18|(63&F)<<12|(63&V)<<6|63&B)>65535&&z<1114112&&($=z)}null===$?($=65533,W=1):$>65535&&($-=65536,A.push($>>>10&1023|55296),$=56320|1023&$),A.push($),k+=W}return function(a){var x=a.length;if(x<=4096)return String.fromCharCode.apply(String,a);for(var w="",A=0;A<x;)w+=String.fromCharCode.apply(String,a.slice(A,A+=4096));return w}(A)}function checkOffset(a,x,w){if(a%1!=0||a<0)throw RangeError("offset is not uint");if(a+x>w)throw RangeError("Trying to access beyond buffer length")}function checkInt(a,x,w,A,k,F){if(!Buffer.isBuffer(a))throw TypeError('"buffer" argument must be a Buffer instance');if(x>k||x<F)throw RangeError('"value" argument is out of bounds');if(w+A>a.length)throw RangeError("Index out of range")}function checkIEEE754(a,x,w,A,k,F){if(w+A>a.length||w<0)throw RangeError("Index out of range")}function writeFloat(a,x,w,A,F){return x=+x,w>>>=0,F||checkIEEE754(a,x,w,4,34028234663852886e22,-34028234663852886e22),k.write(a,x,w,A,23,4),w+4}function writeDouble(a,x,w,A,F){return x=+x,w>>>=0,F||checkIEEE754(a,x,w,8,17976931348623157e292,-17976931348623157e292),k.write(a,x,w,A,52,8),w+8}x.lW=Buffer,x.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(a,x),42===a.foo()}catch(a){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(a,x,w){return from(a,x,w)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(a,x,w){return(assertSize(a),a<=0)?createBuffer(a):void 0!==x?"string"==typeof w?createBuffer(a).fill(x,w):createBuffer(a).fill(x):createBuffer(a)},Buffer.allocUnsafe=function(a){return allocUnsafe(a)},Buffer.allocUnsafeSlow=function(a){return allocUnsafe(a)},Buffer.isBuffer=function(a){return null!=a&&!0===a._isBuffer&&a!==Buffer.prototype},Buffer.compare=function(a,x){if(isInstance(a,Uint8Array)&&(a=Buffer.from(a,a.offset,a.byteLength)),isInstance(x,Uint8Array)&&(x=Buffer.from(x,x.offset,x.byteLength)),!Buffer.isBuffer(a)||!Buffer.isBuffer(x))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===x)return 0;for(var w=a.length,A=x.length,k=0,F=Math.min(w,A);k<F;++k)if(a[k]!==x[k]){w=a[k],A=x[k];break}return w<A?-1:A<w?1:0},Buffer.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(a,x){if(!Array.isArray(a))throw TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return Buffer.alloc(0);if(void 0===x)for(w=0,x=0;w<a.length;++w)x+=a[w].length;var w,A=Buffer.allocUnsafe(x),k=0;for(w=0;w<a.length;++w){var F=a[w];if(isInstance(F,Uint8Array))k+F.length>A.length?Buffer.from(F).copy(A,k):Uint8Array.prototype.set.call(A,F,k);else if(Buffer.isBuffer(F))F.copy(A,k);else throw TypeError('"list" argument must be an Array of Buffers');k+=F.length}return A},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var x=0;x<a;x+=2)swap(this,x,x+1);return this},Buffer.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var x=0;x<a;x+=4)swap(this,x,x+3),swap(this,x+1,x+2);return this},Buffer.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var x=0;x<a;x+=8)swap(this,x,x+7),swap(this,x+1,x+6),swap(this,x+2,x+5),swap(this,x+3,x+4);return this},Buffer.prototype.toString=function(){var a=this.length;return 0===a?"":0==arguments.length?utf8Slice(this,0,a):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(a){if(!Buffer.isBuffer(a))throw TypeError("Argument must be a Buffer");return this===a||0===Buffer.compare(this,a)},Buffer.prototype.inspect=function(){var a="",w=x.h2;return a=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(a+=" ... "),"<Buffer "+a+">"},F&&(Buffer.prototype[F]=Buffer.prototype.inspect),Buffer.prototype.compare=function(a,x,w,A,k){if(isInstance(a,Uint8Array)&&(a=Buffer.from(a,a.offset,a.byteLength)),!Buffer.isBuffer(a))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(void 0===x&&(x=0),void 0===w&&(w=a?a.length:0),void 0===A&&(A=0),void 0===k&&(k=this.length),x<0||w>a.length||A<0||k>this.length)throw RangeError("out of range index");if(A>=k&&x>=w)return 0;if(A>=k)return -1;if(x>=w)return 1;if(x>>>=0,w>>>=0,A>>>=0,k>>>=0,this===a)return 0;for(var F=k-A,V=w-x,B=Math.min(F,V),z=this.slice(A,k),G=a.slice(x,w),$=0;$<B;++$)if(z[$]!==G[$]){F=z[$],V=G[$];break}return F<V?-1:V<F?1:0},Buffer.prototype.includes=function(a,x,w){return -1!==this.indexOf(a,x,w)},Buffer.prototype.indexOf=function(a,x,w){return bidirectionalIndexOf(this,a,x,w,!0)},Buffer.prototype.lastIndexOf=function(a,x,w){return bidirectionalIndexOf(this,a,x,w,!1)},Buffer.prototype.write=function(a,x,w,A){if(void 0===x)A="utf8",w=this.length,x=0;else if(void 0===w&&"string"==typeof x)A=x,w=this.length,x=0;else if(isFinite(x))x>>>=0,isFinite(w)?(w>>>=0,void 0===A&&(A="utf8")):(A=w,w=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var k,F,V,B,z,G,$,W,Z=this.length-x;if((void 0===w||w>Z)&&(w=Z),a.length>0&&(w<0||x<0)||x>this.length)throw RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var K=!1;;)switch(A){case"hex":return function(a,x,w,A){w=Number(w)||0;var k=a.length-w;A?(A=Number(A))>k&&(A=k):A=k;var F=x.length;A>F/2&&(A=F/2);for(var V=0;V<A;++V){var B=parseInt(x.substr(2*V,2),16);if(B!=B)break;a[w+V]=B}return V}(this,a,x,w);case"utf8":case"utf-8":return k=x,F=w,blitBuffer(utf8ToBytes(a,this.length-k),this,k,F);case"ascii":case"latin1":case"binary":return V=x,B=w,blitBuffer(function(a){for(var x=[],w=0;w<a.length;++w)x.push(255&a.charCodeAt(w));return x}(a),this,V,B);case"base64":return z=x,G=w,blitBuffer(base64ToBytes(a),this,z,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $=x,W=w,blitBuffer(function(a,x){for(var w,A,k=[],F=0;F<a.length&&!((x-=2)<0);++F)A=(w=a.charCodeAt(F))>>8,k.push(w%256),k.push(A);return k}(a,this.length-$),this,$,W);default:if(K)throw TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),K=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(a,x){var w=this.length;a=~~a,x=void 0===x?w:~~x,a<0?(a+=w)<0&&(a=0):a>w&&(a=w),x<0?(x+=w)<0&&(x=0):x>w&&(x=w),x<a&&(x=a);var A=this.subarray(a,x);return Object.setPrototypeOf(A,Buffer.prototype),A},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(a,x,w){a>>>=0,x>>>=0,w||checkOffset(a,x,this.length);for(var A=this[a],k=1,F=0;++F<x&&(k*=256);)A+=this[a+F]*k;return A},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(a,x,w){a>>>=0,x>>>=0,w||checkOffset(a,x,this.length);for(var A=this[a+--x],k=1;x>0&&(k*=256);)A+=this[a+--x]*k;return A},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(a,x){return a>>>=0,x||checkOffset(a,1,this.length),this[a]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(a,x){return a>>>=0,x||checkOffset(a,2,this.length),this[a]|this[a+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(a,x){return a>>>=0,x||checkOffset(a,2,this.length),this[a]<<8|this[a+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},Buffer.prototype.readIntLE=function(a,x,w){a>>>=0,x>>>=0,w||checkOffset(a,x,this.length);for(var A=this[a],k=1,F=0;++F<x&&(k*=256);)A+=this[a+F]*k;return A>=(k*=128)&&(A-=Math.pow(2,8*x)),A},Buffer.prototype.readIntBE=function(a,x,w){a>>>=0,x>>>=0,w||checkOffset(a,x,this.length);for(var A=x,k=1,F=this[a+--A];A>0&&(k*=256);)F+=this[a+--A]*k;return F>=(k*=128)&&(F-=Math.pow(2,8*x)),F},Buffer.prototype.readInt8=function(a,x){return(a>>>=0,x||checkOffset(a,1,this.length),128&this[a])?-((255-this[a]+1)*1):this[a]},Buffer.prototype.readInt16LE=function(a,x){a>>>=0,x||checkOffset(a,2,this.length);var w=this[a]|this[a+1]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt16BE=function(a,x){a>>>=0,x||checkOffset(a,2,this.length);var w=this[a+1]|this[a]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt32LE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},Buffer.prototype.readInt32BE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},Buffer.prototype.readFloatLE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),k.read(this,a,!0,23,4)},Buffer.prototype.readFloatBE=function(a,x){return a>>>=0,x||checkOffset(a,4,this.length),k.read(this,a,!1,23,4)},Buffer.prototype.readDoubleLE=function(a,x){return a>>>=0,x||checkOffset(a,8,this.length),k.read(this,a,!0,52,8)},Buffer.prototype.readDoubleBE=function(a,x){return a>>>=0,x||checkOffset(a,8,this.length),k.read(this,a,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(a,x,w,A){if(a=+a,x>>>=0,w>>>=0,!A){var k=Math.pow(2,8*w)-1;checkInt(this,a,x,w,k,0)}var F=1,V=0;for(this[x]=255&a;++V<w&&(F*=256);)this[x+V]=a/F&255;return x+w},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(a,x,w,A){if(a=+a,x>>>=0,w>>>=0,!A){var k=Math.pow(2,8*w)-1;checkInt(this,a,x,w,k,0)}var F=w-1,V=1;for(this[x+F]=255&a;--F>=0&&(V*=256);)this[x+F]=a/V&255;return x+w},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,1,255,0),this[x]=255&a,x+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,2,65535,0),this[x]=255&a,this[x+1]=a>>>8,x+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,2,65535,0),this[x]=a>>>8,this[x+1]=255&a,x+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,4,4294967295,0),this[x+3]=a>>>24,this[x+2]=a>>>16,this[x+1]=a>>>8,this[x]=255&a,x+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,4,4294967295,0),this[x]=a>>>24,this[x+1]=a>>>16,this[x+2]=a>>>8,this[x+3]=255&a,x+4},Buffer.prototype.writeIntLE=function(a,x,w,A){if(a=+a,x>>>=0,!A){var k=Math.pow(2,8*w-1);checkInt(this,a,x,w,k-1,-k)}var F=0,V=1,B=0;for(this[x]=255&a;++F<w&&(V*=256);)a<0&&0===B&&0!==this[x+F-1]&&(B=1),this[x+F]=(a/V>>0)-B&255;return x+w},Buffer.prototype.writeIntBE=function(a,x,w,A){if(a=+a,x>>>=0,!A){var k=Math.pow(2,8*w-1);checkInt(this,a,x,w,k-1,-k)}var F=w-1,V=1,B=0;for(this[x+F]=255&a;--F>=0&&(V*=256);)a<0&&0===B&&0!==this[x+F+1]&&(B=1),this[x+F]=(a/V>>0)-B&255;return x+w},Buffer.prototype.writeInt8=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,1,127,-128),a<0&&(a=255+a+1),this[x]=255&a,x+1},Buffer.prototype.writeInt16LE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,2,32767,-32768),this[x]=255&a,this[x+1]=a>>>8,x+2},Buffer.prototype.writeInt16BE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,2,32767,-32768),this[x]=a>>>8,this[x+1]=255&a,x+2},Buffer.prototype.writeInt32LE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,4,2147483647,-2147483648),this[x]=255&a,this[x+1]=a>>>8,this[x+2]=a>>>16,this[x+3]=a>>>24,x+4},Buffer.prototype.writeInt32BE=function(a,x,w){return a=+a,x>>>=0,w||checkInt(this,a,x,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[x]=a>>>24,this[x+1]=a>>>16,this[x+2]=a>>>8,this[x+3]=255&a,x+4},Buffer.prototype.writeFloatLE=function(a,x,w){return writeFloat(this,a,x,!0,w)},Buffer.prototype.writeFloatBE=function(a,x,w){return writeFloat(this,a,x,!1,w)},Buffer.prototype.writeDoubleLE=function(a,x,w){return writeDouble(this,a,x,!0,w)},Buffer.prototype.writeDoubleBE=function(a,x,w){return writeDouble(this,a,x,!1,w)},Buffer.prototype.copy=function(a,x,w,A){if(!Buffer.isBuffer(a))throw TypeError("argument should be a Buffer");if(w||(w=0),A||0===A||(A=this.length),x>=a.length&&(x=a.length),x||(x=0),A>0&&A<w&&(A=w),A===w||0===a.length||0===this.length)return 0;if(x<0)throw RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw RangeError("Index out of range");if(A<0)throw RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),a.length-x<A-w&&(A=a.length-x+w);var k=A-w;return this===a&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(x,w,A):Uint8Array.prototype.set.call(a,this.subarray(w,A),x),k},Buffer.prototype.fill=function(a,x,w,A){if("string"==typeof a){if("string"==typeof x?(A=x,x=0,w=this.length):"string"==typeof w&&(A=w,w=this.length),void 0!==A&&"string"!=typeof A)throw TypeError("encoding must be a string");if("string"==typeof A&&!Buffer.isEncoding(A))throw TypeError("Unknown encoding: "+A);if(1===a.length){var k,F=a.charCodeAt(0);("utf8"===A&&F<128||"latin1"===A)&&(a=F)}}else"number"==typeof a?a&=255:"boolean"==typeof a&&(a=Number(a));if(x<0||this.length<x||this.length<w)throw RangeError("Out of range index");if(w<=x)return this;if(x>>>=0,w=void 0===w?this.length:w>>>0,a||(a=0),"number"==typeof a)for(k=x;k<w;++k)this[k]=a;else{var V=Buffer.isBuffer(a)?a:Buffer.from(a,A),B=V.length;if(0===B)throw TypeError('The value "'+a+'" is invalid for argument "value"');for(k=0;k<w-x;++k)this[k+x]=V[k%B]}return this};var V=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(a,x){x=x||1/0;for(var w,A=a.length,k=null,F=[],V=0;V<A;++V){if((w=a.charCodeAt(V))>55295&&w<57344){if(!k){if(w>56319||V+1===A){(x-=3)>-1&&F.push(239,191,189);continue}k=w;continue}if(w<56320){(x-=3)>-1&&F.push(239,191,189),k=w;continue}w=(k-55296<<10|w-56320)+65536}else k&&(x-=3)>-1&&F.push(239,191,189);if(k=null,w<128){if((x-=1)<0)break;F.push(w)}else if(w<2048){if((x-=2)<0)break;F.push(w>>6|192,63&w|128)}else if(w<65536){if((x-=3)<0)break;F.push(w>>12|224,w>>6&63|128,63&w|128)}else if(w<1114112){if((x-=4)<0)break;F.push(w>>18|240,w>>12&63|128,w>>6&63|128,63&w|128)}else throw Error("Invalid code point")}return F}function base64ToBytes(a){return A.toByteArray(function(a){if((a=(a=a.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;a.length%4!=0;)a+="=";return a}(a))}function blitBuffer(a,x,w,A){for(var k=0;k<A&&!(k+w>=x.length)&&!(k>=a.length);++k)x[k+w]=a[k];return k}function isInstance(a,x){return a instanceof x||null!=a&&null!=a.constructor&&null!=a.constructor.name&&a.constructor.name===x.name}var B=function(){for(var a="0123456789abcdef",x=Array(256),w=0;w<16;++w)for(var A=16*w,k=0;k<16;
19++k)x[A+k]=a[w]+a[k];return x}()},86010:function(a,x,w){"use strict";function clsx(){for(var a,x,w=0,A="";w<arguments.length;)(a=arguments[w++])&&(x=function r(a){var x,w,A="";if("string"==typeof a||"number"==typeof a)A+=a;else if("object"==typeof a){if(Array.isArray(a))for(x=0;x<a.length;x++)a[x]&&(w=r(a[x]))&&(A&&(A+=" "),A+=w);else for(x in a)a[x]&&(A&&(A+=" "),A+=x)}return A}(a))&&(A&&(A+=" "),A+=x);return A}w.r(x),w.d(x,{clsx:function(){return clsx}}),x.default=clsx},76489:function(a,x){"use strict";/*!
20 * cookie
21 * Copyright(c) 2012-2014 Roman Shtylman
22 * Copyright(c) 2015 Douglas Christopher Wilson
23 * MIT Licensed
24 */x.parse=function(a,x){if("string"!=typeof a)throw TypeError("argument str must be a string");for(var w={},A=(x||{}).decode||decode,k=0;k<a.length;){var F=a.indexOf("=",k);if(-1===F)break;var V=a.indexOf(";",k);if(-1===V)V=a.length;else if(V<F){k=a.lastIndexOf(";",F-1)+1;continue}var B=a.slice(k,F).trim();if(void 0===w[B]){var z=a.slice(F+1,V).trim();34===z.charCodeAt(0)&&(z=z.slice(1,-1)),w[B]=function(a,x){try{return x(a)}catch(x){return a}}(z,A)}k=V+1}return w},x.serialize=function(a,x,k){var F=k||{},V=F.encode||encode;if("function"!=typeof V)throw TypeError("option encode is invalid");if(!A.test(a))throw TypeError("argument name is invalid");var B=V(x);if(B&&!A.test(B))throw TypeError("argument val is invalid");var z=a+"="+B;if(null!=F.maxAge){var G=F.maxAge-0;if(isNaN(G)||!isFinite(G))throw TypeError("option maxAge is invalid");z+="; Max-Age="+Math.floor(G)}if(F.domain){if(!A.test(F.domain))throw TypeError("option domain is invalid");z+="; Domain="+F.domain}if(F.path){if(!A.test(F.path))throw TypeError("option path is invalid");z+="; Path="+F.path}if(F.expires){var $=F.expires;if("[object Date]"!==w.call($)&&!($ instanceof Date)||isNaN($.valueOf()))throw TypeError("option expires is invali
24d");z+="; Expires="+$.toUTCString()}if(F.httpOnly&&(z+="; HttpOnly"),F.secure&&(z+="; Secure"),F.priority)switch("string"==typeof F.priority?F.priority.toLowerCase():F.priority){case"low":z+="; Priority=Low";break;case"medium":z+="; Priority=Medium";break;case"high":z+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(F.sameSite)switch("string"==typeof F.sameSite?F.sameSite.toLowerCase():F.sameSite){case!0:case"strict":z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"none":z+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return z};var w=Object.prototype.toString,A=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function decode(a){return -1!==a.indexOf("%")?decodeURIComponent(a):a}function encode(a){return encodeURIComponent(a)}},80645:function(a,x){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(a,x,w,A,k){var F,V,B=8*k-A-1,z=(1<<B)-1,G=z>>1,$=-7,W=w?k-1:0,Z=w?-1:1,K=a[x+W];for(W+=Z,F=K&(1<<-$)-1,K>>=-$,$+=B;$>0;F=256*F+a[x+W],W+=Z,$-=8);for(V=F&(1<<-$)-1,F>>=-$,$+=A;$>0;V=256*V+a[x+W],W+=Z,$-=8);if(0===F)F=1-G;else{if(F===z)return V?NaN:(K?-1:1)*(1/0);V+=Math.pow(2,A),F-=G}return(K?-1:1)*V*Math.pow(2,F-A)},x.write=function(a,x,w,A,k,F){var V,B,z,G=8*F-k-1,$=(1<<G)-1,W=$>>1,Z=23===k?5960464477539062e-23:0,K=A?0:F-1,Y=A?1:-1,J=x<0||0===x&&1/x<0?1:0;for(isNaN(x=Math.abs(x))||x===1/0?(B=isNaN(x)?1:0,V=$):(V=Math.floor(Math.log(x)/Math.LN2),x*(z=Math.pow(2,-V))<1&&(V--,z*=2),V+W>=1?x+=Z/z:x+=Z*Math.pow(2,1-W),x*z>=2&&(V++,z/=2),V+W>=$?(B=0,V=$):V+W>=1?(B=(x*z-1)*Math.pow(2,k),V+=W):(B=x*Math.pow(2,W-1)*Math.pow(2,k),V=0));k>=8;a[w+K]=255&B,K+=Y,B/=256,k-=8);for(V=V<<k|B,G+=k;G>0;a[w+K]=255&V,K+=Y,V/=256,G-=8);a[w+K-Y]|=128*J}},18552:function(a,x,w){var A=w(10852)(w(55639),"DataView");a.exports=A},1989:function(a,x,w){var A=w(51789),k=w(80401),F=w(57667),V=w(21327),B=w(81866);function Hash(a){var x=-1,w=null==a?0:a.length;for(this.clear();++x<w;){var A=a[x];this.set(A[0],A[1])}}Hash.prototype.clear=A,Hash.prototype.delete=k,Hash.prototype.get=F,Hash.prototype.has=V,Hash.prototype.set=B,a.exports=Hash},38407:function(a,x,w){var A=w(27040),k=w(14125),F=w(82117),V=w(87529),B=w(54705);function ListCache(a){var x=-1,w=null==a?0:a.length;for(this.clear();++x<w;){var A=a[x];this.set(A[0],A[1])}}ListCache.prototype.clear=A,ListCache.prototype.delete=k,ListCache.prototype.get=F,ListCache.prototype.has=V,ListCache.prototype.set=B,a.exports=ListCache},57071:function(a,x,w){var A=w(10852)(w(55639),"Map");a.exports=A},83369:function(a,x,w){var A=w(24785),k=w(11285),F=w(96e3),V=w(49916),B=w(95265);function MapCache(a){var x=-1,w=null==a?0:a.length;for(this.clear();++x<w;){var A=a[x];this.set(A[0],A[1])}}MapCache.prototype.clear=A,MapCache.prototype.delete=k,MapCache.prototype.get=F,MapCache.prototype.has=V,MapCache.prototype.set=B,a.exports=MapCache},53818:function(a,x,w){var A=w(10852)(w(55639),"Promise");a.exports=A},58525:function(a,x,w){var A=w(10852)(w(55639),"Set");a.exports=A},46384:function(a,x,w){var A=w(38407),k=w(37465),F=w(63779),V=w(67599),B=w(44758),z=w(34309);function Stack(a){var x=this.__data__=new A(a);this.size=x.size}Stack.prototype.clear=k,Stack.prototype.delete=F,Stack.prototype.get=V,Stack.prototype.has=B,Stack.prototype.set=z,a.exports=Stack},62705:function(a,x,w){var A=w(55639).Symbol;a.exports=A},11149:function(a,x,w){var A=w(55639).Uint8Array;a.exports=A},70577:function(a,x,w){var A=w(10852)(w(55639),"WeakMap");a.exports=A},77412:function(a){a.exports=function(a,x){for(var w=-1,A=null==a?0:a.length;++w<A&&!1!==x(a[w],w,a););return a}},34963:function(a){a.exports=function(a,x){for(var w=-1,A=null==a?0:a.length,k=0,F=[];++w<A;){var V=a[w];x(V,w,a)&&(F[k++]=V)}return F}},14636:function(a,x,w){var A=w(22545),k=w(35694),F=w(1469),V=w(44144),B=w(65776),z=w(36719),G=Object.prototype.hasOwnProperty;a.exports=function(a,x){var w=F(a),$=!w&&k(a),W=!w&&!$&&V(a),Z=!w&&!$&&!W&&z(a),K=w||$||W||Z,Y=K?A(a.length,String):[],J=Y.length;for(var ee in a)(x||G.call(a,ee))&&!(K&&("length"==ee||W&&("offset"==ee||"parent"==ee)||Z&&("buffer"==ee||"byteLength"==ee||"byteOffset"==ee)||B(ee,J)))&&Y.push(ee);return Y}},62488:function(a){a.exports=function(a,x){for(var w=-1,A=x.length,k=a.length;++w<A;)a[k+w]=x[w];return a}},34865:function(a,x,w){var A=w(89465),k=w(77813),F=Object.prototype.hasOwnProperty;a.exports=function(a,x,w){var V=a[x];F.call(a,x)&&k(V,w)&&(void 0!==w||x in a)||A(a,x,w)}},18470:function(a,x,w){var A=w(77813);a.exports=function(a,x){for(var w=a.length;w--;)if(A(a[w][0],x))return w;return -1}},44037:function(a,x,w){var A=w(98363),k=w(3674);a.exports=function(a,x){return a&&A(x,k(x),a)}},63886:function(a,x,w){var A=w(98363),k=w(81704);a.exports=function(a,x){return a&&A(x,k(x),a)}},89465:function(a,x,w){var A=w(38777);a.exports=function(a,x,w){"__proto__"==x&&A?A(a,x,{configurable:!0,enumerable:!0,value:w,writable:!0}):a[x]=w}},85990:function(a,x,w){var A=w(46384),k=w(77412),F=w(34865),V=w(44037),B=w(63886),z=w(64626),G=w(278),$=w(18805),W=w(1911),Z=w(58234),K=w(46904),Y=w(64160),J=w(43824),ee=w(29148),et=w(38517),er=w(1469),en=w(44144),ei=w(56688),eo=w(13218),ea=w(72928),es=w(3674),el=w(81704),eu="[object Arguments]",ec="[object Function]",ed="[object Object]",ef={};ef[eu]=ef["[object Array]"]=ef["[object ArrayBuffer]"]=ef["[object DataView]"]=ef["[object Boolean]"]=ef["[object Date]"]=ef["[object Float32Array]"]=ef["[object Float64Array
24]"]=ef["[object Int8Array]"]=ef["[object Int16Array]"]=ef["[object Int32Array]"]=ef["[object Map]"]=ef["[object Number]"]=ef[ed]=ef["[object RegExp]"]=ef["[object Set]"]=ef["[object String]"]=ef["[object Symbol]"]=ef["[object Uint8Array]"]=ef["[object Uint8ClampedArray]"]=ef["[object Uint16Array]"]=ef["[object Uint32Array]"]=!0,ef["[object Error]"]=ef[ec]=ef["[object WeakMap]"]=!1,a.exports=function baseClone(a,x,w,ep,eh,em){var eg,ev=1&x,ey=2&x,eb=4&x;if(w&&(eg=eh?w(a,ep,eh,em):w(a)),void 0!==eg)return eg;if(!eo(a))return a;var e_=er(a);if(e_){if(eg=J(a),!ev)return G(a,eg)}else{var ex=Y(a),ew=ex==ec||"[object GeneratorFunction]"==ex;if(en(a))return z(a,ev);if(ex==ed||ex==eu||ew&&!eh){if(eg=ey||ew?{}:et(a),!ev)return ey?W(a,B(eg,a)):$(a,V(eg,a))}else{if(!ef[ex])return eh?a:{};eg=ee(a,ex,ev)}}em||(em=new A);var eS=em.get(a);if(eS)return eS;em.set(a,eg),ea(a)?a.forEach(function(A){eg.add(baseClone(A,x,w,A,a,em))}):ei(a)&&a.forEach(function(A,k){eg.set(k,baseClone(A,x,w,k,a,em))});var eE=eb?ey?K:Z:ey?el:es,eA=e_?void 0:eE(a);return k(eA||a,function(A,k){eA&&(A=a[k=A]),F(eg,k,baseClone(A,x,w,k,a,em))}),eg}},3118:function(a,x,w){var A=w(13218),k=Object.create,F=function(){function object(){}return function(a){if(!A(a))return{};if(k)return k(a);object.prototype=a;var x=new object;return object.prototype=void 0,x}}();a.exports=F},68866:function(a,x,w){var A=w(62488),k=w(1469);a.exports=function(a,x,w){var F=x(a);return k(a)?F:A(F,w(a))}},44239:function(a,x,w){var A=w(62705),k=w(89607),F=w(2333),V=A?A.toStringTag:void 0;a.exports=function(a){return null==a?void 0===a?"[object Undefined]":"[object Null]":V&&V in Object(a)?k(a):F(a)}},9454:function(a,x,w){var A=w(44239),k=w(37005);a.exports=function(a){return k(a)&&"[object Arguments]"==A(a)}},25588:function(a,x,w){var A=w(64160),k=w(37005);a.exports=function(a){return k(a)&&"[object Map]"==A(a)}},28458:function(a,x,w){var A=w(23560),k=w(15346),F=w(13218),V=w(80346),B=/^\[object .+?Constructor\]$/,z=Object.prototype,G=Function.prototype.toString,$=z.hasOwnProperty,W=RegExp("^"+G.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(a){return!(!F(a)||k(a))&&(A(a)?W:B).test(V(a))}},29221:function(a,x,w){var A=w(64160),k=w(37005);a.exports=function(a){return k(a)&&"[object Set]"==A(a)}},38749:function(a,x,w){var A=w(44239),k=w(41780),F=w(37005),V={};V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object Boolean]"]=V["[object DataView]"]=V["[object Date]"]=V["[object Error]"]=V["[object Function]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object WeakMap]"]=!1,a.exports=function(a){return F(a)&&k(a.length)&&!!V[A(a)]}},280:function(a,x,w){var A=w(25726),k=w(86916),F=Object.prototype.hasOwnProperty;a.exports=function(a){if(!A(a))return k(a);var x=[];for(var w in Object(a))F.call(a,w)&&"constructor"!=w&&x.push(w);return x}},10313:function(a,x,w){var A=w(13218),k=w(25726),F=w(33498),V=Object.prototype.hasOwnProperty;a.exports=function(a){if(!A(a))return F(a);var x=k(a),w=[];for(var B in a)"constructor"==B&&(x||!V.call(a,B))||w.push(B);return w}},22545:function(a){a.exports=function(a,x){for(var w=-1,A=Array(a);++w<a;)A[w]=x(w);return A}},27561:function(a,x,w){var A=w(67990),k=/^\s+/;a.exports=function(a){return a?a.slice(0,A(a)+1).replace(k,""):a}},7518:function(a){a.exports=function(a){return function(x){return a(x)}}},74318:function(a,x,w){var A=w(11149);a.exports=function(a){var x=new a.constructor(a.byteLength);return new A(x).set(new A(a)),x}},64626:function(a,x,w){a=w.nmd(a);var A=w(55639),k=x&&!x.nodeType&&x,F=k&&a&&!a.nodeType&&a,V=F&&F.exports===k?A.Buffer:void 0,B=V?V.allocUnsafe:void 0;a.exports=function(a,x){if(x)return a.slice();var w=a.length,A=B?B(w):new a.constructor(w);return a.copy(A),A}},57157:function(a,x,w){var A=w(74318);a.exports=function(a,x){var w=x?A(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.byteLength)}},93147:function(a){var x=/\w*$/;a.exports=function(a){var w=new a.constructor(a.source,x.exec(a));return w.lastIndex=a.lastIndex,w}},40419:function(a,x,w){var A=w(62705),k=A?A.prototype:void 0,F=k?k.valueOf
24:void 0;a.exports=function(a){return F?Object(F.call(a)):{}}},77133:function(a,x,w){var A=w(74318);a.exports=function(a,x){var w=x?A(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.length)}},278:function(a){a.exports=function(a,x){var w=-1,A=a.length;for(x||(x=Array(A));++w<A;)x[w]=a[w];return x}},98363:function(a,x,w){var A=w(34865),k=w(89465);a.exports=function(a,x,w,F){var V=!w;w||(w={});for(var B=-1,z=x.length;++B<z;){var G=x[B],$=F?F(w[G],a[G],G,w,a):void 0;void 0===$&&($=a[G]),V?k(w,G,$):A(w,G,$)}return w}},18805:function(a,x,w){var A=w(98363),k=w(99551);a.exports=function(a,x){return A(a,k(a),x)}},1911:function(a,x,w){var A=w(98363),k=w(51442);a.exports=function(a,x){return A(a,k(a),x)}},14429:function(a,x,w){var A=w(55639)["__core-js_shared__"];a.exports=A},38777:function(a,x,w){var A=w(10852),k=function(){try{var a=A(Object,"defineProperty");return a({},"",{}),a}catch(a){}}();a.exports=k},31957:function(a,x,w){var A="object"==typeof w.g&&w.g&&w.g.Object===Object&&w.g;a.exports=A},58234:function(a,x,w){var A=w(68866),k=w(99551),F=w(3674);a.exports=function(a){return A(a,F,k)}},46904:function(a,x,w){var A=w(68866),k=w(51442),F=w(81704);a.exports=function(a){return A(a,F,k)}},45050:function(a,x,w){var A=w(37019);a.exports=function(a,x){var w=a.__data__;return A(x)?w["string"==typeof x?"string":"hash"]:w.map}},10852:function(a,x,w){var A=w(28458),k=w(47801);a.exports=function(a,x){var w=k(a,x);return A(w)?w:void 0}},85924:function(a,x,w){var A=w(5569)(Object.getPrototypeOf,Object);a.exports=A},89607:function(a,x,w){var A=w(62705),k=Object.prototype,F=k.hasOwnProperty,V=k.toString,B=A?A.toStringTag:void 0;a.exports=function(a){var x=F.call(a,B),w=a[B];try{a[B]=void 0;var A=!0}catch(a){}var k=V.call(a);return A&&(x?a[B]=w:delete a[B]),k}},99551:function(a,x,w){var A=w(34963),k=w(70479),F=Object.prototype.propertyIsEnumerable,V=Object.getOwnPropertySymbols,B=V?function(a){return null==a?[]:A(V(a=Object(a)),function(x){return F.call(a,x)})}:k;a.exports=B},51442:function(a,x,w){var A=w(62488),k=w(85924),F=w(99551),V=w(70479),B=Object.getOwnPropertySymbols?function(a){for(var x=[];a;)A(x,F(a)),a=k(a);return x}:V;a.exports=B},64160:function(a,x,w){var A=w(18552),k=w(57071),F=w(53818),V=w(58525),B=w(70577),z=w(44239),G=w(80346),$="[object Map]",W="[object Promise]",Z="[object Set]",K="[object WeakMap]",Y="[object DataView]",J=G(A),ee=G(k),et=G(F),er=G(V),en=G(B),ei=z;(A&&ei(new A(new ArrayBuffer(1)))!=Y||k&&ei(new k)!=$||F&&ei(F.resolve())!=W||V&&ei(new V)!=Z||B&&ei(new B)!=K)&&(ei=function(a){var x=z(a),w="[object Object]"==x?a.constructor:void 0,A=w?G(w):"";if(A)switch(A){case J:return Y;case ee:return $;case et:return W;case er:return Z;case en:return K}return x}),a.exports=ei},47801:function(a){a.exports=function(a,x){return null==a?void 0:a[x]}},51789:function(a,x,w){var A=w(94536);a.exports=function(){this.__data__=A?A(null):{},this.size=0}},80401:function(a){a.exports=function(a){var x=this.has(a)&&delete this.__data__[a];return this.size-=x?1:0,x}},57667:function(a,x,w){var A=w(94536),k=Object.prototype.hasOwnProperty;a.exports=function(a){var x=this.__data__;if(A){var w=x[a];return"__lodash_hash_undefined__"===w?void 0:w}return k.call(x,a)?x[a]:void 0}},21327:function(a,x,w){var A=w(94536),k=Object.prototype.hasOwnProperty;a.exports=function(a){var x=this.__data__;return A?void 0!==x[a]:k.call(x,a)}},81866:function(a,x,w){var A=w(94536);a.exports=function(a,x){var w=this.__data__;return this.size+=this.has(a)?0:1,w[a]=A&&void 0===x?"__lodash_hash_undefined__":x,this}},43824:function(a){var x=Object.prototype.hasOwnProperty;a.exports=function(a){var w=a.length,A=new a.constructor(w);return w&&"string"==typeof a[0]&&x.call(a,"index")&&(A.index=a.index,A.input=a.input),A}},29148:function(a,x,w){var A=w(74318),k=w(57157),F=w(93147),V=w(40419),B=w(77133);a.exports=function(a,x,w){var z=a.constructor;switch(x){case"[object ArrayBuffer]":return A(a);case"[object Boolean]":case"[object Date]":return new z(+a);case"[object DataView]":return k(a,w);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return B(a,w);case"[object Map]":case"[object Set]":return new z;case"[object Number]":case"[object String]":return new z(a);case"[object RegExp]":return F(a);case"[object Symbol]":return V(a)}}},38517:function(a,x,w){var A=w(3118),k=w(85924),F=w(25726);a.exports=function(a){return"function"!=typeof a.constructor||F(a)?{}:A(k(a))}},65776:function(a){var x=/^(?:0|[1-9]\d*)$/;a.exports=function(a,w){var A=typeof a;return!!(w=null==w?9007199254740991:w)&&("number"==A||"symbol"!=A&&x.test(a))&&a>-1&&a%1==0&&a<w}},37019:function(a){a.exports=function(a){var x=typeof a;return"string"==x||"number"==x||"symbol"==x||"boolean"==x?"__proto__"!==a:null===a}},15346:function(a,x,w){var A,k=w(14429),F=(A=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(sr
24c)_1."+A:"";a.exports=function(a){return!!F&&F in a}},25726:function(a){var x=Object.prototype;a.exports=function(a){var w=a&&a.constructor;return a===("function"==typeof w&&w.prototype||x)}},27040:function(a){a.exports=function(){this.__data__=[],this.size=0}},14125:function(a,x,w){var A=w(18470),k=Array.prototype.splice;a.exports=function(a){var x=this.__data__,w=A(x,a);return!(w<0)&&(w==x.length-1?x.pop():k.call(x,w,1),--this.size,!0)}},82117:function(a,x,w){var A=w(18470);a.exports=function(a){var x=this.__data__,w=A(x,a);return w<0?void 0:x[w][1]}},87529:function(a,x,w){var A=w(18470);a.exports=function(a){return A(this.__data__,a)>-1}},54705:function(a,x,w){var A=w(18470);a.exports=function(a,x){var w=this.__data__,k=A(w,a);return k<0?(++this.size,w.push([a,x])):w[k][1]=x,this}},24785:function(a,x,w){var A=w(1989),k=w(38407),F=w(57071);a.exports=function(){this.size=0,this.__data__={hash:new A,map:new(F||k),string:new A}}},11285:function(a,x,w){var A=w(45050);a.exports=function(a){var x=A(this,a).delete(a);return this.size-=x?1:0,x}},96e3:function(a,x,w){var A=w(45050);a.exports=function(a){return A(this,a).get(a)}},49916:function(a,x,w){var A=w(45050);a.exports=function(a){return A(this,a).has(a)}},95265:function(a,x,w){var A=w(45050);a.exports=function(a,x){var w=A(this,a),k=w.size;return w.set(a,x),this.size+=w.size==k?0:1,this}},94536:function(a,x,w){var A=w(10852)(Object,"create");a.exports=A},86916:function(a,x,w){var A=w(5569)(Object.keys,Object);a.exports=A},33498:function(a){a.exports=function(a){var x=[];if(null!=a)for(var w in Object(a))x.push(w);return x}},31167:function(a,x,w){a=w.nmd(a);var A=w(31957),k=x&&!x.nodeType&&x,F=k&&a&&!a.nodeType&&a,V=F&&F.exports===k&&A.process,B=function(){try{var a=F&&F.require&&F.require("util").types;if(a)return a;return V&&V.binding&&V.binding("util")}catch(a){}}();a.exports=B},2333:function(a){var x=Object.prototype.toString;a.exports=function(a){return x.call(a)}},5569:function(a){a.exports=function(a,x){return function(w){return a(x(w))}}},55639:function(a,x,w){var A=w(31957),k="object"==typeof self&&self&&self.Object===Object&&self,F=A||k||Function("return this")();a.exports=F},37465:function(a,x,w){var A=w(38407);a.exports=function(){this.__data__=new A,this.size=0}},63779:function(a){a.exports=function(a){var x=this.__data__,w=x.delete(a);return this.size=x.size,w}},67599:function(a){a.exports=function(a){return this.__data__.get(a)}},44758:function(a){a.exports=function(a){return this.__data__.has(a)}},34309:function(a,x,w){var A=w(38407),k=w(57071),F=w(83369);a.exports=function(a,x){var w=this.__data__;if(w instanceof A){var V=w.__data__;if(!k||V.length<199)return V.push([a,x]),this.size=++w.size,this;w=this.__data__=new F(V)}return w.set(a,x),this.size=w.size,this}},80346:function(a){var x=Function.prototype.toString;a.exports=function(a){if(null!=a){try{return x.call(a)}catch(a){}try{return a+""}catch(a){}}return""}},67990:function(a){var x=/\s/;a.exports=function(a){for(var w=a.length;w--&&x.test(a.charAt(w)););return w}},50361:function(a,x,w){var A=w(85990);a.exports=function(a){return A(a,5)}},23279:function(a,x,w){var A=w(13218),k=w(7771),F=w(14841),V=Math.max,B=Math.min;a.exports=function(a,x,w){var z,G,$,W,Z,K,Y=0,J=!1,ee=!1,et=!0;if("function"!=typeof a)throw TypeError("Expected a function");function invokeFunc(x){var w=z,A=G;return z=G=void 0,Y=x,W=a.apply(A,w)}function shouldInvoke(a){var w=a-K,A=a-Y;return void 0===K||w>=x||w<0||ee&&A>=$}function timerExpired(){var a,w,A,F=k();if(shouldInvoke(F))return trailingEdge(F);Z=setTimeout(timerExpired,(a=F-K,w=F-Y,A=x-a,ee?B(A,$-w):A))}function trailingEdge(a){return(Z=void 0,et&&z)?invokeFunc(a):(z=G=void 0,W)}function debounced(){var a,w=k(),A=shouldInvoke(w);if(z=arguments,G=this,K=w,A){if(void 0===Z)return Y=a=K,Z=setTimeout(timerExpired,x),J?invokeFunc(a):W;if(ee)return clearTimeout(Z),Z=setTimeout(timerExpired,x),invokeFunc(K)}return void 0===Z&&(Z=setTimeout(timerExpired,x)),W}return x=F(x)||0,A(w)&&(J=!!w.leading,$=(ee="maxWait"in w)?V(F(w.maxWait)||0,x):$,et="trailing"in w?!!w.trailing:et),debounced.cancel=function(){void 0!==Z&&clearTimeout(Z),Y=0,z=K=G=Z=void 0},debounced.flush=function(){return void 0===Z?W:trailingEdge(k())},debounced}},77813:function(a){a.exports=function(a,x){return a===x||a!=a&&x!=x}},35694:function(a,x,w){var A=w(9454),k=w(37005),F=Object.prototype,V=F.hasOwnProperty,B=F.propertyIsEnumerable,z=A(function(){return arguments}())?A:function(a){return k(a)&&V.call(a,"callee")&&!B.call(a,"callee")};a.exports=z},1469:function(a){var x=Array.isArray;a.exports=x},98612:function(a,x,w){var A=w(23560),k=w(41780);a.exports=function(a){return null!=a&&k(a.length)&&!A(a)}},44144:function(a,x,w){a=w.nmd(a);var A=w(55639),k=w(95062),F=x&&!x.nodeType&&x,V=F&&a&&!a.nodeType&&a,B=V&&V.exports===F?A.Buffer:void 0,z=B?B.isBuffer:void 0;a.exports=z||k},41609:function(a,x,w){var A=w(280),k=w(64160),F=w(35694),V=w(1469),B=w(98612),z=w(44144),G=w(25726),$=w(36719),W=Object.prototype.hasOwnProperty;
24a.exports=function(a){if(null==a)return!0;if(B(a)&&(V(a)||"string"==typeof a||"function"==typeof a.splice||z(a)||$(a)||F(a)))return!a.length;var x=k(a);if("[object Map]"==x||"[object Set]"==x)return!a.size;if(G(a))return!A(a).length;for(var w in a)if(W.call(a,w))return!1;return!0}},23560:function(a,x,w){var A=w(44239),k=w(13218);a.exports=function(a){if(!k(a))return!1;var x=A(a);return"[object Function]"==x||"[object GeneratorFunction]"==x||"[object AsyncFunction]"==x||"[object Proxy]"==x}},41780:function(a){a.exports=function(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=9007199254740991}},56688:function(a,x,w){var A=w(25588),k=w(7518),F=w(31167),V=F&&F.isMap,B=V?k(V):A;a.exports=B},13218:function(a){a.exports=function(a){var x=typeof a;return null!=a&&("object"==x||"function"==x)}},37005:function(a){a.exports=function(a){return null!=a&&"object"==typeof a}},72928:function(a,x,w){var A=w(29221),k=w(7518),F=w(31167),V=F&&F.isSet,B=V?k(V):A;a.exports=B},33448:function(a,x,w){var A=w(44239),k=w(37005);a.exports=function(a){return"symbol"==typeof a||k(a)&&"[object Symbol]"==A(a)}},36719:function(a,x,w){var A=w(38749),k=w(7518),F=w(31167),V=F&&F.isTypedArray,B=V?k(V):A;a.exports=B},3674:function(a,x,w){var A=w(14636),k=w(280),F=w(98612);a.exports=function(a){return F(a)?A(a):k(a)}},81704:function(a,x,w){var A=w(14636),k=w(10313),F=w(98612);a.exports=function(a){return F(a)?A(a,!0):k(a)}},7771:function(a,x,w){var A=w(55639);a.exports=function(){return A.Date.now()}},70479:function(a){a.exports=function(){return[]}},95062:function(a){a.exports=function(){return!1}},14841:function(a,x,w){var A=w(27561),k=w(13218),F=w(33448),V=0/0,B=/^[-+]0x[0-9a-f]+$/i,z=/^0b[01]+$/i,G=/^0o[0-7]+$/i,$=parseInt;a.exports=function(a){if("number"==typeof a)return a;if(F(a))return V;if(k(a)){var x="function"==typeof a.valueOf?a.valueOf():a;a=k(x)?x+"":x}if("string"!=typeof a)return 0===a?a:+a;a=A(a);var w=z.test(a);return w||G.test(a)?$(a.slice(2),w?2:8):B.test(a)?V:+a}},2043:function(a,x,w){var A,k;void 0!==(k="function"==typeof(A=function(){"use strict";var noop=function(){},a="undefined",x=typeof window!==a&&typeof window.navigator!==a&&/Trident\/|MSIE /.test(window.navigator.userAgent),w=["trace","debug","info","warn","error"],A={},k=null;function bindMethod(a,x){var w=a[x];if("function"==typeof w.bind)return w.bind(a);try{return Function.prototype.bind.call(w,a)}catch(x){return function(){return Function.prototype.apply.apply(w,[a,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function replaceLoggingMethods(){for(var x=this.getLevel(),A=0;A<w.length;A++){var k=w[A];this[k]=A<x?noop:this.methodFactory(k,x,this.name)}if(this.log=this.debug,typeof console===a&&x<this.levels.SILENT)return"No console available for logging"}function enableLoggingWhenConsoleArrives(x){return function(){typeof console!==a&&(replaceLoggingMethods.call(this),this[x].apply(this,arguments))}}function defaultMethodFactory(w,A,k){var F;return"debug"===(F=w)&&(F="log"),typeof console!==a&&("trace"===F&&x?traceForIE:void 0!==console[F]?bindMethod(console,F):void 0!==console.log?bindMethod(console,"log"):noop)||enableLoggingWhenConsoleArrives.apply(this,arguments)}function Logger(x,F){var V,B,z,G=this,$="loglevel";function getPersistedLevel(){var x;if(typeof window!==a&&$){try{x=window.localStorage[$]}catch(a){}if(typeof x===a)try{var w=window.document.cookie,A=encodeURIComponent($),k=w.indexOf(A+"=");-1!==k&&(x=/^([^;]+)/.exec(w.slice(k+A.length+1))[1])}catch(a){}return void 0===G.levels[x]&&(x=void 0),x}}function normalizeLevel(a){var x=a;if("string"==typeof x&&void 0!==G.levels[x.toUpperCase()]&&(x=G.levels[x.toUpperCase()]),"number"==typeof x&&x>=0&&x<=G.levels.SILENT)return x;throw TypeError("log.setLevel() called with invalid level: "+a)}"string"==typeof x?$+=":"+x:"symbol"==typeof x&&($=void 0),G.name=x,G.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},G.methodFactory=F||defaultMethodFactory,G.getLevel=function(){return null!=z?z:null!=B?B:V},G.setLevel=function(x,A){return z=normalizeLevel(x),!1!==A&&function(x){var A=(w[x]||"silent").toUpperCase();if(typeof window!==a&&$){try{window.localStorage[$]=A;return}catch(a){}try{window.document.cookie=encodeURIComponent($)+"="+A+";"}catch(a){}}}(z),replaceLoggingMethods.call(G)},G.setDefaultLevel=function(a){B=normalizeLevel(a),getPersistedLevel()||G.setLevel(a,!1)},G.resetLevel=function(){z=null,function(){if(typeof window!==a&&$){try{window.localStorage.removeItem($)}catch(a){}try{window.document.cookie=encodeURIComponent($)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(a){}}}(),replaceLoggingMethods.call(G)},G.enableAll=function(a){G.setLevel(G.levels.TRACE,a)},G.disableAll=function(a){G.setLevel(G.levels.SILENT,a)},G.rebuild=function(){if(k!==G&&(V=normalizeLevel(k.getLevel())),replaceLoggingMethods.call(G),k===G)for(var a in A)A[a].rebuild()},V=normalizeLevel(k?k.getLevel():"WARN");var W=getPersistedLevel();null!=W&&(z=normalizeLevel(W)),replaceLoggingMethods.call(G)}
24(k=new Logger).getLogger=function(a){if("symbol"!=typeof a&&"string"!=typeof a||""===a)throw TypeError("You must supply a name when creating a logger.");var x=A[a];return x||(x=A[a]=new Logger(a,k.methodFactory)),x};var F=typeof window!==a?window.log:void 0;return k.noConflict=function(){return typeof window!==a&&window.log===k&&(window.log=F),k},k.getLoggers=function(){return A},k.default=k,k})?A.call(x,w,x,a):A)&&(a.exports=k)},2962:function(a,x,w){"use strict";w.d(x,{PB:function(){return NextSeo},Qb:function(){return ProductJsonLd},gR:function(){return BreadCrumbJsonLd},lX:function(){return DefaultSeo}});var A=w(67294),k=w(9008),F=w.n(k);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(a){for(var x=1;x<arguments.length;x++){var w=arguments[x];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(a[A]=w[A])}return a}).apply(this,arguments)}function _objectWithoutPropertiesLoose(a,x){if(null==a)return{};var w,A,k={},F=Object.keys(a);for(A=0;A<F.length;A++)w=F[A],x.indexOf(w)>=0||(k[w]=a[w]);return k}var V=["keyOverride"],B=["crossOrigin"],z={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},buildOpenGraphMediaTags=function(a,x,w){void 0===x&&(x=[]);var k=void 0===w?{}:w,F=k.defaultWidth,V=k.defaultHeight;return x.reduce(function(x,w,k){return x.push(A.createElement("meta",{key:"og:"+a+":0"+k,property:"og:"+a,content:w.url})),w.alt&&x.push(A.createElement("meta",{key:"og:"+a+":alt0"+k,property:"og:"+a+":alt",content:w.alt})),w.secureUrl&&x.push(A.createElement("meta",{key:"og:"+a+":secure_url0"+k,property:"og:"+a+":secure_url",content:w.secureUrl.toString()})),w.type&&x.push(A.createElement("meta",{key:"og:"+a+":type0"+k,property:"og:"+a+":type",content:w.type.toString()})),w.width?x.push(A.createElement("meta",{key:"og:"+a+":width0"+k,property:"og:"+a+":width",content:w.width.toString()})):F&&x.push(A.createElement("meta",{key:"og:"+a+":width0"+k,property:"og:"+a+":width",content:F.toString()})),w.height?x.push(A.createElement("meta",{key:"og:"+a+":height"+k,property:"og:"+a+":height",content:w.height.toString()})):V&&x.push(A.createElement("meta",{key:"og:"+a+":height"+k,property:"og:"+a+":height",content:V.toString()})),x},[])},buildTags=function(a){var x,w,k,F,G,$=[];a.titleTemplate&&(z.templateTitle=a.titleTemplate);var W="";a.title?(W=a.title,z.templateTitle&&(W=z.templateTitle.replace(/%s/g,function(){return W}))):a.defaultTitle&&(W=a.defaultTitle),W&&$.push(A.createElement("title",{key:"title"},W));var Z=void 0===a.noindex?z.noindex||a.dangerouslySetAllPagesToNoIndex:a.noindex,K=void 0===a.nofollow?z.nofollow||a.dangerouslySetAllPagesToNoFollow:a.nofollow,Y=a.norobots||z.norobots,J="";if(a.robotsProps){var ee=a.robotsProps,et=ee.nosnippet,er=ee.maxSnippet,en=ee.maxImagePreview,ei=ee.maxVideoPreview,eo=ee.noarchive,ea=ee.noimageindex,es=ee.notranslate,el=ee.unavailableAfter;J=(et?",nosnippet":"")+(er?",max-snippet:"+er:"")+(en?",max-image-preview:"+en:"")+(eo?",noarchive":"")+(el?",unavailable_after:"+el:"")+(ea?",noimageindex":"")+(ei?",max-video-preview:"+ei:"")+(es?",notranslate":"")}if(a.norobots&&(z.norobots=!0),Z||K?(a.dangerouslySetAllPagesToNoIndex&&(z.noindex=!0),a.dangerouslySetAllPagesToNoFollow&&(z.nofollow=!0),$.push(A.createElement("meta",{key:"robots",name:"robots",content:(Z?"noindex":"index")+","+(K?"nofollow":"follow")+J}))):(!Y||J)&&$.push(A.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+J})),a.description&&$.push(A.createElement("meta",{key:"description",name:"description",content:a.description})),a.themeColor&&$.push(A.createElement("meta",{key:"theme-color",name:"theme-color",content:a.themeColor})),a.mobileAlternate&&$.push(A.createElement("link",{rel:"alternate",key:"mobileAlternate",media:a.mobileAlternate.media,href:a.mobileAlternate.href})),a.languageAlternates&&a.languageAlternates.length>0&&a.languageAlternates.forEach(function(a){$.push(A.createElement("link",{rel:"alternate",key:"languageAlternate-"+a.hrefLang,hrefLang:a.hrefLang,href:a.href}))}),a.twitter&&(a.twitter.cardType&&$.push(A.createElement("meta",{key:"twitter:card",name:"twitter:card",content:a.twitter.cardType})),a.twitter.site&&$.push(A.createElement("meta",{key:"twitter:site",name:"twitter:site",content:a.twitter.site})),a.twitter.handle&&$.push(A.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:a.twitter.handle}
24))),a.facebook&&a.facebook.appId&&$.push(A.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:a.facebook.appId})),(null!=(x=a.openGraph)&&x.title||W)&&$.push(A.createElement("meta",{key:"og:title",property:"og:title",content:(null==(F=a.openGraph)?void 0:F.title)||W})),(null!=(w=a.openGraph)&&w.description||a.description)&&$.push(A.createElement("meta",{key:"og:description",property:"og:description",content:(null==(G=a.openGraph)?void 0:G.description)||a.description})),a.openGraph){if((a.openGraph.url||a.canonical)&&$.push(A.createElement("meta",{key:"og:url",property:"og:url",content:a.openGraph.url||a.canonical})),a.openGraph.type){var eu=a.openGraph.type.toLowerCase();$.push(A.createElement("meta",{key:"og:type",property:"og:type",content:eu})),"profile"===eu&&a.openGraph.profile?(a.openGraph.profile.firstName&&$.push(A.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:a.openGraph.profile.firstName})),a.openGraph.profile.lastName&&$.push(A.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:a.openGraph.profile.lastName})),a.openGraph.profile.username&&$.push(A.createElement("meta",{key:"profile:username",property:"profile:username",content:a.openGraph.profile.username})),a.openGraph.profile.gender&&$.push(A.createElement("meta",{key:"profile:gender",property:"profile:gender",content:a.openGraph.profile.gender}))):"book"===eu&&a.openGraph.book?(a.openGraph.book.authors&&a.openGraph.book.authors.length&&a.openGraph.book.authors.forEach(function(a,x){$.push(A.createElement("meta",{key:"book:author:0"+x,property:"book:author",content:a}))}),a.openGraph.book.isbn&&$.push(A.createElement("meta",{key:"book:isbn",property:"book:isbn",content:a.openGraph.book.isbn})),a.openGraph.book.releaseDate&&$.push(A.createElement("meta",{key:"book:release_date",property:"book:release_date",content:a.openGraph.book.releaseDate})),a.openGraph.book.tags&&a.openGraph.book.tags.length&&a.openGraph.book.tags.forEac
24h(function(a,x){$.push(A.createElement("meta",{key:"book:tag:0"+x,property:"book:tag",content:a}))})):"article"===eu&&a.openGraph.article?(a.openGraph.article.publishedTime&&$.push(A.createElement("meta",{key:"article:published_time",property:"article:published_time",content:a.openGraph.article.publishedTime})),a.openGraph.article.modifiedTime&&$.push(A.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:a.openGraph.article.modifiedTime})),a.openGraph.article.expirationTime&&$.push(A.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:a.openGraph.article.expirationTime})),a.openGraph.article.authors&&a.openGraph.article.authors.length&&a.openGraph.article.authors.forEach(function(a,x){$.push(A.createElement("meta",{key:"article:author:0"+x,property:"article:author",content:a}))}),a.openGraph.article.section&&$.push(A.createElement("meta",{key:"article:section",property:"article:section",content:a.openGraph.article.section})),a.openGraph.article.tags&&a.openGraph.article.tags.length&&a.openGraph.article.tags.forEach(function(a,x){$.push(A.createElement("meta",{key:"article:tag:0"+x,property:"article:tag",content:a}))})):("video.movie"===eu||"video.episode"===eu||"video.tv_show"===eu||"video.other"===eu)&&a.openGraph.video&&(a.openGraph.video.actors&&a.openGraph.video.actors.length&&a.openGraph.video.actors.forEach(function(a,x){a.profile&&$.push(A.createElement("meta",{key:"video:actor:0"+x,property:"video:actor",content:a.profile})),a.role&&$.push(A.createElement("meta",{key:"video:actor:role:0"+x,property:"video:actor:role",content:a.role}))}),a.openGraph.video.directors&&a.openGraph.video.directors.length&&a.openGraph.video.directors.forEach(function(a,x){$.push(A.createElement("meta",{key:"video:director:0"+x,property:"video:director",content:a}))}),a.openGraph.video.writers&&a.openGraph.video.writers.length&&a.openGraph.video.writers.forEach(function(a,x){$.push(A.createElement("meta",{key:"video:writer:0"+x,property:"video:writer",content:a}))}),a.openGraph.video.duration&&$.push(A.createElement("meta",{key:"video:duration",property:"video:duration",content:a.openGraph.video.duration.toString()})),a.openGraph.video.releaseDate&&$.push(A.createElement("meta",{key:"video:release_date",property:"video:release_date",content:a.openGraph.video.releaseDate})),a.openGraph.video.tags&&a.openGraph.video.tags.length&&a.openGraph.video.tags.forEac
24h(function(a,x){$.push(A.createElement("meta",{key:"video:tag:0"+x,property:"video:tag",content:a}))}),a.openGraph.video.series&&$.push(A.createElement("meta",{key:"video:series",property:"video:series",content:a.openGraph.video.series})))}a.defaultOpenGraphImageWidth&&(z.defaultOpenGraphImageWidth=a.defaultOpenGraphImageWidth),a.defaultOpenGraphImageHeight&&(z.defaultOpenGraphImageHeight=a.defaultOpenGraphImageHeight),a.openGraph.images&&a.openGraph.images.length&&$.push.apply($,buildOpenGraphMediaTags("image",a.openGraph.images,{defaultWidth:z.defaultOpenGraphImageWidth,defaultHeight:z.defaultOpenGraphImageHeight})),a.defaultOpenGraphVideoWidth&&(z.defaultOpenGraphVideoWidth=a.defaultOpenGraphVideoWidth),a.defaultOpenGraphVideoHeight&&(z.defaultOpenGraphVideoHeight=a.defaultOpenGraphVideoHeight),a.openGraph.videos&&a.openGraph.videos.length&&$.push.apply($,buildOpenGraphMediaTags("video",a.openGraph.videos,{defaultWidth:z.defaultOpenGraphVideoWidth,defaultHeight:z.defaultOpenGraphVideoHeight})),a.openGraph.audio&&$.push.apply($,buildOpenGraphMediaTags("audio",a.openGraph.audio)),a.openGraph.locale&&$.push(A.createElement("meta",{key:"og:locale",property:"og:locale",content:a.openGraph.locale})),(a.openGraph.siteName||a.openGraph.site_name)&&$.push(A.createElement("meta",{key:"og:site_name",property:"og:site_name",content:a.openGraph.siteName||a.openGraph.site_name}))}return a.canonical&&$.push(A.createElement("link",{rel:"canonical",href:a.canonical,key:"canonical"})),a.additionalMetaTags&&a.additionalMetaTags.length>0&&a.additionalMetaTags.forEach(function(a){var x,w,k=a.keyOverride,F=_objectWithoutPropertiesLoose(a,V);$.push(A.createElement("meta",_extends({key:"meta:"+(null!=(x=null!=(w=null!=k?k:F.name)?w:F.property)?x:F.httpEquiv)},F)))}),null!=(k=a.additionalLinkTags)&&k.length&&a.additionalLinkTags.forEach(function(a){var x,w=a.crossOrigin,k=_objectWithoutPropertiesLoose(a,B);$.push(A.createElement("link",_extends({key:"link"+(null!=(x=k.keyOverride)?x:k.href)+k.rel},k,{crossOrigin:"anonymous"===w||"use-credentials"===w||""===w?w:void 0})))}),$},WithHead=function(a){return A.createElement(F(),null,buildTags(a))},DefaultSeo=function(a){var x=a.title,w=a.titleTemplate,k=a.defaultTitle,F=a.themeColor,V=a.dangerouslySetAllPagesToNoIndex,B=a.dangerouslySetAllPagesToNoFollow,z=a.description,G=a.canonical,$=a.facebook,W=a.openGraph,Z=a.additionalMetaTags,K=a.twitter,Y=a.defaultOpenGraphImageWidth,J=a.defaultOpenGraphImageHeight,ee=a.defaultOpenGraphVideoWidth,et=a.defaultOpenGraphVideoHeight,er=a.mobileAlternate,en=a.languageAlternates,ei=a.additionalLinkTags,eo=a.robotsProps,ea=a.norobots;return A.createElement(WithHead,{title:x,titleTemplate:w,defaultTitle:k,themeColor:F,dangerouslySetAllPagesToNoIndex:void 0!==V&&V,dangerouslySetAllPagesToNoFollow:void 0!==B&&B,description:z,canonical:G,facebook:$,openGraph:W,additionalMetaTags:Z,twitter:K,defaultOpenGraphImageWidth:Y,defaultOpenGraphImageHeight:J,defaultOpenGraphVideoWidth:ee,defaultOpenGraphVideoHeight:et,mobileAlternate:er,languageAlternates:en,additionalLinkTags:ei,robotsProps:eo,norobots:ea})},NextSeo=function(a){var x=a.title,w=a.themeColor,k=a.noindex,F=a.nofollow,V=a.robotsProps,B=a.description,z=a.canonical,G=a.openGraph,$=a.facebook,W=a.twitter,Z=a.additionalMetaTags,K=a.titleTemplate,Y=a.defaultTitle,J=a.mobileAlternate,ee=a.languageAlternates,et=a.additionalLinkTags;return A.createElement(A.Fragment,null,A.createElement(WithHead,{title:x,themeColor:w,noindex:k,nofollow:F,robotsProps:V,description:B,canonical:z,facebook:$,openGraph:G,additionalMetaTags:Z,twitter:W,titleTemplate:K,defaultTitle:Y,mobileAlternate:J,languageAlternates:ee,additionalLinkTags:et}))},toJson=function(a,x){var w=x;return Array.isArray(w)&&1===w.length&&(w=_extends({},x[0])),{__html:JSON.stringify(Array.isArray(w)?w.map(function(x){return formatObjectForSchema(a,x)}):formatObjectForSchema(a,w),safeJsonLdReplacer)}},formatObjectForSchema=function(a,x){var w=x.id,A=_extends({},(void 0===w?void 0:w)?{"@id":x.id}:{},x);return delete A.id,_extends({"@context":"https://schema.org","@type":a},A)},G=Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"}),$=RegExp("["+Object.keys(G).join("")+"]","g"),ESCAPE_REPLACER=function(a){return G[a]},safeJsonLdReplacer=function(a,x){switch(typeof x){case"object":if(null===x)return;return x;case"number":case"boolean":case"bigint":return x;case"string":return x.replace($,ESCAPE_REPLACER);default:return}},W=["type","keyOverride","scriptKey","scriptId","dataArray","useAppDir"];function JsonLd(a){var x=a.type,w=void 0===x?"Thing":x,k=a.keyOverride,V=a.scriptKey,B=a.scriptId,z=void 0===B?void 0:B,G=a.dataArray,$=a.useAppDir,Z=_objectWithoutPropertiesLoose(a,W),JsonLdScript=function(){return A.createElement("script",{type:"application/ld+json",id:z,"data-testid":z,dangerouslySetInnerHTML:toJson(w,void 0===G?_extends({},Z):G),key:"jsonld-"+V+(k?"-"+k:"")})};return void 0!==$&&$?A.createElement(JsonLdScript,null):A.createElement(F(),null,JsonLdScript())}
24function generateAuthorInfo(a){if("string"==typeof a)return{"@type":"Person",name:a};if(a.name){var x;return{"@type":null!=(x=null==a?void 0:a.type)?x:"Person",name:a.name,url:null==a?void 0:a.url}}}function setImage(a){if(a)return{"@type":"ImageObject",url:a}}var Z=["reviewRating","author","publisher"],K=["seller"];function setOffers(a){function mapOffer(a){var x=a.seller,w=_objectWithoutPropertiesLoose(a,K);return _extends({},w,{"@type":"Offer"},x&&{seller:{"@type":"Organization",name:x.name}})}return Array.isArray(a)?a.map(mapOffer):a?mapOffer(a):void 0}var Y=["type","keyOverride","images","brand","reviews","aggregateRating","manufacturerLogo","manufacturerName","offers","aggregateOffer","productName"];function ProductJsonLd(a){var x=a.type,w=a.keyOverride,k=a.images,F=a.brand,V=a.reviews,B=a.aggregateRating,z=a.manufacturerLogo,G=a.manufacturerName,$=a.offers,W=a.aggregateOffer,K=a.productName,J=_objectWithoutPropertiesLoose(a,Y),ee=_extends({},J,{image:k,brand:function(a){if(a)return{"@type":"Brand",name:a}}(F),review:function(a){function mapReview(a){var x=a.reviewRating,w=a.author,A=a.publisher,k=_objectWithoutPropertiesLoose(a,Z);return _extends({},k,{"@type":"Review"},w&&{author:Array.isArray(w)?w.map(function(a){return generateAuthorInfo(a)}).filter(function(a){return!!a}):w?generateAuthorInfo(w):void 0},x&&{reviewRating:function(a){if(a)return _extends({},a,{"@type":"Rating"})}(x)},A&&{publisher:function(a,x){if(a)return{"@type":"Organization",name:a,logo:setImage(void 0)}}(A.name)})}return Array.isArray(a)?a.map(mapReview):a?mapReview(a):void 0}(V),aggregateRating:function(a){if(a)return{"@type":"AggregateRating",ratingCount:a.ratingCount,reviewCount:a.reviewCount,bestRating:a.bestRating,ratingValue:a.ratingValue,worstRating:a.worstRating}}(B),manufacturer:function(a){if(a&&(a.manufacturerName||a.manufacturerLogo))return{"@type":"Organization",name:a.manufacturerName,logo:setImage(a.manufacturerLogo)}}({manufacturerLogo:z,manufacturerName:G}),offers:$?setOffers($):function(a){if(a)return{"@type":"AggregateOffer",priceCurrency:a.priceCurrency,highPrice:a.highPrice,lowPrice:a.lowPrice,offerCount:a.offerCount,offers:setOffers(a.offers)}}(W),name:K});return A.createElement(JsonLd,_extends({type:void 0===x?"Product":x,keyOverride:w},ee,{scriptKey:"Product"}))}var J=["type","keyOverride","itemListElements"];function BreadCrumbJsonLd(a){var x=a.type,w=a.keyOverride,k=a.itemListElements,F=_objectWithoutPropertiesLoose(a,J),V=_extends({},F,{itemListElement:function(a){if(a&&a.length)return a.map(function(a){return{"@type":"ListItem",position:a.position,item:a.item,name:a.name}})}(k)});return A.createElement(JsonLd,_extends({type:void 0===x?"BreadcrumbList":x,keyOverride:w},V,{scriptKey:"breadcrumb"}))}},83454:function(a,x,w){"use strict";var A,k;a.exports=(null==(A=w.g.process)?void 0:A.env)&&"object"==typeof(null==(k=w.g.process)?void 0:k.env)?w.g.process:w(77663)},6840:function(a,x,w){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return w(2411)}])},2638:function(a,x){"use strict";x.Z={src:"/_next/static/media/no-result.5bc6c9c1.svg",height:1027,width:1485,blurWidth:0,blurHeight:0}},97498:function(a,x){"use strict";var w,A;Object.defineProperty(x,"__esModule",{value:!0}),function(a,x){for(var w in x)Object.defineProperty(a,w,{enumerable:!0,get:x[w]})}(x,{PrefetchKind:function(){return w},ACTION_REFRESH:function(){return k},ACTION_NAVIGATE:function(){return F},ACTION_RESTORE:function(){return V},ACTION_SERVER_PATCH:function(){return B},ACTION_PREFETCH:function(){return z},ACTION_FAST_REFRESH:function(){return G},ACTION_SERVER_ACTION:function(){return $}});let k="refresh",F="navigate",V="restore",B="server-patch",z="prefetch",G="fast-refresh",$="server-action";(A=w||(w={})).AUTO="auto",A.FULL="full",A.TEMPORARY="temporary",("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esModule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},10030:function(a,x,w){"use strict";function getDomainLocale(a,x,w,A){return!1}Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),w(22866),("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esMo
24dule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},23271:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"Image",{enumerable:!0,get:function(){return J}});let A=w(38754),k=w(61757),F=k._(w(67294)),V=A._(w(73935)),B=A._(w(79201)),z=w(53914),G=w(85494),$=w(30869);w(81905);let W=w(11823),Z=A._(w(74545)),K={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function handleLoading(a,x,w,A,k,F){let V=null==a?void 0:a.src;if(!a||a["data-loaded-src"]===V)return;a["data-loaded-src"]=V;let B="decode"in a?a.decode():Promise.resolve();B.catch(()=>{}).then(()=>{if(a.parentElement&&a.isConnected){if("empty"!==x&&k(!0),null==w?void 0:w.current){let x=new Event("load");Object.defineProperty(x,"target",{writable:!1,value:a});let A=!1,k=!1;w.current({...x,nativeEvent:x,currentTarget:a,target:a,isDefaultPrevented:()=>A,isPropagationStopped:()=>k,persist:()=>{},preventDefault:()=>{A=!0,x.preventDefault()},stopPropagation:()=>{k=!0,x.stopPropagation()}})}(null==A?void 0:A.current)&&A.current(a)}})}function getDynamicProps(a){let[x,w]=F.version.split("."),A=parseInt(x,10),k=parseInt(w,10);return A>18||18===A&&k>=3?{fetchPriority:a}:{fetchpriority:a}}let Y=(0,F.forwardRef)((a,x)=>{let{src:w,srcSet:A,sizes:k,height:V,width:B,decoding:z,className:G,style:$,fetchPriority:W,placeholder:Z,loading:K,unoptimized:Y,fill:J,onLoadRef:ee,onLoadingCompleteRef:et,setBlurComplete:er,setShowAltText:en,onLoad:ei,onError:eo,...ea}=a;return F.default.createElement("img",{...ea,...getDynamicProps(W),loading:K,width:B,height:V,decoding:z,"data-nimg":J?"fill":"1",className:G,style:$,sizes:k,srcSet:A,src:w,ref:(0,F.useCallback)(a=>{x&&("function"==typeof x?x(a):"object"==typeof x&&(x.current=a)),a&&(eo&&(a.src=a.src),a.complete&&handleLoading(a,Z,ee,et,er,Y))},[w,Z,ee,et,er,eo,Y,x]),onLoad:a=>{let x=a.currentTarget;handleLoading(x,Z,ee,et,er,Y)},onError:a=>{en(!0),"empty"!==Z&&er(!0),eo&&eo(a)}})});function ImagePreload(a){let{isAppRouter:x,imgAttributes:w}=a,A={as:"image",imageSrcSet:w.srcSet,imageSizes:w.sizes,crossOrigin:w.crossOrigin,referrerPolicy:w.referrerPolicy,...getDynamicProps(w.fetchPriority)};return x&&V.default.preload?(V.default.preload(w.src,A),null):F.default.createElement(B.default,null,F.default.createElement("link",{key:"__nimg-"+w.src+w.srcSet+w.sizes,rel:"preload",href:w.srcSet?void 0:w.src,...A}))}let J=(0,F.forwardRef)((a,x)=>{let w=(0,F.useContext)(W.RouterContext),A=(0,F.useContext)($.ImageConfigContext),k=(0,F.useMemo)(()=>{let a=K||A||G.imageConfigDefault,x=[...a.deviceSizes,...a.imageSizes].sort((a,x)=>a-x),w=a.deviceSizes.sort((a,x)=>a-x);return{...a,allSizes:x,deviceSizes:w}},[A]),{onLoad:V,onLoadingComplete:B}=a,J=(0,F.useRef)(V);(0,F.useEffect)(()=>{J.current=V},[V]);let ee=(0,F.useRef)(B);(0,F.useEffect)(()=>{ee.current=B},[B]);let[et,er]=(0,F.useState)(!1),[en,ei]=(0,F.useState)(!1),{props:eo,meta:ea}=(0,z.getImgProps)(a,{defaultLoader:Z.default,imgConf:k,blurComplete:et,showAltText:en});return F.default.createElement(F.default.Fragment,null,F.default.createElement(Y,{...eo,unoptimized:ea.unoptimized,placeholder:ea.placeholder,fill:ea.fill,onLoadRef:J,onLoadingCompleteRef:ee,setBlurComplete:er,setShowAltText:ei,ref:x}),ea.priority?F.default.createElement(ImagePreload,{isAppRouter:!w,imgAttributes:eo}):null)});("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esModule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},65170:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"default",{enumerable:!0,get:function(){return er}});let A=w(38754),k=A._(w(67294)),F=w(74450),V=w(92227),B=w(64364),z=w(10109),G=w(73607),$=w(11823),W=w(89031),Z=w(40920),K=w(10030),Y=w(77192),J=w(97498),ee=new Set;function prefetch(a,x,w,A,k,F){if(!F&&!(0,V.isLocalURL)(x))return;if(!A.bypassPrefetchedCheck){let k=void 0!==A.locale?A.locale:"locale"in a?a.locale:void 0,F=x+"%"+w+"%"+k;
24if(ee.has(F))return;ee.add(F)}let B=F?a.prefetch(x,k):a.prefetch(x,w,A);Promise.resolve(B).catch(a=>{})}function formatStringOrUrl(a){return"string"==typeof a?a:(0,B.formatUrl)(a)}let et=k.default.forwardRef(function(a,x){let w,A;let{href:B,as:ee,children:et,prefetch:er=null,passHref:en,replace:ei,shallow:eo,scroll:ea,locale:es,onClick:el,onMouseEnter:eu,onTouchStart:ec,legacyBehavior:ed=!1,...ef}=a;w=et,ed&&("string"==typeof w||"number"==typeof w)&&(w=k.default.createElement("a",null,w));let ep=k.default.useContext($.RouterContext),eh=k.default.useContext(W.AppRouterContext),em=null!=ep?ep:eh,eg=!ep,ev=!1!==er,ey=null===er?J.PrefetchKind.AUTO:J.PrefetchKind.FULL,{href:eb,as:e_}=k.default.useMemo(()=>{if(!ep){let a=formatStringOrUrl(B);return{href:a,as:ee?formatStringOrUrl(ee):a}}let[a,x]=(0,F.resolveHref)(ep,B,!0);return{href:a,as:ee?(0,F.resolveHref)(ep,ee):x||a}},[ep,B,ee]),ex=k.default.useRef(eb),ew=k.default.useRef(e_);ed&&(A=k.default.Children.only(w));let eS=ed?A&&"object"==typeof A&&A.ref:x,[eE,eA,eC]=(0,Z.useIntersection)({rootMargin:"200px"}),eT=k.default.useCallback(a=>{(ew.current!==e_||ex.current!==eb)&&(eC(),ew.current=e_,ex.current=eb),eE(a),eS&&("function"==typeof eS?eS(a):"object"==typeof eS&&(eS.current=a))},[e_,eS,eb,eC,eE]);k.default.useEffect(()=>{em&&eA&&ev&&prefetch(em,eb,e_,{locale:es},{kind:ey},eg)},[e_,eb,eA,es,ev,null==ep?void 0:ep.locale,em,eg,ey]);let eO={ref:eT,onClick(a){ed||"function"!=typeof el||el(a),ed&&A.props&&"function"==typeof A.props.onClick&&A.props.onClick(a),em&&!a.defaultPrevented&&function(a,x,w,A,F,B,z,G,$,W){let{nodeName:Z}=a.currentTarget,K="A"===Z.toUpperCase();if(K&&(function(a){let x=a.currentTarget,w=x.getAttribute("target");return w&&"_self"!==w||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.nativeEvent&&2===a.nativeEvent.which}(a)||!$&&!(0,V.isLocalURL)(w)))return;a.preventDefault();let navigate=()=>{let a=null==z||z;"beforePopState"in x?x[F?"replace":"push"](w,A,{shallow:B,locale:G,scroll:a}):x[F?"replace":"push"](A||w,{forceOptimisticNavigation:!W,scroll:a})};$?k.default.startTransition(navigate):navigate()}(a,em,eb,e_,ei,eo,ea,es,eg,ev)},onMouseEnter(a){ed||"function"!=typeof eu||eu(a),ed&&A.props&&"function"==typeof A.props.onMouseEnter&&A.props.onMouseEnter(a),em&&(ev||!eg)&&prefetch(em,eb,e_,{locale:es,priority:!0,bypassPrefetchedCheck:!0},{kind:ey},eg)},onTouchStart(a){ed||"function"!=typeof ec||ec(a),ed&&A.props&&"function"==typeof A.props.onTouchStart&&A.props.onTouchStart(a),em&&(ev||!eg)&&prefetch(em,eb,e_,{locale:es,priority:!0,bypassPrefetchedCheck:!0},{kind:ey},eg)}};if((0,z.isAbsoluteUrl)(e_))eO.href=e_;else if(!ed||en||"a"===A.type&&!("href"in A.props)){let a=void 0!==es?es:null==ep?void 0:ep.locale,x=(null==ep?void 0:ep.isLocaleDomain)&&(0,K.getDomainLocale)(e_,a,null==ep?void 0:ep.locales,null==ep?void 0:ep.domainLocales);eO.href=x||(0,Y.addBasePath)((0,G.addLocale)(e_,a,null==ep?void 0:ep.defaultLocale))}return ed?k.default.cloneElement(A,eO):k.default.createElement("a",{...ef,...eO},w)}),er=et;("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esModule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},40920:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let A=w(67294),k=w(63436),F="function"==typeof IntersectionObserver,V=new Map,B=[];function useIntersection(a){let{rootRef:x,rootMargin:w,disabled:z}=a,G=z||!F,[$,W]=(0,A.useState)(!1),Z=(0,A.useRef)(null),K=(0,A.useCallback)(a=>{Z.current=a},[]);(0,A.useEffect)(()=>{if(F){if(G||$)return;let a=Z.current;if(a&&a.tagName){let A=function(a,x,w){let{id:A,observer:k,elements:F}=function(a){let x;let w={root:a.root||null,margin:a.rootMargin||""},A=B.find(a=>a.root===w.root&&a.margin===w.margin);if(A&&(x=V.get(A)))return x;let k=new Map,F=new IntersectionObserver(a=>{a.forEach(a=>{let x=k.get(a.target),w=a.isIntersecting||a.intersectionRatio>0;x&&w&&x(w)})},a);return x={id:w,observer:F,elements:k},B.push(w),V.set(w,x),x}(w);return F.set(a,x),k.observe(a),function(){if(F.delete(a),k.unobserve(a),0===F.size){k.disconnect(),V.delete(A);let a=B.findIndex(a=>a.root===A.root&&a.margin===A.margin);a>-1&&B.splice(a,1)}}}(a,a=>a&&W(a),{root:null==x?void 0:x.current,rootMargin:w});return A}}else if(!$){let a=(0,k.requestIdleCallback)(()=>W(!0));return()=>(0,k.cancelIdleCallback)(a)}},[G,w,x,$,Z.current]);let Y=(0,A.useCallback)(()=>{W(!1)},[]);return[K,$,Y]}("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esMo
24dule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},1342:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),function(a,x){for(var w in x)Object.defineProperty(a,w,{enumerable:!0,get:x[w]})}(x,{noSSR:function(){return noSSR},default:function(){return dynamic}});let A=w(38754),k=(w(67294),A._(w(24304)));function convertModule(a){return{default:(null==a?void 0:a.default)||a}}function noSSR(a,x){return delete x.webpack,delete x.modules,a(x)}function dynamic(a,x){let w=k.default,A={loading:a=>{let{error:x,isLoading:w,pastDelay:A}=a;return null}};a instanceof Promise?A.loader=()=>a:"function"==typeof a?A.loader=a:"object"==typeof a&&(A={...A,...a}),A={...A,...x};let F=A.loader;return(A.loadableGenerated&&(A={...A,...A.loadableGenerated},delete A.loadableGenerated),"boolean"!=typeof A.ssr||A.ssr)?w({...A,loader:()=>null!=F?F().then(convertModule):Promise.resolve(convertModule(()=>null))}):(delete A.webpack,delete A.modules,noSSR(w,A))}("function"==typeof x.default||"object"==typeof x.default&&null!==x.default)&&void 0===x.default.__esModule&&(Object.defineProperty(x.default,"__esModule",{value:!0}),Object.assign(x.default,x),a.exports=x.default)},53914:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),w(81905);let A=w(32393),k=w(85494);function isStaticRequire(a){return void 0!==a.default}function getInt(a){return void 0===a?a:"number"==typeof a?Number.isFinite(a)?a:NaN:"string"==typeof a&&/^[0-9]+$/.test(a)?parseInt(a,10):NaN}function getImgProps(a,x){var w;let F,V,B,{src:z,sizes:G,unoptimized:$=!1,priority:W=!1,loading:Z,className:K,quality:Y,width:J,height:ee,fill:et=!1,style:er,onLoad:en,onLoadingComplete:ei,placeholder:eo="empty",blurDataURL:ea,fetchPriority:es,layout:el,objectFit:eu,objectPosition:ec,lazyBoundary:ed,lazyRoot:ef,...ep}=a,{imgConf:eh,showAltText:em,blurComplete:eg,defaultLoader:ev}=x,ey=eh||k.imageConfigDefault;if("allSizes"in ey)F=ey;else{let a=[...ey.deviceSizes,...ey.imageSizes].sort((a,x)=>a-x),x=ey.deviceSizes.sort((a,x)=>a-x);F={...ey,allSizes:a,deviceSizes:x}}let eb=ep.loader||ev;delete ep.loader,delete ep.srcSet;let e_="__next_img_default"in eb;if(e_){if("custom"===F.loader)throw Error('Image with src "'+z+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let a=eb;eb=x=>{let{config:w,...A}=x;return a(A)}}if(el){"fill"===el&&(et=!0);let a={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[el];a&&(er={...er,...a});let x={responsive:"100vw",fill:"100vw"}[el];x&&!G&&(G=x)}let ex="",ew=getInt(J),eS=getInt(ee);if("object"==typeof(w=z)&&(isStaticRequire(w)||void 0!==w.src)){let a=isStaticRequire(z)?z.default:z;if(!a.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(a));if(!a.height||!a.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(a));if(V=a.blurWidth,B=a.blurHeight,ea=ea||a.blurDataURL,ex=a.src,!et){if(ew||eS){if(ew&&!eS){let x=ew/a.width;eS=Math.round(a.height*x)}else if(!ew&&eS){let x=eS/a.height;ew=Math.round(a.width*x)}}else ew=a.width,eS=a.height}}let eE=!W&&("lazy"===Z||void 0===Z);(!(z="string"==typeof z?z:ex)||z.startsWith("data:")||z.startsWith("blob:"))&&($=!0,eE=!1),F.unoptimized&&($=!0),e_&&z.endsWith(".svg")&&!F.dangerouslyAllowSVG&&($=!0),W&&(es="high");let eA=getInt(Y),eC=Object.assign(et?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eu,objectPosition:ec}:{},em?{}:{color:"transparent"},er),eT=eg||"empty"===eo?null:"blur"===eo?'url("data:image/svg+xml;charset=utf-8,'+(0,A.getImageBlurSvg)({widthInt:ew,heightInt:eS,blurWidth:V,blurHeight:B,blurDataURL:ea||"",objectFit:eC.objectFit})+'")':'url("'+eo+'")',eO=eT?{backgroundSize:eC.objectFit||"cover",backgroundPosition:eC.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eT}:{}
24,eP=function(a){let{config:x,src:w,unoptimized:A,width:k,quality:F,sizes:V,loader:B}=a;if(A)return{src:w,srcSet:void 0,sizes:void 0};let{widths:z,kind:G}=function(a,x,w){let{deviceSizes:A,allSizes:k}=a;if(w){let a=/(^|\s)(1?\d?\d)vw/g,x=[];for(let A;A=a.exec(w);A)x.push(parseInt(A[2]));if(x.length){let a=.01*Math.min(...x);return{widths:k.filter(x=>x>=A[0]*a),kind:"w"}}return{widths:k,kind:"w"}}if("number"!=typeof x)return{widths:A,kind:"w"};let F=[...new Set([x,2*x].map(a=>k.find(x=>x>=a)||k[k.length-1]))];return{widths:F,kind:"x"}}(x,k,V),$=z.length-1;return{sizes:V||"w"!==G?V:"100vw",srcSet:z.map((a,A)=>B({config:x,src:w,quality:F,width:a})+" "+("w"===G?a:A+1)+G).join(", "),src:B({config:x,src:w,quality:F,width:z[$]})}}({config:F,src:z,unoptimized:$,width:ew,quality:eA,sizes:G,loader:eb}),eR={...ep,loading:eE?"lazy":Z,fetchPriority:es,width:ew,height:eS,decoding:"async",className:K,style:{...eC,...eO},sizes:eP.sizes,srcSet:eP.srcSet,src:eP.src},ek={unoptimized:$,priority:W,placeholder:eo,fill:et};return{props:eR,meta:ek}}},32393:function(a,x){"use strict";function getImageBlurSvg(a){let{widthInt:x,heightInt:w,blurWidth:A,blurHeight:k,blurDataURL:F,objectFit:V}=a,B=A?40*A:x,z=k?40*k:w,G=B&&z?"viewBox='0 0 "+B+" "+z+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+G+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(G?"none":"contain"===V?"xMidYMid":"cover"===V?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+F+"'/%3E%3C/svg%3E"}Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},645:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),function(a,x){for(var w in x)Object.defineProperty(a,w,{enumerable:!0,get:x[w]})}(x,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return z}});let A=w(38754),k=w(53914),F=w(81905),V=w(23271),B=A._(w(74545)),unstable_getImgProps=a=>{(0,F.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:x}=(0,k.getImgProps)(a,{defaultLoader:B.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[a,w]of Object.entries(x))void 0===w&&delete x[a];return{props:x}},z=V.Image},74545:function(a,x){"use strict";function defaultLoader(a){let{config:x,src:w,width:A,quality:k}=a;return x.path+"?url="+encodeURIComponent(w)+"&w="+A+"&q="+(k||75)}Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"default",{enumerable:!0,get:function(){return w}}),defaultLoader.__next_img_default=!0;let w=defaultLoader},30043:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"LoadableContext",{enumerable:!0,get:function(){return F}});let A=w(38754),k=A._(w(67294)),F=k.default.createContext(null)},24304:function(a,x,w){"use strict";/**
25@copyright (c) 2017-present James Kyle <[email protected]>
26 MIT License
27 Permission is hereby granted, free of charge, to any person obtaining
28a copy of this software and associated documentation files (the
29"Software"), to deal in the Software without restriction, including
30without limitation the rights to use, copy, modify, merge, publish,
31distribute, sublicense, and/or sell copies of the Software, and to
32permit persons to whom the Software is furnished to do so, subject to
33the following conditions:
34 The above copyright notice and this permission notice shall be
35included in all copies or substantial portions of the Software.
36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
40LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
41OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
42WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
43*/Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"default",{enumerable:!0,get:function(){return G}});let A=w(38754),k=A._(w(67294)),F=w(30043),V=[],B=[],z=!1;function load(a){let x=a(),w={loading:!0,loaded:null,error:null};return w.promise=x.then(a=>(w.loading=!1,w.loaded=a,a)).catch(a=>{throw w.loading=!1,w.error=a,a}),w}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:a,_opts:x}=this;a.loading&&("number"==typeof x.delay&&(0===x.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},x.delay)),"number"==typeof x.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},x.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(a=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(a){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...a},this._callbacks.forEach(a=>a())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(a){return this._callbacks.add(a),()=>{this._callbacks.delete(a)}}constructor(a,x){this._loadFn=a,this._opts=x,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(a){return function(a,x){let w=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},x),A=null;
43function init(){if(!A){let x=new LoadableSubscription(a,w);A={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return A.promise()}if(!z){let a=w.webpack?w.webpack():w.modules;a&&B.push(x=>{for(let w of a)if(x.includes(w))return init()})}function LoadableComponent(a,x){!function(){init();let a=k.default.useContext(F.LoadableContext);a&&Array.isArray(w.modules)&&w.modules.forEach(x=>{a(x)})}();let V=k.default.useSyncExternalStore(A.subscribe,A.getCurrentValue,A.getCurrentValue);return k.default.useImperativeHandle(x,()=>({retry:A.retry}),[]),k.default.useMemo(()=>{var x;return V.loading||V.error?k.default.createElement(w.loading,{isLoading:V.loading,pastDelay:V.pastDelay,timedOut:V.timedOut,error:V.error,retry:A.retry}):V.loaded?k.default.createElement((x=V.loaded)&&x.default?x.default:x,a):null},[a,V])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",k.default.forwardRef(LoadableComponent)}(load,a)}function flushInitializers(a,x){let w=[];for(;a.length;){let A=a.pop();w.push(A(x))}return Promise.all(w).then(()=>{if(a.length)return flushInitializers(a,x)})}Loadable.preloadAll=()=>new Promise((a,x)=>{flushInitializers(V).then(a,x)}),Loadable.preloadReady=a=>(void 0===a&&(a=[]),new Promise(x=>{let res=()=>(z=!0,x());flushInitializers(B,a).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let G=Loadable},51382:function(a,x,w){"use strict";var A=w(85893),k=w(2638),F=w(28692),V=w(29620),B=w(8152),z=w(97514);x.Z=a=>{let{title:x="404-heading",subTitle:w="404-sub-heading",image:G=k.Z,link:$=z.Z.home,linkTitle:W="404-back-home"}=a;return(0,A.jsx)("div",{className:"grid min-h-screen place-items-center p-4 sm:p-8",children:(0,A.jsxs)("div",{className:"text-center",children:[x?(0,A.jsx)("p",{className:"2xl: mb-4 text-sm uppercase tracking-widest text-body-dark sm:mb-5",children:(0,F.P4)(x)}):"",w?(0,A.jsx)("h1",{className:"mb-5 text-2xl font-bold leading-normal text-bolder sm:text-3xl",children:(0,F.P4)(w)}):"",G?(0,A.jsx)("div",{className:"mx-auto mb-11 w-96",children:(0,A.jsx)(V.E,{src:G,alt:(0,F.P4)(x),unoptimized:!0})}):"",$?(0,A.jsx)(B.Z,{href:$,className:"inline-flex items-center text-bolder underline hover:text-body-dark hover:no-underline focus:outline-none sm:text-base",children:(0,F.P4)(W)}):""]})})}},41402:function(a,x,w){"use strict";w.r(x),w.d(x,{default:function(){return ForgotUserPassword},initialState:function(){return et},updateFormState:function(){return updateFormState}});var A,k=w(85893),F=w(16310),V=w(28692),B=w(66644),z=w(50122),G=w(60802),$=w(67294),W=function(){var a={name:"__LSM__",middleWares:[],persist:"action"},x={};try{a.storageType="undefined"!=typeof sessionStorage?window.sessionStorage:void 0}catch(a){}return{updateStore:function(w){try{x=a.storageType&&JSON.parse(a.storageType.getItem(a.name)||"")||w}catch(a){x=w}},saveStore:function(){a.storageType&&a.storageType.setItem(a.name,JSON.stringify(x))},get state(){return x},set state(e){x=e},get options(){return a},set options(t){a=t}}}();function r(){return(r=Object.assign||function(a){for(var x=1;x<arguments.length;x++){var w=arguments[x];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(a[A]=w[A])}return a}).apply(this,arguments)}$.createContext(void 0);var Z=w(75814),K=w(51237),Y=w(88767),J=w(57659);let ee=F.Ry().shape({email:F.Z_().email("error-email-format").required("error-email-required")});function EmailForm(a){let{email:x,onSubmit:w,isLoading:A,serverError:F}=a;return(0,k.jsx)(B.l,{onSubmit:w,useFormProps:{defaultValues:{email:x}},validationSchema:ee,serverError:F?{email:F}:void 0,className:"text-left",children:a=>{var x,w;let{register:F,formState:{errors:B}}=a;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{className:"mt-4 mb-7 text-center text-sm leading-relaxed text-body sm:mt-5 sm:mb-10 md:text-base",children:"Enviaremos um link para o endere\xe7o digitado"}),(0,k.jsx)(z.Z,{label:"E-mail",type:"email",...F("email"),error:(0,V.P4)(null!==(w=null===(x=B.email)||void 0===x?void 0:x.message)&&void 0!==w?w:"")}),(0,k.jsx)("p",{className:"lg:ml-2 text-[12px] mt-2 text-gray-500 leading-relaxed",children:"N\xe3o se esque\xe7a de olhar a caixa de spam ou lixo eletr\xf4nico."}),(0,k.jsx)(G.Z,{type:"submit",className:"!mt-5 w-full text-sm tracking-[0.2px] lg:!mt-6",loading:A,disabled:A,children:"Enviar"})]})}})}function SimpleConfirmationView(){return(0,k.jsx)("div",{className:"text-center mt-4",children:(0,k.jsxs)("div",{className:"mb-6 rounded-lg p-6",children:[(0,k.jsx)("svg",{className:"mx-auto h-16 w-16 text-color-primary mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,k.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),(0,k.jsx)("p",{className:"text-sm text-gray-700 leading-relaxed mb-3",children:"Se o e-mail informado estiver ca
43dastrado, voc\xea receber\xe1 um link para redefinir sua senha em instantes."}),(0,k.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:"Verifique sua caixa de entrada e tamb\xe9m a pasta de spam."})]})})}function SimpleForgotPasswordForm(){let{openModal:a}=(0,Z.SO)(),[x,w]=(0,$.useState)("Email"),[A,F]=(0,$.useState)(""),[V,B]=(0,$.useState)(null),{mutate:z,isLoading:W}=(0,Y.useMutation)(J.Z.users.forgotPasswordWithEmail,{onSuccess:()=>{B(null),w("ConfirmedSent")},onError:a=>{var x,w,A;let k=null!==(A=null==a?void 0:null===(w=a.response)||void 0===w?void 0:null===(x=w.data)||void 0===x?void 0:x.message)&&void 0!==A?A:"N\xe3o foi poss\xedvel enviar. Tente novamente.";B(k)}});return(0,k.jsxs)("div",{children:["Email"===x&&(0,k.jsx)(EmailForm,{email:A,onSubmit:a=>{let{email:x}=a;F(x),B(null),z({email:x})},isLoading:W,serverError:V}),"ConfirmedSent"===x&&(0,k.jsx)(SimpleConfirmationView,{}),(0,k.jsx)(G.Z,{type:"button",className:"!mt-5 w-full text-sm tracking-[0.2px] !border !border-color-primary !text-color-primary bg-white hover:bg-color-primary hover:!text-white",onClick:()=>a("LOGIN_VIEW"),children:"Voltar"})]})}let et={step:"Cpf",cpf:"",email:"",password:"",token:"",contactOptions:null,selectedContactType:null};A&&(W.options=r({},W.options,A)),W.updateStore(et);let updateFormState=(a,x)=>({...a,...x});function ForgotUserPassword(){return(0,k.jsxs)("div",{className:"flex h-full min-h-screen w-screen flex-col justify-center bg-light py-6 px-5 sm:p-8 md:h-auto md:min-h-0 md:max-w-[480px] md:rounded-xl",children:[(0,k.jsx)("div",{className:"flex justify-center",children:(0,k.jsx)(K.Z,{})}),(0,k.jsx)(SimpleForgotPasswordForm,{})]})}},34526:function(a,x,w){"use strict";w.r(x),w.d(x,{default:function(){return LoginView}});var A=w(85893),k=w(28692),F=w(51237),V=w(21587),B=w(50122),z=w(40720),G=w(60802),$=w(16310);let GoogleIcon=a=>(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19.986",height:"20.39",viewBox:"0 0 19.986 20.39",...a,children:(0,A.jsx)("path",{"data-name":"Path 2",d:"M10.195 20.39c5.883 0 9.791-4.13 9.791-9.958a8.711 8.711 0 00-.166-1.7H10.2v3.5h5.787a5.522 5.522 0 01-5.787 4.402 6.441 6.441 0 010-12.88 5.727 5.727 0 014.062 1.571l2.764-2.655A9.749 9.749 0 0010.195 0a10.195 10.195 0 000 20.39z",fill:"currentColor"})});var W=w(75814),Z=w(66644),K=w(91341),Y=w(67294);let AnonymousIcon=a=>{let{...x}=a;return(0,A.jsx)("svg",{height:"24",viewBox:"0 0 32 32",width:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...x,children:(0,A.jsx)("path",{d:"M23 26.896c2.664 0 4.832-2.167 4.832-4.831S25.664 17.233 23 17.233c-1.828 0-3.403 1.032-4.224 2.533h-5.553c-.82-1.501-2.395-2.533-4.223-2.533-2.664 0-4.832 2.168-4.832 4.832s2.168 4.83 4.832 4.83 4.831-2.166 4.831-4.83c0-.103-.024-.198-.03-.3h4.397c-.006.102-.03.197-.03.3A4.837 4.837 0 0 0 23 26.895zm0-7.663c1.561 0 2.832 1.27 2.832 2.832s-1.27 2.83-2.832 2.83-2.832-1.269-2.832-2.83 1.27-2.832 2.832-2.832zM9 24.896c-1.562 0-2.832-1.27-2.832-2.831S7.438 19.233 9 19.233s2.831 1.27 2.831 2.832-1.27 2.83-2.831 2.83zM30.274 14.784a52.039 52.039 0 0 0-4.757-1.114L23.98 5.911c-.06-.29-.24-.54-.49-.68a1.03 1.03 0 0 0-.84-.06 18.806 18.806 0 0 1-13.3 0 .967.967 0 0 0-.83.06c-.26.14-.44.39-.5.68l-1.537 7.76a52.048 52.048 0 0 0-4.758 1.113 1 1 0 0 0-.687 1.237c.152.53.706.833 1.237.687a49.898 49.898 0 0 1 27.45 0 1.001 1.001 0 0 0 .549-1.924zM8.587 13.32 9.76 7.431a20.76 20.76 0 0 0 12.48 0l1.17 5.888a51.879 51.879 0 0 0-14.823 0z"})})};var J=w(11163),ee=w(97514),et=w(43516),er=w(73935),en=w(55678),ei=w(77834),eo=w(98143),ea=w(5114),es=w(41509);let el=$.Ry().shape({email:$.Z_().email("error-email-format").required("error-email-required"),password:$.Z_().required("error-password-required")});function LoginForm(){let a=(0,J.useRouter)(),{data:x}=(0,W.X9)(),{shouldShowCheckout:w=!1}=x||{},{openModal:F,closeModal:$}=(0,W.SO)(),{settings:eu}=(0,et.rV)(),ec=a.pathname.includes("checkout"),{mutate:ed,isLoading:ef,serverError:ep,setServerError:eh}=(0,K.f0)(),{mutate:em,isLoading:eg,serverError:ev,setServerError:ey}=(0,K.Xl)(),{mutate:eb,isLoading:e_,serverError:ex,setServerError:ew}=(0,K.Wj)(),{isNativeApp:eS,isReady:eE}=(0,ei.j)(),eA=null==eu?void 0:eu.guestCheckout,eC=ep||ev||ex,eT=eS&&/iPad|iPhone|iPod|Macintosh|Mac OS/i.test(window.navigator.userAgent),eO=(0,Y.useCallback)(a=>{var x;em({idToken:a.idToken,userEmail:null===(x=a.user)||void 0===x?void 0:x.email})},[em]),eP=(0,Y.useCallback)(a=>{var x;eb({idToken:a.idToken,userEmail:null===(x=a.user)||void 0===x?void 0:x.email})},[eb]);(0,Y.useEffect)(()=>
43{if(!eE||!eS)return;window.QualiAppNative&&(window.QualiAppNative.onGoogleSignInSuccess=eO,window.QualiAppNative.onGoogleSignInCancelled=()=>{en.toast.info("Login cancelado")});let handleGoogleSignInSuccess=a=>{eO(a.detail)},handleGoogleSignInCancelled=()=>{en.toast.info("Login cancelado")},handleGoogleSignInError=a=>{ey("error-something-wrong"),en.toast.error("Erro ao fazer login com Google")};return window.addEventListener("googleSignInSuccess",handleGoogleSignInSuccess),window.addEventListener("googleSignInCancelled",handleGoogleSignInCancelled),window.addEventListener("googleSignInError",handleGoogleSignInError),()=>{window.removeEventListener("googleSignInSuccess",handleGoogleSignInSuccess),window.removeEventListener("googleSignInCancelled",handleGoogleSignInCancelled),window.removeEventListener("googleSignInError",handleGoogleSignInError),window.QualiAppNative&&(window.QualiAppNative.onGoogleSignInSuccess=void 0,window.QualiAppNative.onGoogleSignInCancelled=void 0)}},[eE,eS,eO,ey]),(0,Y.useEffect)(()=>{if(!eE||!eS)return;window.QualiAppNative&&(window.QualiAppNative.onAppleSignInSuccess=eP,window.QualiAppNative.onAppleSignInCancelled=()=>{en.toast.info("Login cancelado")});let handleAppleSignInSuccess=a=>{eP(a.detail)},handleAppleSignInCancelled=()=>{en.toast.info("Login cancelado")},handleAppleSignInError=a=>{ew("error-something-wrong"),en.toast.error("Erro ao fazer login com Apple")};return window.addEventListener("appleSignInSuccess",handleAppleSignInSuccess),window.addEventListener("appleSignInCancelled",handleAppleSignInCancelled),window.addEventListener("appleSignInError",handleAppleSignInError),()=>{window.removeEventListener("appleSignInSuccess",handleAppleSignInSuccess),window.removeEventListener("appleSignInCancelled",handleAppleSignInCancelled),window.removeEventListener("appleSignInError",handleAppleSignInError),window.QualiAppNative&&(window.QualiAppNative.onAppleSignInSuccess=void 0,window.QualiAppNative.onAppleSignInCancelled=void 0)}},[eE,eS,eP,ew]);let handleGoogleLogin=async()=>{var a;if(eS)try{(null===(a=window.ReactNativeWebView)||void 0===a?void 0:a.postMessage)&&window.ReactNativeWebView.postMessage(JSON.stringify({type:"GOOGLE_SIGN_IN"}))}catch(a){ey("error-something-wrong")}else{let a="https://api.qualidoc.com.br".replace(/\/$/,"");if(!a){eh("error-something-wrong");return}window.location.assign("".concat(a,"/auth/google"))}},handleAppleLogin=async()=>{var a;if(eS)try{(null===(a=window.ReactNativeWebView)||void 0===a?void 0:a.postMessage)&&window.ReactNativeWebView.postMessage(JSON.stringify({type:"APPLE_SIGN_IN"}))}catch(a){ew("error-something-wrong")}else{let a="https://api.qualidoc.com.br".replace(/\/$/,"");if(!a){eh("error-something-wrong");return}window.location.assign("".concat(a,"/auth/apple"))}};return(0,A.jsxs)(A.Fragment,{children:["error-needs-password-setup"===eC?(0,A.jsxs)("div",{className:"relative mb-6 rounded border border-accent/30 bg-accent/5 p-4 pr-10 text-sm",role:"alert",children:[(0,A.jsx)("button",{type:"button","aria-label":"Close",title:"Close alert",onClick:()=>{eh(null),ey(null),ew(null)},className:"absolute top-3 right-2 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-accent transition-colors duration-200 hover:bg-gray-300 hover:bg-opacity-25 focus:bg-gray-300 focus:bg-opacity-25 focus:outline-0",children:(0,A.jsx)("span",{"aria-hidden":"true",children:(0,A.jsx)(ea.Tw,{className:"h-5 w-5"})})}),(0,A.jsx)("p",{className:"font-semibold text-body-dark",children:(0,k.P4)("error-needs-password-setup")}),(0,A.jsx)("p",{className:"mt-1 text-body",children:(0,k.P4)("error-needs-password-setup-detail")}),(0,A.jsx)("button",{type:"button",onClick:()=>F("FORGOT_VIEW"),className:"mt-3 text-accent underline hover:no-underline",children:(0,k.P4)("resend-setup-email")})]}):(0,A.jsx)(V.Z,{variant:"error",message:eC&&(0,k.P4)(eC),className:"mb-6",closeable:!0,onClose:()=>{eh(null),ey(null),ew(null)}}),(0,A.jsx)(Z.l,{onSubmit:function(a){let{email:x,password:w}=a;ed({email:x,password:w})},validationSchema:el,useFormProps:{defaultValues:{email:"",password:""}},children:a=>{var x,w;let{register:V,formState:{errors:$}}=a;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(B.Z,{label:"E-mail",...V("email"),type:"email",variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,k.P4)(null===(x=$.email)||void 0===x?void 0:x.message)}),(0,A.jsx)(z.Z,{label:"Senha",...V("password"),error:(0,k.P4)(null===(w=$.password)||void 0===w?void 0:w.message),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",forgotPageRouteOnClick:()=>F("FORGOT_VIEW")}),(0,A.jsxs)("div",{className:"mt-8 flex gap-2",children:[(0,A.jsx)(G.Z,{type:"button",className:"w-full h-11 sm:h-12 text-accent",variant:"secondary",onClick:()=>F("REGISTER",{restrictMaxHeight:!0}),children:"Cadastrar"}),(0,A.jsx)(G.Z,{type:"submit",className:"w-full h-11 sm:h-12",loading:ef,disabled:ef,children:"Entrar"})]})]})}}),(0,A.jsxs)("div",{className:"relative flex flex-col items-center justify-center mt-8 mb-6 text-sm text-heading sm:mt-11 sm:mb-8",children:[(0,A.jsx)("hr",{className:"w-full"}),(0,A.jsx)("span",{className:"absolute -top-2.5 bg-light px-2 ltr:left-2/4 ltr:-ml-4 rtl:right-2/4 rtl:-mr-4",children:"OU"})]}),(0,A.jsxs)("div",{className:"grid grid-cols-1 gap-4 mt-2",children:[(0,A.jsxs)(G.Z,{className:"!bg-social-google !text-light hover:!bg-social-google-hover",disabled:ef||eg,loading:eg,onClick:handleGoogleLogin,children:[(0,A.jsx)(GoogleIcon,{className:"w-4 h-4 ltr:mr-3 rtl:ml-3"}
43),"Entrar com Google"]}),eT&&(0,A.jsxs)(G.Z,{className:"!bg-black !text-white hover:!bg-gray-900",disabled:ef||e_,loading:e_,onClick:handleAppleLogin,children:[(0,A.jsx)(eo.q,{className:"w-4 h-4 ltr:mr-3 rtl:ml-3"}),"Entrar com Apple"]}),ec&&eA&&w&&(0,A.jsxs)(G.Z,{className:"h-11 w-full !bg-pink-700 !text-light hover:!bg-pink-800 sm:h-12",disabled:ef,onClick:()=>{(0,es.r)(),(0,er.flushSync)(()=>{$()}),a.replace(ee.Z.checkoutGuest)},children:[(0,A.jsx)(AnonymousIcon,{className:"h-6 text-light ltr:mr-2 rtl:ml-2"}),"Finalizar Compra como Convidado"]})]})]})}function LoginView(){return(0,A.jsxs)("div",{className:"flex h-full min-h-screen w-screen flex-col justify-center bg-light py-6 px-5 sm:p-8 md:h-auto md:min-h-0 md:max-w-[480px] md:rounded-xl",children:[(0,A.jsx)("div",{className:"flex justify-center",children:(0,A.jsx)(F.Z,{})}),(0,A.jsx)("p",{className:"mt-4 mb-8 text-sm text-center text-body sm:mt-5 sm:mb-10 md:text-base",children:"Fa\xe7a login com seu e-mail e senha"}),(0,A.jsx)(LoginForm,{})]})}},56570:function(a,x,w){"use strict";w.d(x,{Z:function(){return Categories}});var A=w(85893),k=w(45957),F=w(5152),V=w.n(F),B=w(85671);let z=V()(()=>Promise.all([w.e(4489),w.e(8985)]).then(w.bind(w,18985)),{loadableGenerated:{webpack:()=>[18985]}}),G=V()(()=>Promise.all([w.e(8596),w.e(577)]).then(w.bind(w,56543)),{loadableGenerated:{webpack:()=>[56543]}}),$=V()(()=>Promise.all([w.e(4489),w.e(1585)]).then(w.bind(w,31585)),{loadableGenerated:{webpack:()=>[31585]}}),W=V()(()=>Promise.all([w.e(5658),w.e(3962),w.e(2939)]).then(w.bind(w,2939)),{loadableGenerated:{webpack:()=>[2939]}}),Z=V()(()=>Promise.all([w.e(8596),w.e(2129)]).then(w.bind(w,78071)),{loadableGenerated:{webpack:()=>[78071]}}),K={classic:z,modern:$,standard:G,minimal:W,compact:Z,default:z};function Categories(a){let{layout:x,className:w="",variables:F,title:V,full:z,hidden:G=!0}=a,{categories:$,isLoading:W,error:Z}=(0,B.L)(F);if(Z)return(0,A.jsx)(k.default,{message:Z.message});let Y=K[x];return(0,A.jsx)(Y,{notFound:!$.length,full:z,hidden:G,categories:$,loading:W,className:w,variables:F,title:V})}},98143:function(a,x,w){"use strict";w.d(x,{q:function(){return AppleIcon}});var A=w(85893);let AppleIcon=a=>(0,A.jsx)("svg",{viewBox:"0 0 384 512",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,A.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.7-18.8-26.9-47.2-41.7-84.7-44.3-35.5-2.5-74.3 20.7-88.3 20.7-15 0-49.4-19.8-76.4-19.8C63.7 141 0 184.8 0 266.4c0 25.7 4.7 52.3 14.2 79.9 12.7 36.7 58.5 126.7 106.4 125.1 25.1-.6 43-17.9 75.8-17.9 32.7 0 49.4 17.9 76.4 17.3 48.6-.8 90.1-82.4 102.6-119.2-65.3-30.7-56.7-90-56.7-82.9zM252.4 80.6C280 40.8 277.8 6.3 276.7 0c-24.7 1.4-53.4 16.9-69.9 38.6-15.2 19.8-27.4 47.3-24.1 75 26 .2 49.8-14.7 69.7-33z"})})},5114:function(a,x,w){"use strict";w.d(x,{N0:function(){return CloseIconMinified},Q8:function(){return CloseIconNew},Tw:function(){return CloseIcon}});var A=w(85893);let CloseIcon=a=>(0,A.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",...a,children:[(0,A.jsx)("rect",{x:"0.5",y:"0.5",width:"29",height:"29",rx:"14.5",fill:"white"}),(0,A.jsx)("path",{d:"M18 12L12 18",stroke:"#5B5B5F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,A.jsx)("path",{d:"M12 12L18 18",stroke:"#5B5B5F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,A.jsx)("rect",{x:"0.5",y:"0.5",width:"29",height:"29",rx:"14.5",stroke:"#E5E5E5"})]}),CloseIconNew=a=>(0,A.jsx)("svg",{stroke:"currentColor",fill:"none",strokeWidth:0,viewBox:"0 0 15 15",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,A.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.854 2.854a.5.5 0 00-.708-.708L7.5 6.793 2.854 2.146a.5.5 0 10-.708.708L6.793 7.5l-4.647 4.646a.5.5 0 00.708.708L7.5 8.207l4.646 4.647a.5.5 0 00.708-.708L8.207 7.5l4.647-4.646z",fill:"currentColor",stroke:"none"})}),CloseIconMinified=a=>(0,A.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",...a,children:[(0,A.jsx)("circle",{cx:"11.0215",cy:"10.4997",r:"7.40956",transform:"rotate(45 11.0215 10.4997)",stroke:"#5B5B5F"}),(0,A.jsx)("path",{d:"M13.4961 8.0249L8.54635 12.9746",stroke:"#5B5B5F",strokeLinecap:"round"}),(0,A.jsx)("path",{d:"M13.4961 12.9746L8.54635 8.02486",stroke:"#5B5B5F",strokeLinecap:"round"})]})},33367:function(a,x,w){"use strict";w.d(x,{b:function(){return Eye}});var A=w(85893);let Eye=a=>(0,A.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...a,children:[(0,A.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,A.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})},53649:function(a,x,w){"use strict";w.d(x,{L:function(){return k},R:function(){return F}});var A=w(15103);let k={step:"PhoneNumber",isContactExist:!1,otpId:null,phoneNumber:""},F=(0,A.cn)(k)},21587:function(a,x,w){"use strict";var A=w(85893),k=w(93967),F=w.n(k),V=w(5114),B=w(98388);let z={info:"bg-blue-100 text-blue-600",warning:"bg-yellow-100 text-yellow-600",error:"bg-red-100 text-red-500",success:"bg-green-100 text-accent",infoOutline:"border border-blue-200 text-blue-600",warningOutline:"border border-yellow-200 text-yellow-600",errorOutline:"border border-red-200 text-red-600",successOutline:"border border-green-200 text-green-600"};x.Z=a=>{let{message:x,closeable:w=!1,variant:k="info",className:G,onClose:$,children:W,childClassName:Z}=a;return x?(0,A.jsxs)("div",{className:(0,B.m6)(F()("relative flex items-center justify-between rounded py-4 px-5 shadow-sm",z[k],G)),role:"alert",children:[(0,A.jsxs)("div",{className:(0,B.m6)(F()(Z)),children:[(0,A.jsx)("p",{className:"text-sm",children:x}),W]}),w&&(0,A.jsx)("button",{type:"button","data-dismiss":"alert","aria-label":"Close",onClick:$,title:"Close alert",className:"absolute top-1/2 -mt-3 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-red-500 transition-colors duration-200 hover:bg-gray-300 hover:bg-opacity-25 focus:bg-gray-300 focus:bg-opacity-25 focus:outline-0 ltr:right-2 ltr:-mr-0.5 rtl:left-2 rtl:-ml-0.5",children:(0,A.jsx)("span",{"aria-hidden":"true",children:(0,A.jsx)(V.Tw,{className:"h-5 w-5"})})})]}):null}},60802:function(a,x,w){"use strict";var A=w(85893),k=w(93967),F=w.n(k),V=w(67294);let B={root:"inline-flex items-center justify-center font-semibold leading-none rounded-3xl outline-none transition duration-300 ease-in-out focus:outline-0 focus:shadow focus:ring-1 focus:ring-accent-700",
43normal:"bg-accent text-light border border-transparent hover:bg-accent-hover",secondary:"bg-white text-accent border border-accent",outline:"border border-border-400 bg-transparent text-body hover:text-light hover:bg-accent hover:border-accent",loading:"h-4 w-4 ltr:ml-2 rtl:mr-2 rounded-full border-2 border-transparent border-t-2 animate-spin",disabled:"border bg-gray-300 hover:bg-gray-300 text-body cursor-not-allowed",disabledOutline:"border border-border-base text-muted cursor-not-allowed",small:"px-3 py-0 h-9 h-10",extraSmall:"px-2 py-0 h-6 text-xs",medium:"px-5 py-0 h-12",big:"px-10 py-0 h-14"},z=V.forwardRef((a,x)=>{let{className:w,variant:k="normal",size:V="medium",children:z,active:G,loading:$=!1,disabled:W=!1,type:Z="button",...K}=a,Y=F()(B.root,{[B.normal]:!W&&"normal"===k,[B.secondary]:!W&&"secondary"===k,[B.disabled]:W&&"normal"===k,[B.outline]:!W&&"outline"===k,[B.disabledOutline]:W&&"outline"===k,[B.small]:"small"===V,[B.extraSmall]:"extraSmall"===V,[B.medium]:"medium"===V,[B.big]:"big"===V},w);return(0,A.jsxs)("button",{type:Z,"aria-pressed":G,"data-variant":k,ref:x,className:Y,disabled:W,...K,children:[z,$&&(0,A.jsx)("span",{className:B.loading,style:{borderTopColor:"outline"===k?"currentColor":"#ffffff"}})]})});z.displayName="Button",x.Z=z},56980:function(a,x,w){"use strict";var A=w(85893),k=w(93967),F=w.n(k);x.Z=a=>{let{className:x,...w}=a;return(0,A.jsx)("div",{className:F()("p-5 md:p-8 bg-light shadow rounded",x),...w})}},68098:function(a,x,w){"use strict";w.d(x,{Z:function(){return drawer_wrapper}});var A=w(85893),k=w(48583),F=w(35143),V=w(5114),B=w(67294),z=w(23279),G=w.n(z),$=w(42625),W=w(84041),drawer_wrapper=a=>{let{children:x}=a,[w,z]=(0,k.KO)(F.P),Z=(0,B.useRef)(null),{height:K}=function(a){let[x,w]=(0,B.useState)(0),[A,k]=(0,B.useState)(0),[F,V]=(0,B.useState)(!0),z=(0,B.useRef)(0),$=G()(()=>{cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{if(a.current){let{width:x,height:A}=a.current.getBoundingClientRect();w(x),k(A),V(!1)}})},50);return(0,B.useEffect)(()=>{$();let handleResize=()=>{V(!0),$()};return window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize),cancelAnimationFrame(z.current)}},[a]),{width:x,height:A,isLoadingSize:F}}(Z),{closeDrawer:Y}=(0,$.y)({atom:W.L});return(0,A.jsxs)("div",{className:"flex h-full flex-col",children:[(0,A.jsx)("div",{ref:Z,className:"fixed top-0 z-20 flex w-full max-w-md items-center justify-end bg-transparent p-4 px-4 md:px-6",children:(0,A.jsxs)("button",{type:"button",onClick:()=>{Y(),z({display:!1,view:""})},className:"flex items-center justify-center rounded-full bg-gray-200 text-body transition-all duration-200 hover:bg-accent hover:text-light focus:bg-accent focus:text-light focus:outline-0",children:[(0,A.jsx)("span",{className:"sr-only",children:"fechar"}),(0,A.jsx)(V.Tw,{className:"h-7 w-7"})]})}),(0,A.jsx)("div",{style:{paddingTop:K},children:x})]})}},11282:function(a,x,w){"use strict";w.r(x),w.d(x,{default:function(){return ManagedDrawer}});var A=w(85893),k=w(68098),F=w(56570);function MobileCategoryMenu(a){let{variables:x}=a;return(0,A.jsx)(k.Z,{children:(0,A.jsx)("div",{className:"h-full max-h-full",children:(0,A.jsx)(F.Z,{layout:"classic",className:"!block",variables:x})})})}var V=w(35143),B=w(48583),z=w(5152),G=w.n(z),$=w(51526),W=w(6813),Z=w(93967),K=w.n(Z),Y=w(59451),J=w(44107),ee=w(11163),et=w(18272),er=w(98388),en=w(42545),drawer=a=>{let{children:x,open:w=!1,variant:k="right",useBlurBackdrop:F,onClose:V,className:B}=a,{locale:z}=(0,ee.useRouter)(),G=(0,et.Mg)(z);return"rtl"===G&&"right"===k?k="left":"rtl"===G&&"left"===k&&(k="right"),(0,A.jsx)($.M,{children:w&&(0,A.jsx)(en.V,{static:!0,as:W.E.div,open:w,onClose:V,children:(0,A.jsx)("div",{dir:G,children:(0,A.jsx)(W.E.aside,{initial:"from",animate:"to",exit:"from",variants:"right"===k?function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3;return{from:{right:"-100%",transition:{type:"easeInOut",duration:a}},to:{right:0,transition:{type:"easeInOut",duration:a}}}}():function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3;return{from:{left:"-100%",transition:{type:"easeInOut",duration:a}},to:{left:0,transition:{type:"easeInOut",duration:a}}}}(),className:"fixed inset-0 z-50 h-full overflow-hidden",children:(0,A.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,A.jsx)(W.E.div,{initial:"from",animate:"to",exit:"from",variants:(0,J.I)(.35),onClick:V,className:K()("absolute inset-0 bg-dark bg-opacity-40",F&&"use-blur-backdrop")}),(0,A.jsx)("div",{className:K()("absolute inset-y-0 flex max-w-full outline-none","right"===k?"ltr:right-0 rtl:right-0":"ltr:left-0 rtl:left-0"),children:(0,A.jsx)("div",{className:(0,er.m6)(K()("h-full w-screen max-w-md",B)),children:(0,A.jsx)("div",{className:"drawer flex h-full flex-col bg-light text-base shadow-xl",children:(0,A.jsx)(Y.Z,{className:"h-full w-full",children:x})})})})]})},"drawer")})})})},ei=w(42625),eo=w(84041);let ea=G()(()=>Promise.all([w.e(393),w.e(8350)]).then(w.bind(w,33701)),{loadableGenerated:{webpack:()=>[33701]}}),es=G()(()=>Promise.all([w.e(1227),w.e(6149)]).then(w.bind(w,76149)),{loadableGenerated:{webpack:()=>[76149]}}),el=G()(()=>w.e(2117).then(w.bind(w,72117)),{loadableGenerated:{webpack:()=>[72117]}}),eu=G()(()=>Promise.all([w.e(5658),w.e(7158),w.e(4437),w.e(9510),w.e(363)]).then(w.bind(w,49510)),{loadableGenerated:{webpack:()=>[49510]}}),ec=G()(()=>w.e(8900).then(w.bind(w,8900)),{loadableGenerated:{webpack:()=>[8900]}});function ManagedDrawer(a){let{atom:x=V.P}=a,[{display:w,view:k,data:F},z]=(0,B.KO)(x),{closeDrawer:G}=(0,ei.y)({atom:eo.L});return(0,A.jsxs)(drawer,{open:w,onClose:()=>{G(),z({display:!1,view:""})},variant:["FILTER_VIEW","MAIN_MENU_VIEW","FILTER_LAYOUT_TWO_VIEW","SEARCH_FILTER"].includes(k)?"left":"right",className:["MAINTENANCE_MORE_INFO"].includes(k)?"max-w-sm md:max-w-xl":"",children:["cart"===k&&(0,A.jsx)(ea,{}),"FILTER_VIEW"===k&&(0,A.jsx)(MobileCategoryMenu,{variables:F}),"MAIN_MENU_VIEW"===k&&(0,A.jsx)(el,{variables:null==F?void 0:F.variables}),"AUTH_MENU_VIEW"===k&&(0,A.jsx)(es,{}),"SEARCH_FILTER"===k&&(0,A.jsx)(eu,{variables:null==F?void 0:F.variables,childCategoryNames:null==F?void 0:F.childCategoryNames}),"MAINTENANCE_MORE_INFO"===k&&(0,A.jsx)(ec,{variables:F})]})}},42625:function(a,x,w){"use strict";w.d(x,{y:function(){return useDrawer}});var A=w(35143),k=w(48583);let useDrawer=a=>{let{atom:x=A.P}=a,[w,F]=(0,k.KO)(x);return{openDrawer:(a,x)=>
43{F({display:!0,view:a,data:x})},closeDrawer:()=>{F({display:!1,view:""})}}}},45957:function(a,x,w){"use strict";w.r(x),w.d(x,{FieldError:function(){return FieldError}});var A=w(85893),k=w(28692);let FieldError=a=>{let{message:x}=a;return(0,A.jsx)("p",{className:"mt-2 text-xs text-red-500 ltr:text-left rtl:text-right",children:(0,k.P4)(x)})};x.default=a=>{let{message:x}=a;return(0,A.jsx)("p",{className:"max-w-sm p-5 mx-auto mt-16 text-lg font-semibold text-center bg-red-400 rounded min-w-min text-light",children:(0,k.P4)(x)})}},66644:function(a,x,w){"use strict";w.d(x,{l:function(){return Form}});var A=w(85893),k=w(87536),F=w(47533),V=w(67294),B=w(55678);let Form=a=>{var x;let{onSubmit:w,children:z,useFormProps:G,validationSchema:$,serverError:W,resetValues:Z,...K}=a,Y=(0,k.cI)({...!!$&&{resolver:(0,F.X)($)},...!!G&&G}),J=(0,V.useRef)(!1);return(0,V.useEffect)(()=>{W&&Object.entries(W).forEach(a=>{let[x,w]=a;Array.isArray(w)?w.forEach(a=>{Y.setError(x,{type:"manual",message:a})}):B.toast.error(w)})},[W,Y]),(0,V.useEffect)(()=>{var a;(null==Y?void 0:null===(a=Y.formState)||void 0===a?void 0:a.isSubmitSuccessful)&&Z&&Y.reset(Z)},[null==Y?void 0:null===(x=Y.formState)||void 0===x?void 0:x.isSubmitSuccessful]),(0,V.useEffect)(()=>{let a=Y.formState.errors,x=Y.formState.isSubmitted;if(x&&Object.keys(a).length>0){J.current||(B.toast.error("Por favor, corrija os erros no formul\xe1rio antes de continuar."),J.current=!0);let x=Object.keys(a)[0],w=document.getElementById(x);if(w||(w=document.querySelector('[name="'.concat(x,'"]'))),!w){let a=document.querySelector('[data-error="'.concat(x,'"]'));a&&(w=a.closest("input, textarea, select, .phone-input-container"))}w&&(w.scrollIntoView({behavior:"smooth",block:"center"}),(w instanceof HTMLInputElement||w instanceof HTMLTextAreaElement||w instanceof HTMLSelectElement)&&setTimeout(()=>null==w?void 0:w.focus(),300))}else 0===Object.keys(a).length&&(J.current=!1)},[Y.formState.errors,Y.formState.isSubmitted]),(0,A.jsx)(k.RV,{...Y,children:(0,A.jsx)("form",{onSubmit:Y.handleSubmit(w),noValidate:!0,...K,children:z(Y)})})}},50122:function(a,x,w){"use strict";w.d(x,{Z:function(){return W}});var A=w(85893),k=w(93967),F=w.n(k),V=w(67294),B=w(98388);let Loader=a=>{let{size:x="auto"}=a;return(0,A.jsxs)("div",{role:"status",className:"flex items-center justify-center",children:[(0,A.jsxs)("svg",{"aria-hidden":"true",className:"w-".concat(x," h-").concat(x," text-slate-500 animate-spin dark:text-slate-400 fill-slate-300"),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,A.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,A.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,A.jsx)("span",{className:"sr-only",children:"Loading..."})]})},z={normal:"bg-gray-100 border border-border-base focus:shadow focus:bg-light focus:border-accent",solid:"bg-gray-100 border border-border-100 focus:bg-light focus:border-accent",complementary:"bg-gray-100 border border-border-100 border-accent border-r-transparent rounded-tr-none rounded-br-none focus:bg-light focus:border-accent",outline:"border border-border-base focus:border-accent",line:"ltr:pl-0 rtl:pr-0 border-b border-border-base rounded-none focus:border-accent"},G={small:"text-sm h-[24px]",medium:"h-12",md:"h-9",big:"h-14"},$=V.forwardRef((a,x)=>{let{className:w,label:k,name:$,error:W,adornment:Z,variant:K="normal",dimension:Y="medium",shadow:J=!1,disabled:ee=!1,type:et="text",inputClassName:er,labelClassName:en="",required:ei=!1,isLoading:eo,...ea}=a,[es,el]=(0,V.useState)(!1);return(0,A.jsxs)("div",{className:(0,B.m6)(F()("relative",w)),children:[k&&(0,A.jsxs)("label",{htmlFor:$,className:(0,B.m6)("ml-4 mb-3 block text-sm font-semibold leading-none",es&&!W?"!text-accent":"",W?"text-red-500":"text-gray-200",en),children:[k," ",ei&&"*"]}),(0,A.jsxs)("div",{className:"relative flex items-center",children:[Z&&(0,A.jsx)("span",{className:"absolute left-4 text-gray-500",children:Z}),(0,A.jsx)("input",{id:$,name:$,type:et,ref:x,className:(0,B.m6)(F()("flex w-full appearance-none items-center rounded-3xl px-4 text-sm text-gray-200 transition duration-300 ease-in-out focus:outline-0 focus:ring-0",J&&"focus:shadow",z[K],G[Y],ee&&"cursor-not-allowed bg-gray-100",Z?"pl-12":"",er)),required:ei,disabled:ee,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false","aria-invalid":W?"true":"false",onFocus:()=>el(!0),...ea}),eo&&(0,A.jsx)("div",{className:"absolute w-4 h-4 right-3 top-1/2 transform -translate-y-1/2",children:(0,A.jsx)(Loader,{size:"sm"})})]}),W&&(0,A.jsx)("p",{className:"mt-2 text-xs text-red-500",children:W})]})});$.displayName="Input";var W=$},40720:function(a,x,w){"use strict";w.d(x,{Z:function(){return W}});var A=w(85893),k=w(67294),F=w(93967),V=w.n(F),B=w(8152),z=w(33367);let EyeOff=a=>(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...a,children:(0,A.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}),G={normal:"bg-gray-100 border border-border-base focus:shadow focus:bg-light focus:border-accent",solid:"bg-gray-100 border border-border-100 focus:bg-light focus:border-accent",outline:"border border-border-base focus:border-accent"},$=k.forwardRef((a,x)=>{let{className:w,inputClassName:F,label:$,name:W,error:Z,children:K,variant:Y="normal",shadow:J=!1,type:ee="text",forgotPageLink:et="",forgotPageRouteOnClick:er,required:en=!1,...ei}=a,[eo,ea]=(0,k.useState)(!1);return(0,A.jsxs)("div",{className:w,children:[(0,A.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,A.jsxs)("label",{htmlFor:W,className:"text-sm ml-4 font-semibold text-accent",children:[$," ",en&&"*"]}),et&&(0,A.jsx)(B.Z,{href:et,className:"text-xs text-accent transition-colors duration-200 hover:text-accent-hover focus:font-semibold focus:text-accent-700 focus:outline-0",children:"Esqueci a senha"}),er&&(0,A.jsx)("button",{onClick:er,type:"button",className:"text-xs text-accent transition-colors duration-200 hover:text-accent-hover focus:font-semibold focus:text-accent-700 focus:outline-0",children:"Esqueci a senha"})]}),(0,A.jsxs)("div",{className:"relative",children:[(0,A.jsx)("input",{id:W,name:W,type:eo?"text":"password",ref:x,className:V()("w-full appearance-none rounded-3xl py-3 text-sm text-heading transition duration-300 ease-in-out focus:outline-0 focus:ring-0 ltr:pl-4 ltr:pr-11 rtl:pr-4 rtl:pl-11",J&&"focus:shadow",G[Y],F),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:en,...ei}),(0,A.jsx)("button",{type:"button","aria-label":eo?"Ocultar senha":"Mostrar senha",className:"absolute top-5 -mt-2 cursor-pointer text-body ltr:right-4 rtl:left-4",onClick:()=>ea(a=>!a),children:eo?(0,A.jsx)(EyeOff,{className:"h-6 w-6"}):(0,A.jsx)(z.b,{className:"h-6 w-6"})})]}),Z&&(0,A.jsx)("p",{className:"my-2 text-xs text-red-500",children:Z})]})});$.displayName="SecureTextInput";var W=$},29620:function(a,x,w){"use strict";w.d(x,{E:function(){return Image}});var A=w(85893),k=w(25675),F=w.n(k);let Image=a=>(0,A.jsx)(F(),{unoptimized:!0,...a})},8152:function(a,x,w){"use strict";var A=w(85893),k=w(93967),F=w.n(k),V=w(41664),B=w.n(V);x.Z=a=>{let{children:x,variant:w,title:k,target:V,className:z,...G}=a;return(0,A.jsx)(B(),{...G,className:F()({"focus:ring-accent-700' inline-flex h-9 flex-shrink-0 items-center justify-center rounded border border-transparent bg-accent px-3 py-0 text-sm font-semibold leading-none text-light outline-none transition duration-300 ease-in-out hover:bg-accent-hover focus:shadow focus:outline-none focus:ring-1":"button"===w},z),target:V,title:k,children:x})}},51237:function(a,x,w){"use strict";var A=w(85893),k=w(29620),F=w(93967),V=w.n(F),B=w(8152),z=w(68879),G=w(43516);x.Z=a=>{let{className:x,useImg:w=!1,width:F=250,height:$=70,useWhite:W=!1,...Z}=a,{settings:{logo:K,siteTitle:Y}}=(0,G.rV)(),J=w&&(null==K?void 0:K.original)?K.original:W?z.j:z.nM;return(0,A.jsx)(B.Z,{href:"/",className:V()("inline-flex",x),...Z,children:(0,A.jsx)("span",{className:"relative overflow-hidden",children:(0,A.jsx)(k.E,{unoptimized:!0,src:J,alt:Y||"Qualidoc Logo",width:F,height:$,sizes:"(max-width: 768px) 100vw",loading:"eager",className:"object-contain"})})})}},41509:function(a,x,w){"use strict";w.d(x,{P:function(){return consumeSkipNextModalHistoryCleanup},r:function(){return skipNextModalHistoryCleanup}});let A="__skipModalHistoryCleanupOnce";function skipNextModalHistoryCleanup(){let a=window;a&&(a[A]=!0)}function consumeSkipNextModalHistoryCleanup(){let a=window;if(!a)return!1;let x=!!a[A];return x&&(a[A]=!1),x}},75814:function(a,x,w){"use strict";w.d(x,{DY:function(){return ModalProvider},SO:function(){return useModalAction},X9:function(){return useModalState}});var A=w(85893),k=w(67294),F=w(31955),V=w(18272),B=w(99124);let z={view:void 0,isOpen:!1,data:null};function modalReducer(a,x){switch(x.type){case"open":if("APP_UPDATE_REQUIRED"===a.view&&"APP_UPDATE_REQUIRED"!==x.view)return a;return{...a,view:x.view,data:x.payload,isOpen:!0};
43case"close":if("APP_UPDATE_REQUIRED"===a.view)return a;return{...a,view:void 0,data:null,isOpen:!1};default:throw Error("Unknown Modal Action!")}}let G=k.createContext(z);G.displayName="ModalStateContext";let $=k.createContext(void 0);$.displayName="ModalActionContext";let ModalProvider=a=>{let{children:x}=a,[w,F]=k.useReducer(modalReducer,z);return(0,k.useEffect)(()=>(window.__modalActions={closeModal:()=>F({type:"close"}),openModal:(a,x)=>F({type:"open",view:a,payload:x})},()=>{delete window.__modalActions}),[]),(0,A.jsx)(G.Provider,{value:w,children:(0,A.jsx)($.Provider,{value:F,children:x})})};function useModalState(){let a=k.useContext(G);if(void 0===a)throw Error("useModalState must be used within a ModalProvider");return a}function useModalAction(){let a=k.useContext($),x=k.useContext(G);if(void 0===a)throw Error("useModalAction must be used within a ModalProvider");return{openModal(w,A){if("APP_UPDATE_REQUIRED"!==x.view||"APP_UPDATE_REQUIRED"===w){if(w&&"CONSENT_POPUP_MODAL"!==w&&"APP_UPDATE_REQUIRED"!==w){let a=F.Z.get(V.lb);a||(0,B.dJ)()}a({type:"open",view:w,payload:A})}},closeModal(){"APP_UPDATE_REQUIRED"!==x.view&&(a({type:"close"}),sessionStorage.setItem("redirect_after_login",""))}}}},33892:function(a,x,w){"use strict";w.d(x,{Z:function(){return Modal}});var A=w(85893),k=w(5114),F=w(11355),V=w(42545),B=w(67294),z=w(11163),G=w(18272),$=w(93967),W=w.n($),Z=w(98388),K=w(41509);let Y="__modalOverlay";function Modal(a){let{open:x,onClose:w,showBackDrop:$=!0,children:J,closeButtonClass:ee,className:et,options:er={},preventClose:en=!1}=a,ei=(0,B.useRef)(null),eo=(0,z.useRouter)(),ea=(0,B.useRef)(eo);ea.current=eo;let{locale:es}=eo,el=(0,G.Mg)(es),eu=(0,B.useRef)(w);eu.current=w;let ec=(0,B.useRef)(x);ec.current=x;let ed=(0,B.useRef)(x),ef=(0,B.useRef)(!1),ep=(0,B.useRef)(!1),{restrictMaxHeight:eh=!1}=er;(0,B.useEffect)(()=>{if(!x)return;if(en)return ea.current.beforePopState(()=>!1),()=>{ea.current.beforePopState(()=>!0)};window.history.pushState({[Y]:!0},"",window.location.href),ep.current=!0;let handlePopState=()=>{if(ef.current){ef.current=!1;return}ec.current&&(ep.current=!1,eu.current())};return window.addEventListener("popstate",handlePopState),()=>{window.removeEventListener("popstate",handlePopState)}},[x,en]),(0,B.useEffect)(()=>{let a=ed.current;if(ed.current=x,x||!a||!ep.current)return;let w=(0,K.P)(),A=window.history.state,k=A&&"object"==typeof A&&!0===A[Y];!w&&k&&(ef.current=!0,window.history.back()),ep.current=!1},[x]);let em=(0,B.useCallback)(()=>{en||(ep.current&&(ef.current=!0,window.history.back(),ep.current=!1),w())},[en,w]);return(0,A.jsx)(F.u,{appear:!0,show:x,as:B.Fragment,children:(0,A.jsx)(V.V,{as:"div",className:(0,Z.m6)(W()("fixed inset-0 z-50 overflow-y-auto",et)),initialFocus:ei,open:x,onClose:en?()=>{}:em,dir:el,children:(0,A.jsxs)("div",{className:"min-h-full text-center md:p-5",children:[$?(0,A.jsx)(F.u.Child,{as:B.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,A.jsx)("div",{className:"fixed inset-0 h-full w-full bg-gray-900 bg-opacity-50"})}):"",(0,A.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"​"}),(0,A.jsx)(F.u.Child,{as:B.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,A.jsxs)(V.V.Panel,{className:"min-w-content relative inline-block max-w-full align-middle transition-all ltr:text-left rtl:text-right",children:[(0,A.jsxs)("button",{type:"button",onClick:em,"aria-label":"Close panel",ref:ei,className:(0,Z.m6)(W()("absolute top-4 z-[60] inline-block outline-none focus:outline-0 ltr:right-4 rtl:left-4 lg:hidden",ee)),children:[(0,A.jsx)("span",{className:"sr-only",children:"fechar"}),(0,A.jsx)(k.Tw,{})]}),(0,A.jsx)("div",{className:W()("overflow-y-auto min-h-[100vh] md:min-h-full md:overflow-y-visible md:no-scrollbar",{"max-h-[100vh]":!eh}),children:J})]})})]})})})}},59451:function(a,x,w){"use strict";let A,k;w.d(x,{Z:function(){return scrollbar}});var F=w(85893),V=w(93967),B=w.n(V),z=w(67294);/*!
44 * OverlayScrollbars
45 * Version: 2.10.0
46 *
47 * Copyright (c) Rene Haas | KingSora.
48 * https://github.com/KingSora
49 *
50 * Released under the MIT license.
51 */let createCache=(a,x)=>{let w;let{o:A,i:k,u:F}=a,V=A,cacheUpdateContextual=(a,x)=>{let A=V,B=x||(k?!k(A,a):A!==a);return(B||F)&&(V=a,w=A),[V,B,w]};return[x?a=>cacheUpdateContextual(x(V,w),a):cacheUpdateContextual,a=>[V,!!a,w]]},G="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&!!window.document,$=G?window:{},W=Math.max,Z=Math.min,K=Math.round,Y=Math.abs,J=Math.sign,ee=$.cancelAnimationFrame,et=$.requestAnimationFrame,er=$.setTimeout,en=$.clearTimeout,getApi=a=>void 0!==$[a]?$[a]:void 0,ei=getApi("MutationObserver"),eo=getApi("IntersectionObserver"),ea=getApi("ResizeObserver"),es=getApi("ScrollTimeline"),isUndefined=a=>void 0===a,isNull=a=>null===a,isNumber=a=>"number"==typeof a,isString=a=>"string"==typeof a,isBoolean=a=>"boolean"==typeof a,isFunction=a=>"function"==typeof a,isArray=a=>Array.isArray(a),isObject=a=>"object"==typeof a&&!isArray(a)&&!isNull(a),isArrayLike=a=>{let x=!!a&&a.length,w=isNumber(x)&&x>-1&&x%1==0;return(!!isArray(a)||!isFunction(a)&&!!w)&&(!(x>0&&isObject(a))||x-1 in a)},isPlainObject=a=>!!a&&a.constructor===Object,isHTMLElement=a=>a instanceof HTMLElement,isElement=a=>a instanceof Element;function each(a,x){if(isArrayLike(a))for(let w=0;w<a.length&&!1!==x(a[w],w,a);w++);else a&&each(Object.keys(a),w=>x(a[w],w,a));return a}let inArray=(a,x)=>a.indexOf(x)>=0,concat=(a,x)=>a.concat(x),push=(a,x,w)=>(!w&&!isString(x)&&isArrayLike(x)?Array.prototype.push.apply(a,x):a.push(x),a),from=a=>Array.from(a||[]),createOrKeepArray=a=>isArray(a)?a:!isString(a)&&isArrayLike(a)?from(a):[a],isEmptyArray=a=>!!a&&!a.length,deduplicateArray=a=>
51from(new Set(a)),runEachAndClear=(a,x,w)=>{each(a,a=>!a||a.apply(void 0,x||[])),w||(a.length=0)},el="paddingTop",eu="paddingRight",ec="paddingLeft",ed="paddingBottom",ef="marginLeft",ep="marginRight",eh="marginBottom",em="overflowX",eg="overflowY",ev="width",ey="height",eb="visible",e_="hidden",ex="scroll",capitalizeFirstLetter=a=>{let x=String(a||"");return x?x[0].toUpperCase()+x.slice(1):""},equal=(a,x,w,A)=>{if(a&&x){let k=!0;return each(w,w=>{let F=A?A(a[w]):a[w],V=A?A(x[w]):x[w];F!==V&&(k=!1)}),k}return!1},equalWH=(a,x)=>equal(a,x,["w","h"]),equalXY=(a,x)=>equal(a,x,["x","y"]),equalTRBL=(a,x)=>equal(a,x,["t","r","b","l"]),noop=()=>{},bind=(a,...x)=>a.bind(0,...x),selfClearTimeout=a=>{let x;let w=a?er:et,A=a?en:ee;return[k=>{A(x),x=w(()=>k(),isFunction(a)?a():a)},()=>A(x)]},debounce=(a,x)=>{let w,A,k,F;let{_:V,v:B,p:z,S:G}=x||{},$=noop,p=function(x){$(),en(w),F=w=A=void 0,$=noop,a.apply(this,x)},mergeParms=a=>G&&A?G(A,a):a,flush=()=>{$!==noop&&p(mergeParms(k)||k)},h=function(){let a=from(arguments),x=isFunction(V)?V():V,G=isNumber(x)&&x>=0;if(G){let V;let G=isFunction(B)?B():B,W=isNumber(G)&&G>=0,Z=x>0?er:et,K=x>0?en:ee,Y=mergeParms(a),J=Y||a,ei=p.bind(0,J);$(),z&&!F?(ei(),F=!0,V=Z(()=>F=void 0,x)):(V=Z(ei,x),W&&!w&&(w=er(flush,G))),$=()=>K(V),A=k=J}else p(a)};return h.m=flush,h},overlayscrollbars_hasOwnProperty=(a,x)=>Object.prototype.hasOwnProperty.call(a,x),keys=a=>a?Object.keys(a):[],assignDeep=(a,x,w,A,k,F,V)=>{let B=[x,w,A,k,F,V];return("object"!=typeof a||isNull(a))&&!isFunction(a)&&(a={}),each(B,x=>{each(x,(w,A)=>{let k=x[A];if(a===k)return!0;let F=isArray(k);if(k&&isPlainObject(k)){let x=a[A],w=x;F&&!isArray(x)?w=[]:F||isPlainObject(x)||(w={}
51),a[A]=assignDeep(w,k)}else a[A]=F?k.slice():k})}),a},removeUndefinedProperties=(a,x)=>each(assignDeep({},a),(a,w,A)=>{void 0===a?delete A[w]:x&&a&&isPlainObject(a)&&(A[w]=removeUndefinedProperties(a,x))}),isEmptyObject=a=>!keys(a).length,capNumber=(a,x,w)=>W(a,Z(x,w)),getDomTokensArray=a=>deduplicateArray((isArray(a)?a:(a||"").split(" ")).filter(a=>a)),getAttr=(a,x)=>a&&a.getAttribute(x),hasAttr=(a,x)=>a&&a.hasAttribute(x),setAttrs=(a,x,w)=>{each(getDomTokensArray(x),x=>{a&&a.setAttribute(x,String(w||""))})},removeAttrs=(a,x)=>{each(getDomTokensArray(x),x=>a&&a.removeAttribute(x))},domTokenListAttr=(a,x)=>{let w=getDomTokensArray(getAttr(a,x)),A=bind(setAttrs,a,x),domTokenListOperation=(a,x)=>{let A=new Set(w);return each(getDomTokensArray(a),a=>{A[x](a)}),from(A).join(" ")};return{O:a=>A(domTokenListOperation(a,"delete")),$:a=>A(domTokenListOperation(a,"add")),C:a=>{let x=getDomTokensArray(a);return x.reduce((a,x)=>a&&w.includes(x),x.length>0)}}},removeAttrClass=(a,x,w)=>(domTokenListAttr(a,x).O(w),bind(addAttrClass,a,x,w)),addAttrClass=(a,x,w)=>(domTokenListAttr(a,x).$(w),bind(removeAttrClass,a,x,w)),addRemoveAttrClass=(a,x,w,A)=>(A?addAttrClass:removeAttrClass)(a,x,w),hasAttrClass=(a,x,w)=>domTokenListAttr(a,x).C(w),createDomTokenListClass=a=>domTokenListAttr(a,"class"),removeClass=(a,x)=>{createDomTokenListClass(a).O(x)},addClass=(a,x)=>(createDomTokenListClass(a).$(x),bind(removeClass,a,x)),find=(a,x)=>{let w=x?isElement(x)&&x:document;return w?from(w.querySelectorAll(a)):[]},findFirst=(a,x)=>{let w=x?isElement(x)&&x:document;return w&&w.querySelector(a)},is=(a,x)=>isElement(a)&&a.matches(x),isBodyElement=a=>is(a,"body"),contents=a=>a?from(a.childNodes):[],overlayscrollbars_parent=a=>a&&a.parentElement,closest=(a,x)=>isElement(a)&&a.closest(x),getFocusedElement=a=>(a||document).activeElement,liesBetween=(a,x,w)=>{let A=closest(a,x),k=a&&findFirst(w,A),F=closest(k,x)===A;return!!A&&!!k&&(A===a||k===a||F&&closest(closest(a,w),x)!==A)},removeElements=a=>{each(createOrKeepArray(a),a=>{let x=overlayscrollbars_parent(a);a&&x&&x.removeChild(a)})},appendChildren=(a,x)=>bind(removeElements,a&&x&&each(createOrKeepArray(x),x=>{x&&a.appendChild(x)})),createDiv=a=>{let x=document.createElement("div");return setAttrs(x,"class",a),x},createDOM=a=>{let x=createDiv();return x.innerHTML=a.trim(),each(contents(x),a=>removeElements(a))},getCSSVal=(a,x)=>a.getPropertyValue(x)||a[x]||"",validFiniteNumber=a=>{let x=a||0;return isFinite(x)?x:0},parseToZeroOrNumber=a=>validFiniteNumber(parseFloat(a||"")),roundCssNumber=a=>Math.round(1e4*a)/1e4,numberToCssPx=a=>`${roundCssNumber(validFiniteNumber(a))}px`;function setStyles(a,x){a&&x&&each(x,(x,w)=>{try{let A=a.style,k=isNull(x)||isBoolean(x)?"":isNumber(x)?numberToCssPx(x):x;0===w.indexOf("--")?A.setProperty(w,k):A[w]=k}catch(a){}})}function getStyles(a,x,w){let A=isString(x),k=A?"":{};if(a){let F=$.getComputedStyle(a,w)||a.style;k=A?getCSSVal(F,x):from(x).reduce((a,x)=>(a[x]=getCSSVal(F,x),a),k)}return k}let topRightBottomLeft=(a,x,w)=>
51{let A=x?`${x}-`:"",k=w?`-${w}`:"",F=`${A}top${k}`,V=`${A}right${k}`,B=`${A}bottom${k}`,z=`${A}left${k}`,G=getStyles(a,[F,V,B,z]);return{t:parseToZeroOrNumber(G[F]),r:parseToZeroOrNumber(G[V]),b:parseToZeroOrNumber(G[B]),l:parseToZeroOrNumber(G[z])}},getTrasformTranslateValue=(a,x)=>`translate${isObject(a)?`(${a.x},${a.y})`:`${x?"X":"Y"}(${a})`}`,elementHasDimensions=a=>!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length),ew={w:0,h:0},getElmWidthHeightProperty=(a,x)=>x?{w:x[`${a}Width`],h:x[`${a}Height`]}:ew,getWindowSize=a=>getElmWidthHeightProperty("inner",a||$),eS=bind(getElmWidthHeightProperty,"offset"),eE=bind(getElmWidthHeightProperty,"client"),eA=bind(getElmWidthHeightProperty,"scroll"),getFractionalSize=a=>{let x=parseFloat(getStyles(a,ev))||0,w=parseFloat(getStyles(a,ey))||0;return{w:x-K(x),h:w-K(w)}},getBoundingClientRect=a=>a.getBoundingClientRect(),hasDimensions=a=>!!a&&elementHasDimensions(a),domRectHasDimensions=a=>!!(a&&(a[ey]||a[ev])),domRectAppeared=(a,x)=>{let w=domRectHasDimensions(a),A=domRectHasDimensions(x);return!A&&w},removeEventListener=(a,x,w,A)=>{each(getDomTokensArray(x),x=>{a&&a.removeEventListener(x,w,A)})},addEventListener=(a,x,w,A)=>{var k;let F=null==(k=A&&A.H)||k,V=A&&A.I||!1,B=A&&A.A||!1,z={passive:F,capture:V};return bind(runEachAndClear,getDomTokensArray(x).map(x=>{let A=B?k=>{removeEventListener(a,x,A,V),w&&w(k)}:w;return a&&a.addEventListener(x,A,z),bind(removeEventListener,a,x,A,V)}))},stopPropagation=a=>a.stopPropagation(),preventDefault=a=>a.preventDefault(),stopAndPrevent=a=>stopPropagation(a)||preventDefault(a),scrollElementTo=(a,x)=>{let{x:w,y:A}=isNumber(x)?{x:x,y:x}:x||{};isNumber(w)&&(a.scrollLeft=w),isNumber(A)&&(a.scrollTop=A)},getElementScroll=a=>({x:a.scrollLeft,y:a.scrollTop}),getZeroScrollCoordinates=()=>({D:{x:0,y:0},M:{x:0,y:0}}),sanitizeScrollCoordinates=(a,x)=>{let{D:w,M:A}=a,{w:k,h:F}=x,sanitizeAxis=(a,x,w)=>{let A=J(a)*w,k=J(x)*w;if(A===k){let w=Y(a),F=Y(x);k=w>F?0:k,A=w<F?0:A}return[(A=A===k?0:A)+0,k+0]},[V,B]=sanitizeAxis(w.x,A.x,k),[z,G]=sanitizeAxis(w.y,A.y,F);return{D:{x:V,y:z},M:{x:B,y:G}}},isDefaultDirectionScrollCoordinates=({D:a,M:x})=>{var w,A,k,F;return{x:(w=a.x,A=x.x,0===w&&w<=A),y:(k=a.y,F=x.y,0===k&&k<=F)}},getScrollCoordinatesPercent=({D:a,M:x},w)=>{let getAxis=(a,x,w)=>capNumber(0,1,(a-w)/(a-x)||0);return{x:getAxis(a.x,x.x,w.x),y:getAxis(a.y,x.y,w.y)}},focusElement=a=>{a&&a.focus&&a.focus({preventScroll:!0})},manageListener=(a,x)=>{each(createOrKeepArray(x),a)},createEventListenerHub=a=>{let x=new Map,removeEvent=(a,w)=>{if(a){let A=x.get(a);manageListener(a=>{A&&A[a?"delete":"clear"](a)},w)}else x.forEach(a=>{a.clear()}),x.clear()},addEvent=(a,w)=>{if(isString(a)){let A=x.get(a)||new Set;return x.set(a,A),manageListener(a=>{isFunction(a)&&A.add(a)},w),bind(removeEvent,a,w)}isBoolean(w)&&w&&removeEvent();let A=keys(a),k=[];return each(A,x=>{let w=a[x];w&&push(k,addEvent(x,w))}),bind(runEachAndClear,k)};return addEvent(a||{}),[addEvent,removeEvent,(a,w)=>{each(from(x.get(a)),a=>{w&&!isEmptyArray(w)?a.apply(0,w):a()})}]},opsStringify=a=>JSON.stringify(a,(a,x)=>
51{if(isFunction(x))throw 0;return x}),getPropByPath=(a,x)=>a?`${x}`.split(".").reduce((a,x)=>a&&overlayscrollbars_hasOwnProperty(a,x)?a[x]:void 0,a):void 0,eC={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},getOptionsDiff=(a,x)=>{let w={},A=concat(keys(x),keys(a));return each(A,A=>{let k=a[A],F=x[A];if(isObject(k)&&isObject(F))assignDeep(w[A]={},getOptionsDiff(k,F)),isEmptyObject(w[A])&&delete w[A];else if(overlayscrollbars_hasOwnProperty(x,A)&&F!==k){let a=!0;if(isArray(k)||isArray(F))try{opsStringify(k)===opsStringify(F)&&(a=!1)}catch(a){}a&&(w[A]=F)}}),w},createOptionCheck=(a,x,w)=>A=>[getPropByPath(a,A),w||void 0!==getPropByPath(x,A)],eT="data-overlayscrollbars",eO="os-environment",eP=`${eO}-scrollbar-hidden`,eR=`${eT}-initialize`,ek="noClipping",eN=`${eT}-body`,eI=`${eT}-viewport`,eD="measuring",eM="scrollbarHidden",eL=`${eT}-padding`,ej=`${eT}-content`,eF="os-size-observer",eV=`${eF}-appear`,eU=`${eF}-listener`,eB="os-scrollbar",eq=`${eB}-rtl`,ez=`${eB}-horizontal`,eH=`${eB}-vertical`,eG=`${eB}-track`,e$=`${eB}-handle`,eW=`${eB}-visible`,eZ=`${eB}-cornerless`,eK=`${eB}-interaction`,eQ=`${eB}-unusable`,eY=`${eB}-auto-hide`,eJ=`${eY}-hidden`,eX=`${eB}-wheel`,e0=`${eG}-interactive`,e1=`${e$}-interactive`,getNonce=()=>A,createEnvironment=()=>{let getNativeScrollbarSize=(a,x,w)=>{appendChildren(document.body,a),appendChildren(document.body,a);let A=eE(a),k=eS(a),F=getFractionalSize(x);return w&&removeElements(a),{x:k.h-A.h+F.h,y:k.w-A.w+F.w}},a=`.${eO}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${eO} div{width:200%;height:200%;margin:10px 0}.${eP}{scrollbar-width:none!important}.${eP}::-webkit-scrollbar,.${eP}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,x=createDOM(`<div class="${eO}"><div></div><style>${a}</style></div>`),w=x[0],A=w.firstChild,k=w.lastChild,F=getNonce();F&&(k.nonce=F);let[V,,B]=createEventListenerHub(),[z,G]=createCache({o:getNativeScrollbarSize(w,A),i:equalXY},bind(getNativeScrollbarSize,w,A,!0)),[W]=G(),Z=(a=>{let x=!1,w=addClass(a,eP);try{x="none"===getStyles(a,"scrollbar-width")||"none"===getStyles(a,"display","::-webkit-scrollbar")}catch(a){}return w(),x})(w),K={x:0===W.x,y:0===W.y},Y={elements:{host:null,padding:!Z,viewport:a=>Z&&isBodyElement(a)&&a,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},J=assignDeep({},eC),ee=bind(assignDeep,{},J),et=bind(assignDeep,{},Y),er={T:W,k:K,R:Z,V:!!es,L:bind(V,"r"),U:et,P:a=>assignDeep(Y,a)&&et(),N:ee,q:a=>assignDeep(J,a)&&ee(),B:assignDeep({},Y),F:assignDeep({},J)};if(removeAttrs(w,"style"),removeElements(w),addEventListener($,"resize",()=>{B("r",[])}),isFunction($.matchMedia)&&!Z&&(!K.x||!K.y)){let addZoomListener=a=>{let x=$.matchMedia(`(resolution: ${$.devicePixelRatio}dppx)`);addEventListener(x,"change",()=>{a(),addZoomListener(a)},{A:!0})};addZoomListener(()=>{let[a,x]=z();assignDeep(er.T,a),B("r",[x])})}return er},getEnvironment=()=>(k||(k=createEnvironment()),k),resolveInitialization=(a,x)=>isFunction(x)?x.apply(0,a):x,staticInitializationElement=(a,x,w,A)=>{let k=isUndefined(A)?w:A,F=resolveInitialization(a,k);return F||x.apply(0,a)},dynamicInitializationElement=(a,x,w,A)=>{let k=isUndefined(A)?w:A,F=resolveInitialization(a,k);return!!F&&(isHTMLElement(F)?F:x.apply(0,a))},cancelInitialization=(a,x)=>{let{nativeScrollbarsOverlaid:w,body:A}=x||{},{k:k,R:F,U:V}=getEnvironment(),{nativeScrollbarsOverlaid:B,body:z}=V().cancel,G=isUndefined(A)?z:A,$=(k.x||k.y)&&(null!=w?w:B),W=a&&(isNull(G)?!F:G);return!!$||!!W},e2=new WeakMap,addInstance=(a,x)=>{e2.set(a,x)},removeInstance=a=>{e2.delete(a)},getInstance=a=>e2.get(a),createEventContentChange=(a,x,w)=>{let A=!1,k=!!w&&new WeakMap,updateElements=F=>{if(k&&w){let V=w.map(x=>{let[w,A]=x||[],k=A&&w?(F||find)(w,a):[];return[k,A]});each(V,w=>each(w[0],F=>{let V=w[1],B=k.get(F)||[],z=a.contains(F);if(z&&V){let a=addEventListener(F,V,w=>{A?(a(),k.delete(F)):x(w)});k.set(F,push(B,a))}else runEachAndClear(B),k.delete(F)}))}};return updateElements(),[()=>{A=!0},updateElements]},createDOMObserver=(a,x,w,A)=>{let k=!1,{j:F,X:V,Y:B,W:z,J:G,G:$}=A||{},W=debounce(()=>k&&w(!0),{_:33,v:99}),[Z,K]=createEventContentChange(a,W,B),Y=V||[],J=concat(F||[],Y),observerCallback=(k,F)=>{if(!isEmptyArray(F)){let V=G||noop,B=$||noop,W=[],Z=[],J=!1,ee=!1;if(each(F,w=>{let{attributeName:k,target:F,type:G,oldValue:$,addedNodes:K,removedNodes:et}=w,er="attributes"===G,en=a===F,ei=er&&k,eo=ei&&getAttr(F,k||""),ea=isString(eo)?eo:null,es=ei&&$!==ea,el=inArray(Y,k)&&es;if(x&&("childList"===G||!en)){let x=er&&es,G=x&&z&&is(F,z),Z=G?!V(F,k,$,ea):!er||x,Y=Z&&!B(w,
51!!G,a,A);each(K,a=>push(W,a)),each(et,a=>push(W,a)),ee=ee||Y}!x&&en&&es&&!V(F,k,$,ea)&&(push(Z,k),J=J||el)}),K(a=>deduplicateArray(W).reduce((x,w)=>(push(x,find(a,w)),is(w,a)?push(x,w):x),[])),x)return!k&&ee&&w(!1),[!1];if(!isEmptyArray(Z)||J){let a=[deduplicateArray(Z),J];return k||w.apply(0,a),a}}},ee=new ei(bind(observerCallback,!1));return[()=>(ee.observe(a,{attributes:!0,attributeOldValue:!0,attributeFilter:J,subtree:x,childList:x,characterData:x}),k=!0,()=>{k&&(Z(),ee.disconnect(),k=!1)}),()=>{if(k)return W.m(),observerCallback(!0,ee.takeRecords())}]},e5={},e3={},addPlugins=a=>{each(a,a=>each(a,(x,w)=>{e5[w]=a[w]}))},registerPluginModuleInstances=(a,x,w)=>keys(a).map(A=>{let{static:k,instance:F}=a[A],[V,B,z]=w||[],G=w?F:k;if(G){let a=w?G(V,B,x):G(x);return(z||e3)[A]=a}}),getStaticPluginModuleInstance=a=>e3[a],getShowNativeOverlaidScrollbars=(a,x)=>{let{k:w}=x,[A,k]=a("showNativeOverlaidScrollbars");return[A&&w.x&&w.y,k]},overflowIsVisible=a=>0===a.indexOf(eb),createViewportOverflowState=(a,x)=>{let getAxisOverflowStyle=(a,x,w,A)=>{let k=a===eb?e_:a.replace(`${eb}-`,""),F=overflowIsVisible(a),V=overflowIsVisible(w);if(!x&&!A)return e_;if(F&&V)return eb;if(F){let a=x?eb:e_;return x&&A?k:a}let B=V&&A?eb:e_;return x?k:B},w={x:getAxisOverflowStyle(x.x,a.x,x.y,a.y),y:getAxisOverflowStyle(x.y,a.y,x.x,a.x)};return{K:w,Z:{x:w.x===ex,y:w.y===ex}}},e4="__osScrollbarsHidingPlugin",createSizeObserver=(a,x,w)=>{let{dt:A}=w||{},k=getStaticPluginModuleInstance("__osSizeObserverPlugin"),[F]=createCache({o:!1,u:!0});return()=>{let w=[],V=createDOM(`<div class="${eF}"><div class="${eU}"></div></div>`),B=V[0],z=B.firstChild,onSizeChangedCallbackProxy=a=>{let w=a instanceof ResizeObserverEntry,A=!1,k=!1;if(w){let[x,,w]=F(a.contentRect),V=domRectHasDimensions(x);A=!(k=domRectAppeared(x,w))&&!V}else k=!0===a;A||x({ft:!0,dt:k})};if(ea){let a=new ea(a=>onSizeChangedCallbackProxy(a.pop()));a.observe(z),push(w,()=>{a.disconnect()})}else{if(!k)return noop;let[a,x]=k(z,onSizeChangedCallbackProxy,A);push(w,concat([addClass(B,eV),addEventListener(B,"animationstart",a)],x))}return bind(runEachAndClear,push(w,appendChildren(a,B)))}},createTrinsicObserver=(a,x)=>{let w;let isHeightIntrinsic=a=>0===a.h||a.isIntersecting||a.intersectionRatio>0,A=createDiv("os-trinsic-observer"),[k]=createCache({o:!1}),triggerOnTrinsicChangedCallback=(a,w)=>{if(a){let A=k(isHeightIntrinsic(a)),[,F]=A;return F&&!w&&x(A)&&[A]}},intersectionObserverCallback=(a,x)=>triggerOnTrinsicChangedCallback(x.pop(),a);return[()=>{let x=[];if(eo)(w=new eo(bind(intersectionObserverCallback,!1),{root:a})).observe(A),push(x,()=>{w.disconnect()});else{let onSizeChanged=()=>{let a=eS(A);triggerOnTrinsicChangedCallback(a)};push(x,createSizeObserver(A,onSizeChanged)()),onSizeChanged()}return bind(runEachAndClear,push(x,appendChildren(a,A)))},()=>w&&intersectionObserverCallback(!0,w.takeRecords())]},createObserversSetup=(a,x,w,A)=>{let k,F,V,B,z,G;let $=`[${eT}]`,W=`[${eI}]`,Z=["id","class","style","open","wrap","cols","rows"],{vt:K,ht:Y,ot:J,gt:ee,bt:et,nt:er,wt:en,yt:ei,St:eo,Ot:es}=a,getDirectionIsRTL=a=>"rtl"===getStyles(a,"direction"),el={$t:!1,ct:getDirectionIsRTL(K)},eu=getEnvironment(),ec=getStaticPluginModuleInstance(e4),[ed]=createCache({i:equalWH,o:{w:0,h:0}},()=>{let A=ec&&ec.tt(a,x,el,eu,w).ut,k=!(en&&er)&&hasAttrClass(Y,eT,ek),F=!er&&ei("arrange"),V=F&&getElementScroll(ee),B=V&&es(),z=eo(eD,k),G=F&&A&&A()[0],$=eA(J),W=getFractionalSize(J);return G&&G(),scrollElementTo(ee,V),B&&B(),k&&z(),{w:$.w+W.w,h:$.h+W.h}}),ef=debounce(A,{_:()=>k,v:()=>F,S(a,x){let[w]=a,[A]=x;return[concat(keys(w),keys(A)).reduce((a,x)=>(a[x]=w[x]||A[x],a),{})]}}),setDirection=a=>{let x=getDirectionIsRTL(K);assignDeep(a,{Ct:G!==x}),assignDeep(el,{ct:x}),G=x},onTrinsicChanged=(a,x)=>{let[w,k]=a,F={xt:k};return assignDeep(el,{$t:w}),x||A(F),F},onSizeChanged=({ft:a,dt:x})=>{let w=a&&!x,k=!w&&eu.R?ef:A,F={ft:a||x,dt:x};setDirection(F),k(F)},onContentMutation=(a,x)=>{let[,w]=ed(),k={Ht:w};setDirection(k);let F=a?A:ef;return w&&!x&&F(k),k},onHostMutation=(a,x,w)=>{let A={Et:x};return setDirection(A),x&&!w&&ef(A),A},[ep,eh]=et?createTrinsicObserver(Y,onTrinsicChanged):[],em=!er&&createSizeObserver(Y,onSizeChanged,{dt:!0}),[eg,ev]=createDOMObserver(Y,!1,onHostMutation,{X:Z,j:Z}),ey=er&&ea&&new ea(a=>{let x=a[a.length-1].contentRect;onSizeChanged({ft:!0,dt:domRectAppeared(x,z)}),z=x}),eb=debounce(()=>{let[,a]=ed();A({Ht:a})},{_:222,p:!0});return[()=>{ey&&ey.observe(Y);
51let a=em&&em(),x=ep&&ep(),w=eg(),A=eu.L(a=>{a?ef({zt:a}):eb()});return()=>{ey&&ey.disconnect(),a&&a(),x&&x(),B&&B(),w(),A()}},({It:a,At:x,Dt:w})=>{let A={},[z]=a("update.ignoreMutation"),[G,K]=a("update.attributes"),[Y,ee]=a("update.elementEvents"),[en,ei]=a("update.debounce"),eo=x||w,ignoreMutationFromOptions=a=>isFunction(z)&&z(a);if(ee||K){V&&V(),B&&B();let[a,x]=createDOMObserver(et||J,!0,onContentMutation,{j:concat(Z,G||[]),Y:Y,W:$,G:(a,x)=>{let{target:w,attributeName:A}=a,k=!x&&!!A&&!er&&liesBetween(w,$,W);return k||!!closest(w,`.${eB}`)||!!ignoreMutationFromOptions(a)}});B=a(),V=x}if(ei){if(ef.m(),isArray(en)){let a=en[0],x=en[1];k=isNumber(a)&&a,F=isNumber(x)&&x}else k=!!isNumber(en)&&en,F=!1}if(eo){let a=ev(),x=eh&&eh(),w=V&&V();a&&assignDeep(A,onHostMutation(a[0],a[1],eo)),x&&assignDeep(A,onTrinsicChanged(x[0],eo)),w&&assignDeep(A,onContentMutation(w[0],eo))}return setDirection(A),A},el]},createScrollbarsSetupElements=(a,x,w,A)=>{let k="--os-scroll-percent",{U:F}=getEnvironment(),{scrollbars:V}=F(),{slot:B}=V,{vt:z,ht:G,ot:$,Mt:W,gt:Z,wt:K,nt:Y}=x,{scrollbars:J}=W?{}:a,{slot:ee}=J||{},et=[],er=[],en=[],ei=dynamicInitializationElement([z,G,$],()=>Y&&K?z:G,B,ee),initScrollTimeline=a=>{if(es){let x=new es({source:Z,axis:a});return{kt:a=>{let w=a.Tt.animate({clear:["left"],[k]:[0,1]},{timeline:x});return()=>w.cancel()}}}},eo={x:initScrollTimeline("x"),y:initScrollTimeline("y")},getViewportPercent=()=>{let{Rt:a,Vt:x}=w,getAxisValue=(a,x)=>capNumber(0,1,a/(a+x)||0);return{x:getAxisValue(x.x,a.x),y:getAxisValue(x.y,a.y)}},scrollbarStructureAddRemoveClass=(a,x,w)=>{let A=w?addClass:removeClass;each(a,a=>{A(a.Tt,x)})},scrollbarStyle=(a,x)=>{each(a,a=>{let[w,A]=x(a);setStyles(w,A)})},scrollbarsAddRemoveClass=(a,x,w)=>{let A=isBoolean(w),k=!A||w,F=!A||!w;k&&scrollbarStructureAddRemoveClass(er,a,x),F&&scrollbarStructureAddRemoveClass(en,a,x)},generateScrollbarDOM=a=>{let x=a?"x":"y",w=a?ez:eH,k=createDiv(`${eB} ${w}`),F=createDiv(eG),V=createDiv(e$),B={Tt:k,Ut:F,Pt:V},z=eo[x];return push(a?er:en,B),push(et,[appendChildren(k,F),appendChildren(F,V),bind(removeElements,k),z&&z.kt(B),A(B,scrollbarsAddRemoveClass,a)]),B},ea=bind(generateScrollbarDOM,!0),el=bind(generateScrollbarDOM,!1);return ea(),el(),[{Nt:()=>{let a=getViewportPercent(),createScrollbarStyleFn=a=>x=>[x.Tt,{"--os-viewport-percent":roundCssNumber(a)+""}];scrollbarStyle(er,createScrollbarStyleFn(a.x)),scrollbarStyle(en,createScrollbarStyleFn(a.y))},qt:()=>{if(!es){let{Lt:a}=w,x=getScrollCoordinatesPercent(a,getElementScroll(Z)),createScrollbarStyleFn=a=>x=>[x.Tt,{[k]:roundCssNumber(a)+""}];scrollbarStyle(er,createScrollbarStyleFn(x.x)),scrollbarStyle(en,createScrollbarStyleFn(x.y))}},Bt:()=>{let{Lt:a}=w,x=isDefaultDirectionScrollCoordinates(a),createScrollbarStyleFn=a=>x=>[x.Tt,{"--os-scroll-direction":a?"0":"1"}];scrollbarStyle(er,createScrollbarStyleFn(x.x)),scrollbarStyle(en,createScrollbarStyleFn(x.y))},Ft:()=>{if(Y&&!K){let{Rt:a,Lt:x}=w,A=isDefaultDirectionScrollCoordinates(x),k=getScrollCoordinatesPercent(x,getElementScroll(Z)),styleScrollbarPosition=x=>{let{Tt:w}=x,F=overlayscrollbars_parent(w)===$&&w,getTranslateValue=(a,x,w)=>
51{let A=x*a;return numberToCssPx(w?A:-A)};return[F,F&&{transform:getTrasformTranslateValue({x:getTranslateValue(k.x,a.x,A.x),y:getTranslateValue(k.y,a.y,A.y)})}]};scrollbarStyle(er,styleScrollbarPosition),scrollbarStyle(en,styleScrollbarPosition)}},jt:scrollbarsAddRemoveClass,Xt:{Yt:er,Wt:ea,Jt:bind(scrollbarStyle,er)},Gt:{Yt:en,Wt:el,Jt:bind(scrollbarStyle,en)}},()=>(appendChildren(ei,er[0].Tt),appendChildren(ei,en[0].Tt),bind(runEachAndClear,et))]},createScrollbarsSetupEvents=(a,x,w,A)=>(k,F,V)=>{let{ht:B,ot:z,nt:G,gt:$,Kt:W,Ot:Z}=x,{Tt:J,Ut:ee,Pt:et}=k,[en,ei]=selfClearTimeout(333),[eo,ea]=selfClearTimeout(444),scrollOffsetElementScrollBy=a=>{isFunction($.scrollBy)&&$.scrollBy({behavior:"smooth",left:a.x,top:a.y})},es=!0;return bind(runEachAndClear,[addEventListener(et,"pointermove pointerleave",A),addEventListener(J,"pointerenter",()=>{F(eK,!0)}),addEventListener(J,"pointerleave pointercancel",()=>{F(eK,!1)}),!G&&addEventListener(J,"mousedown",()=>{let a=getFocusedElement();(hasAttr(a,eI)||hasAttr(a,eT)||a===document.body)&&er(bind(focusElement,z),25)}),addEventListener(J,"wheel",a=>{let{deltaX:x,deltaY:w,deltaMode:A}=a;es&&0===A&&overlayscrollbars_parent(J)===B&&scrollOffsetElementScrollBy({x:x,y:w}),es=!1,F(eX,!0),en(()=>{es=!0,F(eX)}),preventDefault(a)},{H:!1,I:!0}),addEventListener(J,"pointerdown",bind(addEventListener,W,"click",stopAndPrevent,{A:!0,I:!0,H:!1}),{I:!0}),(()=>{let x="pointerup pointercancel lostpointercapture",A=`client${V?"X":"Y"}`,k=V?ev:ey,F=V?"left":"top",B=V?"w":"h",z=V?"x":"y",createRelativeHandleMove=(a,x)=>A=>{let{Rt:k}=w,F=eS(ee)[B]-eS(et)[B],V=x*A/F*k[z];scrollElementTo($,{[z]:a+V})},G=[];return addEventListener(ee,"pointerdown",w=>{let V=closest(w.target,`.${e$}`)===et,J=V?et:ee,er=a.scrollbars,en=er[V?"dragScroll":"clickScroll"],{button:ei,isPrimary:es,pointerType:el}=w,{pointers:eu}=er,ec=0===ei&&es&&en&&(eu||[]).includes(el);if(ec){runEachAndClear(G),ea();let a=!V&&(w.shiftKey||"instant"===en),er=bind(getBoundingClientRect,et),ei=bind(getBoundingClientRect,ee),es=K(getBoundingClientRect($)[k])/eS($)[B]||1,el=createRelativeHandleMove(getElementScroll($)[z],1/es),eu=w[A],ec=er(),ed=ei(),ef=ec[k],ep=(ec||er())[F]-(ed||ei())[F]+ef/2,eh=eu-ed[F],em=V?0:eh-ep,releasePointerCapture=a=>{runEachAndClear(ey),J.releasePointerCapture(a.pointerId)},eg=V||a,ev=Z(),ey=[addEventListener(W,x,releasePointerCapture),addEventListener(W,"selectstart",a=>preventDefault(a),{H:!1}),addEventListener(ee,x,releasePointerCapture),eg&&addEventListener(ee,"pointermove",a=>el(em+(a[A]-eu))),eg&&(()=>{let a=getElementScroll($);ev();let x=getElementScroll($),w={x:x.x-a.x,y:x.y-a.y};(Y(w.x)>3||Y(w.y)>3)&&(Z(),scrollElementTo($,a),scrollOffsetElementScrollBy(w),eo(ev))})];if(J.setPointerCapture(w.pointerId),a)el(em);else if(!V){let a=getStaticPluginModuleInstance("__osClickScrollPlugin");if(a){let x=a(el,em,ef,a=>{a?ev():push(ey,ev)});push(ey,x),push(G,bind(x,!0))}}}})})(),ei,ea])},createScrollbarsSetup=(a,x,w,A,k,F)=>{let V,B,z,G,$;let W=noop,Z=0,isHoverablePointerType=a=>"mouse"===a.pointerType,[K,Y]=selfClearTimeout(),[J,ee]=selfClearTimeout(100),[et,er]=selfClearTimeout(100),[en,ei]=selfClearTimeout(()=>Z),[eo,ea]=createScrollbarsSetupElements(a,k,A,createScrollbarsSetupEvents(x,k,A,a=>isHoverablePointerType(a)&&manageScrollbarsAutoHideInstantInteraction())),{ht:es,Qt:el,wt:eu}=k,{jt:ec,Nt:ed,qt:ef,Bt:ep,Ft:eh}=eo,manageScrollbarsAutoHide=(a,x)=>{if(ei(),a)ec(eJ);else{let a=bind(ec,eJ,!0);Z>0&&!x?en(a):a()}},manageScrollbarsAutoHideInstantInteraction=()=>{(z?V:G)||(manageScrollbarsAutoHide(!0),J(()=>{manageScrollbarsAutoHide(!1)}))},manageAutoHideSuspension=a=>{ec(eY,a,!0),ec(eY,a,!1)},onHostMouseEnter=a=>{isHoverablePointerType(a)&&(V=z,z&&manageScrollbarsAutoHide(!0))},em=[ei,ee,er,Y,()=>W(),addEventListener(es,"pointerover",onHostMouseEnter,{A:!0}),addEventListener(es,"pointerenter",onHostMouseEnter),addEventListener(es,"pointerleave",a=>{isHoverablePointerType(a)&&(V=!1,z&&manageScrollbarsAutoHide(!1))}),addEventListener(es,"pointermove",a=>{isHoverablePointerType(a)&&B&&manageScrollbarsAutoHideInstantInteraction()}),addEventListener(el,"scroll",a=>{K(()=>{ef(),manageScrollbarsAutoHideInstantInteraction()}),F(a),eh()})];return[()=>bind(runEachAndClear,push(em,ea())),({It:a,Dt:x,Zt:k,tn:F})=>{let{nn:V,sn:K,en:Y,cn:J}=F||{},{Ct:ee,dt:er}=k||{},{ct:en}=w,{k:ei}=getEnvironment(),{K:eo,rn:ea}=A,[es,em]=a("showNativeOverlaidScrollbars"),[eg,ev]=a("scrollbars.theme"),[ey,e_]=a("scrollbars.visibility"),[ew,eS]=a("scrollbars.autoHide"),[eE,eA]=a("scrollbars.autoHideSuspend"),[eC]=a("scrollbars.autoHideDelay"),[eT,eO]=a("scrollbars.dragScroll"),[eP,eR]=a("scrollbars.clickScroll"),[ek,eN]=a("overflow"),eI=ea.x||ea.y,eD=es&&ei.x&&ei.y,setScrollbarVisibility=(a,x,w)=>{let A=a.includes(ex)&&(ey===eb||"auto"===ey&&x===ex);return ec(eW,A,w),A};if(Z=eC,er&&!x&&(eE&&eI?(manageAutoHideSuspension(!1),W(),et(()=>{W=addEventListener(el,"scroll",bind(manageAutoHideSuspension,!0),{A:!0})}
51)):manageAutoHideSuspension(!0)),em&&ec("os-theme-none",eD),ev&&(ec($),ec(eg,!0),$=eg),eA&&!eE&&manageAutoHideSuspension(!0),eS&&(B="move"===ew,z="leave"===ew,manageScrollbarsAutoHide(G="never"===ew,!0)),eO&&ec(e1,eT),eR&&ec(e0,!!eP),Y||e_||eN){let a=setScrollbarVisibility(ek.x,eo.x,!0),x=setScrollbarVisibility(ek.y,eo.y,!1),w=a&&x;ec(eZ,!w)}(V||K||J||ee||x)&&(ef(),ed(),eh(),J&&ep(),ec(eQ,!ea.x,!0),ec(eQ,!ea.y,!1),ec(eq,en&&!eu))},{},eo]},createStructureSetupElements=a=>{let x=getEnvironment(),{U:w,R:A}=x,{elements:k}=w(),{padding:F,viewport:V,content:B}=k,z=isHTMLElement(a),G=z?{}:a,{elements:W}=G,{padding:Z,viewport:K,content:Y}=W||{},J=z?a:G.target,ee=isBodyElement(J),et=J.ownerDocument,er=et.documentElement,getDocumentWindow=()=>et.defaultView||$,en=bind(staticInitializationElement,[J]),ei=bind(dynamicInitializationElement,[J]),eo=bind(createDiv,""),ea=bind(en,eo,V),es=bind(ei,eo,B),el=ea(K),eu=el===J,ec=eu&&ee,ed=!eu&&es(Y),ef=!eu&&el===ed,ep=ec?er:el,eh=ec?ep:J,ev=!eu&&ei(eo,F,Z),ey=!ef&&ed,eb=[ey,ep,ev,eh].map(a=>isHTMLElement(a)&&!overlayscrollbars_parent(a)&&a),elementIsGenerated=a=>a&&inArray(eb,a),e_=!elementIsGenerated(ep)&&(a=>{let x=eS(a),w=eA(a),A=getStyles(a,em),k=getStyles(a,eg);return w.w-x.w>0&&!overflowIsVisible(A)||w.h-x.h>0&&!overflowIsVisible(k)})(ep)?ep:J,ex=ec?er:ep,ew=ec?et:ep,eE={vt:J,ht:eh,ot:ep,ln:ev,bt:ey,gt:ex,Qt:ew,an:ee?er:e_,Kt:et,wt:ee,Mt:z,nt:eu,un:getDocumentWindow,yt:a=>hasAttrClass(ep,eI,a),St:(a,x)=>addRemoveAttrClass(ep,eI,a,x),Ot:()=>addRemoveAttrClass(ex,eI,"scrolling",!0)},{vt:eC,ht:eO,ln:eP,ot:ek,bt:eD}=eE,eF=[()=>{removeAttrs(eO,[eT,eR]),removeAttrs(eC,eR),ee&&removeAttrs(er,[eR,eT])}],eV=contents([eD,ek,eP,eO,eC].find(a=>a&&!elementIsGenerated(a))),eU=ec?eC:eD||ek,eB=bind(runEachAndClear,eF);return[eE,()=>{let a=getDocumentWindow(),x=getFocusedElement(),unwrap=a=>{appendChildren(overlayscrollbars_parent(a),contents(a)),removeElements(a)},prepareWrapUnwrapFocus=a=>addEventListener(a,"focusin focusout focus blur",stopAndPrevent,{I:!0,H:!1}),w="tabindex",k=getAttr(ek,w),F=prepareWrapUnwrapFocus(x);return setAttrs(eO,eT,eu?"":"host"),setAttrs(eP,eL,""),setAttrs(ek,eI,""),setAttrs(eD,ej,""),!eu&&(setAttrs(ek,w,k||"-1"),ee&&setAttrs(er,eN,"")),appendChildren(eU,eV),appendChildren(eO,eP),appendChildren(eP||eO,!eu&&ek),appendChildren(ek,eD),push(eF,[F,()=>{let a=getFocusedElement(),x=elementIsGenerated(ek),A=x&&a===ek?eC:a,F=prepareWrapUnwrapFocus(A);removeAttrs(eP,eL),removeAttrs(eD,ej),removeAttrs(ek,eI),ee&&removeAttrs(er,eN),k?setAttrs(ek,w,k):removeAttrs(ek,w),elementIsGenerated(eD)&&unwrap(eD),x&&unwrap(ek),elementIsGenerated(eP)&&unwrap(eP),focusElement(A),F()}]),A&&!eu&&(addAttrClass(ek,eI,eM),push(eF,bind(removeAttrs,ek,eI))),focusElement(!eu&&ee&&x===eC&&a.top===a?ek:x),F(),eV=0,eB},eB]},createTrinsicUpdateSegment=({bt:a})=>({Zt:x,_n:w,Dt:A})=>{let{xt:k}=x||{},{$t:F}=w,V=a&&(k||A);V&&setStyles(a,{[ey]:F&&"100%"})},createPaddingUpdateSegment=({ht:a,ln:x,ot:w,nt:A},k)=>{let[F,V]=createCache({i:equalTRBL,o:topRightBottomLeft()},bind(topRightBottomLeft,a,"padding",""));return({It:a,Zt:B,_n:z,Dt:G})=>{let[$,W]=V(G),{R:Z}=getEnvironment(),{ft:K,Ht:Y,Ct:J}=B||{},{ct:ee}=z,[et,er]=a("paddingAbsolute"),en=G||Y;(K||W||en)&&([$,W]=F(G));let ei=!A&&(er||J||W);if(ei){let a=!et||!x&&!Z,A=$.r+$.l,F=$.t+$.b,V={[ep]:a&&!ee?-A:0,[eh]:a?-F:0,[ef]:a&&ee?-A:0,top:a?-$.t:0,right:a?ee?-$.r:"auto":0,left:a?ee?"auto":-$.l:0,[ev]:a&&`calc(100% + ${A}px)`},B={[el]:a?$.t:0,[eu]:a?$.r:0,[ed]:a?$.b:0,[ec]:a?$.l:0};setStyles(x||w,V),setStyles(w,B),assignDeep(k,{ln:$,dn:!a,rt:x?B:assignDeep({},V,B)})}return{fn:ei}}},createOverflowUpdateSegment=(a,x)=>{let w=getEnvironment(),{ht:A,ln:k,ot:F,nt:V,Qt:B,gt:z,wt:G,St:Z,un:K}=a,{R:Y}=w,J=G&&V,ee=bind(W,0),er={display:()=>!1,direction:a=>"ltr"!==a,flexDirection:a=>a.endsWith("-reverse"),writingMode:a=>"horizontal-tb"!==a},en=keys(er),ei={i:equalWH,o:{w:0,h:0}},eo={i:equalXY,o:{}},setMeasuringMode=a=>{Z(eD,!J&&a)},getMeasuredScrollCoordinates=a=>{let x=en.some(x=>{let w=a[x];return w&&er[x](w)});if(!x)return{D:{x:0,y:0},M:{x:1,y:1}};setMeasuringMode(!0);let w=getElementScroll(z),A=Z("noContent",!0),k=addEventListener(B,ex,a=>{let x=getElementScroll(z);a.isTrusted&&x.x===w.x&&x.y===w.y&&stopPropagation(a)},{I:!0,A:!0});scrollElementTo(z,{x:0,y:0}),A();let F=getElementScroll(z),V=eA(z);scrollElementTo(z,{x:V.w,y:V.h});let G=getElementScroll(z);scrollElementTo(z,{x:G.x-F.x<1&&-V.w,y:G.y-F.y<1&&-V.h});let $=getElementScroll(z);return scrollElementTo(z,w),et(()=>k()),{D:F,M:$}},getOverflowAmount=(a,x)=>{let w=$.devicePixelRatio%1!=0?1:0,A={w:ee(a.w-x.w),h:ee(a.h-x.h)};return{w:A.w>w?A.w:0,h:A.h>w?A.h:0}},[ea,es]=createCache(ei,bind(getFractionalSize,F)),[el,eu]=createCache(ei,bind(eA,F)),[ec,ed]=createCache(ei),[ef]=createCache(eo),[ep,eh]=createCache(ei),[ev]=createCache(eo),[ey]=createCache({i:(a,x)=>equal(a,x,en),o:{}}
51,()=>hasDimensions(F)?getStyles(F,en):{}),[ew,eS]=createCache({i:(a,x)=>equalXY(a.D,x.D)&&equalXY(a.M,x.M),o:getZeroScrollCoordinates()}),eC=getStaticPluginModuleInstance(e4),createViewportOverflowStyleClassName=(a,x)=>{let w=x?em:eg;return`${w}${capitalizeFirstLetter(a)}`},setViewportOverflowStyle=a=>{let createAllOverflowStyleClassNames=a=>[eb,e_,ex].map(x=>createViewportOverflowStyleClassName(x,a)),x=createAllOverflowStyleClassNames(!0).concat(createAllOverflowStyleClassNames()).join(" ");Z(x),Z(keys(a).map(x=>createViewportOverflowStyleClassName(a[x],"x"===x)).join(" "),!0)};return({It:V,Zt:B,_n:z,Dt:G},{fn:$})=>{let{ft:W,Ht:et,Ct:er,dt:en,zt:ei}=B||{},eo=eC&&eC.tt(a,x,z,w,V),{it:em,ut:eg,_t:eb}=eo||{},[e_,ex]=getShowNativeOverlaidScrollbars(V,w),[eA,eO]=V("overflow"),eP=overflowIsVisible(eA.x),eR=overflowIsVisible(eA.y),eN=es(G),eI=eu(G),eD=ed(G),ej=eh(G);ex&&Y&&Z(eM,!e_);{hasAttrClass(A,eT,ek)&&setMeasuringMode(!0);let[a]=eg?eg():[],[x]=eN=ea(G),[w]=eI=el(G),k=eE(F),V=J&&getWindowSize(K()),B={w:ee(w.w+x.w),h:ee(w.h+x.h)},z={w:ee((V?V.w:k.w+ee(k.w-w.w))+x.w),h:ee((V?V.h:k.h+ee(k.h-w.h))+x.h)};a&&a(),ej=ep(z),eD=ec(getOverflowAmount(B,z),G)}let[eF,eV]=ej,[eU,eB]=eD,[eq,ez]=eI,[eH,eG]=eN,[e$,eW]=ef({x:eU.w>0,y:eU.h>0}),eZ=eP&&eR&&(e$.x||e$.y)||eP&&e$.x&&!e$.y||eR&&e$.y&&!e$.x,eK=createViewportOverflowState(e$,eA),[eQ,eY]=ev(eK.K),[eJ,eX]=ey(G),e0=er||en||eX||eW||G,[e1,e2]=e0?ew(getMeasuredScrollCoordinates(eJ),G):eS();return eY&&setViewportOverflowStyle(eK.K),eb&&em&&setStyles(F,eb(eK,z,em(eK,eq,eH))),setMeasuringMode(!1),addRemoveAttrClass(A,eT,ek,eZ),addRemoveAttrClass(k,eL,ek,eZ),assignDeep(x,{K:eQ,Vt:{x:eF.w,y:eF.h},Rt:{x:eU.w,y:eU.h},rn:e$,Lt:sanitizeScrollCoordinates(e1,eU)}),{en:eY,nn:eV,sn:eB,cn:e2||eB,vn:e0}}},createStructureSetup=a=>{let[x,w,A]=createStructureSetupElements(a),k={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[ep]:0,[eh]:0,[ef]:0,[el]:0,[eu]:0,[ed]:0,[ec]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:e_,y:e_},rn:{x:!1,y:!1},Lt:getZeroScrollCoordinates()},{vt:F,gt:V,nt:B,Ot:z}=x,{R:G,k:$}=getEnvironment(),W=!G&&($.x||$.y),Z=[createTrinsicUpdateSegment(x),createPaddingUpdateSegment(x,k),createOverflowUpdateSegment(x,k)];return[w,a=>{let x={},w=W&&getElementScroll(V),A=w&&z();return each(Z,w=>{assignDeep(x,w(a,x)||{})}),scrollElementTo(V,w),A&&A(),B||scrollElementTo(F,0),x},k,x,A]},createSetups=(a,x,w,A,k)=>{let F=!1,V=createOptionCheck(x,{}),[B,z,G,$,W]=createStructureSetup(a),[Z,K,Y]=createObserversSetup($,G,V,a=>{update({},a)}),[J,ee,,et]=createScrollbarsSetup(a,x,Y,G,$,k),updateHintsAreTruthy=a=>keys(a).some(x=>!!a[x]),update=(a,k)=>{if(w())return!1;let{pn:V,Dt:B,At:G,hn:$}=a,W=V||{},Z=!!B||!F,J={It:createOptionCheck(x,W,Z),pn:W,Dt:Z};if($)return ee(J),!1;let et=k||K(assignDeep({},J,{At:G})),er=z(assignDeep({},J,{_n:Y,Zt:et}));ee(assignDeep({},J,{Zt:et,tn:er}));let en=updateHintsAreTruthy(et),ei=updateHintsAreTruthy(er),eo=en||ei||!isEmptyObject(W)||Z;return F=!0,eo&&A(a,{Zt:et,tn:er}),eo};return[()=>{let{an:a,gt:x,Ot:w}=$,A=getElementScroll(a),k=[Z(),B(),J()],F=w();return scrollElementTo(x,A),F(),bind(runEachAndClear,k)},update,()=>({gn:Y,bn:G}),{wn:$,yn:et},W]},OverlayScrollbars=(a,x,w)=>{let{N:A}=getEnvironment(),k=isHTMLElement(a),F=k?a:a.target,V=getInstance(F);if(x&&!V){let V=!1,B=[],z={},validateOptions=a=>{let x=removeUndefinedProperties(a,!0),w=getStaticPluginModuleInstance("__osOptionsValidationPlugin");return w?w(x,!0):x},G=assignDeep({},A(),validateOptions(x)),[$,W,Z]=createEventListenerHub(),[K,Y,J]=createEventListenerHub(w),triggerEvent=(a,x)=>{J(a,x),Z(a,x)},[ee,et,er,en,ei]=createSetups(a,G,()=>V,({pn:a,Dt:x},{Zt:w,tn:A})=>{let{ft:k,Ct:F,xt:V,Ht:B,Et:z,dt:G}=w,{nn:$,sn:W,en:Z,cn:K}=A;triggerEvent("updated",[eo,{updateHints:{sizeChanged:!!k,directionChanged:!!F,heightIntrinsicChanged:!!V,overflowEdgeChanged:!!$,overflowAmountChanged:!!W,overflowStyleChanged:!!Z,scrollCoordinatesChanged:!!K,contentMutation:!!B,hostMutation:!!z,appear:!!G},changedOptions:a||{},force:!!x}])},a=>triggerEvent("scroll",[eo,a])),destroy=a=>{removeInstance(F),runEachAndClear(B),V=!0,triggerEvent("destroyed",[eo,a]),W(),Y()},eo={options(a,x){if(a){let w=x?A():{},k=getOptionsDiff(G,assignDeep(w,validateOptions(a)));isEmptyObject(k)||(assignDeep(G,k),et({pn:k}))}return assignDeep({},G)},on:K,off:(a,x)=>{a&&x&&Y(a,x)},state(){let{gn:a,bn:x}=er(),{ct:w}
51=a,{Vt:A,Rt:k,K:F,rn:B,ln:z,dn:G,Lt:$}=x;return assignDeep({},{overflowEdge:A,overflowAmount:k,overflowStyle:F,hasOverflow:B,scrollCoordinates:{start:$.D,end:$.M},padding:z,paddingAbsolute:G,directionRTL:w,destroyed:V})},elements(){let{vt:a,ht:x,ln:w,ot:A,bt:k,gt:F,Qt:V}=en.wn,{Xt:B,Gt:z}=en.yn,translateScrollbarStructure=a=>{let{Pt:x,Ut:w,Tt:A}=a;return{scrollbar:A,track:w,handle:x}},translateScrollbarsSetupElement=a=>{let{Yt:x,Wt:w}=a,A=translateScrollbarStructure(x[0]);return assignDeep({},A,{clone:()=>{let a=translateScrollbarStructure(w());return et({hn:!0}),a}})};return assignDeep({},{target:a,host:x,padding:w||A,viewport:A,content:k||A,scrollOffsetElement:F,scrollEventElement:V,scrollbarHorizontal:translateScrollbarsSetupElement(B),scrollbarVertical:translateScrollbarsSetupElement(z)})},update:a=>et({Dt:a,At:!0}),destroy:bind(destroy,!1),plugin:a=>z[keys(a)[0]]};return(push(B,[ei]),addInstance(F,eo),registerPluginModuleInstances(e5,OverlayScrollbars,[eo,$,z]),cancelInitialization(en.wn.wt,!k&&a.cancel))?destroy(!0):(push(B,ee()),triggerEvent("initialized",[eo]),eo.update()),eo}return V};OverlayScrollbars.plugin=a=>{let x=isArray(a),w=x?a:[a],A=w.map(a=>registerPluginModuleInstances(a,OverlayScrollbars)[0]);return addPlugins(w),x?A:A[0]},OverlayScrollbars.valid=a=>{let x=a&&a.elements,w=isFunction(x)&&x();return isPlainObject(w)&&!!getInstance(w.target)},OverlayScrollbars.env=()=>{let{T:a,k:x,R:w,V:A,B:k,F:F,U:V,P:B,N:z,q:G}=getEnvironment();return assignDeep({},{scrollbarsSize:a,scrollbarsOverlaid:x,scrollbarsHiding:w,scrollTimeline:A,staticDefaultInitialization:k,staticDefaultOptions:F,getDefaultInitialization:V,setDefaultInitialization:B,getDefaultOptions:z,setDefaultOptions:G})},OverlayScrollbars.nonce=a=>{A=a};let overlayscrollbars_react_S=()=>{let a,x;if(typeof window>"u"){let n=()=>{};return[n,n]}let w=window,A="function"==typeof w.requestIdleCallback,k=w.requestAnimationFrame,F=w.cancelAnimationFrame,V=A?w.requestIdleCallback:k,B=A?w.cancelIdleCallback:F,s=()=>{B(a),F(x)};return[(w,F)=>{s(),a=V(A?()=>{s(),x=k(w)}:w,"object"==typeof F?F:{timeout:2233})},s]},overlayscrollbars_react_F=a=>{let{options:x,events:w,defer:A}=a||{},[k,F]=(0,z.useMemo)(overlayscrollbars_react_S,[]),V=(0,z.useRef)(null),B=(0,z.useRef)(A),G=(0,z.useRef)(x),$=(0,z.useRef)(w);return(0,z.useEffect)(()=>{B.current=A},[A]),(0,z.useEffect)(()=>{let{current:a}=V;G.current=x,OverlayScrollbars.valid(a)&&a.options(x||{},!0)},[x]),(0,z.useEffect)(()=>{let{current:a}=V;$.current=w,OverlayScrollbars.valid(a)&&a.on(w||{},!0)},[w]),(0,z.useEffect)(()=>()=>{var a;F(),null==(a=V.current)||a.destroy()},[]),(0,z.useMemo)(()=>[a=>{let x=V.current;if(OverlayScrollbars.valid(x))return;let w=B.current,A=G.current||{},F=$.current||{},m=()=>V.current=OverlayScrollbars(a,A,F);w?k(m,w):m()},()=>V.current],[])},e6=(0,z.forwardRef)((a,x)=>{let{element:w="div",options:A,events:k,defer:F,children:V,...B}=a,G=(0,z.useRef)(null),$=(0,z.useRef)(null),[W,Z]=overlayscrollbars_react_F({options:A,events:k,defer:F});return(0,z.useEffect)(()=>{let{current:a}=G,{current:x}=$;if(a)return W("body"===w?{target:a,cancel:{body:null}}:{target:a,elements:{viewport:x,content:x}}),()=>{var a;return null==(a=Z())?void 0:a.destroy()}},[W,w]),(0,z.useImperativeHandle)(x,()=>({osInstance:Z,getElement:()=>G.current}),[]),z.createElement(w,{"data-overlayscrollbars-initialize":"",ref:G,...B},"body"===w?V:z.createElement("div",{"data-overlayscrollbars-contents":"",ref:$},V))});w(85251);var scrollbar=a=>{let{options:x,className:w,style:A,children:k,...V}=a;return(0,F.jsx)(e6,{options:{scrollbars:{autoHide:"scroll"},...x||{}},className:B()("os-theme-thin-dark",w),style:A,defer:!0,...V,children:k})}},97514:function(a,x,w){"use strict";function withTrailingSlash(a){if(!a||"/"===a)return"/";let x=a.indexOf("#"),w=x>=0?a.slice(x):"",A=x>=0?a.slice(0,x):a,k=A.indexOf("?"),F=k>=0?A.slice(k):"",V=k>=0?A.slice(0,k):A,B=V.endsWith("/")?V:"".concat(V,"/");return"".concat(B).concat(F).concat(w)}w.d(x,{Z:function(){return A}});let A={addresses:"/addresses",home:"/",checkout:"/checkout",checkoutDigital:"/checkout/digital",checkoutGuest:"/checkout/guest",checkoutRecipe:"/checkout/recipe",profile:"/profile",verifyEmail:"/verify-email",changePassword:"/change-password",orders:"/orders",order:a=>withTrailingSlash("/orders/".concat(encodeURIComponent(a))),refunds:"/refunds",help:"/help",logout:"/logout",auth:"/auth",coupons:"/offers",orderReceived:"/order-received",products:"/products",product:(a,x)=>withTrailingSlash("/".concat(encodeURIComponent(a),"/product/").concat(encodeURIComponent(x))),privacy:"/privacy",terms:"/terms",refundPolicies:"/refund-policies",customerRefundPolicies:"/customer-refund-policies",vendorRefundPolicies:"/vendor-refund-policies",contactUs:"/contact",shops:"/shops",cards:"/cards",shop:a=>withTrailingSlash("/shops/".concat(encodeURIComponent(a))),downloads:"/downloads",authors:"/authors",author:a=>withTrailingSlash("/authors/".concat(encodeURIComponent(a))),manufacturers:"/manufacturers",manufacturer:a=>withTrailingSlash("/manufacturers/".concat(encodeURIComponent(a))),nearByShop:a=>{let{lat:x,lng:w}=a;return withTrailingSlash("/shops/search?lat=".concat(encodeURIComponent(x),"&lng=").concat(encodeURIComponent(w)))},search:"/search",category:a=>withTrailingSlash("/categorias/".concat(encodeURIComponent(a))),wishlists:"/wishlists",questions:"/questions",reports:"/reports",flashSaleSingle:a=>withTrailingSlash("/flash-sales/".concat(encodeURIComponent(a))),flashSale:"/flash-sales",notifyLogs:"/notification",notifyLogsSingle:a=>withTrailingSlash("/notification/".concat(encodeURIComponent(a))),becomeSeller:"/become-seller",wallet:"/wallet",walletHistory:"/wallet/history",walletRecharge:"/wallet/recharge",notifications:"/notificacoes",quemSomos:"/quem-somos",acoesSociais:"/acoes-sociais",licenses:"/licencas",bula:a=>"/bulas/".concat(encodeURIComponent(String(a).toLowerCase()),".pdf"),downloadApp:"/baixe-o-app",politica:"/institucional#politica",termos:"/institucional#termos",parceirosDeEntrega:"/parceiros-de-entrega",friendsIndication:"/indique-amigos",compraComReceita:"/compra-com-receita"}},11115:function(a,x,w){"use strict";w.d(x,{siteSettings:function(){return F}});var A=w(97514),k=w(10265);let F={name:"Qualidoc",description:"",logo:{url:"/logo.svg",alt:"Quali
51doc",href:"/grocery",width:128,height:40},defaultLanguage:"en",currencyCode:"BRL",product:{placeholderImage:"/product-placeholder.svg",cardMaps:{grocery:"Krypton",furniture:"Radon",bag:"Oganesson",makeup:"Neon",book:"Xenon",medicine:"Helium",default:"Argon"}},authorizedLinks:[{href:A.Z.profile,label:"auth-menu-profile"},{href:A.Z.changePassword,label:"profile-sidebar-password"},{href:A.Z.cards,label:"profile-sidebar-my-cards"},{href:A.Z.orders,label:"auth-menu-my-orders"},{href:A.Z.addresses,label:"profile-sidebar-addresses"},{href:A.Z.wishlists,label:"profile-sidebar-my-wishlist"}],authorizedLinksMobile:[{href:A.Z.profile,label:"auth-menu-profile",icon:"ProfileIcon"},{href:A.Z.friendsIndication,label:"profile-sidebar-friends-indication",icon:"IndiqueAmigosIcon"},{href:A.Z.changePassword,label:"profile-sidebar-password",icon:"ResetPasswordIcon"},{href:A.Z.cards,label:"profile-sidebar-my-cards",icon:"CardsIcon"},{href:A.Z.orders,label:"auth-menu-my-orders",icon:"OrdersIcon"},{href:A.Z.addresses,label:"profile-sidebar-addresses",icon:"LocationIcon"},{href:A.Z.wishlists,label:"profile-sidebar-my-wishlist",icon:"FavoritesIcon"}],dashboardSidebarMenu:[{href:A.Z.profile,label:"profile-sidebar-profile",icon:"ProfileIcon"},{href:A.Z.friendsIndication,label:"profile-sidebar-friends-indication",icon:"IndiqueAmigosIcon"},{href:A.Z.changePassword,label:"profile-sidebar-password",icon:"ResetPasswordIcon"},{href:A.Z.cards,label:"profile-sidebar-my-cards",icon:"CardsIcon",cardsPayment:[k.HY.STRIPE]},{href:A.Z.orders,label:"profile-sidebar-orders",icon:"OrdersIcon"},{href:A.Z.addresses,label:"profile-sidebar-addresses",icon:"LocationIcon"},{href:A.Z.wishlists,label:"profile-sidebar-my-wishlist",icon:"FavoritesIcon"},{href:A.Z.logout,label:"profile-sidebar-logout"}],sellingAdvertisement:{image:{src:"/selling.png",alt:"Selling Advertisement"}},cta:{mockup_img_src:"/mockup-img.png",play_store_link:"/",app_store_link:"/"},headerLinks:[{href:A.Z.quemSomos,label:"Quem Somos"},{href:A.Z.acoesSociais,label:"A\xe7\xf5es Sociais"},{href:A.Z.politica,label:"Pol\xedtica de Privacidade"},{href:A.Z.termos,label:"Termos e Condi\xe7\xf5es"},{href:A.Z.parceirosDeEntrega,label:"Parceiros de Entregas"},{href:"https://blog.qualidoc.com.br",label:"Nosso Blog"}],footer:{menus:[{title:"text-explore",links:[{name:"Shops",href:A.Z.shops},{name:"Authors",href:A.Z.authors},{name:"Flash Deals",href:null===A.Z||void 0===A.Z?void 0:A.Z.flashSale},{name:"Coupon",href:A.Z.coupons}]},{title:"text-customer-service",links:[{name:"text-faq-help",href:A.Z.help},{name:"Vendor Refund Policies",href:A.Z.vendorRefundPolicies},{name:"Customer Refund Policies",href:A.Z.customerRefundPolicies}]},{title:"text-our-information",links:[{name:"Manufacturers",href:null===A.Z||void 0===A.Z?void 0:A.Z.manufacturers},{name:"Privacy policies",href:A.Z.privacy},{name:"text-terms-condition",href:A.Z.terms},{name:"text-contact-us",href:A.Z.contactUs}]}],payment_methods:[{img:"/payment/master.png",url:"/"},{img:"/payment/skrill.png",url:"/"},{img:"/payment/paypal.png",url:"/"},{img:"/payment/visa.png",url:"/"},{img:"/payment/discover.png",url:"/"}]}}},85671:function(a,x,w){"use strict";w.d(x,{L:function(){return useCategories}});var A=w(88767),k=w(57659),F=w(95439),V=w(12103),B=w(67294);function useCategories(a){let x=!(arguments.length>1)||void 0===arguments[1]||arguments[1],w={...a,page:1,limit:100},{data:z,isLoading:G,error:$,fetchNextPage:W,hasNextPage:Z,isFetching:K,isFetchingNextPage:Y}=(0,A.useInfiniteQuery)([F.P.CATEGORIES,w],a=>{let{queryKey:x,pageParam:w}=a;return k.Z.categories.all(Object.assign({},x[1],w))},{enabled:!!x,staleTime:432e5,getNextPageParam:a=>{let{current_page:x,last_page:w}=a;return w>x&&{page:x+1}}}),J=(0,B.useMemo)(()=>{var a,x;return null!==(x=null==z?void 0:null===(a=z.pages)||void 0===a?void 0:a.flatMap(a=>a.data))&&void 0!==x?x:[]},[z]),ee=(0,B.useMemo)(()=>new Set(J.flatMap(a=>{var x;return(null==a?void 0:null===(x=a.children)||void 0===x?void 0:x.map(a=>a.id))||[]})),[J]),et=(0,B.useMemo)(()=>J.filter(a=>!ee.has(a.id)),[J,ee]);return{categories:et,paginatorInfo:Array.isArray(null==z?void 0:z.pages)?(0,
51V.Q)(null==z?void 0:z.pages[z.pages.length-1]):null,isLoading:G,error:$,isFetching:K,isLoadingMore:Y,loadMore:function(){W()},hasMore:!!Z}}},95439:function(a,x,w){"use strict";w.d(x,{P:function(){return A}});let A={PRODUCTS:"/products",PRODUCTS_BULAS:"/products/bulas",PRODUCT_VARIANT_GROUPS:"/product-variant-groups",PRODUCTS_PRICE:"/product-prices",PRODUCTS_CHARACTERISTICS:"/product-characteristics",PRODUCTS_CHARACTERISTICS_VALUES:"/product-characteristic-values",PRODUCTS_POPULAR:"/popular-products",PRODUCTS_REVIEWS:"/reviews",PRODUCTS_REVIEWS_ABUSE_REPORT:"/abusive_reports",PRODUCTS_QUESTIONS:"/questions",PRODUCT_AVAILABILITY_NOTIFICATIONS:"/product-availability-notifications",CHARACTERISTICS_GROUPS:"/characteristic-groups",CHARACTERISTICS:"/characteristics",FEEDBACK:"/feedbacks",CATEGORIES:"/categories",TYPES:"/types",TAGS:"/tags",SHOPS:"/shops",AUTHORS:"/authors",ADDRESSES:"/addresses",AUTHORS_TOP:"/top-authors",MANUFACTURERS:"/manufacturers",MANUFACTURERS_TOP:"/top-manufacturers",INSTITUTIONAL_PAGES:"/institutional-pages",COUPONS:"/coupons",COUPONS_VERIFY:"/coupons/verify",ORDERS:"/shop/orders",ORDER_REVIEWS:"/shop/orders",ORDER_INVOICES:"/shop/orders",ORDERS_SAVINGS_SUMMARY:"/shop/orders/savings-summary",ORDER_STATUS:"/order-status",ORDER_ITEM_STATUS:"/order-item-status",ORDERS_TRACKING_NUMBER:"/orders/tracking-number",ORDERS_REFUNDS:"/refunds",ORDERS_PAYMENT:"/orders/payment",ORDERS_CHECKOUT_VERIFY:"/orders/checkout/verify",ORDERS_DOWNLOADS:"/downloads",GENERATE_DOWNLOADABLE_PRODUCT_LINK:"/downloads/digital_file",USERS:"/users",USERS_ADDRESS:"/users",USERS_ME:"/me",USERS_WALLET_MY:"/wallets/my",WALLET_ORDERS:"/wallets/orders",USERS_STATEMENTS:"/statements",USERS_LOGIN:"/auth/login",USERS_UPDATE_PROFILE:"/auth/update-profile",USERS_REGISTER:"/auth/register",USERS_RESET_PASSWORD_OPTIONS:"/auth/reset-password-options",USERS_FORGOT_PASSWORD:"/auth/send-reset-password",USERS_VERIFY_FORGOT_PASSWORD_TOKEN:"/auth/verify-forget-password-token",USERS_VALIDATE_RESET_TOKEN:"/auth/validate-reset-token",USERS_RESET_PASSWORD:"/auth/reset-password",USERS_CHANGE_PASSWORD:"/auth/change-password",USERS_LOGOUT:"/auth/logout",USERS_SUBSCRIBE_TO_NEWSLETTER:"/subscribe-to-newsletter",USERS_CONTACT_US:"/contact-us",USERS_WISHLIST:"/wishlists",USERS_RELATIONSHIPS:"/user-relationships",WISHLIST:"/wishlists",USERS_WISHLIST_TOGGLE:"/wishlists/toggle",SOCIAL_LOGIN:"/social-login-token",GOOGLE_MOBILE_LOGIN:"/auth/google/mobile",SEND_OTP_CODE:"/send-otp-code",VERIFY_OTP_CODE:"/verify-otp-code",OTP_LOGIN:"/otp-login",UPDATE_CONTACT:"/update-contact",SETTINGS:"/settings",PAYMENT_GATEWAYS:"/payment-gateways",GENERAL_SETTINGS:"/general-settings",PAYMENT_SETTINGS:"/payment-settings",UPLOADS:"/attachments",MY_QUESTIONS:"/my-questions",MY_REPORTS:"/my-reports",CARDS:"/credit-cards",SET_DEFAULT_CARD:"/set-default-card",SAVE_PAYMENT_METHOD:"/save-payment-method",PAYMENT_INTENT:"/payment-intent",BEST_SELLING_PRODUCTS:"/best-selling-products",SEND_VERIFICATION_EMAIL:"/email/verification-notification",USERS_UPDATE_EMAIL:"/update-email",STORE_NOTICES:"store-notices",FAQS:"/faqs",NEAR_SHOPS:"/near-by-shop",REFUNDS_REASONS:"refund-reasons",TERMS_AND_CONDITIONS:"terms-and-conditions",FLASH_SALE:"flash-sale",PRODUCT_FLASH_SALE_INFO:"product-flash-sale-info",REFUND_POLICIES:"refund-policies",PRODUCTS_BY_FLASH_SALE:"products-by-flash-sale",NOTIFY_LOGS:"notify-logs",NOTIFICATIONS:"/notifications",NOTIFICATIONS_UNREAD_COUNT:"/notifications/unread-count",NOTIFICATIONS_READ_ALL:"/notifications/read-all",NOTIFICATIONS_STREAM:"/notifications/stream",STORE_NOTICES_IS_READ:"store-notices/read",READ_ALL_NOTIFY_LOG:"notify-log-read-all",READ_NOTIFY_LOG:"notify-log-seen",BECAME_SELLER:"became-seller",SHOP_MAINTENANCE_EVENT:"shop-maintenance-event",USER_PROFILE_GENERATE_REFERRER_CODE:"/user-profile/generate-referrer-code",APPLE_MOBILE_LOGIN:"/auth/apple/mobile",EVENTS_TRACK:"/events/track",RECOMMENDATIONS_TRENDING:"/recommendations/trending",RECOMMENDATIONS_LAST_SEEN:"/recommendations/last-seen",RECOMMENDATIONS_FBT:"/recommendations/fbt",RECOMMENDATIONS_CAB:"/recommendations/cab",CART:"/cart",DELIVERY_PARTNERS:"/delivery-partners",DELIVERY_PARTNERS_FORM_OPTIONS:"/delivery-partners/form-options",SHIPPING_METHODS:"/quotation",PBM_VERIFY:"/pbm/verify",PBM_VERIFY_PRICES:"/pbm/verify-prices",PBM_ACTIVATE:"/pbm/activate",CART_VERIFY:"/pbm/cart-verify",PRESCRIPTION_ANALYSIS:"/shop/prescription-analysis",PRESCRIPTION_ANALYSIS_UPLOAD:"/shop/prescription-analysis/upload"}},56082:function(a,x,w){"use strict";w.d(x,{eN:function(){return HttpClient}});var A=w(97514),k=w(80749),F=w(2752),V=w(18272),B=w(87066),z=w(31955),G=w(11163),$=w.n(G),W=w(15103),Z=w(86492),K=w(90997);
51let Y=(0,W.K7)(),J=B.Z.create(),ee=B.Z.create({baseURL:"https://api.qualidoc.com.br",timeout:5e6,headers:{"Content-Type":"application/json"}}),et=null,er=!1;let SessionExpiredError=class SessionExpiredError extends Error{constructor(a="Sess\xe3o expirada"){super(a),this.silent=!0,this.name="SessionExpiredError"}};async function tryRefreshToken(){return et||(et=(async()=>{try{let a=z.Z.get(V.cX);if(!(0,F.mx)(a))return!1;let x=await J.post("".concat("https://api.qualidoc.com.br","/auth/refresh"),{},{headers:{"x-refresh-token":a,"Content-Type":"application/json"},timeout:1e4}),{token:w,refresh_token:A,permissions:B}=x.data,G=(0,k.SK)({accessToken:w,refreshToken:A,permissions:B});if(!G)return!1;return Y.set(Z.O,!0),!0}catch(a){return!1}finally{et=null}})())}function handleLogout(){if(!er){er=!0;try{if((0,k.Wx)(),(0,K.fT)(),Y.set(Z.O,!1),$().pathname!==A.Z.logout){$().replace(A.Z.logout).finally(()=>{er=!1});return}}catch(a){}er=!1}}ee.interceptors.request.use(a=>{let x=z.Z.get(V.nd);return x&&(a.headers={...a.headers,Authorization:"Bearer ".concat(x||"")}),a}),ee.interceptors.response.use(a=>a,async a=>{var x,w,A,k,F,B,G,$,W,Z;let K=a.config,Y=null===(w=a.config)||void 0===w?void 0:null===(x=w.url)||void 0===x?void 0:x.includes("login"),J=null===(k=a.config)||void 0===k?void 0:null===(A=k.url)||void 0===A?void 0:A.includes("logout"),et=null===(B=a.config)||void 0===B?void 0:null===(F=B.url)||void 0===F?void 0:F.includes("auth/refresh");if((null===(G=a.response)||void 0===G?void 0:G.status)===401&&!(null==K?void 0:K._retry)&&!Y&&!J&&!et){let x=null===(Z=a.response)||void 0===Z?void 0:null===(W=Z.data)||void 0===W?void 0:null===($=W.error)||void 0===$?void 0:$.code;if("ACCOUNT_BLOCKED"===x||"SESSION_REVOKED"===x)return handleLogout(),Promise.reject(new SessionExpiredError);K._retry=!0;let w=await tryRefreshToken();if(w){let a=z.Z.get(V.nd);return a&&K.headers&&(K.headers.Authorization="Bearer ".concat(a)),ee(K)}return handleLogout(),Promise.reject(new SessionExpiredError)}return Promise.reject(function(a){var x,w,A;if(a instanceof SessionExpiredError)return a;let k=null==a?void 0:null===(x=a.response)||void 0===x?void 0:x.status,F=null==a?void 0:null===(w=a.response)||void 0===w?void 0:w.data,V=null==a?void 0:a.code,B=null==a?void 0:null===(A=a.config)||void 0===A?void 0:A.url,z="string"==typeof(null==F?void 0:F.message)&&F.message||"string"==typeof(null==a?void 0:a.message)&&a.message||"Request failed",G=null!=k?"".concat(z," (").concat(k).concat(B?" ".concat(B):"",")"):"".concat(z).concat(V?" [".concat(V,"]"):"").concat(B?" ".concat(B):""),$=Error(G);return $.name=(null==a?void 0:a.name)||"AxiosError",$.status=k,$.code=V,$.response=null!=F?{status:k,data:F}:void 0,$}(a))});let HttpClient=class HttpClient{static async get(a,x){let w=await ee.get(a,{params:x});return w.data}static async getBlobResponse(a,x){return ee.get(a,{...x,responseType:"blob"})}static async post(a,x,w){let A=await ee.post(a,x,w);return A.data}static async put(a,x){let w=await ee.put(a,x);return w.data}static async patch(a,x){let w=await ee.patch(a,x);return w.data}static async delete(a){let x=await ee.delete(a);return x.data}static formatSearchParams(a){return Object.entries(a).filter(a=>{let[,x]=a;return!!x}).map(a=>{let[x,w]=a;return["type","categories","tags","author","manufacturer","shops"].includes(x)?"".concat(x,".slug:").concat(w):"".concat(x,":").concat(w)}).join(";")}}},57659:function(a,x,w){"use strict";var A=w(95439),k=w(56082),F=w(87066);let V=new class{constructor(){this.products={all:a=>{let{type:x,categories:w,name:F,shop_id:V,author:B,manufacturer:z,min_price:G,max_price:$,tags:W,...Z}=a;return k.eN.get(A.P.PRODUCTS,{searchJoin:"and",with:"type;types;product_status",...Z,search:k.eN.formatSearchParams({type:x,categories:w,name:F,shop_id:V,author:B,manufacturer:z,min_price:G,max_price:$,tags:W,"product_status.name":"publish"})})},popular:a=>k.eN.get(A.P.PRODUCTS_POPULAR,a),bestSelling:a=>k.eN.get(A.P.BEST_SELLING_PRODUCTS,a),questions:a=>{let{question:x,...w}=a;return k.eN.get(A.P.PRODUCTS_QUESTIONS,{searchJoin:"and",...w,search:k.eN.formatSearchParams({question:x})})},get:a=>{let{slug:x,language:w}=a;return k.eN.get("".concat(A.P.PRODUCTS,"/").concat(x),{language:w,searchJoin:"and",with:"categories;shop;type;types;variations;variations.attribute.values;variation_options;tags"})},buyTogether:a=>k.eN.get("".concat(A.P.PRODUCTS,"/").concat(a,"/buy-together")),createFeedback:a=>k.eN.post(A.P.FEEDBACK,a),createAbuseReport:a=>k.eN.post(A.P.PRODUCTS_REVIEWS_ABUSE_REPORT,a),createQuestion:a=>k.eN.post(A.P.PRODUCTS_QUESTIONS,a),getProductsByFlashSale:a=>{let{slug:x,language:w}=a;return k.eN.get("".concat(A.P.PRODUCTS_BY_FLASH_SALE),{language:w,slug:x})}}
51,this.productPrice={get:a=>{let{search:x,include:w}=a;return k.eN.get("".concat(A.P.PRODUCTS_PRICE),{search:x,with:w})}},this.productVariantGroups={getByProductId:a=>k.eN.get("".concat(A.P.PRODUCT_VARIANT_GROUPS,"/by-product/").concat(a))},this.productCharacteristics={get:a=>{let{id:x,search:w,include:F}=a;return k.eN.get("".concat(A.P.PRODUCTS,"/").concat(x,"/characteristics"),{search:w,with:F})}},this.productCharacteristicValues={get:a=>{let{search:x,include:w}=a;return k.eN.get("".concat(A.P.PRODUCTS_CHARACTERISTICS_VALUES),{search:x,with:w})}},this.characteristicGroups={get:a=>{let{search:x,include:w}=a;return k.eN.get("".concat(A.P.CHARACTERISTICS_GROUPS),{search:x,with:w})}},this.characteristics={get:a=>{let{search:x,include:w}=a;return k.eN.get("".concat(A.P.CHARACTERISTICS),{search:x,with:w})},getById:a=>{let{id:x}=a;return k.eN.get("".concat(A.P.CHARACTERISTICS,"/").concat(x))}},this.myQuestions={all:a=>k.eN.get(A.P.MY_QUESTIONS,{with:"user",orderBy:"created_at",sortedBy:"desc",...a})},this.myReports={all:a=>k.eN.get(A.P.MY_REPORTS,{with:"user",orderBy:"created_at",sortedBy:"desc",...a})},this.reviews={all:a=>{let{rating:x,...w}=a;return k.eN.get(A.P.PRODUCTS_REVIEWS,{searchJoin:"and",with:"user",...w,search:k.eN.formatSearchParams({rating:x})})},get:a=>{let{id:x}=a;return k.eN.get("".concat(A.P.PRODUCTS_REVIEWS,"/").concat(x))},create:a=>k.eN.post(A.P.PRODUCTS_REVIEWS,a),update:a=>k.eN.put("".concat(A.P.PRODUCTS_REVIEWS,"/").concat(a.id),a)},this.categories={all:a=>{let{type:x,...w}=a;return k.eN.get(A.P.CATEGORIES,{searchJoin:"and",...w,...x&&{search:k.eN.formatSearchParams({"types.slug":x})}})}},this.tags={all:a=>{let{type:x,...w}=a;return k.eN.get(A.P.TAGS,{searchJoin:"and",...w,...x&&{search:k.eN.formatSearchParams({type:x})}})}},this.types={all:a=>k.eN.get(A.P.TYPES,a),get:a=>{let{slug:x}=a;return k.eN.get("".concat(A.P.TYPES,"/").concat(x))}},this.shops={all:a=>k.eN.get(A.P.SHOPS,{search:k.eN.formatSearchParams({}),page:1,...a}),get:a=>k.eN.get("".concat(A.P.SHOPS,"/").concat(a)),searchNearShops:a=>k.eN.get(A.P.NEAR_SHOPS,a),getSearchNearShops:a=>{let{lat:x,lng:w}=a;return k.eN.get("".concat(A.P.NEAR_SHOPS,"/").concat(x,"/").concat(w))},shopMaintenanceEvent:a=>{let{shop_id:x,isMaintenance:w,isShopUnderMaintenance:F}=a;return k.eN.post(A.P.SHOP_MAINTENANCE_EVENT,{shop_id:x,isMaintenance:w,isShopUnderMaintenance:F})}},this.storeNotice={all:a=>{let{shop_id:x,shops:w,...F}=a;return k.eN.get(A.P.STORE_NOTICES,{searchJoin:"and",shop_id:x,...F,search:k.eN.formatSearchParams({shop_id:x,shops:w})})}},this.authors={all:a=>{let{name:x,...w}=a;return k.eN.get(A.P.AUTHORS,{...w,searchJoin:"and",search:k.eN.formatSearchParams({name:x})})},top:a=>{let{type:x,...w}=a;return k.eN.get(A.P.AUTHORS_TOP,{...w,search:k.eN.formatSearchParams({type:x})})},get:a=>{let{slug:x,language:w}=a;return k.eN.get("".concat(A.P.AUTHORS,"/").concat(x),{language:w})}},this.manufacturers={all:a=>{let{name:x,type:w,...F}=a;return k.eN.get(A.P.MANUFACTURERS,{...F,page:1,search:k.eN.formatSearchParams({name:x,type:w})})},top:a=>{let{type:x,...w}=a;return k.eN.get(A.P.MANUFACTURERS_TOP,{...w,search:k.eN.formatSearchParams({type:x})})},get:a=>{let{slug:x,language:w}=a;return k.eN.get("".concat(A.P.MANUFACTURERS,"/").concat(x),{language:w})}},this.institutionalPages={all:a=>{var x;return k.eN.get(A.P.INSTITUTIONAL_PAGES,{...a,search:null!==(x=null==a?void 0:a.search)&&void 0!==x?x:"status:published"})},get:a=>{let{slug:x,preview:w}=a;return k.eN.get("".concat(A.P.INSTITUTIONAL_PAGES,"/").concat(x),w?{preview:w}:void 0)}},this.deliveryPartners={formOptions:()=>k.eN.get(A.P.DELIVERY_PARTNERS_FORM_OPTIONS),create:a=>k.eN.post(A.P.DELIVERY_PARTNERS,a)},this.coupons={all:a=>k.eN.get(A.P.COUPONS,a),verify:a=>k.eN.post(A.P.COUPONS_VERIFY,a)},this.orders={all:a=>k.eN.get(A.P.ORDERS,{with:"payment_status;order_status;order_items.product",...(null==a?void 0:a.filters)&&{search:k.eN.formatSearchParams({...null==a?void 0:a.filters})},...null==a?void 0:a.params}),get:a=>k.eN.get("".concat(A.P.ORDERS_TRACKING_NUMBER,"/").concat(a),{with:"refund;reviews"}),create:a=>k.eN.post(A.P.ORDERS,a),refunds:a=>k.eN.get(A.P.ORDERS_REFUNDS,{with:"refund_policy;order",...a}),createRefund:a=>k.eN.post(A.P.ORDERS_REFUNDS,a),payment:a=>k.eN.post(A.P.ORDERS_PAYMENT,a),savePaymentMethod:a=>k.eN.post(A.P.SAVE_PAYMENT_METHOD,a),downloadable:a=>k.eN.get(A.P.ORDERS_DOWNLOADS,a),verify:a=>k.eN.post(A.P.ORDERS_CHECKOUT_VERIFY,a),generateDownloadLink:a=>k.eN.post(A.P.GENERATE_DOWNLOADABLE_PRODUCT_LINK,a),getReview:a=>k.eN.get("".concat(A.P.ORDERS,"/").concat(a,"/review")),createReview:(a,x)=>k.eN.post("".concat(A.P.ORDERS,"/").concat(a,"/review"),x),getPaymentIntentOriginal:a=>{let{tracking_number:x}=a;return k.eN.get(A.P.PAYMENT_INTENT,{tracking_number:x})},getPaymentIntent:a=>{let{tracking_number:x,payment_gateway:w,recall_gateway:F}=a;return k.eN.get(A.P.PAYMENT_INTENT,{tracking_number:x,payment_gateway:w,recall_gateway:F})}},this.refundReason={all:a=>{let{type:x,...w}=a;return k.eN.get(A.P.REFUNDS_REASONS,{searchJoin:"and",...w,...x&&{search:k.eN.formatSearchParams({type:x})}})}},this.users={me:()=>k.eN.get(A.P.USERS_ME),update:a=>k.eN.put(A.P.USERS_UPDATE_PROFILE,a),login:a=>k.eN.post(A.P.USERS_LOGIN,a),socialLogin:a=>k.eN.post(A.P.SOCIAL_LOGIN,a),googleMobileLogin:a=>k.eN.post(A.P.GOOGLE_MOBILE_LOGIN,a),appleMobileLogin:a=>
51k.eN.post(A.P.APPLE_MOBILE_LOGIN,a),sendOtpCode:a=>k.eN.post(A.P.SEND_OTP_CODE,a),verifyOtpCode:a=>k.eN.post(A.P.VERIFY_OTP_CODE,a),OtpLogin:a=>k.eN.post(A.P.OTP_LOGIN,a),register:a=>k.eN.post(A.P.USERS_REGISTER,a),getResetPasswordOptions:a=>k.eN.post(A.P.USERS_RESET_PASSWORD_OPTIONS,a),forgotPassword:a=>k.eN.post(A.P.USERS_FORGOT_PASSWORD,a),forgotPasswordWithEmail:a=>k.eN.post(A.P.USERS_FORGOT_PASSWORD,a),verifyForgotPasswordToken:a=>k.eN.post(A.P.USERS_VERIFY_FORGOT_PASSWORD_TOKEN,a),validateResetToken:a=>k.eN.post(A.P.USERS_VALIDATE_RESET_TOKEN,a),resetPassword:a=>k.eN.post(A.P.USERS_RESET_PASSWORD,a),changePassword:a=>k.eN.post(A.P.USERS_CHANGE_PASSWORD,a),updateEmail:a=>k.eN.post(A.P.USERS_UPDATE_EMAIL,a),logout:()=>k.eN.post(A.P.USERS_LOGOUT,{}),createAddress:a=>k.eN.post("".concat(A.P.ADDRESSES),a),updateAddress:a=>{let{id:x,address:w}=a;return k.eN.put("".concat(A.P.ADDRESSES,"/").concat(x),{address:w})},deleteAddress:a=>{let{id:x,address:w}=a;return k.eN.put("".concat(A.P.ADDRESSES,"/").concat(x),{address:w})},subscribe:a=>F.Z.post("/api/".concat(A.P.USERS_SUBSCRIBE_TO_NEWSLETTER),a),contactUs:a=>k.eN.post(A.P.USERS_CONTACT_US,a),resendVerificationEmail:()=>k.eN.post(A.P.SEND_VERIFICATION_EMAIL,{}),generateReferrerCode:()=>k.eN.post(A.P.USER_PROFILE_GENERATE_REFERRER_CODE,{})},this.user_relationships={all:()=>k.eN.get(A.P.USERS_RELATIONSHIPS,{}),create:a=>k.eN.post(A.P.USERS_RELATIONSHIPS,{...a}),update:(a,x)=>k.eN.patch("".concat(A.P.USERS_RELATIONSHIPS,"/").concat(x),{...a}),delete:a=>k.eN.delete("".concat(A.P.USERS_RELATIONSHIPS,"/").concat(a))},this.wishlist={all:a=>k.eN.get(A.P.USERS_WISHLIST,{with:"product",orderBy:"created_at",sortedBy:"desc",...a}),toggle:a=>k.eN.post(A.P.USERS_WISHLIST_TOGGLE,a),remove:a=>k.eN.post("".concat(A.P.WISHLIST,"/toggle"),{product_id:a}),checkIsInWishlist:a=>{let{product_id:x}=a;return k.eN.get("".concat(A.P.WISHLIST,"/in_wishlist/").concat(x))}},this.cart={sync:a=>k.eN.post("".concat(A.P.CART,"/sync"),a),get:()=>k.eN.get(A.P.CART),delete:()=>k.eN.delete(A.P.CART)},this.settings={all:a=>k.eN.get(A.P.SETTINGS,{...a}),upload:a=>{let x=new FormData;return a.forEach(a=>{x.append("attachment[]",a)}),k.eN.post(A.P.UPLOADS,x,{headers:{"Content-Type":"multipart/form-data"}})},deleteAttachment:a=>k.eN.delete("".concat(A.P.UPLOADS,"/").concat(a)),getGeneral:()=>k.eN.get(A.P.GENERAL_SETTINGS),paymentGateways:()=>k.eN.get(A.P.PAYMENT_GATEWAYS)},this.cards={all:a=>k.eN.get(A.P.CARDS,{...a}),remove:a=>{let{id:x}=a;return k.eN.delete("".concat(A.P.CARDS,"/").concat(x))},addPaymentMethod:a=>k.eN.post(A.P.CARDS,a),makeDefaultPaymentMethod:a=>k.eN.post(A.P.SET_DEFAULT_CARD,a)},this.faqs={all:a=>{let{faq_type:x,issued_by:w,...F}=a;return k.eN.get(A.P.FAQS,{...F,search:k.eN.formatSearchParams({faq_type:x,issued_by:w})})},get:a=>k.eN.get("".concat(A.P.FAQS,"/").concat(a))},this.termsAndConditions={all:a=>{let{type:x,issued_by:w,...F}=a;return k.eN.get(A.P.TERMS_AND_CONDITIONS,{searchJoin:"and",...F,search:k.eN.formatSearchParams({type:x,issued_by:w})})},get:a=>k.eN.get("".concat(A.P.TERMS_AND_CONDITIONS,"/").concat(a))},this.flashSale={all:a=>{let{...x}=a;return k.eN.get(A.P.FLASH_SALE,{...x})},get:a=>{let{slug:x,language:w}=a;return k.eN.get("".concat(A.P.FLASH_SALE,"/").concat(x),{language:w,with:"products"})},getProductsByFlashSale:a=>{let{slug:x,...w}=a;return k.eN.get(A.P.PRODUCTS_BY_FLASH_SALE,{searchJoin:"and",slug:x,...w})}},this.refundPolicies={all:a=>{let{title:x,status:w,target:F,...V}=a;return k.eN.get(A.P.REFUND_POLICIES,{searchJoin:"and",...V,search:k.eN.formatSearchParams({title:x,target:F,status:w}),with:"shop;refunds"})}},this.notifyLogs={all:a=>k.eN.get(A.P.NOTIFY_LOGS,{...a}),get:a=>{let{id:x,language:w}=a;return k.eN.get("".concat(A.P.NOTIFY_LOGS,"/").concat(x),{language:w})},readNotifyLog:a=>k.eN.post(A.P.READ_NOTIFY_LOG,a),readAllNotifyLogs:a=>{let{...x}=a;return k.eN.post(A.P.READ_ALL_NOTIFY_LOG,{...x})}},this.notifications={list:a=>k.eN.get(A.P.NOTIFICATIONS,a),unreadCount:()=>k.eN.get(A.P.NOTIFICATIONS_UNREAD_COUNT),markRead:a=>k.eN.post("".concat(A.P.NOTIFICATIONS,"/").concat(a,"/read"),{}),markAllRead:()=>k.eN.post(A.P.NOTIFICATIONS_READ_ALL,{}),dismiss:a=>k.eN.post("".concat(A.P.NOTIFICATIONS,"/").concat(a,"/dismiss"),{})},this.becomeSeller={get:a=>{let{language:x}=a;return k.eN.get(A.P.BECAME_SELLER,{language:x})}},this.api={getShippingMethods:a=>{let{cep:x,...w}=a;return k.eN.get(A.P.SHIPPING_METHODS,{cep:x,...w})}},this.pbm={verify:a=>k.eN.post(A.P.PBM_VERIFY,a),activate:a=>k.eN.post(A.P.PBM_ACTIVATE,a),verifyPrices:a=>k.eN.post(A.P.PBM_VERIFY_PRICES,a),cartVerify:a=>k.eN.post(A.P.CART_VERIFY,a)},this.events={track:a=>k.eN.post(A.P.EVENTS_TRACK,a)},this.recommendations={trending:a=>k.eN.get(A.P.RECOMMENDATIONS_TRENDING,a),lastSeen:a=>k.eN.get(A.P.RECOMMENDATIONS_LAST_SEEN,a),fbt:a=>k.eN.get("".concat(A.P.RECOMMENDATIONS_FBT,"/").concat(a)),cab:a=>k.eN.get("".concat(A.P.RECOMMENDATIONS_CAB,"/").concat(a))}}};x.Z=V},67181:function(a,x,w){"use strict";w.d(x,{ID:function(){return useCartVerify},Kd:function(){return usePBMVerifyPrices},U_:function(){return usePBMVerify},dV:function(){return usePBMActivate}});var A=w(88767),k=w(57659),F=w(55678);let usePBMVerify=()=>(0,A.useMutation)(k.Z.pbm.verify,{onError:a=>{let{response:{data:x}}=null!=a?a:{};F.toast.error((null==x?void 0:x.message)||"Erro ao verificar CPF")}}),usePBMActivate=()=>(0,A.useMutation)(k.Z.pbm.activate,{onError:a=>{var x;let w=null==a?void 0:null===(x=a.response)||void 0===x?void 0:x.data;F.toast.error((null==w?void 0:w.message)||"Erro ao concluir ades\xe3o ao programa laboratorial")}}),usePBMVerifyPrices=()=>(0,A.useMutation)(k.Z.pbm.verifyPrices,{onError:a=>{var x;let w=null==a?void 0:null===(x=a.response)||void 0===x?void 0:x.data;F.toast.error((null==w?void 0:w.message)||"Erro ao verificar pre\xe7os PBM")}}),useCartVerify=()=>(0,A.useMutation)(k.Z.pbm.cartVerify)},43516:function(a,x,w){"use strict";w.d(x,{ib:function(){return useDeleteAttachment},AD:function(){return usePaymentGateways},rV:function(){return useSettings},mU:function(){return useSubscription},xh:function(){return useUploads},yW:function(){return useVerifyCoupon}});var A=w(88767),k=w(57659),F=w(95439),V=w(67294);let getPreviewImage=a=>{let x=[];return a&&(x=Array.isArray(a)?a.map(a=>{let{thumbnail:x}=a;return{preview:x}}):[{preview:a.thumbnail}]),x};var B=w(48583),z=w(70451),G=w(55678),$=w(11163),W=w(31955),Z=w(38437);function useSettings(){var a,x;let{locale:w}=(0,$.useRouter)(),{data:V,isLoading:B,error:z,isFetching:G}=(0,A.useQuery)([F.P.SETTINGS,{language:w}],a=>{let{queryKey:x,pageParam:w}=a;return k.Z.settings.all(Object.assign({},x[1],w))},{staleTime:432e5}),{isUnderMaintenance:K=!1,maintenance:Y={}}=null!==(a=null==V?void 0:V.options)&&void 0!==a?a:{};return W.Z.set(Z._t,JSON.stringify({isUnderMaintenance:K,maintenance:Y})),{settings:null!==(x=null==V?void 0:V.options)&&void 0!==x?x:{},isLoading:B,error:z,isFetching:G}}function usePaymentGateways(){let{data:a,isLoading:x,error:w}=(0,A.useQuery)(["payment-gateways"],()=>k.Z.settings.paymentGateways(),{staleTime:432e5});return{paymentGateways:null!=a?a:[],isLoading:x,error:w}}let useUploads=a=>{let{onChange:x,defaultFiles:w}=a,[F,B]=(0,V.useState)(getPreviewImage(w)),{mutate:z,isLoading:G}=(0,A.useMutation)(k.Z.settings.upload,{onSuccess:a=>{if(x){let w=null==a?void 0:a.map(a=>{let{__typename:x,...w}=a;return w});x(w),B(getPreviewImage(w))}}});return{mutate:function(a){z(a)},isLoading:G,files:F}},useDeleteAttachment=()=>{let{mutate:a,isLoading:x}=(0,A.useMutation)(k.Z.settings.deleteAttachment,{onSuccess:a=>{console.log(a)}});return{deleteAttachment:a,isLoading:x}};function useSubscription(){let[a,x]=(0,V.useState)(!1),w=(0,A.useMutation)(k.Z.users.subscribe,{onSuccess:()=>{G.toast.success("Parab\xe9ns! Voc\xea se inscreveu com sucesso em nossa newsletter."),x(!0)},onError:()=>{x(!1)}});return{...w,isSubscribed:a}}function useVerifyCoupon(a){let{setCodeFieldError:x,subtotal:w,showSuccessToast:F=!0,silent:V=!1}=a,[$,W]=(0,B.KO)(z.GO),{mutate:Z,isLoading:K}=(0,A.useMutation)(k.Z.coupons.verify,{onSuccess:(a,A)=>{let k=null==a?void 0:a.coupon,B=((null==A?void 0:A.code)||(null==k?void 0:k.code)||"").trim();if((null==k?void 0:k.minimum_cart_amount)&&w<k.minimum_cart_amount){if(W(null),!V){let a=k.minimum_cart_amount-w;x("Voc\xea precisa adicionar mais R$ ".concat(a.toFixed(2)," ao carrinho para usar este cupom."))}return}if(!a.is_valid){if(W(null),!V){let w="string"==typeof(null==a?void 0:a.message)?a.message.trim():"";x(w||"error-invalid-coupon")}return}W(B?{...k,code:B}:k),F&&G.toast.success("Cupom aplicado com sucesso!")},onError:a=>{var w,A;if(V)return;let k=null==a?void 0:null===(w=a.response)||void 0===w?void 0:w.data,F=(null==k?void 0:null===(A=k.error)||void 0===A?void 0:A.message)||(null==k?void 0:k.message)||"Cupom n\xe3o encontrado ou inv\xe1lido";x(F)}});return{mutate:Z,isLoading:K,applyCoupon:W}}},90846:function(a,x,w){"use strict";w.d(x,{L:function(){return k}});var A=w(15103);let k=(0,A.cn)(null)},91341:function(a,x,w){"use strict";w.d(x,{AW:function(){return useContact},Io:function(){return useUpdateUser},Tk:function(){return useSendOtpCode},Wj:function(){return useAppleMobileLogin},Xl:function(){return useGoogleMobileLogin},_7:function(){return useVerifyOtpCode},aF:function(){return useUser},aU:function(){return useLogout},f0:function(){return useLogin},hh:function(){return useValidateResetToken},hv:function(){return useOtpLogin},mI:function(){return useResetPassword},mr:function(){return useRegister},y6:function(){return useResendVerificationEmail},y8:function(){return useChangePassword}});var A=w(28692);w(41402);
51var k=w(53649),F=w(75814),V=w(97514),B=w(57659),z=w(95439),G=w(10124),$=w(80749),W=w(18272),Z=w(48898),K=w(74824),Y=w(99124),J=w(42990),ee=w(86492),et=w(70451),er=w(87066),en=w(48583),ei=w(31955),eo=w(11163),ea=w(67294),es=w(88767),el=w(55678),eu=w(90846),ec=w(58960),ed=w(13027),ef=w(21210);let ep="netcore_initialized_cpf",eh="netcore_login_trigger_reason",em="netcore_first_launch_synced",eg=null,setNetcoreLoginTrigger=a=>{try{sessionStorage.setItem(eh,a)}catch(a){}},consumeNetcoreLoginTrigger=()=>{try{let a=sessionStorage.getItem(eh);if("login"===a||"signup"===a||"social"===a)return sessionStorage.removeItem(eh),a}catch(a){}return null},initializeNetcoreForUser=(a,x)=>{let w=sessionStorage.getItem(ep);if(w===a||eg===a)return!1;(0,ed.Xb)(a),(0,ed.x4)(a);let A=(0,ed.fW)(x);(0,ed.Lj)(A);try{var k;(null===(k=window.ReactNativeWebView)||void 0===k?void 0:k.postMessage)&&(window.ReactNativeWebView.postMessage(JSON.stringify({type:"SET_USER_IDENTITY",userIdentity:a})),window.ReactNativeWebView.postMessage(JSON.stringify({type:"USER_LOGIN",cpf:a})),window.ReactNativeWebView.postMessage(JSON.stringify({type:"UPDATE_USER_PROFILE",userProfile:A})))}catch(a){}return sessionStorage.setItem(ep,a),eg=a,!0};function useUser(){let{enabled:a=!0,onSuccess:x}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[w]=(0,en.KO)(ee.O),[A,k]=(0,en.KO)(eu.L),{setEmailVerified:F,getEmailVerified:G}=(0,J.d)(),{emailVerified:$}=G(),W=(0,eo.useRouter)(),Z=(0,ea.useRef)(null),{data:K,isLoading:et,isRefetching:ei,error:el,isFetchedAfterMount:ec,refetch:ed}=(0,es.useQuery)([z.P.USERS_ME],B.Z.users.me,{enabled:w&&a,retry:!1,staleTime:3e5,onSuccess:a=>{if(k(a),null==x||x(),a&&(a.cpf||a.document)&&a.email){let x=sessionStorage.getItem("gtm_login_sent");x||((0,Y.vJ)({cpf:a.cpf||a.document||"",email:a.email||""}),sessionStorage.setItem("gtm_login_sent","true"))}if(!1===$){F(!0),W.reload();return}},onError:a=>{if(er.Z.isAxiosError(a)){var x;if((null==a?void 0:null===(x=a.response)||void 0===x?void 0:x.status)===409){F(!1),W.push(V.Z.verifyEmail);return}if(W.pathname===V.Z.verifyEmail)return}}});return(0,ea.useEffect)(()=>{w&&K&&k(K),w||k(null)},[w,K]),(0,ea.useEffect)(()=>{var a;if(!K)return;let x=K.cpf||K.document;if(!x)return;let w=!!sessionStorage.getItem(eh),A=!!(null===(a=window.ReactNativeWebView)||void 0===a?void 0:a.postMessage),k=!!sessionStorage.getItem(em),F=A&&!k;if(!(w||F))return;let V=sessionStorage.getItem(ep);if(Z.current===x||V===x){consumeNetcoreLoginTrigger(),F&&sessionStorage.setItem(em,"true");return}consumeNetcoreLoginTrigger();let B=initializeNetcoreForUser(x,K);B&&(Z.current=x,F&&sessionStorage.setItem(em,"true"))},[null==K?void 0:K.cpf,null==K?void 0:K.document]),{me:K,isLoading:et,isRefetchingUser:ei,refetchUser:ed,error:el,isAuthorized:w,isFetchedAfterMount:ec}}let useUpdateUser=a=>{let x=(0,es.useQueryClient)(),{closeModal:w}=(0,F.SO)(),A=(null==a?void 0:a.showToast)!==!1,k=(null==a?void 0:a.closeModal)!==!1;return(0,es.useMutation)(B.Z.users.update,{onSuccess:(a,x)=>{if(A&&el.toast.success("Perfil atualizado com sucesso"),x){let a=(0,ed.fW)(x);(0,ed.Lj)(a),(x.cpf||x.document)&&(0,Y.BL)({cpf:x.cpf||x.document||"",email:x.email||"",first_name:x.first_name||"",last_name:x.last_name||"",gender:x.gender||"",phone:x.phone||x.cellphone||"",social_name:x.social_name||"",birth_date:x.birth_date||"",mobile:(0,Y.s2)()});try{var F;(null===(F=window.ReactNativeWebView)||void 0===F?void 0:F.postMessage)&&window.ReactNativeWebView.postMessage(JSON.stringify({type:"UPDATE_USER_PROFILE",userProfile:a}))}catch(a){}}k&&w()},onError:a=>{A&&el.toast.error("Algo deu errado")},onSettled:()=>{x.invalidateQueries(z.P.USERS_ME)}})},useContact=a=>{let{reset:x}=a;return(0,es.useMutation)(B.Z.users.contactUs,{onSuccess:a=>{a.success?(el.toast.success("".concat((0,A.P4)(a.message))),x()):el.toast.error("".concat((0,A.P4)(a.message)))},onError:a=>{console.log(a)}})};function useLogin(){let a=(0,eo.useRouter)(),[x,w]=(0,en.KO)(ee.O),{closeModal:A}=(0,F.SO)(),k=(0,es.useQueryClient)(),[V,$]=(0,ea.useState)(null),{mutate:W,mutateAsync:Z,isLoading:Y}
51=(0,es.useMutation)(B.Z.users.login,{onSuccess:async(x,k)=>{let{email:F=""}=k;if(!x.token){$("error-credential-wrong"),(0,K.b6)({method:"email_password",reason:"invalid_credentials"});return}(0,G.j9)(x.token,x.permissions,x.refresh_token),await (0,ef.D)(),w(!0),setNetcoreLoginTrigger("login");let V=sessionStorage.getItem("redirect_after_login");V&&(sessionStorage.removeItem("redirect_after_login"),a.push(V)),A()},onError:a=>{var x,w,A;let k=null==a?void 0:null===(A=a.response)||void 0===A?void 0:null===(w=A.data)||void 0===w?void 0:null===(x=w.error)||void 0===x?void 0:x.code;"NEEDS_PASSWORD_SETUP"===k?$("error-needs-password-setup"):$("error-credential-wrong"),(0,K.b6)({method:"email_password",reason:null!=k?k:"request_failed"})},onSettled:()=>{k.invalidateQueries(z.P.NOTIFY_LOGS)}});return{mutate:W,mutateAsync:Z,isLoading:Y,serverError:V,setServerError:$}}function useGoogleMobileLogin(){let a=(0,eo.useRouter)(),[x,w]=(0,en.KO)(ee.O),{closeModal:A}=(0,F.SO)(),k=(0,es.useQueryClient)(),[V,$]=(0,ea.useState)(null),{mutate:W,mutateAsync:Z,isLoading:Y}=(0,es.useMutation)(a=>B.Z.users.googleMobileLogin({idToken:a.idToken}),{onSuccess:async(x,k)=>{let{userEmail:F=""}=k;if(!x.token){$("error-credential-wrong"),(0,K.b6)({method:"google_mobile",reason:"invalid_credentials"});return}(0,G.j9)(x.token,x.permissions,x.refresh_token),await (0,ef.D)(),w(!0),setNetcoreLoginTrigger("social");let V=sessionStorage.getItem("redirect_after_login");V&&(sessionStorage.removeItem("redirect_after_login"),a.push(V)),A()},onError:()=>{$("error-credential-wrong"),(0,K.b6)({method:"google_mobile",reason:"request_failed"})},onSettled:()=>{k.invalidateQueries(z.P.NOTIFY_LOGS)}});return{mutate:W,mutateAsync:Z,isLoading:Y,serverError:V,setServerError:$}}function useAppleMobileLogin(){let a=(0,eo.useRouter)(),[x,w]=(0,en.KO)(ee.O),{closeModal:A}=(0,F.SO)(),k=(0,es.useQueryClient)(),[V,$]=(0,ea.useState)(null),{mutate:W,mutateAsync:Z,isLoading:Y}=(0,es.useMutation)(a=>B.Z.users.appleMobileLogin({idToken:a.idToken,userEmail:a.userEmail}),{onSuccess:async(x,k)=>{let{userEmail:F=""}=k;if(!x.token){$("error-credential-wrong"),(0,K.b6)({method:"apple_mobile",reason:"invalid_credentials"});return}(0,G.j9)(x.token,x.permissions,x.refresh_token),await (0,ef.D)(),w(!0),setNetcoreLoginTrigger("social");let V=sessionStorage.getItem("redirect_after_login");V&&(sessionStorage.removeItem("redirect_after_login"),a.push(V)),A()},onError:()=>{$("error-credential-wrong"),(0,K.b6)({method:"apple_mobile",reason:"request_failed"})},onSettled:()=>{k.invalidateQueries(z.P.NOTIFY_LOGS)}});return{mutate:W,mutateAsync:Z,isLoading:Y,serverError:V,setServerError:$}}function useSendOtpCode(){let{verifyOnly:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[x,w]=(0,ea.useState)(null),[A,F]=(0,en.KO)(k.R),{mutate:V,isLoading:z}=(0,es.useMutation)(B.Z.users.sendOtpCode,{onSuccess:x=>
51{if(!x.success){w(x.message);return}F({...A,otpId:null==x?void 0:x.id,isContactExist:null==x?void 0:x.is_contact_exist,phoneNumber:null==x?void 0:x.phone_number,step:(null==x?void 0:x.is_contact_exist)?"OtpForm":"RegisterForm",...a&&{step:"OtpForm"}})},onError:a=>{console.log(a.message)}});return{mutate:V,isLoading:z,serverError:x,setServerError:w}}function useVerifyOtpCode(a){let{onVerifySuccess:x}=a,[w,A]=(0,en.KO)(k.R),[F,V]=(0,ea.useState)(null),{mutate:z,isLoading:G}=(0,es.useMutation)(B.Z.users.verifyOtpCode,{onSuccess:a=>{if(!a.success){V(null==a?void 0:a.message);return}x&&x({phone_number:w.phoneNumber}),A({...k.L})},onError:a=>{el.toast.error(a.message)}});return{mutate:z,isLoading:G,serverError:F,setServerError:V}}function useOtpLogin(){let[a,x]=(0,en.KO)(k.R),[w,A]=(0,en.KO)(ee.O),{closeModal:V}=(0,F.SO)(),{setToken:G}=(0,J.d)(),$=new es.QueryClient,[W,Z]=(0,ea.useState)(null),{mutate:Y,isLoading:et}=(0,es.useMutation)(B.Z.users.OtpLogin,{onSuccess:async a=>{if(!a.token){Z("text-otp-verify-failed"),(0,K.b6)({method:"otp",reason:"invalid_credentials"});return}G(a.token),await (0,ef.D)(),A(!0),x({...k.L}),V()},onError:()=>{(0,K.b6)({method:"otp",reason:"request_failed"})},onSettled:()=>{$.invalidateQueries(z.P.NOTIFY_LOGS),$.clear()}});return{mutate:function(x){Y({...x,phone_number:a.phoneNumber,otp_id:a.otpId})},isLoading:et,serverError:W,setServerError:Z}}function useRegister(){let a=(0,es.useQueryClient)(),[x,w]=(0,en.KO)(ee.O),{closeModal:A}=(0,F.SO)(),[k,V]=(0,ea.useState)(null),$=(0,eo.useRouter)(),W=(0,es.useMutation)(B.Z.users.login,{onSuccess:async(a,x)=>{(0,G.j9)(a.token,a.permissions,a.refresh_token),await (0,ef.D)(),w(!0);let k=sessionStorage.getItem("redirect_after_login");if(k)sessionStorage.removeItem("redirect_after_login"),$.push(k);else{let{pathname:a}=$;$.replace(a,void 0,{shallow:!0})}A()}}),{mutate:Z,isLoading:K}=(0,es.useMutation)(B.Z.users.register,{onSuccess:(a,x)=>{(0,Y._Y)({cpf:x.cpf,email:x.email,first_name:x.first_name,last_name:x.last_name,gender:x.gender,phone:x.cellphone||x.phone||"",social_name:x.social_name||"",birth_date:x.birth_date,mobile:(0,Y.s2)()});let w=x.cpf;w&&(setNetcoreLoginTrigger("signup"),initializeNetcoreForUser(w,{first_name:x.first_name,last_name:x.last_name,email:x.email,cellphone:x.cellphone,phone:x.phone,gender:x.gender,birth_date:x.birth_date,cpf:x.cpf})),W.mutate({email:x.email,password:x.password})},onError:a=>{let{response:x={}}=null!=a?a:{},{data:w={}}=x,A=w.error||w,k=null==A?void 0:A.code,F=null==A?void 0:A.message,B=null==A?void 0:A.details;if("EMAIL_ALREADY_IN_USE"===k){V({_account_exists:k});return}if(B&&Array.isArray(B)&&B.length>0){el.toast.error(F);let a={};B.forEach(x=>{x.field&&(a[x.field]=[""])}),V(a)}else F&&el.toast.error(F)},onSettled:()=>{a.invalidateQueries(z.P.NOTIFY_LOGS)}});return{mutate:Z,isLoading:K,formError:k,setFormError:V}}function useResendVerificationEmail(){let{mutate:a,isLoading:x}=(0,es.useMutation)(B.Z.users.resendVerificationEmail,{onSuccess:a=>{(null==a?void 0:a.success)&&el.toast.success("E-mail enviado com sucesso")},onError:a=>{let{response:{data:x}}=null!=a?a:{};el.toast.error(null==x?void 0:x.message)}});return{mutate:a,isLoading:x}}function useLogout(){let a=(0,es.useQueryClient)(),[x,w]=(0,en.KO)(ee.O),[A,k]=(0,en.KO)(et.y9),[,F]=(0,en.KO)(ec.wM),performCleanup=()=>{(0,$.Wx)(),ei.Z.remove(W.pD),ei.Z.remove(W.He),w(!1),sessionStorage.removeItem(ep),sessionStorage.removeItem(eh),sessionStorage.removeItem(em),eg=null,sessionStorage.removeItem("gtm_login_sent"),localStorage.removeItem(Z.K);try{var x;(null===(x=window.ReactNativeWebView)||void 0===x?void 0:x.postMessage)&&window.ReactNativeWebView.postMessage(JSON.stringify({type:"USER_LOGOUT"}))}catch(a){}k(),F(),a.removeQueries(z.P.USERS_ME)},{mutate:V,mutateAsync:G,isLoading:K}=(0,es.useMutation)(B.Z.users.logout,{onSuccess:async()=>{performCleanup()},onError:async()=>{performCleanup()},onSettled:()=>{a.clear()}});return{mutate:function(){V()},signOutAsync:G,isLoading:K}}function useChangePassword(){let[a,x]=(0,ea.useState)(null),{mutate:w,isLoading:A}=(0,es.useMutation)(B.Z.users.changePassword,{onSuccess:a=>{if(a){var w;x({password:null!==(w=null==a?void 0:a.message)&&void 0!==w?w:""});return}el.toast.success("Senha alterada com sucesso")},onError:a=>{let{response:w={}}=null!=a?a:{},{data:A={}}=w,k=A.error||A,F=null==k?void 0:k.message,V=null==k?void 0:k.details;if(F&&el.toast.error(F),V&&Array.isArray(V)&&V.length>0){let a={};
51V.forEach(x=>{x.field&&(a[x.field]=[""])}),x(a)}}});return{mutate:w,isLoading:A,formError:a,setFormError:x}}function useResetPassword(){let a=(0,eo.useRouter)(),x=(0,es.useQueryClient)(),{closeModal:w}=(0,F.SO)(),[A,k]=(0,en.KO)(ee.O),[z,$]=(0,ea.useState)(null),{mutate:W,isLoading:Z}=(0,es.useMutation)(B.Z.users.resetPassword,{onSuccess:async x=>{if(null==x?void 0:x.token){(0,G.j9)(x.token,x.permissions,x.refresh_token),await (0,ef.D)(),k(!0),el.toast.success("Senha alterada com sucesso!");let A=sessionStorage.getItem("redirect_after_login");A?(sessionStorage.removeItem("redirect_after_login"),a.push(A)):a.push(V.Z.home),w()}else el.toast.success("Senha alterada com sucesso!"),a.push(V.Z.home)},onSettled:()=>{x.clear()},onError:a=>{let{response:{data:x}}=null!=a?a:{};el.toast.error("Ocorreu um erro ao alterar a senha. Tente novamente."),$(x)}});return{mutate:W,isLoading:Z,formError:z}}function useValidateResetToken(){let[a,x]=(0,ea.useState)(null),{mutate:w,isLoading:A}=(0,es.useMutation)(B.Z.users.validateResetToken,{onSuccess:a=>{(null==a?void 0:a.valid)?x(null):x("Token inv\xe1lido ou expirado")},onError:a=>{var w;let{response:A={}}=null!=a?a:{},{data:k={}}=A,F=k.error||k,V=null!==(w=null==F?void 0:F.message)&&void 0!==w?w:"Token inv\xe1lido ou expirado";x(V)}});return{mutate:w,isLoading:A,error:a,setError:x}}},10124:function(a,x,w){"use strict";w.d(x,{Ft:function(){return hasAccess},M$:function(){return $},WA:function(){return getAuthCredentials},ce:function(){return G},j9:function(){return setAuthCredentials}});var A=w(31955),k=w(76489),F=w(80749),V=w(2752),B=w(18272),z=w(38437);z.Mc,z.dL,z.G9,z.Mc,z.dL;let G=[z.Mc,z.dL,z.G9],$=[z.Mc];function setAuthCredentials(a,x,w){if(!(0,V.mx)(a))return;let k=A.Z.get(B.cX),z=w&&(0,V.mx)(w)?w:(0,V.mx)(k)?k:void 0;(0,F.SK)({accessToken:a,refreshToken:z,permissions:x})}function getAuthCredentials(a){var x;let w;return(w=a?k.parse(null!==(x=a.req.headers.cookie)&&void 0!==x?x:"")[z.E$]:A.Z.get(z.E$))?JSON.parse(w):{token:null,permissions:null}}function hasAccess(a,x){return!!x&&!!(null==a?void 0:a.find(a=>x.includes(a)))}z.dL,z.dL,z.G9},38437:function(a,x,w){"use strict";var A,k;w.d(x,{DL:function(){return A},E$:function(){return z},G9:function(){return B},Mc:function(){return F},Ts:function(){return $},Xg:function(){return W},_t:function(){return G},dL:function(){return V}}),(k=A||(A={})).Billing="billing",k.Shipping="shipping";let F="super_admin",V="store_owner",B="staff",z="AUTH_CRED_SHOP",G="MAINTENANCE_DETAILS",$=40,W=5},12103:function(a,x,w){"use strict";w.d(x,{Q:function(){return mapPaginatorData}});let isObject=a=>"object"==typeof a&&null!==a,isObjectCustom=a=>isObject(a)&&!(a instanceof RegExp)&&!(a instanceof Error)&&!(a instanceof Date),A=Symbol("mapObjectSkip"),_mapObject=(a,x,w,k=new WeakMap)=>{if(w={deep:!1,target:{},...w},k.has(a))return k.get(a);k.set(a,w.target);let{target:F}=w;delete w.target;let mapArray=a=>a.map(a=>isObjectCustom(a)?_mapObject(a,x,w,k):a);if(Array.isArray(a))return mapArray(a);for(let[V,B]of Object.entries(a)){let z=x(V,B,a);if(z===A)continue;let[G,$,{shouldRecurse:W=!0}={}]=z;"__proto__"!==G&&(w.deep&&W&&isObjectCustom($)&&($=Array.isArray($)?mapArray($):_mapObject($,x,w,k)),F[G]=$)}return F};function mapObject(a,x,w){if(!isObject(a))throw TypeError(`Expected an object, got \`${a}\` (${typeof a})`);return _mapObject(a,x,w)}let k=/[\p{Lu}]/u,F=/[\p{Ll}]/u,V=/^[\p{Lu}](?![\p{Lu}])/gu,B=/([\p{Alpha}\p{N}_]|$)/u,z=/[_.\- ]+/,G=RegExp("^"+z.source),$=RegExp(z.source+B.source,"gu"),W=RegExp("\\d+"+B.source,"gu"),preserveCamelCase=(a,x,w,A)=>{let V=!1,B=!1,z=!1,G=!1;for(let $=0;$<a.length;$++){let W=a[$];G=!($>2)||"-"===a[$-3],V&&k.test(W)?(a=a.slice(0,$)+"-"+a.slice($),V=!1,z=B,B=!0,$++):B&&z&&F.test(W)&&(!G||A)?(a=a.slice(0,$-1)+"-"+a.slice($-1),z=B,B=!1,V=!0):(V=x(W)===W&&w(W)!==W,z=B,B=w(W)===W&&x(W)!==W)}return a},preserveConsecutiveUppercase=(a,x)=>(V.lastIndex=0,a.replaceAll(V,a=>x(a))),postProcess=(a,x)=>($.lastIndex=0,W.lastIndex=0,a.replaceAll(W,(w,A,k)=>["_","-"].includes(a.charAt(k+w.length))?w:x(w)).replaceAll($,(a,w)=>x(w)));let QuickLRU=class QuickLRU extends Map{constructor(a={}){if(super(),!(a.maxSize&&a.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");if("number"==typeof a.maxAge&&0===a.maxAge)throw TypeError("`maxAge` must be a number greater than 0");this.maxSize=a.maxSize,this.maxAge=a.maxAge||Number.POSITIVE_INFINITY,this.onEviction=a.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(a){if("function"==typeof this.onEviction)for(let[x,w]of a)this.onEviction(x,w.value)}_deleteIfExpired(a,x){return!!("number"==typeof x.expiry&&x.expiry<=Date.now())&&("function"==typeof this.onEviction&&this.onEviction(a,x.value),this.delete(a))}_getOrDeleteIfExpired(a,x){let w=this._deleteIfExpired(a,x);if(!1===w)return x.value}
51_getItemValue(a,x){return x.expiry?this._getOrDeleteIfExpired(a,x):x.value}_peek(a,x){let w=x.get(a);return this._getItemValue(a,w)}_set(a,x){this.cache.set(a,x),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(a,x){this.oldCache.delete(a),this._set(a,x)}*_entriesAscending(){for(let a of this.oldCache){let[x,w]=a;if(!this.cache.has(x)){let A=this._deleteIfExpired(x,w);!1===A&&(yield a)}}for(let a of this.cache){let[x,w]=a,A=this._deleteIfExpired(x,w);!1===A&&(yield a)}}get(a){if(this.cache.has(a)){let x=this.cache.get(a);return this._getItemValue(a,x)}if(this.oldCache.has(a)){let x=this.oldCache.get(a);if(!1===this._deleteIfExpired(a,x))return this._moveToRecent(a,x),x.value}}set(a,x,{maxAge:w=this.maxAge}={}){let A="number"==typeof w&&w!==Number.POSITIVE_INFINITY?Date.now()+w:void 0;return this.cache.has(a)?this.cache.set(a,{value:x,expiry:A}):this._set(a,{value:x,expiry:A}),this}has(a){return this.cache.has(a)?!this._deleteIfExpired(a,this.cache.get(a)):!!this.oldCache.has(a)&&!this._deleteIfExpired(a,this.oldCache.get(a))}peek(a){return this.cache.has(a)?this._peek(a,this.cache):this.oldCache.has(a)?this._peek(a,this.oldCache):void 0}delete(a){let x=this.cache.delete(a);return x&&this._size--,this.oldCache.delete(a)||x}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(a){if(!(a&&a>0))throw TypeError("`maxSize` must be a number greater than 0");let x=[...this._entriesAscending()],w=x.length-a;w<0?(this.cache=new Map(x),this.oldCache=new Map,this._size=x.length):(w>0&&this._emitEvictions(x.slice(0,w)),this.oldCache=new Map(x.slice(w)),this.cache=new Map,this._size=0),this.maxSize=a}*keys(){for(let[a]of this)yield a}*values(){for(let[,a]of this)yield a}*[Symbol.iterator](){for(let a of this.cache){let[x,w]=a,A=this._deleteIfExpired(x,w);!1===A&&(yield[x,w.value])}for(let a of this.oldCache){let[x,w]=a;if(!this.cache.has(x)){let a=this._deleteIfExpired(x,w);!1===a&&(yield[x,w.value])}}}*entriesDescending(){let a=[...this.cache];for(let x=a.length-1;x>=0;--x){let w=a[x],[A,k]=w,F=this._deleteIfExpired(A,k);!1===F&&(yield[A,k.value])}a=[...this.oldCache];for(let x=a.length-1;x>=0;--x){let w=a[x],[A,k]=w;if(!this.cache.has(A)){let a=this._deleteIfExpired(A,k);!1===a&&(yield[A,k.value])}}}*entriesAscending(){for(let[a,x]of this._entriesAscending())yield[a,x.value]}get size(){if(!this._size)return this.oldCache.size;let a=0;for(let x of this.oldCache.keys())!this.cache.has(x)&&a++;return Math.min(this._size+a,this.maxSize)}entries(){return this.entriesAscending()}forEach(a,x=this){for(let[w,A]of this.entriesAscending())a.call(x,A,w,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}};let has=(a,x)=>a.some(a=>"string"==typeof a?a===x:(a.lastIndex=0,a.test(x))),Z=new QuickLRU({maxSize:1e5}),camelcase_keys_isObject=a=>"object"==typeof a&&null!==a&&!(a instanceof RegExp)&&!(a instanceof Error)&&!(a instanceof Date),transform=(a,x={})=>{if(!camelcase_keys_isObject(a))return a;let{exclude:w,pascalCase:A=!1,stopPaths:k,deep:F=!1,preserveConsecutiveUppercase:V=!1}=x,B=new Set(k),makeMapper=a=>(x,k)=>{if(F&&camelcase_keys_isObject(k)){let w=void 0===a?x:`${a}.${x}`;B.has(w)||(k=mapObject(k,makeMapper(w)))}if(!(w&&has(w,x))){let a=A?`${x}_`:x;if(Z.has(a))x=Z.get(a);else{let w=function(a,x){if(!("string"==typeof a||Array.isArray(a)))throw TypeError("Expected the input to be `string | string[]`");if(x={pascalCase:!1,preserveConsecutiveUppercase:!1,...x},0===(a=Array.isArray(a)?a.map(a=>a.trim()).filter(a=>a.length).join("-"):a.trim()).length)return"";let w=!1===x.locale?a=>a.toLowerCase():a=>a.toLocaleLowerCase(x.locale),A=!1===x.locale?a=>a.toUpperCase():a=>a.toLocaleUpperCase(x.locale);if(1===a.length)return z.test(a)?"":x.pascalCase?A(a):w(a);let k=a!==w(a);return k&&(a=preserveCamelCase(a,w,A,x.preserveConsecutiveUppercase)),a=a.replace(G,""),a=x.preserveConsecutiveUppercase?preserveConsecutiveUppercase(a,w):w(a),x.pascalCase&&(a=A(a.charAt(0))+a.slice(1)),postProcess(a,A)}(x,{pascalCase:A,locale:!1,preserveConsecutiveUppercase:V});x.length<100&&Z.set(a,w),x=w}}return[x,k]};return mapObject(a,makeMapper(void 0))},mapPaginatorData=a=>{var x;if(!a)return null;let{data:w,...A}=Array.isArray(a)?Object.keys(a).map(w=>transform(a[w],x)):transform(a,x);return{...A,hasMorePages:A.lastPage!==A.currentPage,firstItem:A.from,lastItem:A.to}}},74478:function(a,x,w){"use strict";w.d(x,{D:function(){return clearPbmVerifyCache},O:function(){return usePbmCartVerify}});var A=w(67294),k=w(48583),F=w(18677),V=w(67181),B=w(86566),z=w(50633);let G=null;function clearPbmVerifyCache(){G=null}function syncComboStateFromCart(a,x){let w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"idle",A=(0,B.Lq)(a),k=(0,B.Bm)(a),F=A.filter(a=>{var x;return null===(x=a.pbm_info)||void 0===x?void 0:x.combo_applied}).length;x({status:"idle"===w&&k>0&&F>0?"applied":w,savingsTotal:k,discountedItemCount:F})}function usePbmCartVerify(){let{items:a,applyPbmVerifiedPrices:x,revertInterplayersPbmToCatalog:w}=(0,F.jD)(),{mutateAsync:$}=(0,V.ID)(),[,W]=(0,k.KO)(z.Z),Z=(0,A.useRef)(null),K=(0,A.useRef)(0),Y=(0,A.useRef)(null),J=(0,A.useRef)($),ee=(0,A.useRef)(a);J.current=$,ee.current=a;let et=(0,A.useMemo)(()=>(0,B.X_)(a),[a]);(0,A.useEffect)(()=>{let a=ee.current;if(Z.current&&(clearTimeout(Z.current),Z.current=null),!(0,B.qs)(a)){Y.current=null,G=null,W({status:"idle",savingsTotal:0,discountedItemCount:0});return}let A=(0,B.VS)(a);if(!A){W({status:"idle",savingsTotal:0,discountedItemCount:0});return}if(et===G){syncComboStateFromCart(a,W);return}if(et!==Y.current)return Z.current=setTimeout(()=>{Z.current=null;let a=ee.current,A=(0,B.VS)(a),k=(0,B.X_)(a);if(!A||!(0,B.qs)(a))return;if(k===G){syncComboStateFromCart(a,W);return}if(k===Y.current)return;let F=++K.current;Y.current=k,W(a=>
51({...a,status:"validating"})),J.current(A).then(w=>{if(F!==K.current)return;if((0,B.X_)(ee.current)!==k){Y.current=null;return}Y.current=null,G=k,x(w);let A=(0,B.Lq)(a),V=w.reduce((a,x)=>{var w;let k=A.find(a=>a.sku===x.sku);if(!k)return a;let F=(0,B.DH)(k),V=(F-x.sale_price)*(null!==(w=k.quantity)&&void 0!==w?w:1);return V>0?a+V:a},0),z=w.filter(a=>{let x=A.find(x=>x.sku===a.sku);return!!x&&a.sale_price<(0,B.DH)(x)-.001}).length;W({status:V>0?"applied":"idle",savingsTotal:V,discountedItemCount:z})}).catch(()=>{if(F===K.current){if((0,B.X_)(ee.current)!==k){Y.current=null;return}Y.current=null,w(),W({status:"error",savingsTotal:0,discountedItemCount:0})}})},500),()=>{Z.current&&(clearTimeout(Z.current),Z.current=null)}},[x,w,W,et])}},80749:function(a,x,w){"use strict";w.d(x,{SK:function(){return persistQualidocAuthCookies},Wx:function(){return clearAuthCookies},mY:function(){return z}});var A=w(31955),k=w(38437),F=w(18272),V=w(2752),B=w(42229);let z="/";function persistQualidocAuthCookies(a){let{accessToken:x,refreshToken:w,permissions:B}=a;if(!(0,V.mx)(x))return!1;let G=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:365;return{path:z,sameSite:"lax",secure:"https:"===window.location.protocol,expires:a}}();if(A.Z.set(F.nd,x,G),w&&(0,V.mx)(w)&&A.Z.set(F.cX,w,G),void 0!==B)A.Z.set(k.E$,JSON.stringify({token:x,permissions:B}),G);else{let a=A.Z.get(k.E$);if(a)try{var $;let w=JSON.parse(a);A.Z.set(k.E$,JSON.stringify({token:x,permissions:null!==($=null==w?void 0:w.permissions)&&void 0!==$?$:[]}),G)}catch(a){}}return!0}function clearAuthCookies(){let a={path:z};A.Z.remove(F.nd,a),A.Z.remove(F.cX,a),A.Z.remove(k.E$,a),(0,B.o9)()}},89010:function(a,x,w){"use strict";w.d(x,{Q:function(){return finishOAuthLoginFromUrl}});var A=w(42229),k=w(80749),F=w(2752);function stripOAuthTokensFromUrl(){let a=new URL(window.location.href);if(a.searchParams.delete("access_token"),a.searchParams.delete("refresh_token"),a.searchParams.delete("is_complete"),a.hash){let x=new URLSearchParams(a.hash.replace(/^#/,""));x.delete("access_token"),x.delete("refresh_token"),x.delete("is_complete");let w=x.toString();a.hash=w?"#".concat(w):""}let x="".concat(a.pathname).concat(a.search).concat(a.hash);window.history.replaceState(window.history.state,"",x)}var V=w(21210),B=w(86492),z=w(15103);async function finishOAuthLoginFromUrl(){if(!function(){let{accessToken:a,refreshToken:x}=function(){let a=new URLSearchParams(window.location.hash.startsWith("#")?window.location.hash.slice(1):window.location.hash),x=new URLSearchParams(window.location.search);return{accessToken:a.get("access_token")||x.get("access_token"),refreshToken:a.get("refresh_token")||x.get("refresh_token")}}();if(!a||!x)return;if(!(0,F.mx)(a)||!(0,F.mx)(x))return stripOAuthTokensFromUrl(),(0,A.o9)();let w=(0,k.SK)({accessToken:a,refreshToken:x,permissions:[]});stripOAuthTokensFromUrl(),w?(0,A.Xz)():(0,A.o9)()}(),!(0,A.t0)())return!1;await (0,V.D)(),(0,z.K7)().set(B.O,!0);try{sessionStorage.setItem("netcore_login_trigger_reason","social")}catch(a){}return!0}},42229:function(a,x,w){"use strict";w.d(x,{Xz:function(){return markPendingOAuthLoginSideEffects},o9:function(){return clearPendingOAuthLoginSideEffects},t0:function(){return claimPendingOAuthLoginSideEffects}});let A=!1;function markPendingOAuthLoginSideEffects(){A=!0}function clearPendingOAuthLoginSideEffects(){A=!1}function claimPendingOAuthLoginSideEffects(){return!!A&&(A=!1,!0)}},2752:function(a,x,w){"use strict";w.d(x,{mx:function(){return isQualidocJwt}});var A=w(48764).lW;function isQualidocJwt(a){if(!a)return!1;let x=function(a){let x=a.split(".");if(3!==x.length)return null;try{return JSON.parse(function(a){let x=a.replace(/-/g,"+").replace(/_/g,"/"),w=x.padEnd(4*Math.ceil(x.length/4),"=");return"function"==typeof atob?atob(w):A.from(w,"base64").toString("utf8")}(x[1]))}catch(a){return null}}(a);return"number"==typeof(null==x?void 0:x.user_id)}},50081:function(a,x,w){"use strict";w.d(x,{EH:function(){return ensureCartSession},QD:function(){return getCartAgeSeconds},SM:function(){return clearCartSession}});var A=w(47613),k=w(90997);let F="checkout_cart_session:v1";function readSession(){try{let a=(0,k.Z7)(F);if(!a)return null;let x=JSON.parse(a);if("string"==typeof(null==x?void 0:x.cart_id)&&x.cart_id&&"string"==typeof(null==x?void 0:x.started_at)&&x.started_at)return{cart_id:x.cart_id,started_at:x.started_at};return null}catch(a){return null}}function ensureCartSession(){let a=readSession();if(a)return a;let x={cart_id:(0,A.H)(),started_at:new Date().toISOString()};return!function(a){try{(0,k.pc)(F,JSON.stringify(a))}catch(a){}}(x),x}function clearCartSession(){try{(0,k.E6)(F)}catch(a){}}function getCartAgeSeconds(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),x=readSession();if(!(null==x?void 0:x.started_at))return;let w=Date.parse(x.started_at);if(!Number.isNaN(w))return Math.max(0,Math.floor((a-w)/1e3))}},30169:function(a,x,w){"use strict";w.d(x,{Bw:function(){return postCartSync},KZ:function(){return deleteServerCartBestEffort},LA:function(){return getServerCart},i2:function(){return deleteServerCart},iw:function(){return postCartSyncKeepalive}});var A=w(31955),k=w(18272),F=w(28065),V=w(57659),B=w(95439);let baseUrl=()=>"https://api.qualidoc.com.br".replace(/\/$/,"");async function postCartSync(a){var x;(null===(x=a.items)||void 0===x?void 0:x.length)&&await V.Z.cart.sync(a)}async function getServerCart(){var a;let x=await V.Z.cart.get();return Array.isArray(x)?{items:x}:{items:null!==(a=null==x?void 0:x.items)&&void 0!==a?a:[]}}async function deleteServerCart(){await V.Z.cart.delete()}async function deleteServerCartBestEffort(){let a;for(let x=0;x<3;x++){x>0&&await new Promise(a=>setTimeout(a,1===x?120:350));try{await deleteServerCart();return}catch(x){a=x}}F.u.warn("deleteServerCartBestEffort: all attempts failed",{error:a instanceof Error?a.message:String(a)})}function postCartSyncKeepalive(a){var x;let w=A.Z.get(k.nd);if(!w||!(null===(x=a.items)||void 0===x?void 0:x.length))return;let F="".concat(baseUrl()).concat(B.P.CART,"/sync");try{fetch(F,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(w)},body:JSON.stringify(a),keepalive:!0})}catch(a){}}},54109:function(a,x,w){"use strict";w.d(x,{C9:function(){return A},T0:function(){return k},Wl:function(){return V},x$:function(){return F}});
51let A="qualidoc_cart_skip_cross_device_merge_once",k=400,F=2e3,V=12e4},21210:function(a,x,w){"use strict";w.d(x,{D:function(){return runPostLoginCartSync}});var A=w(18272),k=w(86492),F=w(90997),V=w(54109),B=w(30169),z=w(13744);async function runPostLoginCartSync(){if(!(0,k.I)())return;let a=[];try{var x;let w=(0,F.Z7)(A.qW),k=w&&null!==(x=JSON.parse(w).items)&&void 0!==x?x:[];a=Array.isArray(k)?k:[]}catch(a){return}if(0!==a.length)try{await (0,B.Bw)((0,z.O)(a));try{(0,F.Jn)(V.C9,"1")}catch(a){}}catch(a){(0,F.$$)(V.C9)}}},13744:function(a,x,w){"use strict";function serializeCartForSync(a){let x=new Date().toISOString();return{items:a.map(a=>{var w,A,k;let F=null!==(w=a.cart_line_updated_at)&&void 0!==w?w:x,V={...null!==(A=function(a){let x=a.pbm_info;if(!(null==x?void 0:x.flag))return;let w="number"==typeof a.calculated_sale_price&&Number.isFinite(a.calculated_sale_price)?a.calculated_sale_price:"number"==typeof a.sale_price&&Number.isFinite(a.sale_price)?a.sale_price:void 0,A={flag:!0,cpf:x.cpf,sale_price_id:x.sale_price_id,quantity:x.quantity};if(void 0!==w&&(A.pbm_sale_price=w),x.program&&"object"==typeof x.program){let a=x.program,w={id:a.id,name:a.name};"string"==typeof a.register_url&&a.register_url.length>0&&(w.register_url=a.register_url),a.middleware&&"number"==typeof a.middleware.id&&Number.isFinite(a.middleware.id)&&"string"==typeof a.middleware.slug&&a.middleware.slug.length>0&&(w.middleware={id:a.middleware.id,slug:a.middleware.slug}),A.program=w}return A}(a))&&void 0!==A?A:{}};a.from_prescription&&(V.from_prescription=!0);let B=Object.keys(V).length>0;return{product_id:a.product_id,sku:a.id,quantity:null!==(k=a.quantity)&&void 0!==k?k:1,last_modified_at:F,...B?{metadata:V}:{}}})}}w.d(x,{O:function(){return serializeCartForSync}})},14721:function(a,x,w){"use strict";w.d(x,{T:function(){return captureCheckoutAttribution},I:function(){return getCheckoutClientMetadata}});var A=w(90997),k=w(48898),F=w(25192),V=w(50081);let B="checkout_attribution:v1";function pickParam(a,x){for(let w of x){let x=a.get(w);if(x&&x.trim())return x.trim().slice(0,255)}}function hasAnyValue(a){return!!a&&Object.values(a).some(a=>!!a)}function getExternalReferrer(){if(document.referrer)try{let a=new URL(document.referrer).hostname;if(a&&a!==window.location.hostname)return document.referrer.slice(0,2048)}catch(a){}}function readStoredAttribution(){try{let a=(0,A.Z7)(B);if(!a)return null;let x=JSON.parse(a);return x&&"object"==typeof x?x:null}catch(a){return null}}function captureCheckoutAttribution(a){var x;let w=a?new URL(a,window.location.origin).href:window.location.href,k=new URL(w),F=k.searchParams,V={source:pickParam(F,["utm_source"]),medium:pickParam(F,["utm_medium"]),campaign:pickParam(F,["utm_campaign"]),term:pickParam(F,["utm_term"]),content:pickParam(F,["utm_content"])},z={gclid:pickParam(F,["gclid"]),fbclid:pickParam(F,["fbclid"]),msclkid:pickParam(F,["msclkid"])},G=null!==(x=readStoredAttribution())&&void 0!==x?x:{},$={...G};if(!hasAnyValue(G.utm)&&hasAnyValue(V)&&($.utm=V),!hasAnyValue(G.click_ids)&&hasAnyValue(z)&&($.click_ids=z),G.landing_page||($.landing_page="".concat(k.pathname).concat(k.search).slice(0,2048)),!G.referrer){let a=getExternalReferrer();a&&($.referrer=a)}$.captured_at||($.captured_at=new Date().toISOString()),function(a){try{(0,A.pc)(B,JSON.stringify(a))}catch(a){}}($)}function getCheckoutClientMetadata(){var a;let x=null!==(a=readStoredAttribution())&&void 0!==a?a:{},w=(0,V.EH)(),A=(0,V.QD)(),B={client_session_id:(0,k.Z)()||void 0,checkout_page:"".concat(window.location.pathname).concat(window.location.search).slice(0,2048),client_channel:(0,F.pE)()?"app_webview":window.matchMedia("(display-mode: standalone)").matches?"pwa":"browser",shop_version:"13.0.0".trim()||void 0};if(hasAnyValue(x.utm)&&(B.utm=x.utm),hasAnyValue(x.click_ids)&&(B.click_ids=x.click_ids),x.landing_page&&(B.landing_page=x.landing_page),x.referrer)B.referrer=x.referrer;else{let a=getExternalReferrer();a&&(B.referrer=a)}return w&&(B.cart_id=w.cart_id,B.cart_started_at=w.started_at),"number"==typeof A&&(B.cart_age_seconds=A),B}},28065:function(a,x,w){"use strict";w.d(x,{u:function(){return V}});let A="/api/log/",k=[],F=null;function scheduleFlush(){0!==k.length&&null==F&&(F=setTimeout(()=>{F=null,flush()},2e3))}function flush(){if(0===k.length){F=null;return}F=null;let a=k.splice(0,10),x=a.map(a=>{let{level:x,message:w,context:A}=a;return{level:x,message:w,context:A}}),w=JSON.stringify(1===x.length?x[0]:{batch:x});!function(a){let x="undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&a.length<=6e4;if(x){let x=new Blob([a],{type:"application/json"});navigator.sendBeacon(A,x);return}fetch(A,{method:"POST",headers:{"Content-Type":"application/json"},body:a,keepalive:!0}
51).catch(()=>{})}(w),k.length>0&&scheduleFlush()}function enqueue(a,x,w){k.push({level:a,message:x,context:w,ts:Date.now()}),k.length>=10?(null!=F&&(clearTimeout(F),F=null),setTimeout(flush,0)):scheduleFlush()}let V={log(a,x){enqueue("info",a,x)},info(a,x){enqueue("info",a,x)},warn(a,x){enqueue("warn",a,x)},error(a,x){enqueue("error",a,x)},debug(a,x){enqueue("debug",a,x)}}},63414:function(a,x,w){"use strict";w.d(x,{F6:function(){return getMobileStore},dD:function(){return getPreferredStoreUrl},l5:function(){return A},s0:function(){return k}});let A="https://apps.apple.com/br/app/qualidoc/id1517845569",k="https://play.google.com/store/apps/details?id=cx.driven.qualidoc&hl=pt_BR";function getMobileStore(a){let x=/iPad|iPhone|iPod/.test(a)&&!/MSStream/.test(a);return x?"ios":/android/i.test(a)?"android":"other"}function getPreferredStoreUrl(a){return"ios"===getMobileStore(a)?A:k}},57661:function(a,x,w){"use strict";w.d(x,{t:function(){return A}});let A={ADVERTENCE:{name:"Advert\xeancia",id:10},ANTIBIOTICO:{name:"Antibi\xf3tico",id:14},PSICOTROPICO:{name:"Psicotr\xf3pico",id:17},PROMOTIONAL_PACK:{name:"Promocional",id:29},DESCONTINUADO:{name:"Descontinuado",id:30},PBM_PROGRAM:{name:"Programa PBM",id:31},ORDER_LIMIT:{name:"Limite por Pedido",id:32},RECIPE_VALIDITY_DAYS:{name:"Validade da receita (Dias)",id:33},REFERENCE:{name:"Refer\xeancia",id:34},HAS_GENERIC:{name:"Tem Gen\xe9rico",id:35},BULA:{name:"Bula",id:36},LAB_DISCOUNT_INFO_NOTE:{name:"Texto informativo desconto laborat\xf3rio",id:38},MAX_CARD_INSTALLMENTS:{name:"M\xe1ximo de parcelas no cart\xe3o",id:42}}},18272:function(a,x,w){"use strict";w.d(x,{FF:function(){return ee},GH:function(){return K},He:function(){return ei},Hm:function(){return en},II:function(){return er},Kz:function(){return $},Mg:function(){return getDirection},UW:function(){return z},W4:function(){return Y},b3:function(){return J},cX:function(){return V},h2:function(){return Z},iK:function(){return B},k4:function(){return W},lb:function(){return ea},nd:function(){return F},pD:function(){return eo},qW:function(){return k},uL:function(){return et}});var A=w(15103);let k="qualidoc-cart",F="auth_token",V="auth_refresh_token",B="qualidoc-checkout",z="qualidoc-checkout-recipe",G=["ar","he"],$="pt-BR",W="emailVerified",Z=1024;function getDirection(a){return a&&G.includes(a)?"rtl":"ltr"}let K=(0,A.cn)(!1),Y=(0,A.cn)(!1),J=(0,A.cn)(!1),ee=(0,A.cn)(!1),et=(0,A.cn)(!1),er=(0,A.cn)([]),en=!1,ei="SEEN_POPUP",eo="SEEN_REVIEW_POPUP",ea="SEEN_CONSENT_POPUP"},5252:function(a,x,w){"use strict";w.d(x,{S:function(){return k},o:function(){return A}});let A={legalName:"Qualidoc Medicamentos LTDA",cnpj:"21.659.253/0002-22",address:"Alameda Barros, 136, Santa Cec\xedlia, S\xe3o Paulo/SP, CEP 01232-000",pharmacist:"Raquel Temple Ortolon",crf:"CRF 60675",afe:"7.72.215-5",cmvs:"355030801-477-011819-0-4"},k=[{id:"autorizacao",title:"Autoriza\xe7\xe3o de Funcionamento",issuer:"Anvisa",referenceLabel:"AFE",reference:A.afe,description:"Autoriza\xe7\xe3o federal que habilita a Qualidoc a comercializar medicamentos, emitida pela Ag\xeancia Nacional de Vigil\xe2ncia Sanit\xe1ria.",href:"/licencas/autorizacao-de-funcionamento.pdf"},{id:"licenca",title:"Licen\xe7a de Funcionamento",issuer:"Vigil\xe2ncia Sanit\xe1ria Municipal",referenceLabel:"CMVS",reference:A.cmvs,description:"Licen\xe7a municipal que autoriza o funcionamento da farm\xe1cia no endere\xe7o de Santa Cec\xedlia, em S\xe3o Paulo.",href:"/licencas/licenca-de-funcionamento.pdf"}]},78746:function(a,x,w){"use strict";w.d(x,{g:function(){return A}});let A={PBM_PROGRAM:{name:"Programa PBM",id:15}}},48898:function(a,x,w){"use strict";w.d(x,{K:function(){return F},Z:function(){return getOrCreateSessionId}});var A=w(47613),k=w(90997);let F="rec_session_id";function getOrCreateSessionId(){let a=(0,k.Z7)(F);return a||(a=(0,A.H)(),(0,k.pc)(F,a)),a}},16118:function(a,x,w){"use strict";w.d(x,{J:function(){return A}});let A=!1},74824:function(a,x,w){"use strict";w.d(x,{ZV:function(){return faroTrackFromPayload},b6:function(){return faroTrackLoginFailed},eb:function(){return F}});var A=w(16118);let k=/password|passwd|secret|token|authorization|cookie|cvv|cvc|card_number|cardnumber|credit_card|creditcard|pan\b|cc_number|refresh_token|access_token|id_token/i,F={REGISTER:"register",LOGIN:"login",LOGIN_FAILED:"login_failed",ADD_TO_CART:"add_to_cart",REMOVE_FROM_CART:"remove_from_cart",CHECKOUT_INIT:"checkout_init",PLACE_ORDER:"place_order"};function faroTrackEvent(a,x){let k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qualidoc";A.J&&Promise.resolve().then(w.bind(w,10254)).then(async w=>{let{grafanaFaroInit:A,getGrafanaFaro:F}=w;await A();
51let V=F();if(V)try{V.api.pushEvent(a,null!=x?x:{},k)}catch(x){console.warn("[Faro] Failed to push event:",a,x)}})}function faroTrackFromPayload(a,x){let w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qualidoc";faroTrackEvent(a,function(a){let x={},walk=(a,w)=>{for(let[A,F]of Object.entries(a)){if(k.test(A))continue;let a=w?"".concat(w,"_").concat(A):A;if(null!=F){if("items"===A&&Array.isArray(F)){x["".concat(a,"_count")]=String(F.length);let w=F.slice(0,25).map(a=>{if(a&&"object"==typeof a){var x,w,A;return String(null!==(A=null!==(w=null!==(x=a.item_id)&&void 0!==x?x:a.item_sku)&&void 0!==w?w:a.variant_id)&&void 0!==A?A:"")}return""}).filter(Boolean);w.length>0&&(x["".concat(a,"_ids")]=w.join(","));continue}if("object"==typeof F&&!Array.isArray(F)){walk(F,a);continue}if(Array.isArray(F)){x[a]=JSON.stringify(F).slice(0,400);continue}x[a]=String(F)}}};return walk(a,""),x}(x),w)}function faroTrackLoginFailed(a){faroTrackEvent(F.LOGIN_FAILED,{method:a.method,...a.reason?{reason:a.reason.slice(0,200)}:{}},"auth")}},10254:function(a,x,w){"use strict";w.r(x),w.d(x,{getGrafanaFaro:function(){return getGrafanaFaro},grafanaFaroInit:function(){return grafanaFaroInit},grafanaFaroSetUser:function(){return grafanaFaroSetUser}});var A=w(16118);w(83454);let k=null,F=null;async function initializeGrafanaFaro(){var a;if(!A.J)return null;if(k)return k;let x="https://faro-collector-prod-sa-east-1.grafana.net/collect/8ec0be8e1f3714b7ccad3326fef8fb0d";if(!x)return null;let F=(a="production","production");try{let[{initializeFaro:a,getWebInstrumentations:A},{TracingInstrumentation:V}]=await Promise.all([w.e(9466).then(w.bind(w,99466)),w.e(3957).then(w.bind(w,93957))]);return k=a({url:x,app:{name:"qualiapp-shop",version:"13.0.0",environment:F,bundleId:"d6951020db22118d"},instrumentations:[...A({captureConsole:!0}),new V({instrumentationOptions:{propagateTraceHeaderCorsUrls:function(){let a=[],x=function(a){let x=a.length;for(;x>0&&47===a.codePointAt(x-1);)x--;return x===a.length?a:a.slice(0,x)}("https://api.qualidoc.com.br");return x&&a.push(x),0===a.length&&a.push(/qualidoc\.(life|com\.br)/),a}()}})],beforeSend:a=>{if("exception"===a.type){let x=a.payload;if(function(a){if(!a)return!1;let x=a.toLowerCase();return x.includes("script error")||x.includes("resizeobserver loop")||x.includes("non-error promise rejection")||x.includes("sess\xe3o expirada")||x.includes("session expired")||x.includes("request failed with status code 401")||x.includes("[next-auth][error][client_fetch_error]")||x.includes('abort fetching component for route: "/logout"')||x.includes("there was an error setting cookie `_pk_id")}(null==x?void 0:x.value))return null}return a},sessionTracking:{enabled:!0,samplingRate:Number("1")}})}catch(a){return console.error("[Faro] Failed to initialize Grafana RUM:",a),null}}function grafanaFaroInit(){return A.J?(F||(F=initializeGrafanaFaro()),F):Promise.resolve(null)}function getGrafanaFaro(){return k}function grafanaFaroSetUser(a){k&&k.api.setUser(a)}},99124:function(a,x,w){"use strict";w.d(x,{$s:function(){return gtmViewItem},BL:function(){return gtmUpdateProfile},Kn:function(){return productToGTMItem},L0:function(){return productToGTMViewItem},OD:function(){return applyListContextAttribution},WS:function(){return trackHomeItemSelect},_Y:function(){return gtmRegister},d0:function(){return getPaymentMethodName},dJ:function(){return grantAnalyticsConsent},fv:function(){return gtmPurchaseIntent},j6:function(){return trackCategoryView},jD:function(){return trackHomePromotionClick},lx:function(){return gtmSearch},nB:function(){return gtmSignUp},o2:function(){return gtmRemoveFromCart},pv:function(){return buildHomeListContext},s2:function(){return isMobileDevice},vJ:function(){return gtmLogin},vy:function(){return gtmPurchase},wL:function(){return gtmAddToCart},wP:function(){return gtmPageView},xz:function(){return gtmBeginCheckout}});var A=w(19692),k=w(97514),F=w(11115),V=w(18272),B=w(74824),z=w(25380),G=w(25192),$=w(31955),W=w(85518);let Z={analytics_storage:"granted",ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"}
51,K={analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"},ensureGtag=()=>{window.dataLayer=window.dataLayer||[],"function"!=typeof window.gtag&&(window.gtag=function(){window.dataLayer.push(arguments)})},updateGoogleConsent=a=>{try{ensureGtag(),window.gtag("consent","update",a?Z:K)}catch(a){console.warn("[GTM] Failed to update consent:",a)}},grantAnalyticsConsent=()=>{updateGoogleConsent(!0),$.Z.set(V.lb,"true",{expires:Number(365)})},isMobileDevice=()=>(0,G.pE)()||W.tq,getFullUrl=a=>a.startsWith("http://")||a.startsWith("https://")?a:"".concat(window.location.origin).concat(a),gtmEvent=a=>{try{(0,A.sendGTMEvent)(a)}catch(a){console.warn("[GTM] Failed to send event:",a)}},gtmPageView=a=>{gtmEvent({event:"pageview",page:a})},productToGTMItem=function(a){var x,w,A,F,V,B,z,G,$,W,Z;let K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],J=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",ee=(null===(x=a.product_id)||void 0===x?void 0:x.toString())||(null===(w=a.id)||void 0===w?void 0:w.toString())||"",et=(null===(A=a.sku)||void 0===A?void 0:A.toString())||ee,er=a.price||0,en=a.sale_price||er,ei=a.slug&&(a.sku||ee)?k.Z.product(a.slug,a.sku||ee):"",eo=getFullUrl(ei),ea=(null===(F=a.image)||void 0===F?void 0:F.original)||(null===(V=a.image)||void 0===V?void 0:V.thumbnail)||(null===(z=a.gallery)||void 0===z?void 0:null===(B=z[0])||void 0===B?void 0:B.original)||a.image||"",es=(null==Y?void 0:null===(G=Y[0])||void 0===G?void 0:G.name)||(null===(W=a.categories)||void 0===W?void 0:null===($=W[0])||void 0===$?void 0:$.name)||a.category||"",el=J||(null===(Z=a.manufacturer)||void 0===Z?void 0:Z.name)||("string"==typeof a.manufacturer?a.manufacturer:"")||a.brand||"";return{item_name:a.name||"",item_id:ee,item_sku:a.sku||"",price:er,sale_price:en,item_brand:el,quantity:K||a.quantity||1,variant_id:et,product_url:eo,product_image:ea,category:es}},productToGTMViewItem=a=>{var x,w,A,V,B,z,G,$,W,Z,K;let Y=(null===(x=a.id)||void 0===x?void 0:x.toString())||(null===(w=a.sku)||void 0===w?void 0:w.toString())||(null===(A=a.product_id)||void 0===A?void 0:A.toString())||"",J=a.name||"",ee=(null===(V=a.manufacturer)||void 0===V?void 0:V.name)||a.brand||"",et=(null===(z=a.categories)||void 0===z?void 0:null===(B=z[0])||void 0===B?void 0:B.name)||a.category||"",er=a.price||0,en=a.sale_price||er,ei=(null===(G=a.image)||void 0===G?void 0:G.original)||(null===($=a.image)||void 0===$?void 0:$.thumbnail)||(null===(Z=a.gallery)||void 0===Z?void 0:null===(W=Z[0])||void 0===W?void 0:W.original)||"",eo=a.slug&&Y?k.Z.product(a.slug,Y):"",ea=getFullUrl(eo),es=F.siteSettings.currencyCode||"BRL",el=(null===(K=a.sku)||void 0===K?void 0:K.toString())||Y;return{product_id:Y,product_name:J,brand:ee,category:et,price:er,sale_price:en,product_image:ei,product_url:ea,currency:es,variant_id:el}},gtmViewItem=a=>{gtmEvent({event:"view_item",...a})},gtmRegister=a=>{gtmEvent({event:"register",...a}),(0,B.ZV)(B.eb.REGISTER,{...a,mobile:a.mobile},"auth")},gtmLogin=a=>{gtmEvent({event:"log_in",...a}),(0,B.ZV)(B.eb.LOGIN,{...a},"auth")},gtmSignUp=()=>{gtmEvent({event:"sign_up"})},gtmUpdateProfile=a=>{gtmEvent({event:"update_profile",...a})},buildCategorySearchUrl=a=>"/search?".concat(z.yr,"=").concat(encodeURIComponent(a)),gtmCategoryView=a=>{gtmEvent({event:"category_view",...a})},trackCategoryView=a=>{gtmCategoryView({category:a,category_url:buildCategorySearchUrl(a)})},gtmAddToCart=a=>{gtmEvent(withHomeAttribution({event:"add_to_cart",...a})),(0,B.ZV)(B.eb.ADD_TO_CART,{ecommerce:a.ecommerce},"ecommerce")},gtmRemoveFromCart=a=>{gtmEvent({event:"remove_from_cart",...a}),(0,B.ZV)(B.eb.REMOVE_FROM_CART,{ecommerce:a.ecommerce},"ecommerce")},getPaymentMethodName=a=>a&&({3:"Carteira",4:"Pix",5:"Cart\xe3o de Cr\xe9dito",6:"Picpay",7:"Mercado Pago"})[a]||"",gtmPurchase=a=>{gtmEvent(withHomeAttribution({event:"purchase",...a})),clearHomeAttribution(),(0,B.ZV)(B.eb.PLACE_ORDER,{ecommerce:a.ecommerce},"ecommerce")},gtmBeginCheckout=a=>{gtmEvent({event:"begin_checkout",...a}),(0,B.ZV)(B.eb.CHECKOUT_INIT,{ecommerce:a.ecommerce},"ecommerce")},gtmSearch=a=>{gtmEvent({event:"search",search_term:a})},gtmPurchaseIntent=a=>{gtmEvent({event:"purchase_intent",...a})},Y="qualiapp_home_attribution",resolveSectionId=a=>(null==a?void 0:a.id)?a.id:(null==a?void 0:a.type)!=null&&(null==a?void 0:a.order)!=null?"".concat(a.type,"-").concat(a.order):"unknown-section",buildHomeListContext=function(a){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"home";return{sectionId:resolveSectionId(a),sectionType:(null==a?void 0:a.type)||"unknown",sectionTitle:(null==a?void 0:a.title)||"",locationId:x}},readHomeAttribution=()=>{try{let a=sessionStorage.getItem(Y);if(!a)return null;return JSON.parse(a)}catch(a){return null}},setHomeAttribution=a=>{try{sessionStorage.setItem(Y,JSON.stringify({...a,clicked_at:Date.now()}))}catch(a){}},getHomeAttribution=()=>readHomeAttribution(),clearHomeAttribution=()=>{try{sessionStorage.removeItem(Y)}catch(a){}},applyListContextAttribution=a=>{(null==a?void 0:a.sectionId)&&setHomeAttribution({section_id:a.sectionId,section_type:a.sectionType||"unknown",section_title:a.sectionTitle||"",location_id:a.locationId||"home",item_list_id:a.sectionId,item_list_name:a.sectionTitle||""})},withHomeAttribution=a=>{let x=getHomeAttribution();return x?{...a,home_attribution:x}:a},gtmSelectPromotion=a=>{setHomeAttribution({section_id:a.promotion_id,section_type:a.section_type||"promotion",section_title:a.promotion_name,location_id:a.location_id||"home",creative_slot:a.creative_slot,creative_name:a.creative_name,destination_url:a.destination_url}),gtmEvent({event:"select_promotion",...a})},gtmSelectItem=a=>{setHomeAttribution({section_id:a.item_list_id,section_type:a.section_type||"product-list",section_title:a.item_list_name,location_id:a.location_id||"home",item_list_id:a.item_list_id,item_list_name:a.item_list_name}),gtmEvent({event:"select_item",item_list_id:a.item_list_id,item_list_name:a.item_list_name,ecommerce:{items:a.items},section_type:a.section_type,location_id:a.location_id||"home"})},trackHomePromotionClick=a=>{let x=resolveSectionId(a.section);gtmSelectPromotion({promotion_id:x,promotion_name:a.section.title||a.section.type||x,creative_slot:null!=a.creativeSlot?String(a.creativeSlot):void 0,creative_name:a.creativeName,destination_url:a.destinationUrl,section_type:a.section.type,location_id:"home"})},trackHomeItemSelect=function(a,x){let w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;x.sectionId&&gtmSelectItem({item_list_id:x.sectionId,item_list_name:x.sectionTitle||x.sectionType||x.sectionId,items:[productToGTMItem(a,w)],section_type:x.sectionType,location_id:x.locationId||"home"})}},77834:function(a,x,w){"use strict";w.d(x,{j:function(){return useNativeApp}});var A=w(67294),k=w(25192);let useNativeApp=()=>{let[a,x]=(0,A.useState)(!1),[w,F]=(0,A.useState)(!1);(0,A.useEffect)(()=>{(()=>{let a=(0,k.pE)();x(a),F(!0),a&&console.log("Running in React Native WebView")})()},[]);let V=(0,A.useCallback)(a=>a,[]);return{isNativeApp:a,isReady:w,openNativeScanner:()=>(0,k.XE)(),sendMessageToNative:k.Ci,handleDeeplink:V}}},42990:function(a,x,w){"use strict";w.d(x,{d:function(){return useToken}});var A=w(31955),k=w(80749),F=w(2752),V=w(18272);function useToken(){return{setToken(a){(0,k.SK)({accessToken:a})},getToken:()=>A.Z.get(V.nd),removeToken(){A.Z.remove(V.nd,{path:k.mY})},hasToken:()=>(0,F.mx)(A.Z.get(V.nd)),setEmailVerified(a){A.Z.set(V.k4,JSON.stringify({emailVerified:a}))},getEmailVerified(){let a=A.Z.get(V.k4);return!a||JSON.parse(a)}}}},44107:function(a,x,w){"use strict";function fadeInOut(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.2;return{from:{opacity:0,transition:{type:"easeInOut",duration:a}},to:{opacity:1,transition:{type:"easeInOut",duration:a}}}}w.d(x,{I:function(){return fadeInOut}})},68879:function(a,x,w){"use strict";w.d(x,{Pb:function(){return F},Qg:function(){return k},nM:function(){return V},j:function(){return B},Hb:function(){return A}});var A={src:"/_next/static/media/product.ba64d04a.svg",height:210,width:270,blurWidth:0,blurHeight:0},k={src:"/_next/static/media/coupon.5015b440.svg",height:240,width:320,blurWidth:0,blurHeight:0},F={src:"/_next/static/media/avatar.c9441dc8.svg",height:120,width:120,blurWidth:0,blurHeight:0},V={src:"/_next/static/media/logo.93f639af.svg",height:52,width:215,blurWidth:0,blurHeight:0},B={src:"/_next/static/media/logo-white.39b62c1e.svg",height:600,width:2e3,blurWidth:0,blurHeight:0}},33905:function(a,x,w){"use strict";w.d(x,{Z:function(){return private_route}});var A=w(85893),k=w(11163);let BackArrowRound=a=>(0,A.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 219.151 219.151",fill:"currentColor",...a,children:[(0,A.jsx)("path",{d:"M109.576 219.151c60.419 0 109.573-49.156 109.573-109.576C219.149 49.156 169.995 0 109.576 0S.002 49.156.002 109.575c0 60.42 49.155 109.576 109.574 109.576zm0-204.151c52.148 0 94.573 42.426 94.574 94.575 0 52.149-42.425 94.575-94.574 94.576-52.148-.001-94.573-42.427-94.573-94.577C15.003 57.427 57.428 15 109.576 15z"}),(0,A.jsx)("path",{d:"M94.861 156.507a7.502 7.502 0 0010.606 0 7.499 7.499 0 00-.001-10.608l-28.82-28.819 83.457-.008a7.5 7.5 0 00-.001-15l-83.46.008 28.827-28.825a7.5 7.5 0 00-10.607-10.608l-41.629 41.628a7.495 7.495 0 00-2.197 5.303 7.51 7.51 0 002.198 5.305l41.627 41.624z"})]});var F=w(91341),V=w(34526),B=w(42990),z=w(65706),G=w(5152),$=w.n(G),W=w(67294),Z=w(87066),K=w(43516),Y=w(97514),J=w(51382);
51let ee=$()(()=>w.e(1506).then(w.bind(w,51506)),{loadableGenerated:{webpack:()=>[51506]},ssr:!1});var private_route=a=>{let{children:x}=a,{getEmailVerified:w}=(0,B.d)(),G=(0,k.useRouter)(),{me:$,isAuthorized:et,error:er}=(0,F.aF)(),{settings:en}=(0,K.rV)(),ei=function(){let[a,x]=(0,W.useState)(!1);return(0,W.useEffect)(()=>{x(!0)},[]),a}(),eo=!!$;if(Z.Z.isAxiosError(er)){var ea;if((null==er?void 0:null===(ea=er.response)||void 0===ea?void 0:ea.status)===417)return(0,A.jsx)(J.Z,{title:"".concat(null==en?void 0:en.siteTitle," ").concat("13.0.0"),subTitle:"This copy of ".concat(null==en?void 0:en.siteTitle," is not genuine."),linkTitle:"Please contact with site admin.",link:Y.Z.contactUs})}let{emailVerified:es}=w();return eo||et||!ei?et&&!1===es?(0,A.jsx)(z.default,{}):eo&&et?(0,A.jsx)("div",{children:x}):(0,A.jsx)(ee,{showText:!1}):(0,A.jsxs)("div",{className:"relative flex min-h-screen w-full justify-center py-5 md:py-8",children:[(0,A.jsx)("button",{type:"button",className:"absolute top-5 flex h-8 w-8 items-center justify-center text-gray-200 transition-colors hover:text-gray-400 ltr:left-5 rtl:right-5 md:top-1/2 md:-mt-8 md:h-16 md:w-16 md:text-gray-300 ltr:md:left-10 rtl:md:right-10",onClick:G.back,children:(0,A.jsx)(BackArrowRound,{})}),(0,A.jsx)("div",{className:"my-auto flex flex-col",children:(0,A.jsx)(V.default,{})})]})}},28692:function(a,x,w){"use strict";w.d(x,{P4:function(){return ptBrCommon},X7:function(){return ptBr}});let A={"404-heading":"C\xf3digo de erro: 404","404-sub-heading":"Ops! Parece que esta p\xe1gina n\xe3o existe","404-back-home":"Leve-me para casa","nav-menu-track-order":"Rastrear Pedido","nav-menu-offer":"Ofertas","nav-menu-faq":"FAQ","nav-menu-contact":"Contato","nav-menu-terms":"Termos e Condi\xe7\xf5es","nav-menu-flash-sale":"Promo\xe7\xe3o Rel\xe2mpago","nav-menu-refund-policy":"Pol\xedtica de Reembolso do Cliente","nav-menu-vendor-refund-policy":"Pol\xedtica de Reembolso do Vendedor","user-avatar":"avatar do usu\xe1rio","auth-menu-profile":"Perfil","auth-menu-checkout":"Finalizar Compra","auth-menu-my-orders":"Meus Pedidos","auth-menu-logout":"Sair","join-button":"Login","change-locale":"Mudar para alem\xe3o","text-search":"Pesquisar","text-burger-menu":"Menu de Hamb\xfarguer","text-close":"fechar","text-or":"OU","text-terms":"termos","text-policy":"pol\xedtica","text-accept":"Aceitar","cookie-message":"Este site usa cookies para melhorar sua experi\xeancia. Ao clicar, voc\xea concorda com nossa","text-privacy-policy":"pol\xedtica de privacidade","text-minus":"menos","text-plus":"mais","text-copy":"Copiar","text-copied":"Copiado!","text-expired":"Expirado","text-expired-at":"Expirado em","text-card-number":"N\xfamero do Cart\xe3o","text-read-more":"Leia mais","text-less":"Menos","text-item":"Item","text-add":"Adicionar","text-cart":"Carrinho","text-add-cart":"Adicionar ao Carrinho de Compras","text-pieces-available":"pe\xe7as dispon\xedveis","text-details":"Detalhes","text-order":"Pedido","text-recharge":"Recarga","text-checkout":"Finalizar Compra","text-website":"Site","text-apply":"Aplicar","text-date":"Data","text-order-date":"Data do Pedido","text-order-details":"Detalhes do Pedido","text-payment-method":"M\xe9todo de Pagamento","text-address":"Endere\xe7o","text-addresses":"Endere\xe7os","text-upload-highlight":"Carregar uma imagem","text-upload-message":"ou arraste e solte","text-img-format":"PNG, JPG","text-shipping-address":"Endere\xe7o de Envio","text-estimated-shipping":"Envio Estimado","text-calculated-checkout":"Calculado no checkout","text-proceed-checkout":"Continuar para o checkout","text-shipping":"Envio","text-billing":"Cobran\xe7a","text-billing-address":"Endere\xe7o de Cobran\xe7a","text-sub-total":"Subtotal","text-discount":"Desconto","text-delivery-fee":"Taxa de Entrega","text-deliver-time":"Tempo de Entrega","text-shipping-charge":"Taxa de Envio","text-free-shipping":"Frete Gr\xe1tis","text-free":"Gr\xe1tis","text-tax":"Imposto","text-amount":"Valor","text-total-price":"Pre\xe7o Total","text-added-value":"Valor Adicionado","text-total-item":"Total de Itens","text-total-amount":"Valor Total","text-total":"Valor Total","text-out-stock":"Fora de Estoque","text-product-image":"Imagem do Produto","text-select":"Selecione o Motivo","select-refund-reason":"Por favor, selecione seu motivo","text-by":"por","text-load-more":"Carregar Mais","text-categories":"Categorias","text-category":"Categoria","text-delivery-schedule":"Cronograma de Entrega","text-home":"In\xedcio","text-user":"Usu\xe1rio","text-edit":"Editar","text-type":"Tipo","text-title":"T\xedtulo","text-country":"Pa\xeds","text-city":"Cidade","text-state":"Estado","text-zip":"CEP","text-county":"Bairro","text-number":"N\xfamero da resid\xeancia","text-complement":"Complemento","text-observation":"Observa\xe7\xe3o","text-street-address":"Endere\xe7o","text-add-new":"Adicionar Novo","profile-sidebar-friends-indication":"Indique amigos","profile-sidebar-profile":"Perfil","profile-sidebar-password":"Alterar Senha","profile-sidebar-orders":"Meus Pedidos","profile-sidebar-addresses":"Endere\xe7os","profile-sidebar-help":"Precisa de Ajuda","profile-sidebar-logout":"Sair","password-successful":"Senha alterada com sucesso","error-enough-
51permission":"N\xe3o possui permiss\xe3o suficiente","error-credential-wrong":"As credenciais est\xe3o incorretas!","error-needs-password-setup":"Encontramos seu cadastro!","error-needs-password-setup-detail":"Para acessar nossa nova plataforma, voc\xea precisa criar uma senha. Enviamos um link de redefini\xe7\xe3o de senha para o seu e-mail.","resend-setup-email":"Reenviar e-mail de redefini\xe7\xe3o de senha","register-email-exists-title":"Voc\xea j\xe1 tem uma conta conosco!","register-email-exists-detail":"O e-mail informado j\xe1 est\xe1 cadastrado em nossa plataforma. Entre com sua conta ou redefina sua senha.","go-to-login":"Entrar na minha conta","go-to-forgot-password":"Esqueci minha senha","login-helper":"Fa\xe7a login com seu e-mail e senha","error-email-format":"E-mail inv\xe1lido","error-email-required":"E-mail obrigat\xf3rio","error-password-required":"Voc\xea precisa fornecer sua senha","error-subject-required":"Qual assunto voc\xea deseja discutir conosco?","error-description-required":"Conte-nos mais sobre isso","error-select-required":"Selecione seu motivo","text-login":"Entrar","text-no-account":"N\xe3o tem uma conta?","text-already-account":"J\xe1 tem uma conta?","text-register":"Cadastrar","text-old-password":"Senha Antiga","text-new-password":"Nova Senha","text-confirm-password":"Confirmar Senha","error-old-password-required":"Senha antiga \xe9 obrigat\xf3ria!","error-new-password-required":"Senha \xe9 obrigat\xf3ria!","error-confirm-password":"Por favor, confirme a senha!","error-match-passwords":"As senhas devem coincidir!","registration-helper":"Ao se inscrever, voc\xea concorda com nossos","error-name-required":"Voc\xea precisa fornecer seu nome","error-last-name-required":"Voc\xea precisa fornecer seu sobrenome","error-phone-required":"Voc\xea precisa fornecer seu telefone","error-phone-incomplete":"Por favor, preencha o celular ou complete o n\xfamero (incluindo DDD quando for o caso)","error-cpf-required":"Voc\xea precisa fornecer seu CPF","error-gender-required":"Voc\xea precisa fornecer seu gen\xearo","forgot-password-helper":"Enviaremos um link para o endere\xe7o digitado","error-token-required":"Voc\xea precisa fornecer seu token","token-label":"Insira o token que voc\xea recebeu por e-mail","text-reset-password":"Redefinir Senha","text-back":"Voltar","text-back-to":"Voltar para","text-back-to-home":"Voltar para a In\xedcio","text-forgot-password":"Esqueci a senha","text-visit-site":"Visitar Este Site","text-follow-us":"Siga-nos","text-questions-comments":"Como podemos melhorar sua experi\xeancia?","text-vendor-comments":"Estamos sempre aqui para voc\xea","text-vendor-comments-subtitle":"vai receber um e-mail. Adorar\xedamos ouvir de voc\xea.","text-vendor-refund-title":"Pol\xedtica de Reembolso do Vendedor","text-customer-refund-title":"Pol\xedtica de Reembolso do Cliente","text-faq-title":"Perguntas Frequentes","text-name":"Nome","text-last-name":"Sobrenome","text-social-name":"Nome social","text-cellphone":"Celular com DDD","text-cellphone-ddd":"Celular com DDD","text-phone":"Telefone","text-phone-ddd":"Telefone com DDD","text-cpf":"CPF","text-password":"Senha","text-repeat-password":"Repetir senha","text-email":"E-mail","text-birth-date":"Data de nascimento","text-subject":"Assunto","text-description":"Descri\xe7\xe3o","text-contact-number":"N\xfamero de Contato","text-save":"Salvar","text-update":"Atualizar","text-submit-email":"Enviar E-mail","text-submit-token":"Enviar Token","text-loading":"Carregando...","text-signing-out":"Saindo...","error-something-wrong":"Algo deu errado","text-no-result-found":"Nenhum Resultado Encontrado","text-not-found":"Desculpe, Nenhum Produto Encontrado :(","text-no-category":"Desculpe, Nenhuma Categoria Encontrada :(","text-no-faq":"Desculpe, Nenhuma Pergunta Frequente Encontrada :(","text-no-manufacturers":"Desculpe, Nenhum Fabricante Encontrado :(","text-no-refund-policy":"Desculpe, Nenhuma Pol\xedtica de Reembolso Encontrada :(","text-no-terms":"Desculpe, Nenhum Termo e Condi\xe7\xe3o Encontrado :(","text-no-refund":"Desculpe, Nenhuma Pol\xedtica de Reembolso Encontrada :(","text-no-coupon":"Desculpe, Nenhum Cupom Encontrado :(","text-no-flash-deal":"Nenhuma promo\xe7\xe3o rel\xe2mpago encontrada. :(","text-related-products":"Produtos Relacionados","text-previous":"Anterior","text-next":"Pr\xf3ximo","text-unavailable":"Indispon\xedvel","text-remove-card":"Remover cart\xe3o","text-remove-card-message":"Tem certeza de que deseja excluir este cart\xe3o?","text-cancel":"cancelar","text-delete":"Excluir","text-filter":"Filtrar","text-stripe":"Stripe","text-place-order":"Finalizar Compra","text-your-order":"Seu Pedido","text-cash-on-delivery":"Pagamento na Entrega","text-card-info":"Informa\xe7\xf5es do Cart\xe3o","text-no-products":"Nenhum produto encontrado","text-search-label":"pesquisa de mantimentos no cabe\xe7alho","text-search-placeholder":"Pesquise seus produtos aqui","text-search-placeholder-minimal":"Pesquisar na qualidoc","text-no-address":"Nenhum Endere\xe7o Encontrado","text-have-coupon":"Voc\xea tem um cupom?","text-enter-coupon":"Digite o c\xf3digo do cupom aqui","text-coupon-required":"C\xf3digo do cupom \xe9 obrigat\xf3rio","text-enter-contact-number":"Digite seu N\xfamero de Contato","text-payment-gateway":"Gateway de Pagamento","text-order-received":"Pedido Recebido","text-thank-you":"Obrigado!","text-order-number":"N\xfamero do Pedido","placeholder-card-number":"N\xfamero do Cart\xe3o (ex: 4242424242424242)","placeholder-m-y":"M/A","placeholder-cvc":"CVC","error-card-required":"O n\xfamero do cart\xe3o \xe9 obrigat\xf3rio","error-expiry-date":"A data de validade \xe9 obrigat\xf3ria","error-cvc":"O CVC \xe9 obrigat\xf3rio","error-contact-required":"O n\xfamero de contato \xe9 obrigat\xf3rio","error-invalid-coupon":"C\xf3digo de cupom inv\xe1lido! Por favor, tente novamente.","error-minimum-amount-satisfy":"Desculpe, este cupom n\xe3o \xe9 aplic\xe1vel. Fa\xe7a um pedido acima de","error-type-required":"O tipo \xe9 obrigat\xf3rio","error-title-required":"O t\xedtulo \xe9 obrigat\xf3rio","error-country-required":"O pa\xeds \xe9 obrigat\xf3rio","error-city-required":"A cidade \xe9 obrigat\xf3ria","error-state-required":"O estado \xe9 obrigat\xf3rio","error-county-required":"O bairro \xe9 obrigat\xf3rio","error-number-required":"O n\xfamero \xe9 obrigat\xf3rio","error-zip-required":"O CEP \xe9 obrigat\xf3rio","error-street-required":"O endere\xe7o \xe9 obrigat\xf3rio","error-order-unavailable":"Os itens do seu pedido est\xe3o indispon\xedveis","error-cant-process-order":"Desculpe, n\xe3o podemos processar seu pedido :(","error-add-both-address":"Por favor, adicione tanto o endere\xe7o de entrega quanto o de faturamento","error-cart-empty":"Seu carrinho est\xe1 vazio. V\xe1 para","error-no-orders":"Voc\xea ainda n\xe3o fez nenhum pedido","change-password":"Alterar Senha","text-submit":"Enviar","text-bio":"Biografia","profile-update-successful":"Perfil atualizado com sucesso","text-no-contact":"Nenhum contato encontrado","text-view-sub-orders":"Ver subpedidos","text-shops-near-you":"Lojas Perto de Voc\xea","text-sellers":"Vendedores","text-sub-orders":"Detalhes","text-new":"Novo","text-all-shops":"Todas as Lojas","text-near-sh
51ops":"Lojas Pr\xf3ximas","text-tracking-number":"N\xfamero de Rastreamento","text-status":"Status","text-quantity":"Quantidade","text-view":"Ver","text-logo":"Logo",NOT_FOUND:"N\xe3o Encontrado","nav-menu-shops":"Lojas","text-login-facebook":"Entrar com Facebook","text-login-google":"Entrar com Google","text-note":"Nota","text-purchase-note":"Nota de Compra",CASH_ON_DELIVERY:"Pagamento na Entrega","message-sub-order":"Este pedido cont\xe9m produtos de v\xe1rios vendedores. Portanto, dividimos este pedido em v\xe1rias ordens de vendedores.","error-min-contact":"O n\xfamero de contato deve ter pelo menos 8 d\xedgitos","PICKBAZAR_ERROR.NOT_FOUND":"N\xe3o Encontrado","PICKBAZAR_ERROR.NOT_AUTHORIZED":"N\xe3o Autorizado","PICKBAZAR_ERROR.INVALID_CREDENTIALS":"Credenciais Inv\xe1lidas","PICKBAZAR_ERROR.SOMETHING_WENT_WRONG":"Algo deu errado","PICKBAZAR_ERROR.PAYMENT_FAILED":"Falha no Pagamento","PICKBAZAR_ERROR.OPERATION_NOT":"Opera\xe7\xe3o N\xe3o","PICKBAZAR_ERROR.INSUFFICIENT_BALANCE":"Saldo Insuficiente","PICKBAZAR_ERROR.WITHDRAW_MUST_BE_ATTACHED_TO_SHOP":"O saque deve estar vinculado a uma loja","PICKBAZAR_ERROR.PLEASE_LOGIN_USING_FACEBOOK_OR_GOOGLE":"Por favor, fa\xe7a login usando Facebook ou Google","PICKBAZAR_ERROR.ACTION_NOT_VALID":"A\xe7\xe3o n\xe3o v\xe1lida","PICKBAZAR_ERROR.SHOP_NOT_APPROVED":"Loja n\xe3o aprovada","PICKBAZAR_ERROR.THIS_COUPON_CODE_IS_ONLY_FOR_VERIFIED_USERS":"Este c\xf3digo de cupom \xe9 apenas para usu\xe1rios verificados","PICKBAZAR_ERROR.THIS_COUPON_CODE_IS_NOT_APPROVED":"C\xf3digo de cupom inv\xe1lido! Por favor, tente novamente.","PICKBAZAR_ERROR.COUPON_CODE_IS_NOT_APPLICABLE_IN_THIS_SHOP_PRODUCT":"O valor dos produtos n\xe3o atende a este cupom espec\xedfico da loja.","PICKBAZAR_MESSAGE.NOT_FOUND":"N\xe3o Encontrado","PICKBAZAR_MESSAGE.CHECK_INBOX_FOR_PASSWORD_RESET_EMAIL":"Verifique a caixa de entrada para o e-mail de redefini\xe7\xe3o de senha","PICKBAZAR_MESSAGE.SOMETHING_WENT_WRONG":"Algo deu errado","PICKBAZAR_MESSAGE.TOKEN_IS_VALID":"O token \xe9 v\xe1lido","PICKBAZAR_MESSAGE.INVALID_TOKEN":"O token n\xe3o \xe9 v\xe1lido","PICKBAZAR_MESSAGE.PASSWORD_RESET_SUCCESSFUL":"Redefini\xe7\xe3o de senha bem-sucedida","PICKBAZAR_MESSAGE.INVALID_CREDENTIALS":"As credenciais fornecidas n\xe3o s\xe3o v\xe1lidas","PICKBAZAR_MESSAGE.EMAIL_SENT_SUCCESSFUL":"E-mail enviado com sucesso","PICKBAZAR_ERROR.YOU_HAVE_ALREADY_GIVEN_ABUSIVE_REPORT_FOR_THIS":"Voc\xea j\xe1 enviou uma den\xfancia","PICKBAZAR_ERROR.MAXIMUM_QUESTION_LIMIT_EXCEEDED":"Limite m\xe1ximo de perguntas excedido","text-more-info":"Mais Informa\xe7\xf5es","text-price":"Pre\xe7o","text-no-order-found":"Desculpe, Nenhum Pedido Encontrado :(","text-choose-payment":"Escolha o M\xe9todo de Pagamento","text-cod-message":"Por favor, pague ap\xf3s receber seus produtos!","text-login-mobile":"Entrar com n\xfamero de celular","text-send-otp":"Enviar OTP","text-otp-code":"C\xf3digo OTP","text-verify-code":"Verificar C\xf3digo","text-otp-send-failed":"Falha ao enviar o c\xf3digo OTP","text-otp-verify-failed":"Falha na verifica\xe7\xe3o do OTP","contact-update-successful":"N\xfamero de telefone atualizado com sucesso!","text-change-phone-number":"Alterar n\xfamero de telefone","add-phone-number":"Adicionar n\xfamero de telefone","text-confirm":"Confirmar","text-check-availability":"Verificar Disponibilidade","text-no-delivery-time-found":"Nenhum hor\xe1rio de entrega encontrado","otp-login-helper":"Entre com seu n\xfamero de celular. Enviaremos um c\xf3digo para o n\xfamero fornecido para acessar sua conta","button-cancel":"Cancelar","button-delete":"Excluir","delete-item-confirm":"Tem certeza de que deseja excluir?","PICKBAZAR_ERROR.OTP_VERIFICATION_FAILED":"Falha na Verifica\xe7\xe3o","PICKBAZAR_ERROR.OTP_SEND_SUCCESSFUL":"Verifica\xe7\xe3o Bem-sucedida","PICKBAZAR_ERROR.OTP_SEND_FAIL":"N\xe3o foi poss\xedvel enviar o OTP","text-see-more":"Ver mais","text-no-shops":"Desculpe, Nenhuma Loja Encontrada :(","text-view-more":"Ver Mais","text-all-categories":"Todas as Categorias","text-wallet":"Carteira","text-balance":"saldo","text-currency":"moeda","text-payable":"A Pagar","text-wallet-use":"
51Voc\xea quer usar a carteira?","text-total-points":"Total de pontos","text-points-used":"Pontos usados","text-available-points":"Pontos dispon\xedveis","text-points":"Pontos","text-pending":"Pendente","text-approved":"Aprovado","text-rejected":"Rejeitado","text-processing":"Processando","text-my-refunds":"Meus Reembolsos","text-refund":"Reembolso","text-shop":"Loja","text-ask-refund":"Solicitar reembolso","text-ask-refund-details":"Tem certeza de que deseja solicitar um reembolso?","text-yes":"Sim","text-no":"N\xe3o","text-view-order":"Ver Pedido","text-refund-request-submitted":"Pedido de reembolso enviado","text-reason":"Motivo do Reembolso","text-id":"ID","text-paid-from-wallet":"Pago com a Carteira","text-copyright":"Copyright","text-rights-reserved":"Todos os direitos reservados","text-sending":"Enviando","text-enter-email":"Digite seu e-mail","text-enter-name":"Digite seu nome","text-cta-header":"O App Pickbazar","text-cta-description":'Facilite sua loja online com nosso <span class="font-bold">aplicativo m\xf3vel</span>',"text-showing":"Mostrando","text-of":"de","text-products":"produtos","text-sort":"Ordenar","text-sort-by-price":"Ordenar Por Pre\xe7o","text-sort-relevance":"Relev\xe2ncia","text-sort-best-promotion":"Melhores promo\xe7\xf5es","text-sort-price-asc":"Menor pre\xe7o","text-sort-price-desc":"Maior pre\xe7o","text-sort-by-author":"Ordenar Por Autor","text-sort-by-language":"Ordenar Por Idioma","text-sort-by-format":"Ordenar Por Formato","text-clear-all":"Limpar Tudo","text-view-all":"Ver Todos","text-see-all":"Ver Todos","text-no-authors":"Desculpe, Nenhum Autor Encontrado :(","text-search-authors-title":"Pesquise Nossos Autores Queridos","text-search-authors-subtitle":"Lorem ipsum dolor sit amet, consectetu eradipiscing elit.","text-explore-more":"Explorar Mais","text-born":"Nascido","text-died":"Falecido","text-languages":"Idiomas","text-author-books":"Livros do Autor","text-books":"Livros","text-buy-now":"Comprar Agora","text-buy-again":"Comprar novamente","text-buy-again-adding":"Adicionando...","text-buy-again-success":"produto(s) adicionado(s) ao carrinho","text-buy-again-partial":"Produto(s) adicionado(s) parcialmente (estoque limitado)","text-buy-again-out-of-stock":"Produto(s) sem estoque","text-buy-again-none-available":"Nenhum produto dispon\xedvel em estoque","text-buy-again-error":"Erro ao adicionar produtos ao carrinho","text-formats":"Formatos","text-sku":"SKU","text-author":"Autor","text-authors":"Autores","text-publisher":"Editora","text-manufacturers":"Fabricantes/Editores","text-edition":"Edi\xe7\xe3o","text-language":"Idioma","text-become-seller":"Torne-se um Vendedor","text-search-author":"Pesquise seu autor favorito aqui","text-search-manufacturer":"Pesquise fabricantes/editora aqui","text-search-manufacturers-title":"Fabricantes/Editores","text-search-manufacturers-subtitle":"Lorem ipsum dolor sit amet, consectetu eradipiscing elit.","text-tags":"Tags","text-popular-products":"Produtos Populares","text-new-arrival":"Novos Livros Chegados","text-by-author":"Por (autor)","profile-sidebar-downloads":"Downloads","text-downloads":"Downloads","text-download":"Baixar","text-selling-books":"Livros Mais Vendidos do M\xeas Passado","text-purchased-on":"Comprado em","text-key":"Chave","text-add-to-cart":"Adicionar ao Carrinho","text-used":"Usado","text-available":"Dispon\xedvel","text-wallet-points":"Pontos de Carteira","text-off":"Desconto","text-no-download":"Desculpe, voc\xea ainda n\xe3o comprou nenhum produto para download.","text-subscribe-successfully":"Parab\xe9ns! Voc\xea se inscreveu com sucesso em nossa newsletter.","text-which-book":"Qual Livro Voc\xea Gostaria de Ver?","text-top-authors":"Principais Autores","text-subscribe-now":"Cadastre-se para receber todas as novidades","text-subscribe-now-button":"Receber novidades","text-subscribe-details":"Inscreva seu e-mail para receber nossa newsletter e not\xedcias destacadas com base no seu interesse","text-explore":"Explorar","text-about-us":"Sobre N\xf3s","text-sitemap":"Mapa do Site","text-bookmarks":"Favoritos","text-sign-join":"Entrar/Cad
51astrar-se","text-customer-service":"Atendimento ao Cliente","text-faq-help":"FAQ & Ajuda","text-returns":"Devolu\xe7\xf5es","text-accessibility":"Acessibilidade","text-contact-us":"Fale Conosco","text-store-pickup":"Retirada na Loja","text-our-information":"Nossas Informa\xe7\xf5es","text-privacy-update":"Atualiza\xe7\xe3o da Pol\xedtica de Privacidade","text-terms-condition":"Termos e Condi\xe7\xf5es","text-return-policy":"Pol\xedtica de Devolu\xe7\xe3o","text-top-manufacturer":"Principais Fabricantes","text-show-products":"Mostrar Produtos","text-guest-checkout":"Finalizar Compra como Convidado","text-click-here":"Clique Aqui","text-previous-step":"Passo Anterior","text-downloadable":"Para Download","text-write-review":"Escrever uma Avalia\xe7\xe3o","text-product-id":"ID do Produto","text-give-ratings":"Dar Avalia\xe7\xf5es","text-upload-images":"Enviar Imagens","text-report-abuse":"Denunciar Abuso","text-product-reviews":"Avalia\xe7\xf5es de Produtos","text-page":"P\xe1gina","text-pages":"P\xe1ginas","text-ratings-reviews":"Avalia\xe7\xf5es & Coment\xe1rios de","text-ratings":"avalia\xe7\xf5es","text-and":"e","text-reviews":"coment\xe1rios","text-question-answers":"Perguntas e Respostas","text-question-search-placeholder":"Tem uma pergunta? Busque por respostas.","text-ask-question":"Fa\xe7a uma pergunta ao vendedor","text-question-additional-info":"Sua pergunta n\xe3o deve conter informa\xe7\xf5es de contato, como e-mail, telefone ou links externos.","profile-sidebar-my-wishlist":"Favoritos","text-remove":"Remover","text-add-all-to-cart":"Adicionar todos os itens ao carrinho","text-comment":"Coment\xe1rio","text-report":"Denunciar","text-feedback-submitted":"Feedback Enviado","text-review-request-submitted":"Avalia\xe7\xe3o Enviada","text-abuse-report-submitted":"Relat\xf3rio de abuso enviado com sucesso","text-question-submitted":"Pergunta enviada com sucesso. Aguarde a resposta do vendedor.","text-no-question-found":"Nenhuma pergunta encontrada","PICKBAZAR_ERROR.ALREADY_ADDED_TO_WISHLIST_FOR_THIS_PRODUCT":"Este produto j\xe1 est\xe1 nos seus favoritos","text-added-to-wishlist":"Adicionado com sucesso \xe0 seus favoritos!","text-removed-from-wishlist":"Removido com sucesso dos seus favoritos!","text-sort-by":"Ordenar Por","text-no-reviews-found":"Nenhuma avalia\xe7\xe3o encontrada","text-update-review":"Atualizar avalia\xe7\xe3o","PICKBAZAR_MESSAGE.OLD_PASSWORD_INCORRECT":"Senha antiga est\xe1 incorreta","PICKBAZAR_MESSAGE.OTP_SEND_SUCCESSFUL":"OTP enviado com sucesso","PICKBAZAR_MESSAGE.REQUIRED_INFO_MISSING":"Informa\xe7\xf5es obrigat\xf3rias ausentes","PICKBAZAR_MESSAGE.CONTACT_UPDATE_SUCCESSFUL":"Contato atualizado com sucesso","PICKBAZAR_ERROR.INVALID_GATEWAY":"Gateway inv\xe1lido","PICKBAZAR_ERROR.CONTACT_UPDATE_FAILED":"Falha ao atualizar contato","PICKBAZAR_ERROR.ALREADY_REFUNDED":"J\xe1 foi reembolsado","PICKBAZAR_ERROR.ORDER_ALREADY_HAS_REFUND_REQUEST":"Pedido j\xe1 possui solicita\xe7\xe3o de reembolso","PICKBAZAR_ERROR.REFUND_ONLY_ALLOWED_FOR_MAIN_ORDER":"Reembolso permitido apenas para o pedido principal","PICKBAZAR_ERROR.WRONG_REFUND":"Reembolso incorreto","PICKBAZAR_ERROR.CSV_NOT_FOUND":"CSV n\xe3o encontrado","PICKBAZAR_ERROR.ALREADY_GIVEN_REVIEW_FOR_THIS_PRODUCT":"Voc\xea j\xe1 deu uma avalia\xe7\xe3o para este produto","PICKBAZAR_ERROR.USER_NOT_FOUND":"Usu\xe1rio n\xe3o encontrado","PICKBAZAR_ERROR.TOKEN_NOT_FOUND":"Token n\xe3o encontrado","PICKBAZAR_ERROR.INVALID_COUPON_CODE":"C\xf3digo de cupom inv\xe1lido! Por favor, tente novamente.","PICKBAZAR_ERROR.COUPON_CODE_IS_NOT_APPLICABLE":"Desculpe, este cupom n\xe3o atende ao valor do seu pedido.","PICKBAZAR_ERROR.ALREADY_FREE_SHIPPING_ACTIVATED":"Frete gr\xe1tis j\xe1 ativado! Por favor, tente novamente.","text-review-request-update-submitted":"Solicita\xe7\xe3o de avalia\xe7\xe3o atualizada com sucesso","text-place-order-helper-text":"Por favor, selecione e preencha todos os campos e finalize seu pedido","text-question":"Pergunta","text-answer":"Resposta","text-message":"Mensagem","profile-sidebar-my-questions":"Minhas Perguntas","profile-sidebar-my-reports":"Meus Relat\xf3rios","payment-confirmed":"Pagamento Confirmado! Clique em Finalizar Pedido","text-payment-order":"Clique em Finalizar Pedido para realizar o pedido e o pagamento","text-card-expiry":"Data de Expira\xe7\xe3o","text-card-cvc":"CVC","text-payment-title":"Pague seu pagamento","text-pay":"Pagar","text-order-status":"Status do Pedido","text-payment-status":"Status do Pagamento",insufficient_funds:"Seu cart\xe3o possui fundos insuficientes.","order-pending":"Pedido Pendente","order-processing":"Pedido em Processamento","order-completed":"Pedido Conclu\xeddo","order-cancelled":"Pedido Cancelado","order-failed":"Falha no Pedido","order-at-local-facility":"Pedido n
51a Instala\xe7\xe3o Local","order-out-for-delivery":"Pedido em Rota de Entrega","order-refunded":"Pedido Reembolsado","payment-pending":"Pagamento Pendente","payment-processing":"Processando Pagamento","payment-success":"Pagamento Bem-sucedido","payment-failed":"Falha no Pagamento","payment-reversal":"Estorno de Pagamento","payment-wallet":"Pagamento com Carteira","payment-cash-on-delivery":"Dinheiro na Entrega","payment-cash":"Dinheiro","payment-awaiting-for-approval":"Pagamento Aguardando Aprova\xe7\xe3o","payment-refunded":"Pagamento Reembolsado","text-pay-now":"Pagar Agora","text-stripe-card-desc-title":"O que voc\xea receber\xe1 no Stripe","text-stripe-card-desc-one":"Temos uma pol\xedtica de reembolso de 24 horas.","text-stripe-card-desc-two":"Cart\xe3o de compras ilimitado para E-Commerce.","text-stripe-card-desc-three":"Sem limite para transa\xe7\xf5es di\xe1rias.","text-no-payment-configure":"Nenhum Pagamento Configurado Ainda!!","profile-sidebar-my-cards":"Meus Cart\xf5es","profile-add-cards":"Adicionar Cart\xe3o","profile-new-cards":"Novo Cart\xe3o","text-paypal":"Paypal","text-map-cant-load":"O mapa n\xe3o pode ser carregado no momento, desculpe.","set-default-card-message":"Cart\xe3o padr\xe3o definido com sucesso","card-successfully-deleted":"Deletado com sucesso","card-successfully-add":"Cart\xe3o adicionado com sucesso","default-btn-text":"Padr\xe3o","text-no-card-found":"Nenhum cart\xe3o encontrado","text-card-owner-name":"Nome do Propriet\xe1rio do Cart\xe3o","text-card-expire":"Data de Expira\xe7\xe3o","text-company":"Empresa","text-save-card":"Salvar Cart\xe3o","text-add-default-card":"Adicionar como cart\xe3o padr\xe3o","text-expire-date-placeholder":"MM / AA","error-verify-token":"Erro na verifica\xe7\xe3o do token","email-not-verified":"Seu e-mail ainda n\xe3o foi verificado.","email-not-description":"Obrigado por se inscrever! Antes de come\xe7ar, voc\xea poderia verificar seu endere\xe7o de e-mail clicando no link que acabamos de enviar para voc\xea? Se voc\xea n\xe3o recebeu o e-mail, ficaremos felizes em enviar outro.","resend-verification-button-text":"Reenviar E-mail de Verifica\xe7\xe3o","successfully-email-updated":"E-mail atualizado com sucesso","payment-successful":"Pagamento bem-sucedido","payment-not-successful":"Pagamento n\xe3o bem-sucedido","something-wrong":"Algo deu errado","pay-latter":"Pagar Depois","text-set-as-default":"Definir como Padr\xe3o","text-best-selling":"Produtos Mais Vendidos","placeholder-search-location":"Busque a localiza\xe7\xe3o aqui","text-location":"Localiza\xe7\xe3o","text-access-denied":"Acesso Negado","text-access-denied-message":"Voc\xea n\xe3o tem permiss\xe3o para acessar esta p\xe1gina.","text-return-home":"Voltar para a p\xe1gina inicial","email-send-successfully":"E-mail enviado com sucesso","error-comment-required":"Coment\xe1rio \xe9 obrigat\xf3rio","error-select-rating":"Selecione pelo menos uma avalia\xe7\xe3o","error-rating-required":"Avalia\xe7\xe3o \xe9 obrigat\xf3ria","text-amount-due":"Valor Devido","text-available-flash-sale":"Oferta Rel\xe2mpago Dispon\xedvel",percentage:"Percentual",fixed_rate:"Taxa Fixa","text-title-days":"dias","text-title-hours":"horas","text-title-minutes":"minutos","text-title-seconds":"segundos","text-title-change-language":"Alterar Idioma","text-title-language":"Idioma","text-maintenance-mode-title":"Modo de Manuten\xe7\xe3o Come\xe7a em","text-offers-title":"Ofertas","text-already-review":"J\xe1 revisado","successfully-address-deleted":"Endere\xe7o deletado com sucesso","successfully-address-created":"Endere\xe7o criado com sucesso",category:"categoria","categories.name":"Categoria",brand:"Marca",manufacturer:"Fabricante",packaging:"Apresenta\xe7\xe3o",dosage:"Dosagem",active_ingredient:"Princ\xedpio ativo",active_ingredients:"Ingrediente ativo",is_controlled:"Medicamento controlado",requires_prescription:"Requer receita",is_antibiotic:"Antibi\xf3tico","text-notification-not-found":"Sem notifica\xe7\xf5es \uD83E\uDDD0","text-notification-read-message":"Notifica\xe7\xe3o lida com sucesso.","text-notifications-read-message":"Todas as notifica\xe7\xf5es foram marcadas como lidas.","text-news":"Novidades","heading-grocery":"Mantimentos Entregues em 90 Minutos","subheading-grocery":"Receba seus alimentos saud\xe1veis e lanches entregues em sua casa todos os dias","heading-bakery":"Receba seus Itens de Padaria","subheading-bakery":"Receba seus itens favoritos de padaria assad
51os e entregues em sua casa a qualquer momento","heading-makeup":"Maquiagens Importadas e de Marca","subheading-makeup":"A maneira mais f\xe1cil e barata de receber suas maquiagens importadas e de marca","heading-bags":"Bolsas Exclusivas de Marca","subheading-bags":"Receba suas bolsas exclusivas e de marca rapidamente","heading-clothing":"Compre seus Vestidos de Grife","subheading-clothing":"Vestidos prontos para usar, feitos sob medida para voc\xea. Aproveite enquanto durarem os estoques.","heading-furniture":"M\xf3veis Exclusivos a Pre\xe7o Baixo","subheading-furniture":"Transforme sua casa em um lar com nossa ampla cole\xe7\xe3o de m\xf3veis lindos","promotion-slide-one":"Economia com Cupons","promotion-slide-two":"Entrega Gr\xe1tis","promotion-slide-three":"Vale-Presente","promotion-slide-four":"Pagamento na Entrega","promotion-slide-five":"Entrega Expressa","terms-text-home":"In\xedcio","terms-main-title":"Termos e Condi\xe7\xf5es","terms-one-title":"Objetivo","terms-one-description":'<p>A Little &amp; Big est\xe1 comprometida em proteger sua privacidade porque valorizamos as pessoas. Nossa Pol\xedtica de Privacidade abaixo define como suas informa\xe7\xf5es pessoais s\xe3o coletadas, usadas e protegidas. Os&nbsp;<a href="http://demo.dummy">Princ\xedpios de Privacidade do Pa\xeds de Demonstra\xe7\xe3o</a>&nbsp;tamb\xe9m se aplicam a n\xf3s.</p><p>Esta Pol\xedtica de Privacidade descreve nossas pol\xedticas e procedimentos sobre a coleta, manuten\xe7\xe3o, uso e divulga\xe7\xe3o de suas informa\xe7\xf5es pessoais e deve ser lida juntamente com nossos&nbsp;Termos e Condi\xe7\xf5es. Ao fornecer suas informa\xe7\xf5es pessoais, voc\xea consente com a nossa coleta, uso e divulga\xe7\xe3o dessas informa\xe7\xf5es de acordo com esta Pol\xedtica de Privacidade.</p>',"terms-two-title":"O que s\xe3o Dados Pessoais?","terms-two-description":'<p>Quando usado nesta Pol\xedtica, "informa\xe7\xf5es pessoais" tem o significado dado na Lei de Privacidade. Em geral, significa qualquer informa\xe7\xe3o ou opini\xe3o que possa ser usada para identificar voc\xea.</p>',"terms-three-title":"Dados Pessoais Coletados","terms-three-description":"<p>Dados Pessoais coletados para os seguintes fins e usando os seguintes servi\xe7os:</p><ol><li>Google Analytics: Cookies; Dados de Uso</li><li>Formul\xe1rio de contato: endere\xe7o de e-mail; primeiro nome; n\xfamero de telefone</li><li>Lista de e-mails ou newsletter: endere\xe7o de e-mail; primeiro nome</li></ol>","terms-four-title":"Acesso aos seus Dados Pessoais","terms-four-description":"<p>Voc\xea pode solicitar acesso \xe0s suas informa\xe7\xf5es pessoais coletadas por n\xf3s e pedir que corrijamos essas informa\xe7\xf5es pessoais. Voc\xea pode solicitar acesso ou corre\xe7\xe3o entrando em contato conosco e geralmente responderemos dentro de 30 dias. Se recusarmos o acesso ou a corre\xe7\xe3o de suas informa\xe7\xf5es pessoais, notificaremos voc\xea por escrito com as raz\xf5es.</p>","terms-five-title":"Reclama\xe7\xf5es","terms-five-description":"<p>Se voc\xea acreditar que sua privacidade foi violada ou tiver uma reclama\xe7\xe3o sobre como lidamos com suas informa\xe7\xf5es pessoais, por favor, entre em contato conosco por escrito. Responderemos dentro de um per\xedodo razo\xe1vel (geralmente dentro de 30 dias).</p>","terms-six-title":"Propriet\xe1rio e Controlador de Dados","terms-six-description":"<p>The Commons</p><p>20-40 demo St,</p><p>Jon doe NSW 2008</p><p>Pa\xeds</p><p>[email protected]</p>","policy-main-title":"Pol\xedtica de Privacidade","policy-one-title":"Objetivo","policy-one-description":'<p>A Little &amp; Big est\xe1 comprometida em proteger sua privacidade porque valorizamos as pessoas. Nossa Pol\xedtica de Privacidade abaixo define como suas informa\xe7\xf5es pessoais s\xe3o coletadas, usadas e protegidas. Os&nbsp;<a href="http://demo.dummy">Princ\xedpios de Privacidade do Pa\xeds de Demonstra\xe7\xe3o</a>&nbsp;tamb\xe9m se aplicam a n\xf3s.</p><p>Esta Pol\xedtica de Privacidade descreve nossas pol\xedticas e procedimentos sobre a coleta, manuten\xe7\xe3o, uso e divulga\xe7\xe3o de suas informa\xe7\xf5es pessoais e deve ser lida juntamente com nossos&nbsp;Termos e Condi\xe7\xf5es. Ao fornecer suas informa\xe7\xf5es pessoais, voc\xea consente com a nossa coleta, uso e divulga\xe7\xe3o dessas informa\xe7\xf5es de acordo com esta Pol\xedtica de Privacidade.</p>',"policy-two-title":"O que \xe9 Dados Pessoais?","policy-two-description":'<p>Quando usado nesta Pol\xedtica, "informa\xe7\xf5es pessoais" tem o significado dado na Lei de Privacidade. Em geral, significa qualquer informa\xe7\xe3o ou opini\xe3o que possa ser usada para identificar voc\xea.</p>',"policy-three-title":"Dados Pessoais Coletados","policy-three-description":"<p>Dados Pessoais coletados para os seguintes fins e usando os seguintes servi\xe7os:</p><ol><li>Google Analytics: Cookies; Dados de Uso</li><li>Formul\xe1rio de contato: endere\xe7o de e-mail; primeiro nome; n\xfamero de telefone</li><li>Lista de e-mails ou newsletter: endere\xe7o de e-mail; primeiro nome</li></ol>","policy-four-title":"Acesso aos seus Dados Pessoais","policy-four-description":"<p>Voc\xea pode solicitar acesso \xe0s suas informa\xe7\xf5es pessoais coletadas por n\xf3s e pedir que corrijamos essas 
51informa\xe7\xf5es pessoais. Voc\xea pode solicitar acesso ou corre\xe7\xe3o entrando em contato conosco e geralmente responderemos dentro de 30 dias. Se recusarmos o acesso ou a corre\xe7\xe3o de suas informa\xe7\xf5es pessoais, notificaremos voc\xea por escrito com as raz\xf5es.</p>","policy-five-title":"Reclama\xe7\xf5es","policy-five-description":"<p>Se voc\xea acreditar que sua privacidade foi violada ou tiver uma reclama\xe7\xe3o sobre como lidamos com suas informa\xe7\xf5es pessoais, por favor, entre em contato conosco por escrito. Responderemos dentro de um per\xedodo razo\xe1vel (geralmente dentro de 30 dias).</p>","policy-six-title":"Propriet\xe1rio e Controlador de Dados","policy-six-description":"<p>The Commons</p><p>20-40 demo St,</p><p>Jon doe NSW 2008</p><p>Pa\xeds</p><p>[email protected]</p>","faq-one-title":"Como entrar em contato com o Atendimento ao Cliente?","faq-one-content":"Nossa Equipe de Experi\xeancia do Cliente est\xe1 dispon\xedvel 7 dias por semana e oferecemos 2 formas de contato: E-mail e Chat. Tentamos responder rapidamente, para que voc\xea n\xe3o precise esperar muito por uma resposta!","faq-two-title":"Instala\xe7\xe3o do app falhou, como atualizar as informa\xe7\xf5es do sistema?","faq-two-content":"Leia a documenta\xe7\xe3o com aten\xe7\xe3o. Tamb\xe9m temos alguns tutoriais em v\xeddeo online sobre esse problema. Se o problema persistir, por favor, abra um chamado no f\xf3rum de suporte.","faq-three-title":"O site est\xe1 demorando para responder, como melhorar?","faq-three-content":"Primeiro, verifique sua conex\xe3o com a internet. Tamb\xe9m temos alguns tutoriais em v\xeddeo online sobre esse problema. Se o problema persistir, por favor, abra um chamado no f\xf3rum de suporte.","faq-four-title":"Como criar uma conta?","faq-four-content":"Se voc\xea deseja abrir uma conta para uso pessoal, pode faz\xea-lo pelo telefone ou online. Abrir uma conta online deve levar apenas alguns minutos.","pbm-activation-title":"Complete sua ades\xe3o ao programa","pbm-activation-subtitle":"Preencha seus dados para liberar o desconto.","pbm-activation-subtitle-program":"Preencha seus dados para liberar o desconto de {program}.","pbm-activation-step":"Tentativa {n} de 3","pbm-activation-submit":"Continuar e verificar desconto","pbm-activation-submitting":"Enviando ades\xe3o…","pbm-activation-lgpd-link":"Ler termo de aceite e pol\xedtica de privacidade","pbm-activation-lgpd-checkbox":"Li e aceito o termo de ades\xe3o e o tratamento dos meus dados pessoais (LGPD).","pbm-activation-lgpd-required":"\xc9 necess\xe1rio aceitar o termo para continuar"};function ptBr(a){var x;return null!==(x=A[a])&&void 0!==x?x:a}function ptBrCommon(a){var x,w;if(!a)return"";let k=a.startsWith("common:")?a.slice(7):a;return null!==(w=null!==(x=A[k])&&void 0!==x?x:A[a])&&void 0!==w?w:a}},47613:function(a,x,w){"use strict";function randomUUID(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let a=new Uint8Array(16);if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues)crypto.getRandomValues(a);else{let x=Date.now()^("undefined"!=typeof performance?performance.now():0);for(let w=0;w<a.length;w+=1)x=Math.imul(1664525,x)+1013904223>>>0,a[w]=255&x}a[6]=15&a[6]|64,a[8]=63&a[8]|128;let x=Array.from(a,a=>a.toString(16).padStart(2,"0")).join("");return"".concat(x.slice(0,8),"-").concat(x.slice(8,12),"-").concat(x.slice(12,16),"-").concat(x.slice(16,20),"-").concat(x.slice(20))}w.d(x,{H:function(){return randomUUID}})},90997:function(a,x,w){"use strict";function getStorage(a){try{let x="local"===a?window.localStorage:window.sessionStorage;if(!x)return null;let w="__quali_storage_probe__";return x.setItem(w,"1"),x.removeItem(w),x}catch(a){return null}}function safeLocalStorageGetItem(a){let x=getStorage("local");if(!x)return null;try{return x.getItem(a)}catch(a){return null}}function safeLocalStorageSetItem(a,x){let w=getStorage("local");if(!w)return!1;try{return w.setItem(a,x),!0}catch(a){return!1}}function safeLocalStorageRemoveItem(a){let x=getStorage("local");if(x)try{x.removeItem(a)}catch(a){}}function safeSessionStorageGetItem(a){let x=getStorage("session");if(!x)return null;try{return x.getItem(a)}catch(a){return null}}function safeSessionStorageSetItem(a,x){let w=getStorage("session");if(!w)return!1;try{return w.setItem(a,x),!0}catch(a){return!1}}function safeSessionStorageRemoveItem(a){let x=getStorage("session");if(x)try{x.removeItem(a)}catch(a){}}function safeClearWebStorage(){let a=getStorage("local"),x=getStorage("session");try{null==a||a.clear()}catch(a){}try{null==x||x.clear()}catch(a){}}w.d(x,{$$:function(){return safeSessionStorageRemoveItem},E6:function(){return safeLocalStorageRemoveItem},Jn:function(){return safeSessionStorageSetItem},U9:function(){return safeSessionStorageGetItem},Z7:function(){return safeLocalStorageGetItem},fT:function(){return safeClearWebStorage},pc:function(){return safeLocalStorageSetItem}})},30768:function(a,x,w){"use strict";w.d(x,{GR:function(){return absoluteUrl},KJ:function(){return productAbsoluteUrl},zL:function(){return getSiteOrigin}});var A=w(97514);let k=/\.(xml|txt|pdf|svg|png|jpe?g|gif|ico|json|webmanifest|woff2?)$/i;
51function getSiteOrigin(){try{return new URL("https://www.qualidoc.com.br").origin}catch(a){return"https://www.qualidoc.com.br"}}function absoluteUrl(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",x=getSiteOrigin(),w=String(a).trim(),A=w.indexOf("#"),F=A>=0?w.slice(A+1):"",V=A>=0?w.slice(0,A):w,B=V.indexOf("?"),z=B>=0?V.slice(B):"",G=B>=0?V.slice(0,B):V,$=G.replace(/\/{2,}/g,"/"),W=$.replace(/^\/+/,"").replace(/\/+$/,""),Z=""===W?"/":"/".concat(W),K="/"===Z||function(a){var x;let w=null!==(x=a.split("/").filter(Boolean).pop())&&void 0!==x?x:"";return k.test(w)}(Z)||Z.endsWith("/")?Z:"".concat(Z,"/"),Y="".concat(x).concat(K).concat(z);return F?"".concat(Y,"#").concat(F):Y}function productAbsoluteUrl(a,x){return absoluteUrl(A.Z.product(String(a),String(x)))}},45754:function(a,x,w){"use strict";w.d(x,{$8:function(){return defaultOgImageUrl},Bm:function(){return isUsableImageUrl},w7:function(){return resolveOgImages}});var A=w(30768);function defaultOgImageUrl(){return(0,A.GR)("/icons/icon512_rounded.png")}function isUsableImageUrl(a){return"string"==typeof a&&a.trim().length>0}function resolveOgImages(a){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Qualidoc",w=[];for(let G of null!=a?a:[]){var k,F,V,B,z;if(!G||"object"!=typeof G)continue;let a=null!==(V=null!==(F=G.original)&&void 0!==F?F:G.url)&&void 0!==V?V:null===(k=G.image)||void 0===k?void 0:k.original;if(!isUsableImageUrl(a))continue;let $=function(a){let x=a.trim();return x?/^https?:\/\//i.test(x)?x:(0,A.GR)(x):""}(a);$&&w.push({url:$,alt:null!==(z=null!==(B=G.title)&&void 0!==B?B:G.alt)&&void 0!==z?z:x})}return w.length>0?w:[{url:defaultOgImageUrl(),alt:x,width:512,height:512}]}},33156:function(a,x,w){"use strict";w.d(x,{Cq:function(){return k},Ri:function(){return F},VI:function(){return typeMetaDescription},YT:function(){return V},Yu:function(){return A},rr:function(){return categoryMetaDescription}});let A="A Qualidoc \xe9 uma farm\xe1cia online brasileira que comercializa medicamentos, gen\xe9ricos, dermocosm\xe9ticos e produtos de sa\xfade, com entrega no Brasil.",k="Qualidoc Farm\xe1cia Online 24 horas | Medicamentos e sa\xfade",F="Farm\xe1cia online Qualidoc",V="Compre medicamentos, gen\xe9ricos, dermocosm\xe9ticos e produtos de sa\xfade na Qualidoc, farm\xe1cia online com entrega em todo o Brasil.";function categoryMetaDescription(a,x){let w=null==x?void 0:x.trim();return w||"Compre ".concat(a," com o melhor pre\xe7o e entrega r\xe1pida na Qualidoc Farm\xe1cia. Frete gr\xe1tis, cashback e produtos de qualidade.")}function typeMetaDescription(a){return"Compre ".concat(a," com o melhor pre\xe7o e entrega r\xe1pida na Qualidoc, farm\xe1cia online com entrega em todo o Brasil.")}},1636:function(a,x,w){"use strict";w.d(x,{W:function(){return k}});var A=w(84728);let CartPriceUpdateService=class CartPriceUpdateService{static getInstance(){return CartPriceUpdateService.instance||(CartPriceUpdateService.instance=new CartPriceUpdateService),CartPriceUpdateService.instance}needsUpdate(a){let x=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(x)return!0;let w=Date.now();return a.some(a=>{let x=this.lastUpdateTime.get(a);return!x||w-x>this.updateCooldown})}isValidKitPromotion(a,x,w){return!!x&&!(x<=0)&&(void 0===w||!(w<x))&&a%x==0}hasSufficientStock(a,x){return void 0===x||x>=a}async updatePrices(a){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{forceUpdate:w=!1,silent:k=!1,onProgress:F}=x;if(0===a.length)return{success:!0,updatedItems:[],errors:[]};let V=[...new Set(a.map(a=>a.sku||a.id))];if(!this.needsUpdate(V,w))return{success:!0,updatedItems:[],errors:[]};try{k||console.log("Updating prices for ".concat(V.length," products..."));let x=await (0,A.sy)(V),w=Date.now();V.forEach(a=>this.lastUpdateTime.set(a,w)),F&&F(50);let B=[],z=[];for(let w of x){let x=a.find(a=>(a.sku||a.id)===w.id);if(x){let a=x.quantity||1,A=w.quantity||w.in_stock||x.stock;if(!this.hasSufficientStock(a,A)){k||z.push("Insufficient stock for product ".concat(w.id,". Available: ").concat(A,", Required: ").concat(a));continue}let F=x.price!==w.price||x.sale_price!==w.sale_price,V=void 0!==w.promotional_pack_unit_price&&x.promotional_pack_unit_price!==w.promotional_pack_unit_price;if(V){let V=x.promotional_pack_quantity;if(!this.isValidKitPromotion(a,V,A)){k||console.log("Skipping promotional pack price update for ".concat(w.id,": promotion requirements not met (quantity: ").concat(a,", required: ").concat(V,")")),F&&B.push({id:w.id,price:w.price,sale_price:w.sale_price,oldPrice:x.price,oldSalePrice:x.sale_price,product_prices:w.product_prices});continue}}if(F||V){let a={id:w.id,price:w.price,sale_price:w.sale_price,oldPrice:x.price,oldSalePrice:x.sale_price};V&&void 0!==w.promotional_pack_unit_price&&(a.promotional_pack_unit_price=w.promotional_pack_unit_price,a.oldPromotionalPackUnitPrice=x.promotional_pack_unit_price),w.product_prices&&(a.product_prices=w.product_prices),B.push(a)}}}return F&&F(100),!k&&B.length>0&&console.log("Updated prices for ".concat(B.length," products")),{success:!0,updatedItems:B,errors:z}}catch(x){let a=x instanceof Error?x.message:"Unknown error";return console.error("Failed to update cart prices:",x),{success:!1,updatedItems:[],errors:[a]}}}getLastUpdateTime(a){return this.lastUpdateTime.get(a)}clearCooldown(a){a.forEach(a=>this.lastUpdateTime.delete(a))}setCooldown(a){this.updateCooldown=a}constructor(){this.lastUpdateTime=new Map,this.updateCooldown=3e5}};let k=CartPriceUpdateService.getInstance()},63291:function(a,x,w){"use strict";w.d(x,{m:function(){return k}});var A=w(84728);
51let k=new class{async checkStock(a){if(0===a.length)return{success:!0,changes:[],errors:[]};let x=a.filter(a=>!(null==a?void 0:a.pbm_flag));if(0===x.length)return{success:!0,changes:[],errors:[]};let w=[...new Set(x.map(a=>a.sku||a.id))];try{let a=await (0,A.sy)(w),B=[];for(let w of x){var k,F,V;let x=w.sku||w.id,A=a.find(a=>a.id===x),z=null!==(k=w.quantity)&&void 0!==k?k:1;if(void 0===A)continue;let G=null!==(V=null!==(F=A.quantity)&&void 0!==F?F:A.in_stock)&&void 0!==V?V:0;if(G<=0){B.push({id:w.id,sku:w.sku,name:w.name,image:w.image,cartQuantity:z,availableStock:0,status:"sold_out"});continue}z>G&&B.push({id:w.id,sku:w.sku,name:w.name,image:w.image,cartQuantity:z,availableStock:G,status:"reduced"})}return{success:!0,changes:B,errors:[]}}catch(x){let a=x instanceof Error?x.message:"Erro ao verificar estoque";return console.error("Cart stock update failed:",x),{success:!1,changes:[],errors:[a]}}}}},84728:function(a,x,w){"use strict";w.d(x,{BI:function(){return getProductsBySkus},aN:function(){return getProductsByIds},sy:function(){return getFreshProductPrices},uM:function(){return V}});var A=w(18871),k=w.n(A),F=w(25380);let V=new(k()).Client({apiKey:"Iduy6L32OonNSYdmgpu9EPBmt0Rmobas",nodes:[{host:"search.qualidoc.com.br",port:Number("443")||8108,protocol:"https"}]}),getProductsBySkus=async a=>{if(!a.length)return[];let x=await Promise.allSettled(a.map(a=>V.collections(F.Dn).documents(a).retrieve()));return x.map(a=>"fulfilled"===a.status?a.value:null).filter(Boolean)},getProductsByIds=async a=>{var x,w;if(!a.length)return[];let A="".concat(F.QA," && product_id:[").concat(a.join(","),"]"),k={q:"*",query_by:"name",filter_by:A,per_page:Math.max(a.length,250)},B=await V.collections(F.Dn).documents().search(k),z=null!==(w=null===(x=B.hits)||void 0===x?void 0:x.map(a=>a.document))&&void 0!==w?w:[],G=new Map(z.map(a=>{var x,w;return[Number(null!==(w=null!==(x=a.product_id)&&void 0!==x?x:a.id)&&void 0!==w?w:a.sku),a]}));return a.map(a=>G.get(a)).filter(Boolean)},getFreshProductPrices=async a=>{try{let x=await getProductsBySkus(a);return x.map(a=>{var x;let w=null===(x=a.product_prices)||void 0===x?void 0:x.find(a=>14===a.price_channel_id);return{id:a.sku,price:a.price||0,sale_price:a.sale_price||0,promotional_pack_unit_price:(null==w?void 0:w.price)||(null==w?void 0:w.sale_price)||void 0,product_prices:a.product_prices||[],quantity:a.quantity||0,in_stock:a.in_stock||a.quantity||0}})}catch(a){return console.error("Error fetching fresh product prices:",a),[]}}},25380:function(a,x,w){"use strict";w.d(x,{Dn:function(){return B},GP:function(){return V},Ih:function(){return $},QA:function(){return Z},jz:function(){return k.jz},kl:function(){return G},yY:function(){return z},yr:function(){return W}});var A,k=w(43194),F=w(83454);let V=k.ht.split(","),B=k.oX,z=Number(null!==(A=F.env.NEXT_PUBLIC_SEARCH_ITEMS_P
51ER_PAGE)&&void 0!==A?A:null)||20,G="products_home",$="products",W="products[refinementList][categories.name][0]",Z="status_id:=2"},43194:function(a,x,w){"use strict";w.d(x,{$p:function(){return G},Fx:function(){return F},H2:function(){return W},P:function(){return getTypesenseServerConfig},Wb:function(){return appendTypesenseApiKeyQuery},c8:function(){return getTypesensePublicBaseUrl},hR:function(){return typesenseNavigationTypeInstantSearchFilter},hb:function(){return $},ht:function(){return B},jz:function(){return z},oX:function(){return k},rF:function(){return V},v_:function(){return isNumericOnlySearchQuery},wv:function(){return getTypesenseSearchOnlyHeaders}});var A=w(83454);let k="products",F=A.env.NEXT_PUBLIC_TYPESENSE_POPULAR_QUERIES_COLLECTION||"popular_queries_store",V=3;function getTypesensePublicBaseUrl(){let a=Number("443")||8108,x=443===a?"":":".concat(a);return"".concat("https","://").concat("search.qualidoc.com.br").concat(x)}function getTypesenseSearchOnlyHeaders(){return{"Content-Type":"application/json","X-TYPESENSE-API-KEY":"Iduy6L32OonNSYdmgpu9EPBmt0Rmobas"}}function appendTypesenseApiKeyQuery(a){let x="Iduy6L32OonNSYdmgpu9EPBmt0Rmobas";if(!x)return a;let w=a.includes("?")?"&":"?";return"".concat(a).concat(w,"x-typesense-api-key=").concat(encodeURIComponent(x))}function getTypesenseServerConfig(){return{apiKey:"Iduy6L32OonNSYdmgpu9EPBmt0Rmobas",nodes:[{host:"search.qualidoc.com.br",port:Number("443")||8108,protocol:"https"}]}}function isNumericOnlySearchQuery(a){if(null==a)return!1;let x=String(a).trim();return x.length>0&&/^\d+$/.test(x)}let B="brand,manufacturer,active_ingredients,categories.name,dosage,packaging,is_controlled,requires_prescription,is_antibiotic",z="status_id:=2";function typesenseNavigationTypeInstantSearchFilter(a){if(null==a||""===a)return"true";let x=String(a).trim();return"true"===A.env.NEXT_PUBLIC_TYPESENSE_LEGACY_TYPE_FILTER_ONLY?"(type_id:".concat(x," || types_id:=").concat(x," || types.id:=").concat(x,")"):"(types_id:=".concat(x," || types.id:=").concat(x," || type_id:=").concat(x,")")}let G={query_by:"name,active_ingredients,generic_name,brand,search_aliases,sku,normalized_description",query_by_weights:"20,18,14,8,7,3,1",num_typos:"2,2,1,1,1,0,0",min_len_1typo:5,min_len_2typo:10,prefix:"true,false,false,false,false,false,false",infix:"off,off,off,off,off,always,off",text_match_type:"sum_score",prioritize_exact_match:!0,prioritize_token_position:!0,prioritize_num_matching_fields:!0,split_join_tokens:"always",drop_tokens_threshold:1,sort_by:"in_stock:desc,_text_match:desc,popularity_score:desc",filter_by:z,facet_by:B,highlight_fields:"name,generic_name,active_ingredients,brand",highlight_affix_num_tokens:4,per_page:24},$={...G,query_by:"sku,barcode",query_by_weights:"10,10",infix:"always,always",num_typos:"0,0",filter_by:z,prefix:"true,true",highlight_fields:"sku,barcode"},W={query_by:"name,brand,active_ingredients,generic_name,search_aliases",query_by_weights:"10,6,8,8,5",prefix:"true",num_typos:"1",enable_analytics:!1,sort_by:"in_stock:desc,popularity_score:desc",filter_by:z,per_page:6,highlight_fields:"name",include_fields:"id,name,brand,image,sale_price,price,slug,sku,popularity_score,quantity,in_stock,status_id,type_id,product_prices,characteristics",facet_by:"categories.name",max_facet_values:5}},67518:function(a,x,w){"use strict";w.d(x,{T4:function(){return formatPrice},Yo:function(){return calcCurrency},ZP:function(){return usePrice}});var A=w(43516),k=w(38437);function formatPrice(a){let{amount:x,currencyCode:w="BRL",locale:A="pt-BR",fractions:k=2}=a,F=new Intl.NumberFormat(A,{style:"currency",currency:w,currencyDisplay:"narrowSymbol",maximumFractionDigits:k});return F.format(x)}function usePrice(a){let{settings:x}=(0,A.rV)(),w=null==x?void 0:x.currency,F=null==x?void 0:x.currencyOptions,{amount:V,baseAmount:B,currencyCode:z,currencyOptionsFormat:G}={...a,currencyCode:null!=w?w:"BRL",currencyOptionsFormat:null!=F?F:{formation:"pt-BR",fractions:2}},$=null!=V?V:0,{formation:W="pt-BR",fractions:Z=2}=G,K=null,Y=null;if(Number(B)&&Number($)<Number(B)){let a=Number(B)-Number($);(Y=Math.floor(a/Number(B)*100))>=k.Xg&&(K="".concat(Y,"% OFF"))}return{price:formatPrice({amount:Number($),currencyCode:z,locale:W,fractions:Z}),basePrice:formatPrice({amount:Number(B),currencyCode:z,locale:W,fractions:Z}),discount:K,discountValue:Y}}function calcCurrency(a){let{settings:x,...w}=a,A=null==x?void 0:x.currency,F=(null==x?void 0:x.currencyOptions)||{formation:"pt-BR",fractions:2},{amount:V,baseAmount:B,currencyCode:z,currencyOptionsFormat:G}={...w,currencyCode:null!=A?A:"BRL",currencyOptionsFormat:null!=F?F:{formation:"pt-BR",fractions:2}},$=null!=V?V:0,{formation:W="pt-BR",fractions:Z=2}=G,K=null,Y=null;if(Number(B)&&Number($)<Number(B)){let a=Number(B)-Number($);(Y=Math.floor(a/Number(B)*100))>=k.Xg&&(K="".concat(Y,"% OFF"))}return{price:formatPrice({amount:Number($),currencyCode:z,locale:W,fractions:Z}),basePrice:formatPrice({amount:Number(B),currencyCode:z,locale:W,fractions:Z}),discount:K,discountValue:Y}}},58431:function(a,x,w){"use strict";w.d(x,{K:function(){return isCouponItemEligible},j:function(){return couponItemEligibilityHasRestrictions}});let couponItemEligibilityHasRestrictions=a=>{var x,w;return!!((null==a?void 0:null===(x=a.allowed_skus)||void 0===x?void 0:x.length)||(null==a?void 0:null===(w=a.allowed_category_ids)||void 0===w?void 0:w.length)||(null==a?void 0:a.minimum_allowed_amount)!=null)},normalizeSku=a=>{if(null!=a&&""!==String(a).trim())return String(a).trim()},hasAllowedSku=(a,x)=>
51{if(!(null==x?void 0:x.length))return!0;let w=normalizeSku(a);return!!w&&x.some(a=>normalizeSku(a)===w)},hasAllowedCategory=(a,x)=>null==x||!x.length||a.some(a=>x.includes(a)),hasAllowedAmount=(a,x)=>null==x||a>=x,isCouponItemEligible=(a,x)=>{var w;if(!couponItemEligibilityHasRestrictions(x))return!0;let A=Number(a.order_quantity||0)*Number(a.original_unit_price||0),k=null!==(w=a.category_ids)&&void 0!==w?w:[],F=null==x?void 0:x.allowed_skus,V=null==x?void 0:x.allowed_category_ids,B=!!(null==F?void 0:F.length),z=!!(null==V?void 0:V.length),G=!0;return B&&z?G=hasAllowedSku(a.sku,F)||hasAllowedCategory(k,V):B?G=hasAllowedSku(a.sku,F):z&&(G=hasAllowedCategory(k,V)),G&&hasAllowedAmount(A,null==x?void 0:x.minimum_allowed_amount)}},25192:function(a,x,w){"use strict";w.d(x,{Ci:function(){return sendMessageToNative},T0:function(){return openNativeDocument},XE:function(){return openNativeScanner},pE:function(){return isNativeApp},w8:function(){return blobToBase64}});let sendMessageToNative=a=>{window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(a))},blobToBase64=a=>new Promise((x,w)=>{let A=new FileReader;A.onloadend=()=>{let a=A.result;if("string"!=typeof a){w(Error("Failed to read blob"));return}let k=a.indexOf(",");x(k>=0?a.slice(k+1):a)},A.onerror=()=>{var a;return w(null!==(a=A.error)&&void 0!==a?a:Error("Failed to read blob"))},A.readAsDataURL(a)}),openNativeDocument=a=>!!isNativeApp()&&(sendMessageToNative({type:"OPEN_DOCUMENT",...a}),!0),isNativeApp=()=>{var a,x;return!!(window.ReactNativeWebView||window.navigator.userAgent.includes("QualiApp Native WebView")||window.QualiAppNative||(null===(x=window.QualiAppNative)||void 0===x?void 0:null===(a=x.isNativeApp)||void 0===a?void 0:a.call(x)))},openNativeScanner=()=>{var a;return(null===(a=window.QualiAppNative)||void 0===a?void 0:a.openScanner)?(window.QualiAppNative.openScanner(),!0):(window.location.href="qualiappnative://scanner",!1)}},13027:function(a,x,w){"use strict";w.d(x,{BP:function(){return initializeSmartechBaseReact},L9:function(){return trackEvent},Lj:function(){return updateUserProfile},Xb:function(){return setUserIdentity},fW:function(){return userToNetcoreProfile},x4:function(){return login}});let isNetcoreAvailable=()=>"function"==typeof window.smartech,updateUserProfile=a=>{if(isNetcoreAvailable())try{window.smartech("updateUserProfile",a)}catch(a){}},setUserIdentity=a=>{if(isNetcoreAvailable()&&a)try{window.smartech("setUserIdentity",a)}catch(a){}},login=a=>{if(isNetcoreAvailable()&&a)try{window.smartech("login",a)}catch(a){}},trackEvent=(a,x)=>{if(isNetcoreAvailable()&&a)try{window.smartech("track",a,x||{})}catch(a){}},userToNetcoreProfile=a=>{let x={};if(a.first_name&&(x.FIRST_NAME=a.first_name),a.last_name&&(x.LAST_NAME=a.last_name),a.email&&(x.EMAIL=a.email),a.cellphone?x.MOBILE=a.cellphone:a.phone&&(x.MOBILE=a.phone),a.gender&&(x.GENDER=a.gender),a.birth_date){let w=a.birth_date;if(w.includes("/")){let[a,A,k]=w.split("/");x.BIRTH_DATE="".concat(k,"-").concat(A,"-").concat(a)}else x.BIRTH_DATE=w}return a.cpf&&(x.CPF=a.cpf),x},initializeSmartechBaseReact=()=>{window.SmartechBaseReact={updateUserProfile:a=>{updateUserProfile(a)},setUserIdentity:a=>{setUserIdentity(a)},login:a=>{login(a)},trackEvent:(a,x)=>{trackEvent(a,x)}}}},86566:function(a,x,w){"use strict";w.d(x,{Bm:function(){return calculatePBMComboSavings},DH:function(){return getPBMBaseUnitPrice},Jy:function(){return validatePBMResponse},Lq:function(){return getInterplayersPBMItems},NY:function(){return hasComboAppliedItems},U_:function(){return isInterplayersPBMItem},VS:function(){return buildCartVerifyPayload},X_:function(){return getInterplayersCartSignature},f3:function(){return hasPBMProducts},mM:function(){return getCatalogSalePrice},mS:function(){return buildPBMVerifyPricesPayload},ni:function(){return mapCartVerifyPricesBySku},qs:function(){return shouldVerifyPBMCombo}});var A=w(75134);let k="interplayers";function hasPBMProducts(a){return a.some(a=>{var x;return null===(x=a.pbm_info)||void 0===x?void 0:x.flag})}function isInterplayersPBMItem(a){var x,w,A,F,V;let B=null===(F=a.pbm_info)||void 0===F?void 0:null===(A=F.program)||void 0===A?void 0:null===(w=A.middleware)||void 0===w?void 0:null===(x=w.slug)||void 0===x?void 0:x.trim().toLowerCase();return!!((null===(V=a.pbm_info)||void 0===V?void 0:V.flag)&&B===k)}function getInterplayersPBMItems(a){return a.filter(isInterplayersPBMItem)}function shouldVerifyPBMCombo(a){return getInterplayersPBMItems(a).length>=1}function getPBMBaseUnitPrice(a){var x,w,A;return"number"==typeof(null===(x=a.pbm_info)||void 0===x?void 0:x.base_sale_price)?a.pbm_info.base_sale_price:"number"==typeof(null===(A=a.pbm_info)||void 0===A?void 0:null===(w=A.promotion)||void 0===w?void 0:w.price)?a.pbm_info.promotion.price:a.sale_price}function getCatalogSalePrice(a){var x,w;let k=(0,A.UQ)(null!==(x=a.product_prices)&&void 0!==x?x:[],1);if(k){let a=Number(null!==(w=k.sale_price)&&void 0!==w?w:k.price);if(Number.isFinite(a)&&a>0)return a}return"number"==typeof a.price&&Number.isFinite(a.price)&&a.price>0?a.price:a.sale_price}function getInterplayersCartSignature(a){return JSON.stringify(getInterplayersPBMItems(a).map(a=>{var x,w,A;return{sku:a.sku,quantity:a.quantity,cpf:null!==(A=null===(w=a.pbm_info)||void 0===w?void 0:null===(x=w.cpf)||void 0===x?void 0:x.replace(/\D/g,""))&&void 0!==A?A:""}}).sort((a,x)=>a.sku.localeCompare(x.sku)))}function hasComboAppliedItems(a){return a.some(a=>{var x;return null===(x=a.pbm_info)||void 0===x?void 0:x.combo_applied})}function buildPBMVerifyPricesPayload(a,x){let w={};a.filter(a=>{var x,w,A;return(null===(x=a.pbm_info)||void 0===x?void 0:x.flag)&&(null===(w=a.pbm_info)||void 0===w?void 0:w.cpf)&&(null===(A=a.pbm_info)||void 0===A?void 0:A.program)}
51).forEach(a=>{var A,k,F;let V=a.pbm_info;if(!(null==V?void 0:V.cpf)||!(null==V?void 0:V.program))return;let B=V.cpf.replace(/\D/g,"");if(!B)return;let z=V.program,G=null==z?void 0:null===(A=z.middleware)||void 0===A?void 0:A.id,$=null==z?void 0:null===(F=z.middleware)||void 0===F?void 0:null===(k=F.slug)||void 0===k?void 0:k.trim(),W=null==z?void 0:z.id;if(null==G||!Number.isFinite(G)||G<1||!$||null==W||!Number.isFinite(W)||W<1)return;let Z=(null==z?void 0:z.name)||"unknown";w[B]||(w[B]={}),w[B][$]||(w[B][$]={id:G,name:$,programs:[]});let K=(null==x?void 0:x.useBasePbmUnitPrice)?getPBMBaseUnitPrice(a):"number"==typeof a.calculated_sale_price&&Number.isFinite(a.calculated_sale_price)?a.calculated_sale_price:"number"==typeof a.sale_price&&Number.isFinite(a.sale_price)?a.sale_price:0;w[B][$].programs.push({name:Z,id:W,sku:a.sku,sale_price:K,quantity:a.quantity})});let A=Object.entries(w).map(a=>{let[x,w]=a;return{document:x,middlewares:Object.values(w)}});return{documents:A}}function buildCartVerifyPayload(a){let x=getInterplayersPBMItems(a);if(x.length<1)return null;let w=buildPBMVerifyPricesPayload(x,{useBasePbmUnitPrice:!0}),A=w.documents.map(a=>({...a,middlewares:a.middlewares.filter(a=>a.name===k)})).filter(a=>a.middlewares.length>0);return A.length?{pbm:{documents:A}}:null}function mapCartVerifyPricesBySku(a){return new Map(a.filter(a=>(null==a?void 0:a.sku)&&"number"==typeof a.sale_price&&Number.isFinite(a.sale_price)).map(a=>[a.sku,a.sale_price]))}function calculatePBMComboSavings(a){return getInterplayersPBMItems(a).reduce((a,x)=>{var w,A;if(!(null===(w=x.pbm_info)||void 0===w?void 0:w.combo_applied))return a;let k=getPBMBaseUnitPrice(x),F=null!==(A=x.quantity)&&void 0!==A?A:1,V=(k-x.sale_price)*F;return V>0?a+V:a},0)}function validatePBMResponse(a){let x=[];return a.documents.forEach(a=>
51{a.middlewares.forEach(w=>{w.programs.forEach(A=>{"approved"!==A.status&&x.push({document:a.document,middleware:w.name,program:A.name,status:A.status||"unknown",quantity:A.quantity,sku:A.sku})})})}),{isValid:0===x.length,unapprovedItems:x}}},75134:function(a,x,w){"use strict";w.d(x,{BJ:function(){return getOrderLimitFromCharacteristics},Ct:function(){return getPBMSalePrice},Ex:function(){return hasEnoughStockForPromotionalPack},Hj:function(){return getDetalhesCharacteristicStringValue},MO:function(){return extractRecipeValidityDaysFromResponse},UQ:function(){return findPriceChannelEntry},WU:function(){return findPropertyByName},di:function(){return getProductMaxInstallmentsFromCharacteristics},eh:function(){return getListingDisplayPrice},fg:function(){return shouldShowPBM},jd:function(){return getProductMaxInstallmentsFromCharacteristicSources},pZ:function(){return productHasGenericOption},qx:function(){return flattenProductCharacteristicsFromApiResponse},wb:function(){return hasSellablePrice}});var A=w(57661),k=w(78746);function getDetalhesCharacteristicStringValue(a,x){var w,A,k;let F=null==a?void 0:null===(k=a.Detalhes)||void 0===k?void 0:null===(A=k.characteristics)||void 0===A?void 0:null===(w=A.find(a=>a.id===x))||void 0===w?void 0:w.value;if(null==F||"string"!=typeof F)return null;let V=F.trim();return V.length>0?V:null}function findPropertyByName(){var a;let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return(null===(a=x.find(a=>a.name===w))||void 0===a?void 0:a.value)||""}function flattenProductCharacteristicsFromApiResponse(a){if(!a||"object"!=typeof a)return[];let x=[];for(let A of Object.values(a))if((null==A?void 0:A.characteristics)&&Array.isArray(A.characteristics))for(let a of A.characteristics){var w;(null==a?void 0:a.id)!=null&&x.push({id:Number(a.id),name:String(null!==(w=a.name)&&void 0!==w?w:""),value:null!=a.value?String(a.value):"",valueJson:null!=a.valueJson&&"object"==typeof a.valueJson?a.valueJson:null})}return x}function getProductMaxInstallmentsFromCharacteristicSources(){for(var a=arguments.length,x=Array(a),w=0;w<a;w++)x[w]=arguments[w];for(let a of x){let x=getProductMaxInstallmentsFromCharacteristics(null!=a?a:[]);if(void 0!==x)return x}}function getProductMaxInstallmentsFromCharacteristics(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],x=a.find(a=>a.id===A.t.MAX_CARD_INSTALLMENTS.id);if(!(null==x?void 0:x.value))return;let w=Number(x.value);if(Number.isFinite(w)&&!(w<1))return Math.floor(w)}function getOrderLimitFromCharacteristics(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],x=a.find(a=>a.id===A.t.ORDER_LIMIT.id);if(!(null==x?void 0:x.value))return;let w=Number(x.value);return Number.isNaN(w)?void 0:w}function findPriceChannelEntry(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return null==a?void 0:a.find(a=>Number(null==a?void 0:a.price_channel_id)===Number(x))}function getPBMSalePrice(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],x=findPriceChannelEntry(a,k.g.PBM_PROGRAM.id),w=Number(null==x?void 0:x.sale_price);return Number.isFinite(w)&&w>0?w:void 0}function hasSellablePrice(a){var x,w,A,k,F;if(!a)return!1;let V=Number(null!==(x=a.sale_price)&&void 0!==x?x:0),B=Number(null!==(w=a.price)&&void 0!==w?w:0);if(V>0||B>0)return!0;let z=findPriceChannelEntry(null!==(A=a.product_prices)&&void 0!==A?A:[],1),G=Number(null!==(F=null!==(k=null==z?void 0:z.sale_price)&&void 0!==k?k:null==z?void 0:z.price)&&void 0!==F?F:0);return G>0}function productHasGenericOption(a){let x=null==a?void 0:a.find(a=>(null==a?void 0:a.id)===A.t.HAS_GENERIC.id);if(!x)return!1;let w=x.value;return"string"==typeof w?"true"===w.toLowerCase():!!w}function getListingDisplayPrice(a){var x;let w=(null==a?void 0:a.sale_price)!=null?Number(a.sale_price):null,A=(null==a?void 0:a.price)!=null?Number(a.price):null,k=getPBMSalePrice(null!==(x=null==a?void 0:a.product_prices)&&void 0!==x?x:[]);return null!=k&&null!=w&&w>0&&k<w?{displayAmount:k,compareAmount:w,isLaboratoryPrice:!0}
51:{displayAmount:w,compareAmount:null!=A&&null!=w&&A>w&&A>0?A:null,isLaboratoryPrice:!1}}function shouldShowPBM(a){let{characteristics:x,productPrices:w}=a;return!!(function(){var a;let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(a=null==x?void 0:x.some(a=>(null==a?void 0:a.id)===A.t.PBM_PROGRAM.id&&(null==a?void 0:a.value)==="true"))&&void 0!==a&&a}(x||[])&&function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],x=findPriceChannelEntry(a,k.g.PBM_PROGRAM.id);return!!(x&&Number(null==x?void 0:x.price)>0&&Number(null==x?void 0:x.sale_price)>0)}(w||[]))}function extractRecipeValidityDaysFromResponse(a){if(a)for(let x in a){let w=a[x];if((null==w?void 0:w.characteristics)&&Array.isArray(w.characteristics)){let a=w.characteristics.find(a=>a.id===A.t.RECIPE_VALIDITY_DAYS.id);if(null==a?void 0:a.value){let x=Number(a.value);if(!Number.isNaN(x)&&x>0)return x}}}}function hasEnoughStockForPromotionalPack(a){var x;if(!a.characteristics)return!1;let w=a.characteristics.find(a=>(null==a?void 0:a.id)===29);if(!w)return!1;let A=null==w?void 0:null===(x=w.valueJson)||void 0===x?void 0:x.buy;if(!A)return!1;let k=Number(a.quantity)||0;return k>=A}},2411:function(a,x,w){"use strict";let A,k;w.r(x),w.d(x,{OldAppDetectorTest:function(){return OldAppDetectorTest},default:function(){return _app}});var F=w(85893);w(43763),w(75130),w(72344),w(27967);var V=w(75814),B=w(5152),z=w.n(B),G=w(33892);let $=z()(()=>Promise.all([w.e(8680),w.e(3040)]).then(w.bind(w,13040)),{loadableGenerated:{webpack:()=>[13040]}}),W=z()(()=>Promise.resolve().then(w.bind(w,34526)),{loadableGenerated:{webpack:()=>[34526]},ssr:!1}),Z=z()(()=>Promise.all([w.e(8680),w.e(4525)]).then(w.bind(w,64525)),{loadableGenerated:{webpack:()=>[64525]}}),K=z()(()=>Promise.resolve().then(w.bind(w,41402)),{loadableGenerated:{webpack:()=>[41402]}}),Y=z()(()=>w.e(9388).then(w.bind(w,9388)),{loadableGenerated:{webpack:()=>[9388]}}),J=z()(()=>Promise.all([w.e(8596),w.e(5658),w.e(3962),w.e(1033),w.e(1036),w.e(7955),w.e(5886),w.e(6739),w.e(5801),w.e(4329),w.e(1534),w.e(430),w.e(712),w.e(1593)]).then(w.bind(w,78992)),{loadableGenerated:{webpack:()=>[78992]},ssr:!1}),ee=z()(()=>w.e(5742).then(w.bind(w,45742)),{loadableGenerated:{webpack:()=>[45742]}}),et=z()(()=>w.e(9770).then(w.bind(w,69770)),{loadableGenerated:{webpack:()=>[69770]},ssr:!1}),er=z()(()=>Promise.all([w.e(1255),w.e(9592)]).then(w.bind(w,79592)),{loadableGenerated:{webpack:()=>[79592]},ssr:!1}),en=z()(()=>w.e(3417).then(w.bind(w,73417)),{loadableGenerated:{webpack:()=>[73417]}}),ei=z()(()=>w.e(2768).then(w.bind(w,32768)),{loadableGenerated:{webpack:()=>[32768]}}),eo=z()(()=>Promise.all([w.e(8680),w.e(5111)]).then(w.bind(w,55111)),{loadableGenerated:{webpack:()=>[55111]}}),ea=z()(()=>Promise.all([w.e(8680),w.e(9422)]).then(w.bind(w,99422)),{loadableGenerated:{webpack:()=>[99422]}}),es=z()(()=>Promise.all([w.e(4750),w.e(8408),w.e(2512),w.e(1710)]).then(w.bind(w,51710)),{loadableGenerated:{webpack:()=>[51710]}}),el=z()(()=>Promise.all([w.e(2935),w.e(2512),w.e(2123)]).then(w.bind(w,90935)),{loadableGenerated:{webpack:()=>[90935]}}),eu=z()(()=>Promise.all([w.e(2935),w.e(2512),w.e(488)]).then(w.bind(w,94669)),{loadableGenerated:{webpack:()=>[94669]}}),ec=z()(()=>w.e(4255).then(w.bind(w,4255)),{loadableGenerated:{webpack:()=>[4255]}}),ed=z()(()=>w.e(3808).then(w.bind(w,3808)),{loadableGenerated:{webpack:()=>[3808]}}),ef=z()(()=>Promise.all([w.e(7916),w.e(7997)]).then(w.bind(w,17997)),{loadableGenerated:{webpack:()=>[17997]}}),ep=z()(()=>Promise.all([w.e(8596),w.e(1371)]).then(w.bind(w,9681)),{loadableGenerated:{webpack:()=>[9681]}}),eh=z()(()=>Promise.all([w.e(1033),w.e(5737),w.e(7557),w.e(9101),w.e(779),w.e(2362),w.e(1504)]).then(w.bind(w,1500)),{loadableGenerated:{webpack:()=>[1500]},ssr:!1}),em=z()(()=>Promise.all([w.e(9101),w.e(7575)]).then(w.bind(w,77575)),{loadableGenerated:{webpack:()=>[77575]},ssr:!1}),eg=z()(()=>Promise.all([w.e(7557),w.e(9101),w.e(779),w.e(2362),w.e(868)]).then(w.bind(w,80868)),{loadableGenerated:{webpack:()=>[80868]},ssr:!1}),ev=z()(()=>w.e(9366).then(w.bind(w,59366)),{loadableGenerated:{webpack:()=>[59366]}}),ey=z()(()=>Promise.all([w.e(7557),w.e(779),w.e(6228)]).then(w.bind(w,96228)),{loadableGenerated:{webpack:()=>[96228]},ssr:!1}),eb=z()(()=>Promise.all([w.e(2946),w.e(2337)]).then(w.bind(w,82337)),{loadableGenerated:{webpack:()=>[82337]},ssr:!1}),e_=z()(()=>w.e(2104).then(w.bind(w,52104)),{loadableGenerated:{webpack:()=>[52104]},ssr:!1}),ex=z()(()=>w.e(7240).then(w.bind(w,77240)),{loadableGenerated:{webpack:()=>[77240]},ssr:!1}),ew=z()(()=>w.e(8342).then(w.bind(w,68342)),{loadableGenerated:{webpack:()=>[68342]},ssr:!1}),eS=z()(()=>w.e(313).then(w.bind(w,30313)),{loadableGenerated:{webpack:()=>[30313]},ssr:!1}),eE=z()(()=>w.e(1087).then(w.bind(w,51087)),{loadableGenerated:{webpack:()=>[51087]},ssr:!1}),eA=z()(()=>w.e(5277).then(w.bind(w,95277)),{loadableGenerated:{webpack:()=>[95277]},ssr:!1}),eC=z()(()=>w.e(346).then(w.bind(w,50346)),{loadableGenerated:{webpack:()=>[50346]},ssr:!1}),eT=z()(()=>w.e(607).then(w.bind(w,70607)),{loadableGenerated:{webpack:()=>[70607]},ssr:!1}),eO=z()(()=>w.e(5615).then(w.bind(w,25615)),{loadableGenerated:{webpack:()=>[25615]},ssr:!1}),eP=z()(()=>Promise.all([w.e(8258),w.e(6332)]).then(w.bind(w,26332)),{loadableGenerated:{webpack:()=>[26332]},ssr:!1}),eR=z()(()=>w.e(6263).then(w.bind(w,56263)),{loadableGenerated:{webpack:()=>[56263]},ssr:!1}),ek=z()(()=>w.e(8510).then(w.bind(w,58510)),{loadableGenerated:{webpack:()=>[58510]},ssr:!1}),eN=new Set(["BUY_WITHOUT_RECIPE","APP_UPDATE_REQUIRED"]);var managed_modal=()=>{var a;let{isOpen:x,view:w,data:A}=(0,V.X9)(),{closeModal:k}=(0,V.SO)();return"APP_UPDATE_REQUIRED"===w?(0,F.jsx)(G.Z,{open:x,onClose:()=>{},preventClose:!0,closeButtonClass:"hidden",options:{restrictMaxHeight:null==A?void 0:A.restrictMaxHeight},children:(0,F.jsx)(ek,{})}):"PAYMENT_MODAL"===w?(0,F.jsx)(eh,{}):"PROMO_POPUP_MODAL"===w?(0,F.jsx)(eC,{}):"REVIEW_POPUP_MODAL"===w?(0,F.jsx)(eT,{}):"CONSENT_POPUP_MODAL"===w?(0,F.jsx)(eO,{}):(0,F.jsxs)(G.Z,{open:x,onClose:k,preventClose:!1,closeButtonClass:w&&eN.has(w)?"hidden":void 0,options:{restrictMaxHeight:null==A?void 0:A.restrictMaxHeight},children:["LOGIN_VIEW"===w&&(0,F.jsx)(W,{}),"REGISTER"===w&&(0,F.jsx)(Z,{}),"FORGOT_VIEW"===w&&(0,F.jsx)(K,{}),"NEW_PASSWORD_VIEW"===w&&(0,F.jsx)(Y,{data:A}),"OTP_LOGIN"===w&&(0,F.jsx)($,{}),"REFUND_REQUEST"===w&&(0,F.jsx)(es,{}),"ADD_OR_UPDATE_ADDRESS"===w&&(0,F.jsx)(et,{}),"ADD_OR_UPDATE_GUEST_ADDRESS"===w&&(0,F.jsx)(en,{}),"LOCATION_BASED_SHOP"===w&&(0,F.jsx)(er,{}),"ADD_OR_UPDATE_CHECKOUT_CONTACT"===w&&(0,F.jsx)(eo,{}),"ADD_OR_UPDATE_PROFILE_CONTACT"===w&&(0,F.jsx)(ea,{}
51),"DELETE_ADDRESS"===w&&(0,F.jsx)(ei,{}),"PRODUCT_DETAILS"===w&&(0,F.jsx)(J,{data:A}),"SHOP_INFO"===w&&(0,F.jsx)(ee,{shop:null==A?void 0:A.shop,cardClassName:"!hidden",className:"!flex !h-screen !w-screen max-w-screen-sm flex-col"}),"REVIEW_RATING"===w&&(0,F.jsx)(el,{}),"ORDER_REVIEW"===w&&(0,F.jsx)(eu,{}),"ABUSE_REPORT"===w&&(0,F.jsx)(ed,{data:A}),"QUESTION_FORM"===w&&(0,F.jsx)(ec,{}),"SELECT_PRODUCT_VARIATION"===w&&(0,F.jsx)(ef,{productSlug:A}),"REVIEW_IMAGE_POPOVER"===w&&(0,F.jsx)(ep,{}),"USE_NEW_PAYMENT"===w&&(0,F.jsx)(eg,{}),"ADD_NEW_CARD"===w&&(0,F.jsx)(ey,{}),"DELETE_CARD_MODAL"===w&&(0,F.jsx)(ev,{}),"GATEWAY_MODAL"===w&&(0,F.jsx)(eb,{}),"STRIPE_ELEMENT_MODAL"===w&&(0,F.jsx)(em,{}),"NEWSLETTER_MODAL"===w&&(0,F.jsx)(e_,{}),"COMPARE_INFO"===w&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(J,{data:A}),(0,F.jsx)(ex,{})]}),"DIGITAL_RECIPE_INFO"===w&&(0,F.jsx)(ew,{}),"RECIPE_PREVIEW"===w&&(0,F.jsx)(eS,{data:{file:null!==(a=null==A?void 0:A.file)&&void 0!==a?a:null,fileName:null==A?void 0:A.fileName}}),"BUY_WITHOUT_RECIPE"===w&&(0,F.jsx)(eE,{}),"USER_RELATIONSHIP_SELECT"===w&&(0,F.jsx)(eA,{data:A}),"SHARE_MAGIC_LINK"===w&&(0,F.jsx)(eP,{data:A}),"FRIEND_INDICATION_RULES"===w&&(0,F.jsx)(eR,{})]})},eI=w(11282),eD=w(63414),eM=w(5252),eL=w(30768);let ej=["https://blog.qualidoc.com.br/","https://www.instagram.com/qualidoc/",eD.l5,eD.s0];function OrganizationStructuredData(){let a=(0,eL.zL)(),x=(0,eL.GR)("/"),w="".concat(a,"/#organization"),A={"@context":"https://schema.org","@graph":[{"@type":"MedicalOrganization","@id":w,name:"Qualidoc",legalName:eM.o.legalName,taxID:eM.o.cnpj,url:x,logo:(0,eL.GR)("/logo.svg"),sameAs:ej,address:{"@type":"PostalAddress",streetAddress:"Alameda Barros, 136",addressLocality:"S\xe3o Paulo",addressRegion:"SP",postalCode:"01232-000",addressCountry:"BR"},contactPoint:{"@type":"ContactPoint",contactType:"customer service",telephone:"+5511942886720",areaServed:"BR",availableLanguage:"Portuguese"}},{"@type":"WebSite","@id":"".concat(a,"/#website"),name:"Qualidoc",url:x,inLanguage:"pt-BR",publisher:{"@id":w}}]};return(0,F.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(A)}})}var eF=w(43516);let eV=new Set(["qualidoc.com.br","qualidoc.life"]),eU=new Set(["www.qualidoc.com.br"]);function normalizeHostname(a){return(null!=a?a:"").toLowerCase().split(":")[0]}function getCanonicalSiteHostname(){let a="https://www.qualidoc.com.br";if(a)try{return new URL(a).hostname}catch(a){}return"www.qualidoc.com.br"}var eB=w(45754),eq=w(33156),ez=w(2962),default_seo=()=>{var a,x,w,A,k,V,B,z,G;let{settings:$}=(0,eF.rV)(),W=(G=getCanonicalSiteHostname(),!!eU.has(normalizeHostname(G))&&!/api-hom\.|localhost|127\.0\.0\.1/i.test("https://api.qualidoc.com.br")),Z="Qualidoc",K=(0,eB.Bm)(null==$?void 0:null===(a=$.seo)||void 0===a?void 0:a.ogImage)?$.seo.ogImage:(0,eB.$8)();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ez.lX,{dangerouslySetAllPagesToNoIndex:!W,dangerouslySetAllPagesToNoFollow:!W,additionalMetaTags:[{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"theme-color",content:"#ffffff"}],additionalLinkTags:[{rel:"apple-touch-icon",href:"/icons/icon512_rounded.png"}],titleTemplate:"%s — ".concat(Z),defaultTitle:"".concat(eq.Cq," — ").concat(Z),description:(null==$?void 0:null===(x=$.seo)||void 0===x?void 0:x.metaDescription)||(null==$?void 0:$.siteSubtitle)||eq.Yu,openGraph:{title:(null==$?void 0:null===(w=$.seo)||void 0===w?void 0:w.ogTitle)||"".concat(eq.Cq," — ").concat(Z),description:(null==$?void 0:null===(A=$.seo)||void 0===A?void 0:A.ogDescription)||(null==$?void 0:null===(k=$.seo)||void 0===k?void 0:k.metaDescription)||eq.Yu,type:"website",locale:"pt_BR",site_name:(null==$?void 0:$.siteTitle)||"Qualidoc",images:[{url:K,width:512,height:512,alt:(null==$?void 0:null===(V=$.seo)||void 0===V?void 0:V.ogTitle)||"Qualidoc"}]},twitter:{handle:null==$?void 0:null===(B=$.seo)||void 0===B?void 0:B.twitterHandle,site:(null==$?void 0:$.siteTitle)||"Qualidoc",cardType:(null==$?void 0:null===(z=$.seo)||void 0===z?void 0:z.twitterCardType)||"summary_large_image"}}),(0,F.jsx)(OrganizationStructuredData,{})]})},eH=w(11163),eG=w(67294);let e$=eG.createContext({searchTerm:""});e$.displayName="SearchContext";let SearchProvider=a=>{let{query:x}=(0,eH.useRouter)(),[w,A]=(0,eG.useState)("");(0,eG.useEffect)(()=>{(null==x?void 0:x.text)?A(null==x?void 0:x.text):A("")},[x]);let k=(0,eG.useMemo)(()=>({searchTerm:w,updateSearchTerm:A}),[w]);return(0,F.jsx)(e$.Provider,{value:k,...a})};var eW=w(33905),eZ=w(18677),eK=w(1636);
51let useBackgroundPriceUpdates=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{intervalMs:x=3e5,enabled:w=!0,pauseWhenHidden:A=!0}=a,{items:k,updateItemPrices:F}=(0,eZ.jD)(),V=(0,eG.useRef)(null),B=(0,eG.useRef)(!0),z=(0,eG.useCallback)(async()=>{if(0!==k.length)try{let a=k.filter(a=>!(null==a?void 0:a.pbm_flag)),x=a.map(a=>({sku:a.sku||a.id,id:a.id,price:a.price,sale_price:a.sale_price,promotional_pack_unit_price:a.promotional_pack_unit_price,promotional_pack_quantity:a.promotional_pack_quantity,product_prices:a.product_prices,quantity:a.quantity,stock:a.stock})),w=await eK.W.updatePrices(x,{silent:!0,forceUpdate:!1});w.success&&w.updatedItems.length>0&&F(w.updatedItems)}catch(a){console.error("Background price update failed:",a)}},[k,F]),G=(0,eG.useCallback)(()=>{w&&0!==k.length&&(V.current&&clearInterval(V.current),V.current=setInterval(()=>{(B.current||!A)&&z()},x))},[w,k.length,x,z,A]),$=(0,eG.useCallback)(()=>{V.current&&(clearInterval(V.current),V.current=null)},[]);return(0,eG.useEffect)(()=>{if(!A)return;let handleVisibilityChange=()=>{B.current=!document.hidden,B.current&&w&&k.length>0?G():B.current||$()};return document.addEventListener("visibilitychange",handleVisibilityChange),()=>{document.removeEventListener("visibilitychange",handleVisibilityChange)}},[w,k.length,A,G,$]),(0,eG.useEffect)(()=>(w&&k.length>0?G():$(),()=>{$()}),[w,k.length,G,$]),(0,eG.useEffect)(()=>()=>{$()},[$]),{startInterval:G,stopInterval:$,updatePrices:z,isRunning:null!==V.current}};var cart_background_price_updater=()=>(useBackgroundPriceUpdates({intervalMs:3e5,enabled:!0,pauseWhenHidden:!0}),null),eQ=w(48583),eY=w(86566),eJ=w(50633),eX=w(74478),cart_pbm_combo_verifier=()=>(!function(){let{items:a,revertPbmComboPrices:x}=(0,eZ.jD)(),[,w]=(0,eQ.KO)(eJ.Z),A=(0,eG.useRef)(null),k=(0,eG.useMemo)(()=>(0,eY.X_)(a),[a]),F=(0,eY.NY)(a);(0,eG.useEffect)(()=>{let V=A.current,B=null!==V&&V!==k;A.current=k;let resetComboUi=()=>{(0,eX.D)(),w({status:"idle",savingsTotal:0,discountedItemCount:0})};if(!(0,eY.qs)(a)){F&&x(),resetComboUi();return}B&&F&&(x(),resetComboUi())},[F,a,x,w,k])}(),null),e0=w(30169),e1=w(54109),e2=w(63291);async function enrichMergedCartWithFreshPricesAndStock(a){if(0===a.length)return a;let x=a.map(a=>({...a})),w=x.filter(a=>{var x;return!(null==a?void 0:null===(x=a.pbm_info)||void 0===x?void 0:x.flag)});if(w.length>0){let a=await eK.W.updatePrices(w.map(a=>{var x;return{sku:a.sku||a.id,id:a.id,price:a.price,sale_price:null!==(x=a.sale_price)&&void 0!==x?x:0,promotional_pack_unit_price:a.promotional_pack_unit_price,promotional_pack_quantity:a.promotional_pack_quantity,product_prices:a.product_prices,quantity:a.quantity,stock:a.stock}}),{forceUpdate:!0,silent:!0});if(a.success&&a.updatedItems.length>0){let w=new Map(a.updatedItems.map(a=>[a.id,a]));x=x.map(a=>{var x,A;if(null===(x=a.pbm_info)||void 0===x?void 0:x.flag)return a;let k=w.get(a.id);return k?{...a,price:k.price,sale_price:k.sale_price,calculated_sale_price:k.sale_price,product_prices:null!==(A=k.product_prices)&&void 0!==A?A:a.product_prices,...void 0!==k.promotional_pack_unit_price&&{promotional_pack_unit_price:k.promotional_pack_unit_price}}:a})}}let A=await e2.m.checkStock(x.map(a=>{var x,w;return{id:a.id,sku:a.sku,name:a.name||String(a.sku),image:a.image,quantity:null!==(w=a.quantity)&&void 0!==w?w:1,stock:a.stock,pbm_flag:null==a?void 0:null===(x=a.pbm_info)||void 0===x?void 0:x.flag}}));if(!A.success||0===A.changes.length)return x;let k=new Set(A.changes.filter(a=>"sold_out"===a.status).map(a=>a.id)),F=new Map(A.changes.filter(a=>"reduced"===a.status).map(a=>[a.id,a.availableStock]));return x.filter(a=>!k.has(a.id)).map(a=>{var x;let w=F.get(a.id);if(void 0===w)return a;let A=Math.min(null!==(x=a.quantity)&&void 0!==x?x:1,w);return{...a,quantity:A,stock:w}})}var e5=w(95439),e3=w(57659),e4=w(56082),e6=w(84279),e8=w(84728);function applyServerLineOverrides(a,x){let w,A=a.pbm_info;if(x.metadata&&"object"==typeof x.metadata){let a=x.metadata;if(!0===a.flag){var k;let x=function(a){var x,w;if(!a||"object"!=typeof a)return;let A=Number(a.id);if(!Number.isFinite(A)||A<1)return;let k=a.middleware;if(!k||"object"!=typeof k)return;
51let F=Number(k.id),V=String(null!==(x=k.slug)&&void 0!==x?x:"").trim();if(Number.isFinite(F)&&!(F<1)&&V)return{id:A,name:String(null!==(w=a.name)&&void 0!==w?w:""),register_url:"string"==typeof a.register_url?a.register_url:"",middleware:{id:F,slug:V}}}(a.program),F=!x&&a.program&&"object"==typeof a.program?a.program:void 0;A={flag:!0,sale_price_id:Number(a.sale_price_id)||0,cpf:String(null!==(k=a.cpf)&&void 0!==k?k:""),quantity:Number(a.quantity)||0,program:null!=x?x:F};let V=a.pbm_sale_price;"number"==typeof V&&Number.isFinite(V)&&V>=0&&(w=V)}}let F=void 0!==w?{price:w,sale_price:w,calculated_sale_price:w}:{};return{...a,...F,id:x.sku,sku:x.sku,product_id:x.product_id,quantity:x.quantity,cart_line_updated_at:x.last_modified_at,pbm_info:A,...x.metadata&&"object"==typeof x.metadata&&!0===x.metadata.from_prescription?{from_prescription:!0}:{}}}function parseVariationIdFromSku(a){let x=a.indexOf(".");return x<0?null:{variationId:a.slice(x+1)}}async function hydrateFromTypesense(a,x){try{let A=await (0,e8.BI)([a.sku]),k=A[0];if(!k){var w;let x=await (0,e8.aN)([a.product_id]);k=null!==(w=x.find(x=>{var w;return String(null!==(w=x.sku)&&void 0!==w?w:x.id)===a.sku}))&&void 0!==w?w:x[0]}if(!k)return null;return function(a,x,w){let A;let k=function(a,x){var w,A,k,F,V,B,z,G,$,W,Z,K,Y,J,ee,et,er,en;let ei=String(null!==(A=null!==(w=a.sku)&&void 0!==w?w:a.id)&&void 0!==A?A:""),eo=Number(null!==(V=null!==(F=null!==(k=a.quantity)&&void 0!==k?k:a.in_stock)&&void 0!==F?F:a.stock)&&void 0!==V?V:0);return{id:ei,sku:ei,product_id:Number(null!==(z=null!==(B=a.product_id)&&void 0!==B?B:a.id)&&void 0!==z?z:0),name:String(null!==(G=a.name)&&void 0!==G?G:""),slug:String(null!==($=a.slug)&&void 0!==$?$:""),price:Number(null!==(W=a.price)&&void 0!==W?W:0),sale_price:Number(null!==(K=null!==(Z=a.sale_price)&&void 0!==Z?Z:a.price)&&void 0!==K?K:0),manufacturer:String(null!==(J=null!==(Y=a.manufacturer)&&void 0!==Y?Y:a.brand)&&void 0!==J?J:""),brand:String(null!==(et=null!==(ee=a.brand)&&void 0!==ee?ee:a.manufacturer)&&void 0!==et?et:""),category:function(a){let x=a.categories;if("string"==typeof a.category&&a.category)return a.category;if(!Array.isArray(x)||0===x.length)return"";let w=x[0];if("string"==typeof w)return w;if(w&&"object"==typeof w&&"name"in w){var A;return String(null!==(A=w.name)&&void 0!==A?A:"")}return""}(a),categories:null!==(er=a.categories)&&void 0!==er?er:void 0,image:a.image,gallery:a.gallery,quantity:eo,in_stock:eo,product_prices:null!==(en=a.product_prices)&&void 0!==en?en:[],unit:a.unit,type_id:a.type_id,type_ids:Array.isArray(a.type_ids)&&a.type_ids.length?a.type_ids:Array.isArray(a.types_id)&&a.types_id.length?a.types_id:Array.isArray(a.types)&&a.types.length?a.types.map(a=>null==a?void 0:a.id).filter(a=>null!=a):void 0,types_id:Array.isArray(a.types_id)?a.types_id.map(a=>Number(a)).filter(a=>Number.isFinite(a)):void 0,types:a.types,language:x,characteristics:a.characteristics,is_promotional_pack:a.is_promotional_pack,promotional_pack_quantity:a.promotional_pack_quantity,promotional_pack_unit_price:a.promotional_pack_unit_price,cashback_price:a.cashback_price,in_flash_sale:a.in_flash_sale,shop:a.shop,product_type:a.product_type}}(a,w),F=parseVariationIdFromSku(x.sku),V=a.variations;if(F&&Array.isArray(V)){let a=V.find(a=>String(null==a?void 0:a.id)===F.variationId);A=a?(0,e6.z)(k,a):(0,e6.z)(k)}else A=(0,e6.z)(k);return applyServerLineOverrides(A,x)}(k,a,x)}catch(a){return null}}async function mergeChannelPricesIntoProduct(a,x){try{var w,A;let k=await e3.Z.productPrice.get({search:"product.id:".concat(x),include:"price_channel"}),F=null==k?void 0:k.find(a=>1===a.price_channel_id);if(!F)return a;return{...a,price:null!==(w=F.price)&&void 0!==w?w:a.price,sale_price:null!==(A=F.sale_price)&&void 0!==A?A:a.sale_price,prices:null!=k?k:a.prices}}catch(x){return a}}async function hydrateFromRestCatalog(a,x){try{var w,A,k,F,V,B;let z;let G=e4.eN.formatSearchParams({"product.id":String(a.product_id),"product_status.name":"publish"}),$=await e4.eN.get(e5.P.PRODUCTS,{searchJoin:"and",search:G,limit:1,page:1,language:x,with:"type;types;product_status;variations;variation_options;categories;shop;manufacturer"}),W=null==$?void 0:null===(w=$.data)||void 0===w?void 0:w[0];if(!W)return null;W=await mergeChannelPricesIntoProduct(W,a.product_id);let Z={...W,product_prices:null!==(F=W.prices)&&void 0!==F?F:[],brand:"object"==typeof W.manufacturer&&W.manufacturer&&null!==(V=W.manufacturer.name)&&void 0!==V?V:"",category:null!==(B=null===(k=W.categories)||void 0===k?void 0:null===(A=k[0])||void 0===A?void 0:A.name)&&void 0!==B?B:"",quantity:a.quantity,language:x},K=parseVariationIdFromSku(a.sku);if(K&&Array.isArray(W.variations)){let a=W.variations.find(a=>String(null==a?void 0:a.id)===K.variationId);z=a?(0,e6.z)(Z,a):(0,e6.z)(Z)}else z=(0,e6.z)(Z);return applyServerLineOverrides(z,a)}catch(a){return null}}function stubCartProductFromServerLine(a,x){let w={id:a.sku,sku:a.sku,product_id:a.product_id,name:"",slug:"",sale_price:0,calculated_sale_price:0,product_prices:[],quantity:a.quantity,language:x,cart_line_updated_at:a.last_modified_at,category:"",brand:""};return applyServerLineOverrides(w,a)}async function hydrateServerCartLine(a,x){let w=await hydrateFromTypesense(a,x);if(w)return w;let A=await hydrateFromRestCatalog(a,x);return A||null}function parseTime(a){if(!a)return 0;let x=Date.parse(a);return Number.isFinite(x)?x:0}async function mergeLocalAndServerCart(a,x,w){let A=new Map(a.map(a=>[a.id,a])),k=new Map(x.map(a=>[a.sku,a])),F=[...new Set([...A.keys(),...k.keys()])],V=[];for(let a of F){let x=A.get(a),F=k.get(a);if(x&&!F){V.push(x);continue}if(!x&&F){let a=await hydrateServerCartLine(F,w);V.push(null!=a?a:stubCartProductFromServerLine(F,w));continue}if(x&&F){let a=parseTime(x.cart_line_updated_at),A=parseTime(F.last_modified_at);if(A>a){let a=await hydrateServerCartLine(F,w);V.push(null!=a?a:stubCartProductFromServerLine(F,w))}else V.push(x)}}return V}var e7=w(90997),e9=w(86492);function CartSyncBootstrap(){let[a]=(0,eQ.KO)(e9.O),{items:x,language:w,hydrateMergedCart:A,onCartBootstrapComplete:k}=(0,eZ.jD)(),F=(0,eG.useRef)(x);F.current=x;let V=(0,eG.useRef)(!1);return(0,eG.useEffect)(()=>{a||(V.current=!1)},[a]),(0,eG.useEffect)(()=>
51{if(!a||V.current)return;V.current=!0;let finish=()=>k();try{if((0,e7.U9)(e1.C9)&&((0,e7.$$)(e1.C9),F.current.length>0)){finish();return}}catch(a){}let x=!1;return(async()=>{try{let{items:a=[]}=await (0,e0.LA)();if(x)return;let k=await mergeLocalAndServerCart(F.current,a,w);if(x)return;let V=await enrichMergedCartWithFreshPricesAndStock(k);if(x)return;A(V)}catch(a){}finally{x||finish()}})(),()=>{x=!0}},[a,w,A,k]),null}var te=w(89010),social_login=()=>((0,eG.useLayoutEffect)(()=>{(0,te.Q)()},[]),null),tt=w(88767),tr=w(20938);function QueryProvider(a){let{pageProps:x,children:w}=a,[A]=(0,eG.useState)(()=>new tt.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}));return(0,F.jsxs)(tt.QueryClientProvider,{client:A,children:[(0,F.jsx)(tt.Hydrate,{state:x.dehydratedState,children:w}),(0,F.jsx)(tr.ReactQueryDevtools,{})]})}var tn=w(18272),ti=w(29620),to=w(68879),infra_maintenance_screen=()=>(0,F.jsxs)("main",{className:"flex min-h-screen flex-col items-center justify-center bg-[#e6e5eb] px-6 text-center",children:[(0,F.jsx)("div",{className:"mb-8",children:(0,F.jsx)(ti.E,{unoptimized:!0,src:to.nM,alt:"Qualidoc",width:220,height:62,className:"mx-auto"})}),(0,F.jsx)("h1",{className:"text-2xl font-bold text-heading md:text-3xl",children:"Voltamos em instantes"}),(0,F.jsx)("p",{className:"mt-4 max-w-md text-base text-body md:text-lg",children:"Estamos realizando uma manuten\xe7\xe3o tempor\xe1ria para melhorar sua experi\xeancia. Por favor, aguarde alguns minutos e tente novamente."}),(0,F.jsx)("p",{className:"mt-8 text-sm text-body",children:"A p\xe1gina ser\xe1 atualizada automaticamente quando o sistema estiver dispon\xedvel."})]});function NativeShopShellReady(a){let{disabled:x=!1}=a,w=(0,eH.useRouter)(),A=(0,eG.useRef)(!1);return(0,eG.useEffect)(()=>{if(x)return;let send=()=>{var a;if(A.current)return!0;let x=null===(a=window.ReactNativeWebView)||void 0===a?void 0:a.postMessage;if(!x||!w.isReady)return!1;A.current=!0;try{return x(JSON.stringify({type:"SHOP_SHELL_READY"})),!0}catch(a){return A.current=!1,!1}};if(send())return;let a=0,k=window.setInterval(()=>{a+=1,(send()||a>=30)&&window.clearInterval(k)},100);return()=>window.clearInterval(k)},[x,w.isReady]),null}var ta=w(87066);let ts=["api-health"];async function fetchApiHealth(){let a=function(a){let x=a.length;for(;x>0&&47===a.codePointAt(x-1);)x--;return x===a.length?a:a.slice(0,x)}("https://api.qualidoc.com.br");if(!a)throw Error("NEXT_PUBLIC_REST_API_ENDPOINT is not configured");let{data:x}=await ta.Z.get("".concat(a,"/health"),{timeout:1e4,validateStatus:()=>!0});return x}var tl=w(83454),api_health_gate=a=>{let{children:x}=a,w="false"!==tl.env.NEXT_PUBLIC_API_HEALTH_GATE_ENABLED&&!!"https://api.qualidoc.com.br".trim(),A=(0,eG.useRef)(0),k=(0,eG.useRef)(0),[V,B]=(0,eG.useState)(!1),[z,G]=(0,eG.useState)(!1),{data:$,isError:W,isFetched:Z,dataUpdatedAt:K}=function(a){let{enabled:x,pollMode:w}=a;return(0,tt.useQuery)(ts,fetchApiHealth,{enabled:x,staleTime:0,retry:1,retryDelay:2e3,refetchInterval:function(a){switch(a){case"unhealthy":return 15e3;case"checking":return 5e3;default:return 3e4}}(w),refetchOnWindowFocus:"healthy"!==w})}({enabled:w,pollMode:V?"unhealthy":z?"checking":"healthy"});return((0,eG.useEffect)(()=>{if(!w){B(!1),G(!1);return}if(!Z||!K||k.current===K)return;k.current=K;let a=!!$&&"ok"===$.status&&function(a){var x,w,A,k,F;let V=null!==(F=null===(w=a.details)||void 0===w?void 0:null===(x=w.database)||void 0===x?void 0:x.status)&&void 0!==F?F:null===(k=a.info)||void 0===k?void 0:null===(A=k.database)||void 0===A?void 0:A.status;return"up"===V}($)&&!W;if(a){A.current=0,B(!1),G(!1);return}A.current+=1,G(!0),A.current>=2&&B(!0)},[w,$,W,Z,K]),w&&V)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(NativeShopShellReady,{}),(0,F.jsx)(infra_maintenance_screen,{})]}):(0,F.jsx)(F.Fragment,{children:x})};let BellIcon=a=>(0,F.jsx)("svg",{fill:"currentColor",style:{verticalAlign:"middle"},height:"1em",width:"1em",viewBox:"0 0 512 512",display:"inline-block",...a,children:(0,F.jsx)("path",{d:"M381.7 225.9c0-97.6-52.5-130.8-101.6-138.2 0-.5.1-1 .1-1.6 0-12.3-10.9-22.1-24.2-22.1-13.3 0-23.8 9.8-23.8 22.1 0 .6 0 1.1.1 1.6-49.2 7.5-102 40.8-102 138.4 0 113.8-28.3 126-66.3 158h384c-37.8-32.1-66.3-44.4-66.3-158.2zM256.2 448c26.8 0 48.8-19.9 51.7-43H204.5c2.8 23.1 24.9 43 51.7 43z"})}),LongArrowIcon=a=>(0,F.jsx)("svg",{fill:"currentColor",height:"1em",width:"1em",viewBox:"0 0 512 512",...a,children:(0,F.jsx)("path",{d:"M322.2 349.7c-3.1-3.1-3-8 0-11.3l66.4-74.4H104c-4.4 0-8-3.6-8-8s3.6-8 8-8h284.6l-66.3-74.4c-2.9-3.4
51-3.2-8.1-.1-11.2 3.1-3.1 8.5-3.3 11.4-.1 0 0 79.2 87 80 88s2.4 2.8 2.4 5.7-1.6 4.9-2.4 5.7-80 88-80 88c-1.5 1.5-3.6 2.3-5.7 2.3s-4.1-.8-5.7-2.3z"})});var tu=w(60802),tc=w(51237),td=w(35143),tf=w(93967),tp=w.n(tf),th=w(25675),tm=w.n(th),tg=w(98388),maintenance=a=>{var x,w;let{data:A,renderCountDown:k,className:B,showLogo:z=!0}=a,{openModal:G}=(0,V.SO)(),[$,W]=(0,eQ.KO)(td.P),handleSidebar=a=>{W({display:!0,view:a,data:{aboutUsTitle:null==A?void 0:A.aboutUsTitle,aboutUsDescription:null==A?void 0:A.aboutUsDescription,contactUsTitle:null==A?void 0:A.contactUsTitle,contactDetails:null==A?void 0:A.contactDetails}})};return(0,F.jsxs)("div",{className:(0,tg.m6)(tp()("relative h-screen min-h-[43.75rem] w-full bg-[#e6e5eb] text-center",B)),children:[(0,F.jsxs)("div",{className:"relative z-20 mx-auto h-[calc(100%-70px)] max-w-7xl px-8",children:[z?(0,F.jsx)("div",{className:"flex items-center justify-center pt-8",children:(0,F.jsx)(tc.Z,{})}):"",(0,F.jsx)("div",{className:"relative mt-8 lg:mt-16",children:(0,F.jsxs)("div",{children:[(null==A?void 0:A.title)?(0,F.jsx)("h1",{className:"mb-4 text-xl font-bold tracking-tight text-black lg:mb-8 lg:text-6xl",children:null==A?void 0:A.title}):"",(null==A?void 0:A.description)?(0,F.jsx)("p",{className:"m-0 mx-auto max-w-xl text-base leading-8 text-black lg:text-lg",children:null==A?void 0:A.description}):"",k,(null==A?void 0:A.buttonTitleOne)||(null==A?void 0:A.buttonTitleTwo)?(0,F.jsxs)("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-5 lg:mt-16",children:[(null==A?void 0:A.buttonTitleOne)?(0,F.jsxs)(tu.Z,{onClick:()=>{G("NEWSLETTER_MODAL",{title:null==A?void 0:A.newsLetterTitle,description:null==A?void 0:A.newsLetterDescription})},className:"notify-button group h-auto rounded-full py-2.5 text-sm md:text-base",children:[null==A?void 0:A.buttonTitleOne,(0,F.jsx)("span",{className:"notify-button-icon flex h-9 w-9 rounded-full bg-accent-hover transition-colors duration-500 group-hover:bg-accent ltr:ml-3 rtl:mr-3",children:(0,F.jsx)(BellIcon,{className:"m-auto"})})]}):"",(null==A?void 0:A.buttonTitleTwo)?(0,F.jsxs)(tu.Z,{onClick:()=>handleSidebar("MAINTENANCE_MORE_INFO"),className:"info-button group h-auto rounded-full bg-white py-2.5 text-sm text-slate-700 hover:bg-slate-300 hover:text-slate-600 md:text-base",children:[null==A?void 0:A.buttonTitleTwo,(0,F.jsx)("span",{className:"info-button-icon flex h-9 w-9 rounded-full bg-slate-300 text-black duration-500 group-hover:bg-slate-400 group-hover:text-white ltr:ml-3 rtl:mr-3 rtl:rotate-180 rtl:transform",children:(0,F.jsx)(LongArrowIcon,{className:"m-auto text-3xl"})})]}):""]}):""]})})]}),(null==A?void 0:null===(x=A.image)||void 0===x?void 0:x.original)?(0,F.jsx)("div",{className:"absolute top-0 left-0 z-10 h-full w-full bg-no-repeat",children:(0,F.jsx)(tm(),{src:null==A?void 0:null===(w=A.image)||void 0===w?void 0:w.original,alt:"maintenance image",fill:!0,className:"object-contain object-bottom",unoptimized:!0})}):"",(null==A?void 0:A.isOverlayColor)?(0,F.jsx)("div",{style:{backgroundColor:null==A?void 0:A.overlayColor,opacity:null==A?void 0:A.overlayColorRange},className:"absolute top-0 left-0 z-10 h-full w-full"}):""]})},tv=w(45957),ty=w(10124),tb=w(99124);function toInteger(a){if(null===a||!0===a||!1===a)return NaN;var x=Number(a);return isNaN(x)?x:x<0?Math.ceil(x):Math.floor(x)}var t_=w(71002);function requiredArgs(a,x){if(x.length<a)throw TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+x.length+" present")}function toDate(a){requiredArgs(1,arguments);var x=Object.prototype.toString.call(a);return a instanceof Date||"object"===(0,t_.Z)(a)&&"[object Date]"===x?new Date(a.getTime()):"number"==typeof a||"[object Number]"===x?new Date(a):(("string"==typeof a||"[object String]"===x)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}var tx=w(31955),tw=w(91341),tS=w(98130),tE=w(28692);let CompletionMessage=()=>(0,F.jsx)("span",{children:"You are good to go!"}),Renderer=(a,x)=>{let{days:w,hours:A,minutes:k,seconds:V,completed:B}=a,z={timer:"text-center text-xl font-bold leading-none tracking-wide lg:min-w-[120px] lg:text-[5.3125rem]",title:"mt-4 block text-center text-base font-medium",separator:"relative top-2 text-6xl font-bold leading-none",separatorParent:"hidden self-start lg:block"};return B?(0,F.jsx)(CompletionMessage,{}):(0,F.jsxs)("ul",{className:"mx-auto flex max-w-xl flex-col items-center justify-between gap-8 px-5 md:flex-row lg:w-[51.25rem] lg:max-w-2xl lg:px-0",children:[(0,F.jsx)("li",{className:"flex",children:(0,F.jsxs)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.timer)),children:[w,(0,F.jsx)("span",{className:(0,tg.m6)(tp()(null==z?void 0:z.title)),children:null==x?void 0:x.translate("text-title-days")})]})}),(0,F.jsx)("li",{className:(0,tg.m6)(tp()(null==z?void 0:z.separatorParent)),children:(0,F.jsx)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.separator)),children:":"})}),(0,F.jsx)("li",{className:"flex",children:(0,F.jsxs)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.timer)),children:[A,(0,F.jsx)("span",{className:(0,tg.m6)(tp()(null==z?void 0:z.title)),children:null==x?void 0:x.translate("text-title-hours")})]})}),(0,F.jsx)("li",{className:(0,tg.m6)(tp()(null==z?void 0:z.separatorParent)),children:(0,F.jsx)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.separator)),children:":"})}),(0,F.jsx)("li",{className:"flex",children:(0,F.jsxs)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.timer)),children:[k,(0,F.jsx)("span",{className:(0,tg.m6)(tp()(null==z?void 0:z.title)),children:null==x?void 0:x.translate("text-title-minutes")})]})}),(0,F.jsx)("li",{className:(0,tg.m6)(tp()(null==z?void 0:z.separatorParent)),children:(0,F.jsx)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.separator)),children:":"})}),(0,F.jsx)("li",{className:"flex",children:(0,F.jsxs)("div",{className:(0,tg.m6)(tp()(null==z?void 0:z.timer)),children:[V,(0,F.jsx)("span",{className:(0,tg.m6)(tp()(null==z?void 0:z.title)),children:null==x?void 0:x.translate("text-title-seconds")})]})})]})};var countdown_timer_maintenance=a=>{let{date:x,title:w,onComplete:A}=a;return(0,F.jsxs)(F.Fragment,{children:[w?(0,F.jsx)("h4",{className:"text-xl font-semibold text-muted-black",children:w}):"",(0,F.jsx)(tS.ZP,{date:x,renderer:a=>Renderer(a,{translate:tE.P4}),onComplete:A})]})},tA=w(83454),layout=a=>{var x,w,A,k,B,z,G,$,W,Z,K,Y,J,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,ep,eh;let{children:em}=a,{settings:eg,isLoading:ev,error:ey}=(0,eF.rV)(),[eb,e_]=(0,eQ.KO)(tn.GH),[ex,ew]=(0,eQ.KO)(tn.W4),{permissions:eS}=(0,ty.WA)(),eE=(0,ty.Ft)(ty.M$,eS),{openModal:eA}=(0,V.SO)(),{view:eC}=(0,V.X9)(),{me:eT,isLoading:eO}=(0,tw.aF)(),eP=(0,eH.useRouter)(),{reload:eR}=eP,ek=(0,eG.useMemo)(()=>{var a,x,w,A;return(null==eg?void 0:null===(a=eg.maintenance)||void 0===a?void 0:a.start)&&(null==eg?void 0:null===(x=eg.maintenance)||void 0===x?void 0:x.until)&&(null==eg?void 0:eg.isUnderMaintenance)?function(a,x){requiredArgs(1,arguments);var w,A=function(a){requiredArgs(1,arguments);var x=toDate(a);return x.setSeconds(0,0),x}(toDate(a.start)),k=toDate(a.end),F=A.getTime(),V=k.getTime();if(F>=V)throw RangeError("Invalid interval");var B=[],z=A,G=Number(null!==(w=null==x?void 0:x.step)&&void 0!==w?w:1);if(G<1||isNaN(G))throw RangeError("`options.step` must be a number equal to or greater than 1");for(;z.getTime()<=V;)B.push(toDate(z)),z=function(a,x){return requiredArgs(2,arguments),function(a,x){requiredArgs(2,arguments);var w=toDate(a).getTime(),A=toInteger(x);return new Date(w+A)}(a,6e4*toInteger(x))}(z,G);return B}({start:new Date(null==eg?void 0:null===(w=eg.maintenance)||void 0===w?void 0:w.start),end:new Date(null==eg?void 0:null===(A=eg.maintenance)||void 0===A?void 0:A.until)}):[]},[null==eg?void 0:null===(x=eg.maintenance)||void 0===x?void 0:x.start,null==eg?void 0:null===(w=eg.maintenance)||void 0===w?void 0:w.until,null==eg?void 0:eg.isUnderMaintenance]),eN=(0,eG.useCallback)(()=>
51{if(ek.length>0){var a,x,w;let A=function(a,x){requiredArgs(2,arguments);var w=toDate(a),A=toDate(x);return w.getTime()<A.getTime()}(new Date,new Date(null==eg?void 0:null===(a=eg.maintenance)||void 0===a?void 0:a.start)),k=new Date(null==eg?void 0:null===(x=eg.maintenance)||void 0===x?void 0:x.start),F=new Date(null==eg?void 0:null===(w=eg.maintenance)||void 0===w?void 0:w.until);k.setMinutes(k.getMinutes());let V=new Date,B=V>=k&&V<F&&(null==eg?void 0:eg.isUnderMaintenance),z=A&&(null==eg?void 0:eg.isUnderMaintenance);ew(B),e_(z)}},[ek,null==eg?void 0:eg.isUnderMaintenance,null==eg?void 0:null===(A=eg.maintenance)||void 0===A?void 0:A.start,null==eg?void 0:null===(k=eg.maintenance)||void 0===k?void 0:k.until]);(0,eG.useEffect)(()=>{eN()},[eN]);let eI=(0,eG.useRef)(!1),eD=(0,eG.useCallback)(()=>{let a=tx.Z.get(tn.lb);if(a){eI.current=!0;return}if(eI.current)return;let x="true"===eP.query.open_register,w="/reset-password"===eP.pathname,A="APP_UPDATE_REQUIRED"===eC,k=eC&&"CONSENT_POPUP_MODAL"!==eC&&"APP_UPDATE_REQUIRED"!==eC;if(x||w||A||k)return;eI.current=!0;let F=setTimeout(()=>{let a=tx.Z.get(tn.lb);a||"APP_UPDATE_REQUIRED"===eC||"CONSENT_POPUP_MODAL"===eC||eC?eC&&"CONSENT_POPUP_MODAL"!==eC&&"APP_UPDATE_REQUIRED"!==eC&&(0,tb.dJ)():eA("CONSENT_POPUP_MODAL",{isLoading:ev})},1e3);return()=>clearTimeout(F)},[ev,eP.query.open_register,eP.pathname,eC]);return((0,eG.useEffect)(()=>{eD()},[eD]),ey)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(NativeShopShellReady,{}),(0,F.jsx)(tv.default,{message:ey.message})]}):ex&&!eE?(0,F.jsxs)("main",{className:"".concat(null==eg?void 0:eg.siteTitle,"-version-").concat(null==tA?void 0:null===(z=tA.env)||void 0===z?void 0:"13.0.0"),children:[(0,F.jsx)(NativeShopShellReady,{}),(0,F.jsx)(maintenance,{data:{aboutUsTitle:null!==(ea=null==eg?void 0:null===(G=eg.maintenance)||void 0===G?void 0:G.aboutUsTitle)&&void 0!==ea?ea:"",aboutUsDescription:null!==(es=null==eg?void 0:null===($=eg.maintenance)||void 0===$?void 0:$.aboutUsDescription)&&void 0!==es?es:"",contactUsTitle:null!==(el=null==eg?void 0:null===(W=eg.maintenance)||void 0===W?void 0:W.contactUsTitle)&&void 0!==el?el:"",contactDetails:null!==(eu=null==eg?void 0:eg.contactDetails)&&void 0!==eu?eu:[],title:null!==(ec=null==eg?void 0:null===(Z=eg.maintenance)||void 0===Z?void 0:Z.title)&&void 0!==ec?ec:"",description:null!==(ed=null==eg?void 0:null===(K=eg.maintenance)||void 0===K?void 0:K.description)&&void 0!==ed?ed:"",buttonTitleOne:null!==(ef=null==eg?void 0:null===(Y=eg.maintenance)||void 0===Y?void 0:Y.buttonTitleOne)&&void 0!==ef?ef:"",buttonTitleTwo:null!==(ep=null==eg?void 0:null===(J=eg.maintenance)||void 0===J?void 0:J.buttonTitleTwo)&&void 0!==ep?ep:"",image:null==eg?void 0:null===(ee=eg.maintenance)||void 0===ee?void 0:ee.image,isOverlayColor:null==eg?void 0:null===(et=eg.maintenance)||void 0===et?void 0:et.isOverlayColor,overlayColorRange:null!==(eh=null==eg?void 0:null===(er=eg.maintenance)||void 0===er?void 0:er.overlayColorRange)&&void 0!==eh?eh:""},renderCountDown:(0,F.jsx)("div",{className:"mt-7 lg:mt-14",children:(0,F.jsx)(countdown_timer_maintenance,{date:new Date((null==eg?void 0:null===(en=eg.maintenance)||void 0===en?void 0:en.start)?null==eg?void 0:null===(ei=eg.maintenance)||void 0===ei?void 0:ei.until:null==eg?void 0:null===(eo=eg.maintenance)||void 0===eo?void 0:eo.start),onComplete:()=>eR()})})})]}):(0,F.jsxs)("main",{className:"".concat(null==eg?void 0:eg.siteTitle,"-version-").concat(null==tA?void 0:null===(B=tA.env)||void 0===B?void 0:"13.0.0"),children:[(0,F.jsx)(NativeShopShellReady,{disabled:ev}),em]})},tC=w(12103);w(55678);let tT=(0,eG.createContext)(void 0),NotificationProvider=a=>{let{children:x}=a,{notifyLogs:w,isLoading:A,isLoadingMore:k,hasMore:V,error:B,loadMore:z}=function(a){var x,w;let{isAuthorized:A}=(0,tw.aF)(),{settings:k}=(0,eF.rV)(),F={...a},{data:V,isLoading:B,error:z,fetchNextPage:G,hasNextPage:$,isFetching:W,isFetchingNextPage:Z}=(0,tt.useInfiniteQuery)([e5.P.NOTIFY_LOGS,F],a=>{let{queryKey:x,pageParam:w}=a;return e3.Z.notifyLogs.all(Object.assign({},x[1],w))},{enabled:A&&!!(null==k?void 0:k.enableEmailForDigitalProduct),retry:!1,getNextPageParam:a=>{let{current_page:x,last_page:w}=a;return w>x&&{page:x+1}},refetchOnWindowFocus:!1});return{notifyLogs:null!==(w=null==V?void 0:null===(x=V.pages)||void 0===x?void 0:x.flatMap(a=>a.data))&&void 0!==w?w:[],paginatorInfo:Array.isArray(null==V?void 0:V.pages)?(0,tC.Q)(null==V?void 0:V.pages[V.pages.length-1]):null,isLoading:B,error:z,isFetching:W,isLoadingMore:Z,loadM
51ore:function(){G()},hasMore:!!$}}({limit:7,sortedBy:"DESC",orderBy:"created_at"});return(0,F.jsx)(tT.Provider,{value:{notifyLogs:w,isLoading:A,isLoadingMore:k,hasMore:V,error:B,loadMore:z},children:x})};var tO=w(16088),tP=w.n(tO)(),tR=w(77834);function NativeDeeplinkHandler(){let{isNativeApp:a,isReady:x}=(0,tR.j)(),w=(0,eH.useRouter)();return(0,eG.useEffect)(()=>{if(!x||!a)return;let handleDeeplink=a=>{try{let{deepLink:x,payload:A}=a;if(!x){console.warn("[Deeplink] No deepLink provided in deeplink data");return}let k=x;if(x.startsWith("http://")||x.startsWith("https://"))try{let a=new URL(x);k=a.pathname+a.search+a.hash}catch(a){console.warn("[Deeplink] Failed to parse URL, using as-is:",a)}else k=x.startsWith("/")?x:"/"+x;console.log("[Deeplink] Handling deeplink:",{original:x,targetPath:k,payload:A}),w.push(k)}catch(a){console.error("[Deeplink] Error handling deeplink:",a)}};window.QualiAppNative&&(window.QualiAppNative.onPushDeeplink=handleDeeplink);let handlePushDeeplinkEvent=a=>{handleDeeplink(a.detail)},handlePostMessage=a=>{try{if("string"==typeof a.data){let x=JSON.parse(a.data);"pushDeeplink"===x.type&&x.deepLink&&handleDeeplink(x)}}catch(a){}};return window.addEventListener("pushDeeplink",handlePushDeeplinkEvent),window.addEventListener("message",handlePostMessage),()=>{window.removeEventListener("pushDeeplink",handlePushDeeplinkEvent),window.removeEventListener("message",handlePostMessage),window.QualiAppNative&&(window.QualiAppNative.onPushDeeplink=void 0)}},[x,a,w]),null}var tk=w(13027);function NetcoreHandler(){let{isNativeApp:a,isReady:x}=(0,tR.j)();return(0,eG.useEffect)(()=>{if((0,tk.BP)(),!x)return;let handlePostMessage=a=>{try{if("string"!=typeof a.data)return;let x=JSON.parse(a.data);"UPDATE_USER_PROFILE"===x.type&&x.userProfile&&(0,tk.Lj)(x.userProfile),"SET_USER_IDENTITY"===x.type&&x.userIdentity&&(0,tk.Xb)(x.userIdentity),"TRACK_EVENT"===x.type&&x.eventName&&(0,tk.L9)(x.eventName,x.eventPayload)}catch(a){}};return a&&window.addEventListener("message",handlePostMessage),()=>{a&&window.removeEventListener("message",handlePostMessage)}},[x,a]),null}var old_webview_detector=()=>{let{openModal:a}=(0,V.SO)();return(0,eG.useEffect)(()=>{let x=new URLSearchParams(window.location.search),w="true"===x.get("beta")&&"false"===x.get("tabbar");w&&a("APP_UPDATE_REQUIRED")},[a]),null},tN=w(86947);w(24507),w(25026),w(64933),w(45242),w(42419),w(88129),w(59981);let tI=[],tD=[],tM=/bot|crawl|spider|slurp|bingpreview|mediapartners|adsbot|googlebot|duckduckbot|facebot|ia_archiver|google-read-aloud|pageburst|semrush|ahrefs|petalbot|bytespider/i;function rumBeforeSend(a,x){var w;if("error"!==a.type)return!0;let{message:A,stack:k}=a.error,F="undefined"!=typeof navigator?navigator.userAgent:"";return!(tM.test(F)&&function(a,x){let w=a.trim().toLowerCase();if("rejected"!==w&&!w.includes("rejected"))return!1;let A=(null!=x?x:"").toLowerCase();return A.includes("serviceworker")&&A.includes("register")}(A,k))&&(function(a){let x=a.toLowerCase();return x.includes("script error")}(A)&&(a.context={...null!==(w=a.context)&&void 0!==w?w:{},rum_script_error_debug:{pathname:window.location.pathname,referrer_host:function(){if("undefined"==typeof document||!document.referrer)return"";try{return new URL(document.referrer).hostname}catch(a){return""}}()}}),!0)}let datadogInit=()=>{if(tN.v.getInitConfiguration())return;let a="209c7b7b-d0b5-4b2c-a6db-a79a3d33461e",x="pubbb1a59175fd5ab8b0b5704cf6351f428";if(!a||!x){console.warn("Datadog RUM not initialized: Missing applicationId or clientToken");return}tN.v.init({applicationId:a,clientToken:x,site:"datadoghq.com",service:"qualiapp-shop",env:"production",sessionSampleRate:Number("5")||0,sessionReplaySampleRate:Number("1")||0,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",beforeSend:rumBeforeSend,plugins:[function(a={}){return{name:"react",onInit({publicApi:x,initConfiguration:w}){for(let w of(A=x,k=a,tI))w(k,A);a.router&&(w.trackViewsManually=!0)},onRumStart({addEvent:a}){for(let x of tD)a&&x(a)},getConfigurationTelemetry:()=>({router:!!a.router})}}()]}),tN.v.startSessionReplayRecording()};var tL=w(10254),tj=w(16118),tF=w(14721);let tV=z()(()=>Promise.resolve().then(w.bind(w,55678)).then(a=>a.ToastContainer),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function OldAppDetectorTest(){return null}var _app=function(a){var x,w;let{Component:A,pageProps:k}=a,B=null!==(x=A.getLayout)&&void 0!==x?x:a=>a,z=null!==(w=A.authenticationRequired)&&void 0!==w&&w,G=function(){let{locale:a}=(0,eH.useRouter)();return null!=a?a:tn.Kz}(),$=(0,tn.Mg)(G),W=(0,eH.useRouter)();return(0,eG.useEffect)(()=>{datadogInit(),tj.J&&(0,tL.grafanaFaroInit)(),function(){var a;
51if(!("serviceWorker"in navigator)||!function(a){let x=normalizeHostname(null!=a?a:window.location.hostname);return!(!x||eV.has(x))&&x===getCanonicalSiteHostname().toLowerCase()}()||(a=navigator.userAgent,tM.test(a)))return;let x=window.workbox;x&&"function"==typeof x.register&&x.register().catch(()=>{})}(),(0,tF.T)(W.asPath);let handleRouteChange=a=>{(0,tb.wP)(a),(0,tF.T)(a)};return W.events.on("routeChangeComplete",handleRouteChange),()=>W.events.off("routeChangeComplete",handleRouteChange)},[W]),(0,F.jsx)("div",{dir:$,className:tP.variable,children:(0,F.jsx)(QueryProvider,{pageProps:k,children:(0,F.jsx)(api_health_gate,{children:(0,F.jsx)(SearchProvider,{children:(0,F.jsx)(V.DY,{children:(0,F.jsx)(eZ.Zl,{children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(CartSyncBootstrap,{}),(0,F.jsx)(cart_background_price_updater,{}),(0,F.jsx)(cart_pbm_combo_verifier,{}),(0,F.jsx)(default_seo,{}),(0,F.jsx)(layout,{children:(0,F.jsx)(NotificationProvider,{children:z?(0,F.jsx)(eW.Z,{children:B((0,F.jsx)(A,{...k}))}):B((0,F.jsx)(A,{...k}))})}),(0,F.jsx)(managed_modal,{}),(0,F.jsx)(eI.default,{}),(0,F.jsx)(tV,{autoClose:5e3,theme:"colored"}),(0,F.jsx)(social_login,{}),(0,F.jsx)(NativeDeeplinkHandler,{}),(0,F.jsx)(NetcoreHandler,{}),(0,F.jsx)(old_webview_detector,{})]})})})})})})})}},65706:function(a,x,w){"use strict";w.r(x),w.d(x,{__N_SSG:function(){return Z}});var A=w(85893),k=w(91341),F=w(60802),V=w(56980),B=w(51237),z=w(42990),G=w(11163),$=w(8152),W=w(97514);let VerifyEmail=()=>{let{getEmailVerified:a}=(0,z.d)(),x=(0,G.useRouter)(),{emailVerified:w}=a(),{mutate:Z,isLoading:K}=(0,k.aU)();(0,k.aF)(),w&&x.push("/profile");let handleLogout=()=>{Z(),x.push(W.Z.home)},{mutate:Y,isLoading:J}=(0,k.y6)();return(0,A.jsx)("section",{className:"relative flex min-h-screen w-full items-center justify-center bg-[#F4F6F7] py-5 px-4 md:py-8",children:(0,A.jsx)("div",{className:"max-w-[36rem]",children:(0,A.jsxs)(V.Z,{className:"text-center !shadow-900 md:px-[4.375rem] md:py-[2.875rem]",children:[(0,A.jsx)(B.Z,{}),(0,A.jsx)("h2",{className:"mb-5 mt-2 text-2xl font-semibold",children:"Seu e-mail ainda n\xe3o foi verificado."}),(0,A.jsx)("p",{className:"mb-16 text-lg text-[#969FAF]",children:"Obrigado por se inscrever! Antes de come\xe7ar, voc\xea poderia verificar seu endere\xe7o de e-mail clicando no link que acabamos de enviar para voc\xea? Se voc\xea n\xe3o recebeu o e-mail, ficaremos felizes em enviar outro."}),(0,A.jsxs)("div",{className:"space-y-3",children:[(0,A.jsx)(F.Z,{onClick:()=>Y(),disabled:J||!!K,loading:J,className:"!h-13 w-full hover:bg-accent-hover",children:"Reenviar E-mail de Verifica\xe7\xe3o"}),(0,A.jsx)(F.Z,{type:"button",variant:"outline",className:"!h-13 w-full",onClick:()=>handleLogout(),disabled:!!J||K,loading:K,children:"Sair"})]}),(0,A.jsx)("div",{className:"mt-4",children:(0,A.jsx)($.Z,{href:W.Z.home,className:"inline-flex items-center text-bolder underline hover:text-body-dark hover:no-underline focus:outline-none sm:text-base",children:"Leve-me para casa"})})]})})})};VerifyEmail.authenticationRequired=!0;var Z=!0;x.default=VerifyEmail},86492:function(a,x,w){"use strict";w.d(x,{I:function(){return checkIsLoggedIn},O:function(){return B}});var A=w(2752),k=w(18272),F=w(15103),V=w(31955);function checkIsLoggedIn(){return(0,A.mx)(V.Z.get(k.nd))}let B=(0,F.cn)(checkIsLoggedIn())},58960:function(a,x,w){"use strict";w.d(x,{eh:function(){return z},wM:function(){return G}});var A=w(18272),k=w(15103),F=w(95495);let V={recipe_type:null,selected_recipe:{},recipe_date:"",recipe_digital_token:"",recipe_fisical_file:null,recipe_fisical_file_name:"",recipe_owner_type:"",recipe_valid:!1,accepted_recipe_types:[],shipping_zip:"",shipping_address:null},B=(0,F.O4)(A.UW,V),z=(0,k.cn)(a=>a(B),(a,x,w)=>{x(B,{...a(B),...w})}),G=(0,k.cn)(null,(a,x,w)=>x(B,V))},70451:function(a,x,w){"use strict";w.d(x,{Cx:function(){return et},Fc:function(){return eu},GO:function(){return ei},Gh:function(){return W},HA:function(){return Z},Jb:function(){return en},Km:function(){return G},ZM:function(){return es},aN:function(){return Y},du:function(){return $},hq:function(){return B},j:function(){return K},j4:function(){return er},jy:function(){return ec},lu:function(){return J},rI:function(){return ee},xc:function(){return ea},y2:function(){return el},y9:function(){return z},yw:function(){return eo}});var A=w(18272),k=w(15103),F=w(95495);let V={billing_address:null,shipping_address:null,delivery_time:null,payment_sub_gateway:"",customer_contact:"",customer_name:"",verified_response:null,coupon:null,note:"",payable_amount:0,use_wallet:!1,wallet_usage:0,order_requests:{recipes:[]}},B=(0,F.O4)(A.iK,V),z=(0,k.cn)(null,(a,x,w)=>x(B,V)),G=(0,k.cn)(a=>a(B).billing_address,(a,x,w)=>{let A=a(B);return x(B,{...A,billing_address:w})}),$=(0,k.cn)(a=>a(B).shipping_address,(a,x,w)=>{let A=a(B);return x(B,{...A,shipping_address:w})}),W=(0,k.cn)(),Z=(0,k.cn)(a=>a(B).payment_gateway,(a,x,w)=>{let A=a(B);return x(B,{...A,payment_gateway:w})}),K=(0,k.cn)(a=>a(B).payment_credit_card,(a,x,w)=>{let A=a(B);x(B,{...A,payment_credit_card:w})}),Y=(0,k.cn)(1);(0,k.cn)(a=>a(B).payment_sub_gateway,(a,x,w)=>{let A=a(B);return x(B,{...A,payment_sub_gateway:w})}),(0,k.cn)(a=>a(B).token,(a,x,w)=>{let A=a(B);return x(B,{...A,token:w})});let J=(0,k.cn)(a=>a(B).customer_contact,(a,x,w)=>{let A=a(B);return x(B,{...A,customer_contact:w})}),ee=(0,k.cn)(""),et=(0,k.cn)(""),er=(0,k.cn)("");(0,k.cn)(a=>a(B).customer_name,(a,x,w)=>{let A=a(B);return x(B,{...A,customer_name:w})}),(0,k.cn)(a=>a(B).note,(a,x,w)=>{let A=a(B);return x(B,{...A,note:w})});let en=(0,k.cn)(a=>a(B).verified_response,(a,x,w)=>{let A=a(B);return x(B,{...A,verified_response:w})}),ei=(0,k.cn)(a=>a(B).coupon,(a,x,w)=>{let A=a(B);return x(B,{...A,coupon:w})}),eo=(0,k.cn)(a=>{var x;return null===(x=a(B).coupon)||void 0===x?void 0:x.amount}),ea=(0,k.cn)(a=>a(B).use_wallet,(a,x,w)=>{let A=a(B);return x(B,{...A,use_wallet:w})}),es=(0,k.cn)(a=>a(B).wallet_usage,(a,x,w)=>{let A=a(B);return x(B,{...A,wallet_usage:w})}),el=(0,k.cn)(a=>a(B).payable_amount,(a,x,w)=>{let A=a(B);return x(B,{...A,payable_amount:w})}),eu=(0,k.cn)(a=>{var x;return(null===(x=a(B).order_requests)||void 0===x?void 0:x.recipes)||[]},(a,x,w)=>{let A=a(B),k={...A.order_requests,recipes:w};return x(B,{...A,order_requests:k})}),ec=(0,k.cn)(!1)},35143:function(a,x,w){"use strict";w.d(x,{P:function(){return k}});var A=w(15103);let k=(0,A.cn)({display:!1,view:"",data:null})},50633:function(a,x,w){"use strict";w.d(x,{Z:function(){return k}});var A=w(15103);let k=(0,A.cn)({status:"idle",savingsTotal:0,discountedItemCount:0})},18677:function(a,x,w){"use strict";w.d(x,{Zl:function(){return CartProvider},jD:function(){return useCart}});var A=w(85893),k=w(67294),F=w(73935),V=w(48583),B=w(18272),z=w(27539),G=w(54109),$=w(30169),W=w(13744),Z=w(86492),K=w(70451),Y=w(43516),J=w(65301),ee=w(86566);let lineNow=()=>new Date().toISOString();function bumpLineTimestamps(a,x){if(0===x.length)return a;let w=new Set(x);return a.map(a=>w.has(a.id)?{...a,cart_line_updated_at:lineNow()}:a)}let et={items:[],settings:{},isEmpty:!0,totalItems:0,totalUniqueItems:0,total:0,meta:null,language:"pt-BR"};function cartReducer(a,x){var w,A,k;switch(x.type){case"ADD_ITEMS_WITH_QUANTITY":{let w=bumpLineTimestamps([...a.items,...x.items],x.items.map(a=>a.id));return generateFinalState(a,w)}case"ADD_ITEM_WITH_QUANTITY":{let w=(0,J.Kv)(a.items,x.item,x.quantity);return generateFinalState(a,bumpLineTimestamps(w,[x.item.id]))}case"REMOVE_ITEM_OR_QUANTITY":{let A=(0,J.um)(a.items,x.id,null!==(w=x.quantity)&&void 0!==w?w:1);return generateFinalState(a,bumpLineTimestamps(A,[x.id]))}case"ADD_ITEM":{let w=(0,J.jX)(a.items,x.item);return generateFinalState(a,bumpLineTimestamps(w,[x.item.id]))}case"REMOVE_ITEM":{let w=(0,J.cl)(a.items,x.id);return generateFinalState(a,w)}case"UPDATE_ITEM":{let w=a.items.find(a=>a.id===x.id),k=null==w?void 0:null===(A=w.pbm_info)||void 0===A?void 0:A.flag;if(k&&(void 0!==x.item.price||void 0!==x.item.sale_price||void 0!==x.item.calculated_sale_price)){let{price:w,sale_price:A,calculated_sale_price:k,...F}=x.item,V=(0,J.$G)(a.items,x.id,F);return generateFinalState(a,bumpLineTimestamps(V,[x.id]))}let F=(0,J.$G)(a.items,x.id,x.item);return generateFinalState(a,bumpLineTimestamps(F,[x.id]))}case"UPDATE_ITEM_PRICES":{let w=a.items.map(a=>{var w;let A=null===(w=a.pbm_info)||void 0===w?void 0:w.flag;if(A)return a;let k=x.items.find(x=>x.id===a.id);if(k){let x={...a,price:k.price,sale_price:k.sale_price,calculated_sale_price:k.sale_price};return void 0!==k.promotional_pack_unit_price&&(x.promotional_pack_unit_price=k.promotional_pack_unit_price),k.product_prices&&Array.isArray(k.product_prices)?x.product_prices=k.product_prices:x.product_prices&&Array.isArray(x.product_prices)&&(x.product_prices=x.product_prices.map(a=>14===a.price_channel_id&&void 0!==k.promotional_pack_unit_price?{...a,price:k.promotional_pack_unit_price,sale_price:k.promotional_pack_unit_price}:{...a,price:k.price,sale_price:k.sale_price})),x}return a});return generateFinalState(a,w)}case"HYDRATE_MERGED_CART":return generateFinalState(a,x.items);case"UPDATE_CART_LANGUAGE":return{...et,language:x.language};case"REMOVE_PBM_FROM_ITEM":{let w=a.items.map(a=>{var w;if(a.id===x.id&&(null===(w=a.pbm_info)||void 0===w?void 0:w.flag)){let x=a.price||a.sale_price;return{...a,sale_price:x,calculated_sale_price:x,pbm_info:void 0}}return a});return generateFinalState(a,bumpLineTimestamps(w,[x.id]))}case"APPLY_PBM_VERIFIED_PRICES":{let w=(0,ee.ni)(x.prices),A=[],k=a.items.map(a=>{if(!(0,ee.U_)(a))return a;let x=w.get(a.sku);if(null==x)return a;let k=(0,ee.DH)(a);return A.push(a.id),{...a,sale_price:x,calculated_sale_price:x,pbm_info:{...a.pbm_info,base_sale_price:k,combo_applied:x<k-.001,combo_verified_price:x}}});return generateFinalState(a,bumpLineTimestamps(k,A))}case"REVERT_PBM_COMBO_PRICES":{let x=[],w=a.items.map(a=>{var w;if(!(null===(w=a.pbm_info)||void 0===w?void 0:w.combo_applied))return a;let A=(0,ee.DH)(a),{combo_applied:k,combo_verified_price:F,base_sale_price:V,...B}=a.pbm_info;return x.push(a.id),{...a,sale_price:A,calculated_sale_price:A,pbm_info:B}});if(0===x.length)return a;return generateFinalState(a,bumpLineTimestamps(w,x))}case"REVERT_INTERPLAYERS_PBM_TO_CATALOG":{let x=[],w=a.items.map(a=>{if(!(0,ee.U_)(a))return a;let w=(0,ee.mM)(a);return x.push(a.id),{...a,sale_price:w,calculated_sale_price:w,pbm_info:void 0}});if(0===x.length)return a;return generateFinalState(a,bumpLineTimestamps(w,x))}case"RESET_CART":return et;
51case"RESET_CART_PRESERVE_LANGUAGE":return{...et,language:x.language,settings:null!==(k=a.settings)&&void 0!==k?k:{}};default:return a}}let generateFinalState=(a,x)=>{let{settings:w={},...A}=a,k=(0,J.tm)(x);return{...A,settings:w,items:(0,J.pQ)(x,w),totalItems:(0,J.yL)(x),totalUniqueItems:k,total:(0,J.tf)(x,w),isEmpty:0===k}};var er=w(50081);let en=k.createContext(void 0);en.displayName="CartContext";let useCart=()=>{let a=k.useContext(en);if(void 0===a)throw Error("useCart must be used within a CartProvider");return k.useMemo(()=>a,[a])},CartProvider=a=>{let[x,w]=(0,z.Z)(B.qW,JSON.stringify(et)),{settings:ee}=(0,Y.rV)(),[ei]=(0,V.KO)(Z.O),[eo,ea]=k.useState(()=>!(0,Z.I)()),es=k.useRef(null);k.useEffect(()=>{let a=es.current;if(es.current=ei,!ei){ea(!0);return}!1===a&&!0===ei&&ea(!1)},[ei]);let el=(0,k.useCallback)(()=>{ea(!0)},[]),eu=k.useRef(eo);eu.current=eo;let[ec,ed]=k.useReducer(cartReducer,{settings:ee,savedCart:x},a=>{let{settings:x,savedCart:w}=a;if(!w)return{settings:x,...et};try{var A;let a=JSON.parse(w);return{settings:x,...a,items:function(a){let x=new Date().toISOString();return(null!=a?a:[]).map(a=>{var w;return{...a,cart_line_updated_at:null!==(w=a.cart_line_updated_at)&&void 0!==w?w:x}})}(null!==(A=a.items)&&void 0!==A?A:[])}}catch(a){return{settings:x,...et}}}),[,ef]=(0,V.KO)(K.Jb),ep=k.useRef(ec);ep.current=ec;let eh=k.useRef(ec.language);eh.current=ec.language;let em=k.useRef(null),eg=k.useRef(0);k.useEffect(()=>{ef(null)},[ef,ec]),k.useEffect(()=>{w(JSON.stringify(ec))},[ec,w]),k.useEffect(()=>{let onClear=()=>{(0,er.SM)(),ed({type:"RESET_CART_PRESERVE_LANGUAGE",language:eh.current})};return window.addEventListener("qualidoc-cart-clear",onClear),()=>window.removeEventListener("qualidoc-cart-clear",onClear)},[]),k.useEffect(()=>{em.current||(em.current=function(a){var x,w;let A=null!==(x=a.debounceMs)&&void 0!==x?x:G.T0,k=null!==(w=a.canFlush)&&void 0!==w?w:()=>!0,F=null,V=0,B=0,z=!1;async function runSync(){if(a.isLoggedIn()&&!z&&k()&&!(Date.now()<B)){z=!0;try{var x;let w=a.getPayload();if(!(null===(x=w.items)||void 0===x?void 0:x.length))return;await (0,$.Bw)(w),V=0,B=0}catch(x){V+=1;let a=Math.min(G.Wl,G.x$*2**Math.min(V,8));B=Date.now()+function(a){let x=.5;if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){let a=new Uint32Array(1);crypto.getRandomValues(a),x=a[0]/4294967295}return a+Math.floor(500*x)}(a)}finally{z=!1}}}return{scheduleFlush:function(){a.isLoggedIn()&&k()&&(F&&clearTimeout(F),F=setTimeout(()=>{F=null,runSync()},A))},flushNow:function(){k()&&(F&&(clearTimeout(F),F=null),runSync())},flushKeepalive:function(){if(a.isLoggedIn()&&k())try{var x;let w=a.getPayload();if(!(null===(x=w.items)||void 0===x?void 0:x.length))return;(0,$.iw)(w)}catch(a){}},cancelPendingFlush:function(){F&&(clearTimeout(F),F=null)}}}({getPayload:()=>(0,W.O)(ep.current.items),isLoggedIn:()=>(0,Z.I)(),canFlush:()=>!(0,Z.I)()||eu.current}));let a=em.current,x=null,onVis=()=>{"hidden"===document.visibilityState?(x&&clearTimeout(x),x=setTimeout(()=>{x=null,a.flushNow()},150)):x&&(clearTimeout(x),x=null)},onUnload=()=>{x&&(clearTimeout(x),x=null),a.flushKeepalive()};return document.addEventListener("visibilitychange",onVis),window.addEventListener("pagehide",onUnload),window.addEventListener("beforeunload",onUnload),()=>{x&&clearTimeout(x),document.removeEventListener("visibilitychange",onVis),window.removeEventListener("pagehide",onUnload),window.removeEventListener("beforeunload",onUnload)}},[]),k.useEffect(()=>{if(!em.current)return;if(!ei||!eo){ei||(eg.current=0);return}let a=em.current,x=eg.current,w=ec.items.length;if(eg.current=w,0===w){a.cancelPendingFlush(),x>0&&(0,$.i2)().catch(()=>{});return}a.scheduleFlush()},[ei,eo,ec.items]),k.useEffect(()=>{ec.items.length>0&&(0,er.EH)()},[ec.items.length]);let addItemsToCart=a=>ed({type:"ADD_ITEMS_WITH_QUANTITY",items:a}),addItemToCart=(a,x)=>ed({type:"ADD_ITEM_WITH_QUANTITY",item:a,quantity:x}),removeItemFromCart=function(a){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return ed({type:"REMOVE_ITEM_OR_QUANTITY",id:a,quantity:x})},clearItemFromCart=a=>ed({type:"REMOVE_ITEM",id:a}),ev=(0,k.useCallback)(a=>!!(0,J.rV)(ec.items,a),[ec.items]),ey=(0,k.useCallback)(a=>{var x;return(null===(x=(0,J.rV)(ec.items,a))||void 0===x?void 0:x.quantity)||0},[ec.items]),eb=(0,k.useCallback)(a=>(0,J.rV)(ec.items,a),[ec.items]),e_=(0,k.useCallback)(a=>(0,J.pz)(ec.items,a),[ec.items]),updateCartLanguage=a=>ed({type:"UPDATE_CART_LANGUAGE",language:a}),ex=(0,k.useCallback)(()=>{var a;null===(a=em.current)||void 0===a||a.cancelPendingFlush(),(0,er.SM)(),(0,F.flushSync)(()=>{ed({type:"RESET_CART"})})},[]),ew=(0,k.useCallback)(a=>{(0,F.flushSync)(()=>{ed({type:"HYDRATE_MERGED_CART",items:a})})},[]),updateItemPrices=a=>ed({type:"UPDATE_ITEM_PRICES",items:a}),updateItem=(a,x)=>ed({type:"UPDATE_ITEM",id:a,item:x}),removePBMFromItem=a=>ed({type:"REMOVE_PBM_FROM_ITEM",id:a}),eS=(0,k.useCallback)(a=>
51ed({type:"APPLY_PBM_VERIFIED_PRICES",prices:a}),[]),eE=(0,k.useCallback)(()=>ed({type:"REVERT_PBM_COMBO_PRICES"}),[]),eA=(0,k.useCallback)(()=>ed({type:"REVERT_INTERPLAYERS_PBM_TO_CATALOG"}),[]),eC=k.useMemo(()=>({...ec,addItemsToCart,addItemToCart,removeItemFromCart,clearItemFromCart,getItemFromCart:eb,isInCart:ev,isInStock:e_,resetCart:ex,hydrateMergedCart:ew,onCartBootstrapComplete:el,updateCartLanguage,countItemsInCartById:ey,updateItemPrices,updateItem,removePBMFromItem,applyPbmVerifiedPrices:eS,revertPbmComboPrices:eE,revertInterplayersPbmToCatalog:eA}),[eS,eb,ew,ev,e_,el,ex,eA,eE,ec]);return(0,A.jsx)(en.Provider,{value:eC,...a})}},65301:function(a,x,w){"use strict";w.d(x,{jX:function(){return addItem},Kv:function(){return addItemWithQuantity},ue:function(){return applyCouponToOrder},LT:function(){return applyPromotionalPackToOrder},pQ:function(){return calculateItemTotals},eA:function(){return calculatePaidTotal},tf:function(){return calculateTotal},yL:function(){return calculateTotalItems},tm:function(){return calculateUniqueItems},uf:function(){return formatNumber},Do:function(){return formatOutput},yH:function(){return getCouponEligibleMerchandiseSubtotal},rV:function(){return getItem},Yr:function(){return getPromotionalPackDetails},y5:function(){return getPromotionalPackOrDefaultPrice},pz:function(){return inStock},cl:function(){return removeItem},um:function(){return removeItemOrQuantity},$G:function(){return updateItem}});var A,k,F=w(67518),V=w(58431),B=w(75134),z=w(50361),G=w.n(z),$="0123456789abcdef",W="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Z="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",K={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},Y=!0,J="[DecimalError] ",ee=J+"Invalid argument: ",et=J+"Precision limit exceeded",er=J+"crypto unavailable",en="[object Decimal]",ei=Math.floor,eo=Math.pow,ea=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,es=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,el=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,eu=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ec=W.length-1,ed=Z.length-1,ef={toStringTag:en};function digitsToString(a){var x,w,A,k=a.length-1,F="",V=a[0];if(k>0){for(F+=V,x=1;x<k;
51x++)(w=7-(A=a[x]+"").length)&&(F+=getZeroString(w)),F+=A;(w=7-(A=(V=a[x])+"").length)&&(F+=getZeroString(w))}else if(0===V)return"0";for(;V%10==0;)V/=10;return F+V}function checkInt32(a,x,w){if(a!==~~a||a<x||a>w)throw Error(ee+a)}function checkRoundingDigits(a,x,w,A){var k,F,V,B;for(F=a[0];F>=10;F/=10)--x;return--x<0?(x+=7,k=0):(k=Math.ceil((x+1)/7),x%=7),F=eo(10,7-x),B=a[k]%F|0,null==A?x<3?(0==x?B=B/100|0:1==x&&(B=B/10|0),V=w<4&&99999==B||w>3&&49999==B||5e4==B||0==B):V=(w<4&&B+1==F||w>3&&B+1==F/2)&&(a[k+1]/F/100|0)==eo(10,x-2)-1||(B==F/2||0==B)&&(a[k+1]/F/100|0)==0:x<4?(0==x?B=B/1e3|0:1==x?B=B/100|0:2==x&&(B=B/10|0),V=(A||w<4)&&9999==B||!A&&w>3&&4999==B):V=((A||w<4)&&B+1==F||!A&&w>3&&B+1==F/2)&&(a[k+1]/F/1e3|0)==eo(10,x-3)-1,V}function convertBase(a,x,w){for(var A,k,F=[0],V=0,B=a.length;V<B;){for(k=F.length;k--;)F[k]*=x;for(F[0]+=$.indexOf(a.charAt(V++)),A=0;A<F.length;A++)F[A]>w-1&&(void 0===F[A+1]&&(F[A+1]=0),F[A+1]+=F[A]/w|0,F[A]%=w)}return F.reverse()}ef.absoluteValue=ef.abs=function(){var a=new this.constructor(this);return a.s<0&&(a.s=1),finalise(a)},ef.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},ef.clampedTo=ef.clamp=function(a,x){var w=this.constructor;if(a=new w(a),x=new w(x),!a.s||!x.s)return new w(NaN);if(a.gt(x))throw Error(ee+x);return 0>this.cmp(a)?a:this.cmp(x)>0?x:new w(this)},ef.comparedTo=ef.cmp=function(a){var x,w,A,k,F=this.d,V=(a=new this.constructor(a)).d,B=this.s,z=a.s;if(!F||!V)return B&&z?B!==z?B:F===V?0:!F^B<0?1:-1:NaN;if(!F[0]||!V[0])return F[0]?B:V[0]?-z:0;if(B!==z)return B;if(this.e!==a.e)return this.e>a.e^B<0?1:-1;for(x=0,w=(A=F.length)<(k=V.length)?A:k;x<w;++x)if(F[x]!==V[x])return F[x]>V[x]^B<0?1:-1;return A===k?0:A>k^B<0?1:-1},ef.cosine=ef.cos=function(){var a,x,w=this,A=w.constructor;return w.d?w.d[0]?(a=A.precision,x=A.rounding,A.precision=a+Math.max(w.e,w.sd())+7,A.rounding=1,w=function(a,x){var w,A,k;if(x.isZero())return x;(A=x.d.length)<32?k=(1/tinyPow(4,w=Math.ceil(A/3))).toString():(w=16,k="2.3283064365386962890625e-10"),a.precision+=w,x=taylorSeries(a,1,x.times(k),new a(1));for(var F=w;F--;){var V=x.times(x);x=V.times(V).minus(V).times(8).plus(1)}return a.precision-=w,x}(A,toLessThanHalfPi(A,w)),A.precision=a,A.rounding=x,finalise(2==k||3==k?w.neg():w,a,x,!0)):new A(1):new A(NaN)},ef.cubeRoot=ef.cbrt=function(){var a,x,w,A,k,F,V,B,z,G,$=this.constructor;if(!this.isFinite()||this.isZero())return new $(this);for(Y=!1,(F=this.s*eo(this.s*this,1/3))&&Math.abs(F)!=1/0?A=new $(F.toString()):(w=digitsToString(this.d),(F=((a=this.e)-w.length+1)%3)&&(w+=1==F||-2==F?"0":"00"),F=eo(w,1/3),a=ei((a+1)/3)-(a%3==(a<0?-1:2)),w=F==1/0?"5e"+a:(w=F.toExponential()).slice(0,w.indexOf("e")+1)+a,(A=new $(w)).s=this.s),V=(a=$.precision)+3;;)if(A=ep((G=(z=(B=A).times(B).times(B)).plus(this)).plus(this).times(B),G.plus(z),V+2,1),digitsToString(B.d).slice(0,V)===(w=digitsToString(A.d)).slice(0,V)){if("9999"!=(w=w.slice(V-3,V+1))&&(k||"4999"!=w)){+w&&(+w.slice(1)||"5"!=w.charAt(0))||(finalise(A,a+1,1),x=!A.times(A).times(A).eq(this));break}if(!k&&(finalise(B,a+1,0),B.times(B).times(B).eq(this))){A=B;break}V+=4,k=1}return Y=!0,finalise(A,a,$.rounding,x)},ef.decimalPlaces=ef.dp=function(){var a,x=this.d,w=NaN;if(x){if(w=((a=x.length-1)-ei(this.e/7))*7,a=x[a])for(;a%10==0;a/=10)w--;w<0&&(w=0)}return w},ef.dividedBy=ef.div=function(a){return ep(this,new this.constructor(a))},ef.dividedToIntegerBy=ef.divToInt=function(a){var x=this.constructor;return finalise(ep(this,new x(a),0,1,1),x.precision,x.rounding)},ef.equals=ef.eq=function(a){return 0===this.cmp(a)},ef.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},ef.greaterThan=ef.gt=function(a){return this.cmp(a)>0},ef.greaterThanOrEqualTo=ef.gte=function(a){var x=this.cmp(a);return 1==x||0===x},ef.hyperbolicCosine=ef.cosh=function(){var a,x,w,A,k,F=this,V=F.constructor,B=new V(1);if(!F.isFinite())return new V(F.s?1/0:NaN);if(F.isZero())return B;w=V.precision,A=V.rounding,V.precision=w+Math.max(F.e,F.sd())+4,V.rounding=1,(k=F.d.length)<32?x=(1/tinyPow(4,a=Math.ceil(k/3))).toString():(a=16,x="2.3283064365386962890625e-10"),F=taylorSeries(V,1,F.times(x),new V(1),!0);for(var z,G=a,$=new V(8);G--;)z=F.times(F),F=B.minus(z.times($.minus(z.times($))));return finalise(F,V.precision=w,V.rounding=A,!0)},ef.hyperbolicSine=ef.sinh=function(){var a,x,w,A,k=this,F=k.constructor;if(!k.isFinite()||k.isZero())return new F(k);if(x=F.precision,w=F.rounding,F.precision=x+Math.max(k.e,k.sd())+4,F.rounding=1,(A=k.d.length)<3)k=taylorSeries(F,2,k,k,!0);else{a=(a=1.4*Math.sqrt(A))>16?16:0|a,k=taylorSeries(F,2,k=k.times(1/tinyPow(5,a)),k,!0);for(var V,B=new F(5),z=new F(16),G=new F(20);a--;)V=k.times(k),k=k.times(B.plus(V.times(z.times(V).plus(G))))}return F.precision=x,F.rounding=w,finalise(k,x,w,!0)},ef.hyperbolicTangent=ef.tanh=function(){var a,x,w=this.constructor;return this.isFinite()?this.isZero()?new w(this):(a=w.precision,x=w.rounding,w.precision=a+7,w.rounding=1,ep(this.sinh(),this.cosh(),w.precision=a,w.rounding=x)):new w(this.s)},ef.inverseCosine=ef.acos=function(){var a=this,x=a.constructor,w=a.abs().cmp(1),A=x.precision,k=x.rounding;return -1!==w?0===w?a.isNeg()?getPi(x,A,k):new x(0):new x(NaN):a.isZero()?getPi(x,A+4,k).times(.5):(x.precision=A+6,x.rounding=1,a=new x(1).minus(a).div(a.plus(1)).sqrt().atan(),x.precision=A,x.rounding=k,a.times(2))},ef.inverseHyperbolicCosine=ef.acosh=function(){var a,x,w=this,A=w.constructor;return w.lte(1)?new A(w.eq(1)?0:NaN):w.isFinite()?(a=A.precision,x=A.rounding,A.precision=a+Math.max(Math.abs(w.e),w.sd())+4,A.rounding=1,Y=!1,w=w.times(w).minus(1).sqrt().plus(w),Y=!0,A.precision=a,A.rounding=x,w.ln()):new A(w)},ef.inverseHyperbolicSine=ef.asinh=function(){var a,x,w=this,A=w.constructor;return!w.isFinite()||w.isZero()?new A(w):(a=A.precision,x=A.rounding,A.precision=a+2*Math.max(Math.abs(w.e),w.sd())+6,A.rounding=1,Y=!1,w=w.times(w).plus(1).sqrt().plus(w),Y=!0,A.precision=a,A.rounding=x,w.ln())},ef.inverseHyperbolicTangent=ef.atanh=function(){var a,x,w,A,k=this,F=k.constructor;return k.isFinite()?k.e>=0?new F(k.abs().eq(1)?k.s/0:k.isZero()?k:NaN):(a=F.precision,x=F.rounding,Math.max(A=k.sd(),a)<-(2*k.e)-1)?finalise(new F(k),a,x,!0):(F.precision=w=A-k.e,k=ep(k.plus(1),new F(1).minus(k),w+a,1),F.precision=a+4,F.rounding=1,k=k.ln(),F.precision=a,F.rounding=x,k.times(.5)):new F(NaN)},ef.inverseSine=ef.asin=function(){var a,x,w,A,k=this,F=k.constructor;return k.isZero()?new F(k):(x=k.abs().cmp(1),w=F.precision,A=F.roun
51ding,-1!==x)?0===x?((a=getPi(F,w+4,A).times(.5)).s=k.s,a):new F(NaN):(F.precision=w+6,F.rounding=1,k=k.div(new F(1).minus(k.times(k)).sqrt().plus(1)).atan(),F.precision=w,F.rounding=A,k.times(2))},ef.inverseTangent=ef.atan=function(){var a,x,w,A,k,F,V,B,z,G=this,$=G.constructor,W=$.precision,Z=$.rounding;if(G.isFinite()){if(G.isZero())return new $(G);if(G.abs().eq(1)&&W+4<=ed)return(V=getPi($,W+4,Z).times(.25)).s=G.s,V}else{if(!G.s)return new $(NaN);if(W+4<=ed)return(V=getPi($,W+4,Z).times(.5)).s=G.s,V}for($.precision=B=W+10,$.rounding=1,a=w=Math.min(28,B/7+2|0);a;--a)G=G.div(G.times(G).plus(1).sqrt().plus(1));for(Y=!1,x=Math.ceil(B/7),A=1,z=G.times(G),V=new $(G),k=G;-1!==a;)if(k=k.times(z),F=V.minus(k.div(A+=2)),k=k.times(z),void 0!==(V=F.plus(k.div(A+=2))).d[x])for(a=x;V.d[a]===F.d[a]&&a--;);return w&&(V=V.times(2<<w-1)),Y=!0,finalise(V,$.precision=W,$.rounding=Z,!0)},ef.isFinite=function(){return!!this.d},ef.isInteger=ef.isInt=function(){return!!this.d&&ei(this.e/7)>this.d.length-2},ef.isNaN=function(){return!this.s},ef.isNegative=ef.isNeg=function(){return this.s<0},ef.isPositive=ef.isPos=function(){return this.s>0},ef.isZero=function(){return!!this.d&&0===this.d[0]},ef.lessThan=ef.lt=function(a){return 0>this.cmp(a)},ef.lessThanOrEqualTo=ef.lte=function(a){return 1>this.cmp(a)},ef.logarithm=ef.log=function(a){var x,w,A,k,F,V,B,z=this.constructor,G=z.precision,$=z.rounding;if(null==a)a=new z(10),x=!0;else{if(w=(a=new z(a)).d,a.s<0||!w||!w[0]||a.eq(1))return new z(NaN);x=a.eq(10)}if(w=this.d,this.s<0||!w||!w[0]||this.eq(1))return new z(w&&!w[0]?-1/0:1!=this.s?NaN:w?0:1/0);if(x){if(w.length>1)k=!0;else{for(A=w[0];A%10==0;)A/=10;k=1!==A}}if(Y=!1,checkRoundingDigits((B=ep(naturalLogarithm(this,V=G+5),x?getLn10(z,V+10):naturalLogarithm(a,V),V,1)).d,A=G,$))do if(V+=10,B=ep(naturalLogarithm(this,V),x?getLn10(z,V+10):naturalLogarithm(a,V),V,1),!k){+digitsToString(B.d).slice(A+1,A+15)+1==1e14&&(B=finalise(B,G+1,0));break}while(checkRoundingDigits(B.d,A+=10,$));return Y=!0,finalise(B,G,$)},ef.minus=ef.sub=function(a){var x,w,A,k,F,V,B,z,G,$,W,Z,K=this.constructor;if(a=new K(a),!this.d||!a.d)return this.s&&a.s?this.d?a.s=-a.s:a=new K(a.d||this.s!==a.s?this:NaN):a=new K(NaN),a;if(this.s!=a.s)return a.s=-a.s,this.plus(a);if(G=this.d,Z=a.d,B=K.precision,z=K.rounding,!G[0]||!Z[0]){if(Z[0])a.s=-a.s;else{if(!G[0])return new K(3===z?-0:0);a=new K(this)}return Y?finalise(a,B,z):a}if(w=ei(a.e/7),$=ei(this.e/7),G=G.slice(),F=$-w){for((W=F<0)?(x=G,F=-F,V=Z.length):(x=Z,w=$,V=G.length),F>(A=Math.max(Math.ceil(B/7),V)+2)&&(F=A,x.length=1),x.reverse(),A=F;A--;)x.push(0);x.reverse()}else{for((W=(A=G.length)<(V=Z.length))&&(V=A),A=0;A<V;A++)if(G[A]!=Z[A]){W=G[A]<Z[A];break}F=0}for(W&&(x=G,G=Z,Z=x,a.s=-a.s),V=G.length,A=Z.length-V;A>0;--A)G[V++]=0;for(A=Z.length;A>F;){if(G[--A]<Z[A]){for(k=A;k&&0===G[--k];)G[k]=1e7-1;--G[k],G[A]+=1e7}G[A]-=Z[A]}for(;0===G[--V];)G.pop();for(;0===G[0];G.shift())--w;return G[0]?(a.d=G,a.e=getBase10Exponent(G,w),Y?finalise(a,B,z):a):new K(3===z?-0:0)},ef.modulo=ef.mod=function(a){var x,w=this.constructor;return(a=new w(a),this.d&&a.s&&(!a.d||a.d[0]))?a.d&&(!this.d||this.d[0])?(Y=!1,9==w.modulo?(x=ep(this,a.abs(),0,3,1),x.s*=a.s):x=ep(this,a,0,w.modulo,1),x=x.times(a),Y=!0,this.minus(x)):finalise(new w(this),w.precision,w.roun
51ding):new w(NaN)},ef.naturalExponential=ef.exp=function(){return naturalExponential(this)},ef.naturalLogarithm=ef.ln=function(){return naturalLogarithm(this)},ef.negated=ef.neg=function(){var a=new this.constructor(this);return a.s=-a.s,finalise(a)},ef.plus=ef.add=function(a){var x,w,A,k,F,V,B,z,G,$,W=this.constructor;if(a=new W(a),!this.d||!a.d)return this.s&&a.s?this.d||(a=new W(a.d||this.s===a.s?this:NaN)):a=new W(NaN),a;if(this.s!=a.s)return a.s=-a.s,this.minus(a);if(G=this.d,$=a.d,B=W.precision,z=W.rounding,!G[0]||!$[0])return $[0]||(a=new W(this)),Y?finalise(a,B,z):a;if(F=ei(this.e/7),A=ei(a.e/7),G=G.slice(),k=F-A){for(k<0?(w=G,k=-k,V=$.length):(w=$,A=F,V=G.length),k>(V=(F=Math.ceil(B/7))>V?F+1:V+1)&&(k=V,w.length=1),w.reverse();k--;)w.push(0);w.reverse()}for((V=G.length)-(k=$.length)<0&&(k=V,w=$,$=G,G=w),x=0;k;)x=(G[--k]=G[k]+$[k]+x)/1e7|0,G[k]%=1e7;for(x&&(G.unshift(x),++A),V=G.length;0==G[--V];)G.pop();return a.d=G,a.e=getBase10Exponent(G,A),Y?finalise(a,B,z):a},ef.precision=ef.sd=function(a){var x;if(void 0!==a&&!!a!==a&&1!==a&&0!==a)throw Error(ee+a);return this.d?(x=getPrecision(this.d),a&&this.e+1>x&&(x=this.e+1)):x=NaN,x},ef.round=function(){var a=this.constructor;return finalise(new a(this),this.e+1,a.rounding)},ef.sine=ef.sin=function(){var a,x,w=this,A=w.constructor;return w.isFinite()?w.isZero()?new A(w):(a=A.precision,x=A.rounding,A.precision=a+Math.max(w.e,w.sd())+7,A.rounding=1,w=function(a,x){var w,A=x.d.length;if(A<3)return x.isZero()?x:taylorSeries(a,2,x,x);w=(w=1.4*Math.sqrt(A))>16?16:0|w,x=taylorSeries(a,2,x=x.times(1/tinyPow(5,w)),x);for(var k,F=new a(5),V=new a(16),B=new a(20);w--;)k=x.times(x),x=x.times(F.plus(k.times(V.times(k).minus(B))));return x}(A,toLessThanHalfPi(A,w)),A.precision=a,A.rounding=x,finalise(k>2?w.neg():w,a,x,!0)):new A(NaN)},ef.squareRoot=ef.sqrt=function(){var a,x,w,A,k,F,V=this.d,B=this.e,z=this.s,G=this.constructor;if(1!==z||!V||!V[0])return new G(!z||z<0&&(!V||V[0])?NaN:V?this:1/0);for(Y=!1,0==(z=Math.sqrt(+this))||z==1/0?(((x=digitsToString(V)).length+B)%2==0&&(x+="0"),z=Math.sqrt(x),B=ei((B+1)/2)-(B<0||B%2),x=z==1/0?"5e"+B:(x=z.toExponential()).slice(0,x.indexOf("e")+1)+B,A=new G(x)):A=new G(z.toString()),w=(B=G.precision)+3;;)if(A=(F=A).plus(ep(this,F,w+2,1)).times(.5),digitsToString(F.d).slice(0,w)===(x=digitsToString(A.d)).slice(0,w)){if("9999"!=(x=x.slice(w-3,w+1))&&(k||"4999"!=x)){+x&&(+x.slice(1)||"5"!=x.charAt(0))||(finalise(A,B+1,1),a=!A.times(A).eq(this));break}if(!k&&(finalise(F,B+1,0),F.times(F).eq(this))){A=F;break}w+=4,k=1}return Y=!0,finalise(A,B,G.rounding,a)},ef.tangent=ef.tan=function(){var a,x,w=this,A=w.constructor;return w.isFinite()?w.isZero()?new A(w):(a=A.precision,x=A.rounding,A.precision=a+10,A.rounding=1,(w=w.sin()).s=1,w=ep(w,new A(1).minus(w.times(w)).sqrt(),a+10,0),A.precision=a,A.rounding=x,finalise(2==k||4==k?w.neg():w,a,x,!0)):new A(NaN)},ef.times=ef.mul=function(a){var x,w,A,k,F,V,B,z,G,$=this.constructor,W=this.d,Z=(a=new $(a)).d;if(a.s*=this.s,!W||!W[0]||!Z||!Z[0])return new $(a.s&&(!W||W[0]||Z)&&(!Z||Z[0]||W)?W&&Z?0*a.s:a.s/0:NaN);for(w=ei(this.e/7)+ei(a.e/7),(z=W.length)<(G=Z.length)&&(F=W,W=Z,Z=F,V=z,z=G,G=V),F=[],A=V=z+G;A--;)F.push(0);for(A=G;--A>=0;){for(x=0,k=z+A;k>A;)B=F[k]+Z[A]*W[k-A-1]+x,F[k--]=B%1e7|0,x=B/1e7|0;F[k]=(F[k]+x)%1e7|0}for(;!F[--V];)F.pop();return x?++w:F.shift(),a.d=F,a.e=getBase10Exponent(F,w),Y?finalise(a,$.precision,$.rounding):a},ef.toBinary=function(a,x){return toStringBinary(this,2,a,x)},ef.toDecimalPlaces=ef.toDP=function(a,x){var w=this,A=w.constructor;return(w=new A(w),void 0===a)?w:(checkInt32(a,0,1e9),void 0===x?x=A.rounding:checkInt32(x,0,8),finalise(w,a+w.e+1,x))},ef.toExponential=function(a,x){var w,A=this,k=A.constructor;return void 0===a?w=finiteToString(A,!0):(checkInt32(a,0,1e9),void 0===x?x=k.rounding:checkInt32(x,0,8),w=finiteToString(A=finalise(new k(A),a+1,x),!0,a+1)),A.isNeg()&&!A.isZero()?"-"+w:w},ef.toFixed=function(a,x){var w,A,k=this.constructor;return void 0===a?w=finiteToString(this):(checkInt32(a,0,1e9),void 0===x?x=k.rounding:checkInt32(x,0,8),w=finiteToString(A=finalise(new k(this),a+this.e+1,x),!1,a+A.e+1)),this.isNeg()&&!this.isZero()?"-"+w:w},ef.toFraction=function(a){var x,w,A,k,F,V,B,z,G,$,W,Z,K=this.d,J=this.constructor;
51if(!K)return new J(this);if(G=w=new J(1),A=z=new J(0),V=(F=(x=new J(A)).e=getPrecision(K)-this.e-1)%7,x.d[0]=eo(10,V<0?7+V:V),null==a)a=F>0?x:G;else{if(!(B=new J(a)).isInt()||B.lt(G))throw Error(ee+B);a=B.gt(x)?F>0?x:G:B}for(Y=!1,B=new J(digitsToString(K)),$=J.precision,J.precision=F=14*K.length;W=ep(B,x,0,1,1),1!=(k=w.plus(W.times(A))).cmp(a);)w=A,A=k,k=G,G=z.plus(W.times(k)),z=k,k=x,x=B.minus(W.times(k)),B=k;return k=ep(a.minus(w),A,0,1,1),z=z.plus(k.times(G)),w=w.plus(k.times(A)),z.s=G.s=this.s,Z=1>ep(G,A,F,1).minus(this).abs().cmp(ep(z,w,F,1).minus(this).abs())?[G,A]:[z,w],J.precision=$,Y=!0,Z},ef.toHexadecimal=ef.toHex=function(a,x){return toStringBinary(this,16,a,x)},ef.toNearest=function(a,x){var w=this,A=w.constructor;if(w=new A(w),null==a){if(!w.d)return w;a=new A(1),x=A.rounding}else{if(a=new A(a),void 0===x?x=A.rounding:checkInt32(x,0,8),!w.d)return a.s?w:a;if(!a.d)return a.s&&(a.s=w.s),a}return a.d[0]?(Y=!1,w=ep(w,a,0,x,1).times(a),Y=!0,finalise(w)):(a.s=w.s,w=a),w},ef.toNumber=function(){return+this},ef.toOctal=function(a,x){return toStringBinary(this,8,a,x)},ef.toPower=ef.pow=function(a){var x,w,A,k,F,V,B=this,z=B.constructor,G=+(a=new z(a));if(!B.d||!a.d||!B.d[0]||!a.d[0])return new z(eo(+B,G));if((B=new z(B)).eq(1))return B;if(A=z.precision,F=z.rounding,a.eq(1))return finalise(B,A,F);if((x=ei(a.e/7))>=a.d.length-1&&(w=G<0?-G:G)<=9007199254740991)return k=intPow(z,B,w,A),a.s<0?new z(1).div(k):finalise(k,A,F);if((V=B.s)<0){if(x<a.d.length-1)return new z(NaN);if((1&a.d[x])==0&&(V=1),0==B.e&&1==B.d[0]&&1==B.d.length)return B.s=V,B}return(x=0!=(w=eo(+B,G))&&isFinite(w)?new z(w+"").e:ei(G*(Math.log("0."+digitsToString(B.d))/Math.LN10+B.e+1)))>z.maxE+1||x<z.minE-1?new z(x>0?V/0:0):(Y=!1,z.rounding=B.s=1,w=Math.min(12,(x+"").length),(k=naturalExponential(a.times(naturalLogarithm(B,A+w)),A)).d&&checkRoundingDigits((k=finalise(k,A+5,1)).d,A,F)&&(x=A+10,+digitsToString((k=finalise(naturalExponential(a.times(naturalLogarithm(B,x+w)),x),x+5,1)).d).slice(A+1,A+15)+1==1e14&&(k=finalise(k,A+1,0))),k.s=V,Y=!0,z.rounding=F,finalise(k,A,F))},ef.toPrecision=function(a,x){var w,A=this,k=A.constructor;return void 0===a?w=finiteToString(A,A.e<=k.toExpNeg||A.e>=k.toExpPos):(checkInt32(a,1,1e9),void 0===x?x=k.rounding:checkInt32(x,0,8),w=finiteToString(A=finalise(new k(A),a,x),a<=A.e||A.e<=k.toExpNeg,a)),A.isNeg()&&!A.isZero()?"-"+w:w},ef.toSignificantDigits=ef.toSD=function(a,x){var w=this.constructor;return void 0===a?(a=w.precision,x=w.rounding):(checkInt32(a,1,1e9),void 0===x?x=w.rounding:checkInt32(x,0,8)),finalise(new w(this),a,x)},ef.toString=function(){var a=this.constructor,x=finiteToString(this,this.e<=a.toExpNeg||this.e>=a.toExpPos);return this.isNeg()&&!this.isZero()?"-"+x:x},ef.truncated=ef.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},ef.valueOf=ef.toJSON=function(){var a=this.constructor,x=finiteToString(this,this.e<=a.toExpNeg||this.e>=a.toExpPos);return this.isNeg()?"-"+x:x};var ep=function(){function multiplyInteger(a,x,w){var A,k=0,F=a.length;for(a=a.slice();F--;)A=a[F]*x+k,a[F]=A%w|0,k=A/w|0;return k&&a.unshift(k),a}function compare(a,x,w,A){var k,F;if(w!=A)F=w>A?1:-1;else for(k=F=0;k<w;k++)if(a[k]!=x[k]){F=a[k]>x[k]?1:-1;break}return F}function subtract(a,x,w,A){for(var k=0;w--;)a[w]-=k,k=a[w]<x[w]?1:0,a[w]=k*A+a[w]-x[w];for(;!a[0]&&a.length>1;)a.shift()}return function(a,x,w,k,F,V){var B,z,G,$,W,Z,K,Y,J,ee,et,er,en,eo,ea,es,el,eu,ec,ed,ef=a.constructor,ep=a.s==x.s?1:-1,eh=a.d,em=x.d;if(!eh||!eh[0]||!em||!em[0])return new ef(a.s&&x.s&&(eh?!em||eh[0]!=em[0]:em)?eh&&0==eh[0]||!em?0*ep:ep/0:NaN);for(V?(W=1,z=a.e-x.e):(V=1e7,W=7,z=ei(a.e/W)-ei(x.e/W)),ec=em.length,el=eh.length,ee=(J=new ef(ep)).d=[],G=0;em[G]==(eh[G]||0);G++);if(em[G]>(eh[G]||0)&&z--,null==w?(eo=w=ef.precision,k=ef.rounding):eo=F?w+(a.e-x.e)+1:w,eo<0)ee.push(1),Z=!0;else{if(eo=eo/W+2|0,G=0,1==ec){for($=0,em=em[0],eo++;(G<el||$)&&eo--;G++)ea=$*V+(eh[G]||0),ee[G]=ea/em|0,$=ea%em|0;Z=$||G<el}else{for(($=V/(em[0]+1)|0)>1&&(em=multiplyInteger(em,$,V),eh=multiplyInteger(eh,$,V),ec=em.length,el=eh.length),es=ec,er=(et=eh.slice(0,ec)).length;er<ec;)et[er++]=0;(ed=em.slice()).unshift(0),eu=em[0],em[1]>=V/2&&++eu;do $=0,(B=compare(em,et,ec,er))<0?(en=et[0],ec!=er&&(en=en*V+(et[1]||0)),($=en/eu|0)>1?($>=V&&($=V-1),Y=(K=multiplyInteger(em,$,V)).length,er=et.length,1==(B=compare(K,et,Y,er))&&($--,subtract(K,ec<Y?ed:em,Y,V))):(0==$&&(B=$=1),K=em.slice()),(Y=K.length)<er&&K.unshift(0),subtract(et,K,er,V),-1==B&&(er=et.length,(B=compare(em,et,ec,er))<1&&($++,subtract(et,e
51c<er?ed:em,er,V))),er=et.length):0===B&&($++,et=[0]),ee[G++]=$,B&&et[0]?et[er++]=eh[es]||0:(et=[eh[es]],er=1);while((es++<el||void 0!==et[0])&&eo--);Z=void 0!==et[0]}ee[0]||ee.shift()}if(1==W)J.e=z,A=Z;else{for(G=1,$=ee[0];$>=10;$/=10)G++;J.e=G+z*W-1,finalise(J,F?w+J.e+1:w,k,Z)}return J}}();function finalise(a,x,w,A){var k,F,V,B,z,G,$,W,Z,K=a.constructor;e:if(null!=x){if(!(W=a.d))return a;for(k=1,B=W[0];B>=10;B/=10)k++;if((F=x-k)<0)F+=7,V=x,z=($=W[Z=0])/eo(10,k-V-1)%10|0;else if((Z=Math.ceil((F+1)/7))>=(B=W.length)){if(A){for(;B++<=Z;)W.push(0);$=z=0,k=1,F%=7,V=F-7+1}else break e}else{for(k=1,$=B=W[Z];B>=10;B/=10)k++;F%=7,z=(V=F-7+k)<0?0:$/eo(10,k-V-1)%10|0}if(A=A||x<0||void 0!==W[Z+1]||(V<0?$:$%eo(10,k-V-1)),G=w<4?(z||A)&&(0==w||w==(a.s<0?3:2)):z>5||5==z&&(4==w||A||6==w&&(F>0?V>0?$/eo(10,k-V):0:W[Z-1])%10&1||w==(a.s<0?8:7)),x<1||!W[0])return W.length=0,G?(x-=a.e+1,W[0]=eo(10,(7-x%7)%7),a.e=-x||0):W[0]=a.e=0,a;if(0==F?(W.length=Z,B=1,Z--):(W.length=Z+1,B=eo(10,7-F),W[Z]=V>0?($/eo(10,k-V)%eo(10,V)|0)*B:0),G)for(;;){if(0==Z){for(F=1,V=W[0];V>=10;V/=10)F++;for(V=W[0]+=B,B=1;V>=10;V/=10)B++;F!=B&&(a.e++,1e7==W[0]&&(W[0]=1));break}if(W[Z]+=B,1e7!=W[Z])break;W[Z--]=0,B=1}for(F=W.length;0===W[--F];)W.pop()}return Y&&(a.e>K.maxE?(a.d=null,a.e=NaN):a.e<K.minE&&(a.e=0,a.d=[0])),a}function finiteToString(a,x,w){if(!a.isFinite())return nonFiniteToString(a);var A,k=a.e,F=digitsToString(a.d),V=F.length;return x?(w&&(A=w-V)>0?F=F.charAt(0)+"."+F.slice(1)+getZeroString(A):V>1&&(F=F.charAt(0)+"."+F.slice(1)),F=F+(a.e<0?"e":"e+")+a.e):k<0?(F="0."+getZeroString(-k-1)+F,w&&(A=w-V)>0&&(F+=getZeroString(A))):k>=V?(F+=getZeroString(k+1-V),w&&(A=w-k-1)>0&&(F=F+"."+getZeroString(A))):((A=k+1)<V&&(F=F.slice(0,A)+"."+F.slice(A)),w&&(A=w-V)>0&&(k+1===V&&(F+="."),F+=getZeroString(A))),F}function getBase10Exponent(a,x){var w=a[0];for(x*=7;w>=10;w/=10)x++;return x}function getLn10(a,x,w){if(x>ec)throw Y=!0,w&&(a.precision=w),Error(et);return finalise(new a(W),x,1,!0)}function getPi(a,x,w){if(x>ed)throw Error(et);return finalise(new a(Z),x,w,!0)}function getPrecision(a){var x=a.length-1,w=7*x+1;if(x=a[x]){for(;x%10==0;x/=10)w--;for(x=a[0];x>=10;x/=10)w++}return w}function getZeroString(a){for(var x="";a--;)x+="0";return x}function intPow(a,x,w,A){var k,F=new a(1),V=Math.ceil(A/7+4);for(Y=!1;;){if(w%2&&truncate((F=F.times(x)).d,V)&&(k=!0),0===(w=ei(w/2))){w=F.d.length-1,k&&0===F.d[w]&&++F.d[w];break}truncate((x=x.times(x)).d,V)}return Y=!0,F}function isOdd(a){return 1&a.d[a.d.length-1]}function maxOrMin(a,x,w){for(var A,k,F=new a(x[0]),V=0;++V<x.length;){if(!(k=new a(x[V])).s){F=k;break}((A=F.cmp(k))===w||0===A&&F.s===w)&&(F=k)}return F}function naturalExponential(a,x){var w,A,k,F,V,B,z,G=0,$=0,W=0,Z=a.constructor,K=Z.rounding,J=Z.precision;if(!a.d||!a.d[0]||a.e>17)return new Z(a.d?a.d[0]?a.s<0?0:1/0:1:a.s?a.s<0?0:a:0/0);for(null==x?(Y=!1,z=J):z=x,B=new Z(.03125);a.e>-2;)a=a.times(B),W+=5;for(z+=A=Math.log(eo(2,W))/Math.LN10*2+5|0,w=F=V=new Z(1),Z.precision=z;;){if(F=finalise(F.times(a),z,1),w=w.times(++$),digitsToString((B=V.plus(ep(F,w,z,1))).d).slice(0,z)===digitsToString(V.d).slice(0,z)){for(k=W;k--;)V=finalise(V.times(V),z,1);if(null!=x)return Z.precision=J,V;if(!(G<3&&checkRoundingDigits(V.d,z-A,K,G)))return finalise(V,Z.precision=J,K,Y=!0);Z.precision=z+=10,w=F=B=new Z(1),$=0,G++}V=B}}function naturalLogarithm(a,x){var w,A,k,F,V,B,z,G,$,W,Z,K=1,J=a,ee=J.d,et=J.constructor,er=et.rounding,en=et.precision;if(J.s<0||!ee||!ee[0]||!J.e&&1==ee[0]&&1==ee.length)return new et(ee&&!ee[0]?-1/0:1!=J.s?NaN:ee?0:J);if(null==x?(Y=!1,$=en):$=x,et.precision=$+=10,A=(w=digitsToString(ee)).charAt(0),!(15e14>Math.abs(F=J.e)))return G=getLn10(et,$+2,en).times(F+""),J=naturalLogarithm(new et(A+"."+w.slice(1)),$-10).plus(G),et.precision=en,null==x?finalise(J,en,er,Y=!0):J;for(;A<7&&1!=A||1==A&&w.charAt(1)>3;)A=(w=digitsToString((J=J.times(a)).d)).charAt(0),K++;for(F=J.e,A>1?(J=new et("0."+w),F++):J=new et(A+"."+w.slice(1)),W=J,z=V=J=ep(J.minus(1),J.plus(1),$,1),Z=finalise(J.times(J),$,1),k=3;;){if(V=finalise(V.times(Z),$,1),digitsToString((G=z.plus(ep(V,new et(k),$,1))).d).slice(0,$)===digitsToString(z.d).slice(0,$)){if(z=z.times(2),0!==F&&(z=z.plus(getLn10(et,$+2,en).times(F+""))),z=ep(z,new et(K),$,1),null!=x)return et.precision=en,z;if(!checkRoundingDigits(z.d,$-10,er,B))return finalise(z,et.precision=en,er,Y=!0);et.precision=$+=10,G=V=J=ep(W.minus(1),W.plus(1),$,1),Z=finalise(J.times(J),$,1),k=B=1}
51z=G,k+=2}}function nonFiniteToString(a){return String(a.s*a.s/0)}function parseDecimal(a,x){var w,A,k;for((w=x.indexOf("."))>-1&&(x=x.replace(".","")),(A=x.search(/e/i))>0?(w<0&&(w=A),w+=+x.slice(A+1),x=x.substring(0,A)):w<0&&(w=x.length),A=0;48===x.charCodeAt(A);A++);for(k=x.length;48===x.charCodeAt(k-1);--k);if(x=x.slice(A,k)){if(k-=A,a.e=w=w-A-1,a.d=[],A=(w+1)%7,w<0&&(A+=7),A<k){for(A&&a.d.push(+x.slice(0,A)),k-=7;A<k;)a.d.push(+x.slice(A,A+=7));A=7-(x=x.slice(A)).length}else A-=k;for(;A--;)x+="0";a.d.push(+x),Y&&(a.e>a.constructor.maxE?(a.d=null,a.e=NaN):a.e<a.constructor.minE&&(a.e=0,a.d=[0]))}else a.e=0,a.d=[0];return a}function taylorSeries(a,x,w,A,k){var F,V,B,z,G=a.precision,$=Math.ceil(G/7);for(Y=!1,z=w.times(w),B=new a(A);;){if(V=ep(B.times(z),new a(x++*x++),G,1),B=k?A.plus(V):A.minus(V),A=ep(V.times(z),new a(x++*x++),G,1),void 0!==(V=B.plus(A)).d[$]){for(F=$;V.d[F]===B.d[F]&&F--;);if(-1==F)break}F=B,B=A,A=V,V=F}return Y=!0,V.d.length=$+1,V}function tinyPow(a,x){for(var w=a;--x;)w*=a;return w}function toLessThanHalfPi(a,x){var w,A=x.s<0,F=getPi(a,a.precision,1),V=F.times(.5);if((x=x.abs()).lte(V))return k=A?4:1,x;if((w=x.divToInt(F)).isZero())k=A?3:2;else{if((x=x.minus(w.times(F))).lte(V))return k=isOdd(w)?A?2:3:A?4:1,x;k=isOdd(w)?A?1:4:A?3:2}return x.minus(F).abs()}function toStringBinary(a,x,w,k){var F,V,B,z,G,W,Z,K,Y,J=a.constructor,ee=void 0!==w;if(ee?(checkInt32(w,1,1e9),void 0===k?k=J.rounding:checkInt32(k,0,8)):(w=J.precision,k=J.rounding),a.isFinite()){for(B=(Z=finiteToString(a)).indexOf("."),ee?(F=2,16==x?w=4*w-3:8==x&&(w=3*w-2)):F=x,B>=0&&(Z=Z.replace(".",""),(Y=new J(1)).e=Z.length-B,Y.d=convertBase(finiteToString(Y),10,F),Y.e=Y.d.length),V=G=(K=convertBase(Z,10,F)).length;0==K[--G];)K.pop();if(K[0]){if(B<0?V--:((a=new J(a)).d=K,a.e=V,K=(a=ep(a,Y,w,k,0,F)).d,V=a.e,W=A),B=K[w],z=F/2,W=W||void 0!==K[w+1],W=k<4?(void 0!==B||W)&&(0===k||k===(a.s<0?3:2)):B>z||B===z&&(4===k||W||6===k&&1&K[w-1]||k===(a.s<0?8:7)),K.length=w,W)for(;++K[--w]>F-1;)K[w]=0,w||(++V,K.unshift(1));for(G=K.length;!K[G-1];--G);for(B=0,Z="";B<G;B++)Z+=$.charAt(K[B]);if(ee){if(G>1){if(16==x||8==x){for(B=16==x?4:3,--G;G%B;G++)Z+="0";for(G=(K=convertBase(Z,F,x)).length;!K[G-1];--G);for(B=1,Z="1.";B<G;B++)Z+=$.charAt(K[B])}else Z=Z.charAt(0)+"."+Z.slice(1)}Z=Z+(V<0?"p":"p+")+V}else if(V<0){for(;++V;)Z="0"+Z;Z="0."+Z}else if(++V>G)for(V-=G;V--;)Z+="0";else V<G&&(Z=Z.slice(0,V)+"."+Z.slice(V))}else Z=ee?"0p+0":"0";Z=(16==x?"0x":2==x?"0b":8==x?"0o":"")+Z}else Z=nonFiniteToString(a);return a.s<0?"-"+Z:Z}function truncate(a,x){if(a.length>x)return a.length=x,!0}function abs(a){return new this(a).abs()}function acos(a){return new this(a).acos()}function acosh(a){return new this(a).acosh()}function add(a,x){return new this(a).plus(x)}function asin(a){return new this(a).asin()}function asinh(a){return new this(a).asinh()}function atan(a){return new this(a).atan()}function atanh(a){return new this(a).atanh()}function atan2(a,x){a=new this(a),x=new this(x);var w,A=this.precision,k=this.rounding,F=A+4;return a.s&&x.s?a.d||x.d?!x.d||a.isZero()?(w=x.s<0?getPi(this,A,k):new this(0)).s=a.s:!a.d||x.isZero()?(w=getPi(this,F,1).times(.5)).s=a.s:x.s<0?(this.precision=F,this.rounding=1,w=this.atan(ep(a,x,F,1)),x=getPi(this,F,1),this.precision=A,this.rounding=k,w=a.s<0?w.minus(x):w.plus(x)):w=this.atan(ep(a,x,F,1)):(w=getPi(this,F,1).times(x.s>0?.25:.75)).s=a.s:w=new this(NaN),w}function cbrt(a){return new this(a).cbrt()}function ceil(a){return finalise(a=new this(a),a.e+1,2)}function clamp(a,x,w){return new this(a).clamp(x,w)}function config(a){if(!a||"object"!=typeof a)throw Error(J+"Object expected");var x,w,A,k=!0===a.defaults,F=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(x=0;x<F.length;x+=3)if(w=F[x],k&&(this[w]=K[w]),void 0!==(A=a[w])){if(ei(A)===A&&A>=F[x+1]&&A<=F[x+2])this[w]=A;else throw Error(ee+w+": "+A)}if(w="crypto",k&&(this[w]=K[w]),void 0!==(A=a[w])){if(!0===A||!1===A||0===A||1===A){if(A){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[w]=!0;else throw Error(er)}else this[w]=!1}else throw Error(ee+w+": "+A)}return this}function cos(a){return new this(a).cos()}function cosh(a){return new this(a).cosh()}function div(a,x){return new this(a).div(x)}function exp(a){return new this(a).exp()}function floor(a){return finalise(a=new this(a),a.e+1,3)}function hypot(){var a,x,w=new this(0);for(a=0,Y=!1;a<arguments.length;)if(x=new this(arguments[a++]),x.d)w.d&&(w=w.plus(x.times(x)));else{if(x.s)return Y=!0,new this(1/0);w=x}return Y=!0,w.sqrt()}function isDecimalInstance(a){return a instanceof eh||a&&a.toStringTag===en||!1}function ln(a){return new this(a).ln()}function log(a,x){return new this(a).log(x)}function log2(a){return new this(a).log(2)}function log10(a){return new this(a).log(10)}function max(){return maxOrMin(this,arguments,-1)}
51function min(){return maxOrMin(this,arguments,1)}function mod(a,x){return new this(a).mod(x)}function mul(a,x){return new this(a).mul(x)}function pow(a,x){return new this(a).pow(x)}function random(a){var x,w,A,k,F=0,V=new this(1),B=[];if(void 0===a?a=this.precision:checkInt32(a,1,1e9),A=Math.ceil(a/7),this.crypto){if(crypto.getRandomValues)for(x=crypto.getRandomValues(new Uint32Array(A));F<A;)(k=x[F])>=429e7?x[F]=crypto.getRandomValues(new Uint32Array(1))[0]:B[F++]=k%1e7;else if(crypto.randomBytes){for(x=crypto.randomBytes(A*=4);F<A;)(k=x[F]+(x[F+1]<<8)+(x[F+2]<<16)+((127&x[F+3])<<24))>=214e7?crypto.randomBytes(4).copy(x,F):(B.push(k%1e7),F+=4);F=A/4}else throw Error(er)}else for(;F<A;)B[F++]=1e7*Math.random()|0;for(A=B[--F],a%=7,A&&a&&(k=eo(10,7-a),B[F]=(A/k|0)*k);0===B[F];F--)B.pop();if(F<0)w=0,B=[0];else{for(w=-1;0===B[0];w-=7)B.shift();for(A=1,k=B[0];k>=10;k/=10)A++;A<7&&(w-=7-A)}return V.e=w,V.d=B,V}function round(a){return finalise(a=new this(a),a.e+1,this.rounding)}function sign(a){return(a=new this(a)).d?a.d[0]?a.s:0*a.s:a.s||NaN}function sin(a){return new this(a).sin()}function sinh(a){return new this(a).sinh()}function sqrt(a){return new this(a).sqrt()}function sub(a,x){return new this(a).sub(x)}function sum(){var a=0,x=arguments,w=new this(x[a]);for(Y=!1;w.s&&++a<x.length;)w=w.plus(x[a]);return Y=!0,finalise(w,this.precision,this.rounding)}function tan(a){return new this(a).tan()}function tanh(a){return new this(a).tanh()}function trunc(a){return finalise(a=new this(a),a.e+1,1)}ef[Symbol.for("nodejs.util.inspect.custom")]=ef.toString,ef[Symbol.toStringTag]="Decimal";var eh=ef.constructor=function clone(a){var x,w,A;function Decimal(a){var x,w,A;if(!(this instanceof Decimal))return new Decimal(a);if(this.constructor=Decimal,isDecimalInstance(a)){this.s=a.s,Y?!a.d||a.e>Decimal.maxE?(this.e=NaN,this.d=null):a.e<Decimal.minE?(this.e=0,this.d=[0]):(this.e=a.e,this.d=a.d.slice()):(this.e=a.e,this.d=a.d?a.d.slice():a.d);return}if("number"==(A=typeof a)){if(0===a){this.s=1/a<0?-1:1,this.e=0,this.d=[0];return}if(a<0?(a=-a,this.s=-1):this.s=1,a===~~a&&a<1e7){for(x=0,w=a;w>=10;w/=10)x++;Y?x>Decimal.maxE?(this.e=NaN,this.d=null):x<Decimal.minE?(this.e=0,this.d=[0]):(this.e=x,this.d=[a]):(this.e=x,this.d=[a]);return}if(0*a!=0){a||(this.s=NaN),this.e=NaN,this.d=null;return}return parseDecimal(this,a.toString())}if("string"===A)return 45===(w=a.charCodeAt(0))?(a=a.slice(1),this.s=-1):(43===w&&(a=a.slice(1)),this.s=1),eu.test(a)?parseDecimal(this,a):function(a,x){var w,A,k,F,V,B,z,G,$;if(x.indexOf("_")>-1){if(x=x.replace(/(\d)_(?=\d)/g,"$1"),eu.test(x))return parseDecimal(a,x)}else if("Infinity"===x||"NaN"===x)return+x||(a.s=NaN),a.e=NaN,a.d=null,a;if(es.test(x))w=16,x=x.toLowerCase();else if(ea.test(x))w=2;else if(el.test(x))w=8;else throw Error(ee+x);for((F=x.search(/p/i))>0?(z=+x.slice(F+1),x=x.substring(2,F)):x=x.slice(2),V=(F=x.indexOf("."))>=0,A=a.constructor,V&&(F=(B=(x=x.replace(".","")).length)-F,k=intPow(A,new A(w),F,2*F)),F=$=(G=convertBase(x,w,1e7)).length-1;0===G[F];--F)G.pop();return F<0?new A(0*a.s):(a.e=getBase10Exponent(G,$),a.d=G,Y=!1,V&&(a=ep(a,k,4*B)),z&&(a=a.times(54>Math.abs(z)?eo(2,z):eh.pow(2,z))),Y=!0,a)}(this,a);if("bigint"===A)return a<0?(a=-a,this.s=-1):this.s=1,parseDecimal(this,a.toString());throw Error(ee+a)}if(Decimal.prototype=ef,Decimal.ROUND_UP=0,Decimal.ROUND_DOWN=1,Decimal.ROUND_CEIL=2,Decimal.ROUND_FLOOR=3,Decimal.ROUND_HALF_UP=4,Decimal.ROUND_HALF_DOWN=5,Decimal.ROUND_HALF_EVEN=6,Decimal.ROUND_HALF_CEIL=7,Decimal.ROUND_HALF_FLOOR=8,Decimal.EUCLID=9,Decimal.config=Decimal.set=config,Decimal.clone=clone,Decimal.isDecimal=isDecimalInstance,Decimal.abs=abs,Decimal.acos=acos,Decimal.acosh=acosh,Decimal.add=add,Decimal.asin=asin,Decimal.asinh=asinh,Decimal.atan=atan,Decimal.atanh=atanh,Decimal.atan2=atan2,Decimal.cbrt=cbrt,Decimal.ceil=ceil,Decimal.clamp=clamp,Decimal.cos=cos,Decimal.cosh=cosh,Decimal.div=div,Decimal.exp=exp,Decimal.floor=floor,Decimal.hypot=hypot,Decimal.ln=ln,Decimal.log=log,Decimal.log10=log10,Decimal.log2=log2,Decimal.max=max,Decimal.min=min,Decimal.mod=mod,Decimal.mul=mul,Decimal.pow=pow,Decimal.random=random,Decimal.round=round,Decimal.sign=sign,Decimal.sin=sin,Decimal.sinh=sinh,Decimal.sqrt=sqrt,Decimal.sub=sub,Decimal.sum=sum,Decimal.tan=tan,Decimal.tanh=tanh,Decimal.trunc=trunc,void 0===a&&(a={}),a&&!0!==a.defaults)for(x=0,A=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];x<A.length;)a.hasOwnProperty(w=A[x++])||(a[w]=this[w]);return Decimal.config(a),Decimal}(K);function addItemWithQuantity(a,x,w){if(w<=0)throw Error("cartQuantity can't be zero or less than zero");let A=a.some(a=>a.id===x.id);if(A){let A=a.map(a=>a.id===x.id?{...a,quantity:a.quantity+w,from_prescription:!!a.from_prescription||!!x.from_prescription}:a);return A}return[...a,{...x,quantity:w}]}function removeItemOrQuantity(a,x,w){return a.reduce((a,A)=>{if(A.id===x){let x=A.quantity-w;return x>0?[...a,{...A,quantity:x}]:[...a]}return[...a,A]},[])}function addItem(a,x){return[...a,x]}function getItem(a,x){return a.find(a=>a.id===x)}
51function updateItem(a,x,w){return a.map(a=>a.id===x?{...a,...w}:a)}function removeItem(a,x){return a.filter(a=>a.id!==x)}function inStock(a,x){let w=getItem(a,x);return!!w&&w.quantity<w.stock}W=new eh(W),Z=new eh(Z);let calculateItemTotals=(a,x)=>a.map(a=>{var w;let A=x?getPromotionalPackOrDefaultPrice({item:a,settings:x}):{promotional_pack_applied:!1,value:a.sale_price},k=A.promotional_pack_applied?a.promotional_pack_unit_price:a.sale_price;return{...a,price:a.price,sale_price:a.sale_price,itemTotal:((null===(w=a.pbm_info)||void 0===w?void 0:w.flag)?a.sale_price:k)*a.quantity}}),getPromotionalPackOrDefaultPrice=a=>{let{item:x,settings:w}=a,{price:A}=(0,F.Yo)({settings:w,amount:((null==x?void 0:x.sale_price)||0)*((null==x?void 0:x.quantity)||0)}),{price:k}=(0,F.Yo)({settings:w,amount:((null==x?void 0:x.promotional_pack_unit_price)||0)*((null==x?void 0:x.quantity)||0)});return(null==x?void 0:x.promotional_pack_unit_price)&&(null==x?void 0:x.promotional_pack_quantity)&&(null==x?void 0:x.quantity)&&(null==x?void 0:x.quantity)%x.promotional_pack_quantity==0?{formatted:k,value:x.promotional_pack_unit_price,promotional_pack_applied:!0}:{formatted:A,value:(null==x?void 0:x.sale_price)||0,promotional_pack_applied:!1}},calculateTotal=(a,x)=>a.reduce((a,w)=>{var A;if(null===(A=w.pbm_info)||void 0===A?void 0:A.flag)return a+w.sale_price*w.quantity;let k=getPromotionalPackOrDefaultPrice({settings:x,item:w});return a+w.quantity*k.value},0),calculateTotalItems=a=>a.reduce((a,x)=>a+x.quantity,0),calculateUniqueItems=a=>a.length,calculatePaidTotal=(a,x)=>{let{totalAmount:w,tax:A,shipping_charge:k}=a,F=w+A+k;return x&&(F-=x),F};function formatNumber(a){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,w=Math.pow(10,x);return Math.round(a*w)/w}let getPromotionalPackDetails=a=>{var x,w,A,k,F,V;let B=G()(a),z=null==B?void 0:null===(x=B.characteristics)||void 0===x?void 0:x.find(a=>(null==a?void 0:a.id)===29),$=(null==B?void 0:null===(A=B.product_prices)||void 0===A?void 0:null===(w=A.find(a=>(null==a?void 0:a.price_channel_id)===14))||void 0===w?void 0:w.price)||0,W={...B,promotional_pack_unit_price:$,promotional_pack_quantity:null==z?void 0:null===(k=z.valueJson)||void 0===k?void 0:k.buy,is_promotional_pack:!!z,apply_promotional_pack:!!(z&&B.quantity&&B.quantity%(null==z?void 0:null===(F=z.valueJson)||void 0===F?void 0:F.buy)==0)};return{is_promotional_pack:!!z,apply_promotional_pack:W.apply_promotional_pack,promotional_pack_unit_price:$,promotional_pack_label:null==z?void 0:z.value,promotional_pack_quantity:null==z?void 0:null===(V=z.valueJson)||void 0===V?void 0:V.buy,product:W}},calcAmount=a=>formatNumber(a.reduce((a,x)=>x.sale_price*(x.quantity||1)+a,0)),applyPromotionalPackToOrder=a=>{let x=G()(a),w=G()(a.order_items),A=G()(w).map(a=>{let x=getPromotionalPackDetails(a);return a.is_promotional_pack&&x.product.apply_promotional_pack&&(a.sale_price=a.promotional_pack_unit_price,a.calculated_sale_price=a.promotional_pack_unit_price,a.subtotal=a.promotional_pack_unit_price*a.quantity),a});return x.order_items=A,x},getCouponEligibleMerchandiseSubtotal=(a,x,w)=>(null==x?void 0:x.properties)&&(0,V.j)(x.properties)?a.reduce((a,A)=>{var k,F,B;let z=(null===(k=A.pbm_info)||void 0===k?void 0:k.flag)?A.sale_price:getPromotionalPackOrDefaultPrice({settings:w,item:A}).value;if(!(0,V.K)({sku:A.sku,order_quantity:A.quantity,original_unit_price:z,category_ids:null!==(B=A.category_ids)&&void 0!==B?B:[]},x.properties))return a;if(null===(F=A.pbm_info)||void 0===F?void 0:F.flag)return a+A.sale_price*A.quantity;let G=getPromotionalPackOrDefaultPrice({settings:w,item:A});return a+A.quantity*G.value},0):calculateTotal(a,w),applyCouponToOrder=(a,x)=>{if(!x)return a;let w=(0,V.j)(x.properties),A=a.order_items.map(a=>{var w,A;let k=new eh(a.calculated_sale_price).mul(a.quantity),F=(0,V.K)({sku:a.sku,order_quantity:a.quantity,original_unit_price:null!==(w=a.calculated_sale_price)&&void 0!==w?w:a.sale_price,category_ids:null!==(A=a.category_ids)&&void 0!==A?A:[]},x.properties);return{item:a,total:k,eligible:F}}),k=A.filter(a=>a.eligible).reduce((a,x)=>a.plus(x.total),new eh(0)),F=w?k:new eh(a.amount);switch(x.type){case"fixed":{let w=eh.min(new eh(x.amount),F);a.discount=formatNumber(w.toNumber());break}case"percentage":a.discount=formatNumber(F.mul(x.amount).div(100).toNumber());break;case"free_shipping":a.delivery_fee=0}return A.forEach(A=>{let{item:F,total:V,eligible:B}=A,z=new eh(F.quantity);switch(x.type){case"fixed":{var G;if(!B){F.calculated_sale_price=formatNumber(F.calculated_sale_price),F.subtotal=formatNumber(V.toNumber()),F.discount=0;break}let x=w?k:new eh(a.amount);if(x.isZero()){F.subtotal=formatNumber(V.toNumber()),F.discount=0;break}let A=V.div(x),$=A.mul(null!==(G=a.discount)&&void 0!==G?G:0),W=V.sub($);F.calculated_sale_price=formatNumber(W.div(z).toNumber()),F.subtotal=formatNumber(W.toNumber()),F.discount=formatNumber($.toNumber());break}case"percentage":{if(!B){F.calculated_sale_price=formatNumber(F.calculated_sale_price),F.subtotal=formatNumber(V.toNumber()),F.discount=0;break}
51let a=new eh(F.calculated_sale_price).mul(x.amount).div(100),w=new eh(F.calculated_sale_price).sub(a);F.calculated_sale_price=formatNumber(w.toNumber()),F.subtotal=formatNumber(new eh(F.calculated_sale_price).mul(F.quantity).toNumber()),F.discount=formatNumber(a.toNumber());break}case"free_shipping":F.subtotal=formatNumber(new eh(F.calculated_sale_price).mul(F.quantity).toNumber()),F.discount=0}}),a},formatOutput=a=>{var x,w,A,k;let F={...a,amount:formatNumber(calcAmount(a.order_items)),total:formatNumber(null!==(x=a.total)&&void 0!==x?x:0),paid_total:formatNumber(null!==(w=a.paid_total)&&void 0!==w?w:0),discount:formatNumber(null!==(A=a.discount)&&void 0!==A?A:0),delivery_fee:formatNumber(null!==(k=a.delivery_fee)&&void 0!==k?k:0)};return{...F,order_items:a.order_items.map(a=>{var x,w,A;return{order_quantity:a.quantity,original_unit_price:function(a){var x,w,A,k,F,V;if(null===(x=a.pbm_info)||void 0===x?void 0:x.flag){let x="number"==typeof a.sale_price&&Number.isFinite(a.sale_price)?a.sale_price:"number"==typeof a.calculated_sale_price&&Number.isFinite(a.calculated_sale_price)?a.calculated_sale_price:0;return formatNumber(x)}let z=(0,B.UQ)(null!==(w=a.product_prices)&&void 0!==w?w:[],14),G=(0,B.UQ)(null!==(A=a.product_prices)&&void 0!==A?A:[],1),$=a.is_promotional_pack&&a.promotional_pack_quantity&&a.quantity&&a.quantity%a.promotional_pack_quantity==0;if($&&z){let a=Number(null!==(k=z.sale_price)&&void 0!==k?k:z.price);if(Number.isFinite(a)&&a>0)return formatNumber(a)}if(G){let a=Number(null!==(F=G.sale_price)&&void 0!==F?F:G.price);if(Number.isFinite(a)&&a>0)return formatNumber(a)}return formatNumber(null!==(V=a.sale_price)&&void 0!==V?V:0)}(a),unit_price:formatNumber(null!==(x=a.calculated_sale_price)&&void 0!==x?x:0),subtotal:formatNumber((null!==(w=a.calculated_sale_price)&&void 0!==w?w:0)*(null!==(A=a.quantity)&&void 0!==A?A:1)),product_id:a.product_id,sku:a.sku,...a.from_prescription?{custom_properties:{from_prescription:!0}}:{}}})}}},84279:function(a,x,w){"use strict";w.d(x,{z:function(){return generateCartItem}});var A=w(41609),k=w.n(A),F=w(65301);function generateCartItem(a,x){var w,A;let V=(0,F.Yr)(a).product,B=(null==(A=null!==(w=a.categories)&&void 0!==w?w:V.categories)?void 0:A.length)?A.map(a=>Number(a.id)).filter(a=>Number.isFinite(a)):[],z=(()=>{var a;if(null===(a=V.type_ids)||void 0===a?void 0:a.length)return V.type_ids.map(a=>String(a));let x=V.types_id;if(null==x?void 0:x.length)return x.map(a=>String(a));let w=V.types;return(null==w?void 0:w.length)?w.map(a=>null!=a.id?String(a.id):"").filter(Boolean):null!=V.type_id&&""!==V.type_id?[String(V.type_id)]:void 0})(),G=(()=>{let a=V.types_id;return(null==a?void 0:a.length)?a.map(a=>Number(a)).filter(a=>Number.isFinite(a)):(null==z?void 0:z.length)?z.map(a=>Number(a)).filter(a=>Number.isFinite(a)):void 0})(),{id:$,product_id:W,name:Z,slug:K,image:Y,price:J,sale_price:ee,quantity:et,unit:er,is_digital:en,language:ei,in_flash_sale:eo,shop:ea,type_id:es,sku:el,characteristics:eu=[],product_prices:ec=[],promotional_pack_unit_price:ed,promotional_pack_quantity:ef,is_promotional_pack:ep,cashback_price:eh}=V;if(!k()(x)){let w=!!a.pbm_flag,A=w&&"number"==typeof a.sale_price?a.sale_price:x.sale_price?x.sale_price:x.price;return a.quantity,{id:"".concat($,".").concat(x.id),product_id:W,sku:el,type_id:es,...(null==z?void 0:z.length)?{type_ids:z}:{},...(null==G?void 0:G.length)?{types_id:G}:{},name:"".concat(Z," - ").concat(x.title),slug:K,unit:er,is_digital:null==x?void 0:x.is_digital,stock:x.quantity,price:Number(x.price),sale_price:A,calculated_sale_price:A,image:null==Y?void 0:Y.thumbnail,variationId:x.id,language:ei,in_flash_sale:eo,shop_id:ea.id,product_prices:ec,promotional_pack_unit_price:ed,promotional_pack_quantity:ef,is_promotional_pack:ep,cashback_price:eh,category:V.category,category_ids:B.length?B:void 0,brand:V.manufacturer||V.brand,pbm_info:a.pbm_flag?{flag:!0,sale_price_id:a.pbm_sale_price_id||0,cpf:a.pbm_cpf||"",quantity:a.pbm_quantity||0,program:a.pbm_program&&"object"==typeof a.pbm_program?a.pbm_program:void 0,promotion:a.pbm_promotion}:void 0}}let em=!!a.pbm_flag,eg=em&&"number"==typeof a.sale_price?a.sale_price:"number"==typeof ee?ee:J;return a.quantity,{id:$,name:Z,product_id:W,sku:el,type_id:es,...(null==z?void 0:z.length)?{type_ids:z}:{},...(null==G?void 0:G.length)?{types_id:G}:{},slug:K,unit:er,is_digital:en,image:null==Y?void 0:Y.thumbnail,stock:V.quantity,price:J,sale_price:eg,calculated_sale_price:eg,product_prices:ec,language:ei,in_flash_sale:eo,shop_id:null==ea?void 0:ea.id,characteristics:eu,promotional_pack_unit_price:ed,promotional_pack_quantity:ef,is_promotional_pack:ep,cashback_price:eh,category:V.category,category_ids:B.length?B:void 0,brand:V.manufacturer||V.brand,pbm_info:a.pbm_flag?{flag:!0,sale_price_id:a.pbm_sale_price_id||0,cpf:a.pbm_cpf||"",quantity:a.pbm_quantity||0,program:a.pbm_program&&"object"==typeof a.pbm_program?a.pbm_program:void 0,promotion:a.pbm_promotion}:void 0}}},84041:function(a,x,w){"use strict";w.d(x,{L:function(){return k}});var A=w(15103);let k=(0,A.cn)({display:!1,view:"",data:null})},10265:function(a,x,w){"use strict";var A,k,F,V,B,z,G,$,W,Z,K,Y,J,ee,et,er,en,ei,eo,ea,es,el,eu,ec;w.d(x,{$i:function(){return A},CZ:function(){return W},HI:function(){return $},HY:function(){return B},bG:function(){return G},iF:function(){return z},jc:function(){return k},mr:function(){return V},nT:function(){return F}}),(J=A||(A={})).FIXED="fixed",J.PERCENTAGE="percentage",J.FREE_SHIPPING="free_shipping",(ee=k||(k={})).USER="user",ee.RELATIVE="relative",(et=F||(F={})).PHYSIC="physic",et.DIGITAL="digital",(er=V||(V={}))[er.ORDER=1]="ORDER",er[er.RECHARGE=2]="RECHARGE",(en=B||(B={})).STRIPE="STRIPE",en.COD="CASH_ON_DELIVERY",en.CASH="CASH",en.FULL_WALLET_PAYMENT="FULL_WALLET_PAYMENT",en.PAYPAL="PAYPAL",en.MOLLIE="MOLLIE",en.RAZORPAY="RAZORPAY",en.SSLCOMMERZ="SSLCOMMERZ",en.PAYSTACK="PAYSTACK",en.PAYMONGO="PAYMONGO",en.XENDIT="XENDIT",en.IYZICO="IYZICO",en.BKASH="BKASH",en.FLUTTERWAVE="FLUTTERWAVE",en.PIX="PIX",en.CREDIT_CARD="CREDIT_CARD",en.PICPAY="PICPAY",en.MERCADO_PAGO="MERCADO_PAGO",en.BITCOIN="BITCOIN",(ei=z||(z={})).PENDING="order-pending",ei.PROCESSING="order-processing",ei.COMPLETED="order-completed",ei.CANCELLED="order-cancelled",ei.REFUNDED="order-refunded",ei.FAILED="order-failed",ei.AT_LOCAL_FACILITY="order-at-local-facility",ei.OUT_FOR_DELIVERY="order-out-for-delivery",(eo=G||(G={})).PENDING="payment-pending",eo.PROCESSING="payment-processing",eo.SUCCESS="payment-success",eo.FAILED="payment-failed",eo.REVERSAL="payment-reversal",eo.REFUNDED="payment-refunded",eo.COD="cash-on-delivery",eo.AWAITING_FOR_APPROVAL="payment-awaiting-for-approval",(ea=$||($={})).APPROVED="Approved",ea.PENDING="Pending",ea.REJECTED="Rejected",ea.PROCESSING="Processing",(es=W||(W={}))[es.DigitalOnly=1]="DigitalOnly",es[es.DigitalAndFisic=2]="DigitalAndFisic",(el=Z||(Z={})).High="high",el.Medium="medium",el.Low="low",(eu=K||(K={})).Simple="simple",eu.Variable="variable",(ec=Y||(Y={})).Percentage="percentage",ec.FixedRate="fixed_rate"},85251:function(){},27967:function(){},75130:function(){},43763:function(){},72344:function(){},16088:function(a){a.exports={style:{fontFamily:"'__ubuntu_2b9ca7', '__ubuntu_Fallback_2b9ca7'"},className:"__className_2b9ca7",variable:"__variable_2b9ca7"}},77663:function(a){!function(){var x={229:function(a){var x,w,A,k=a.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(a){if(x===setTimeout)return setTimeout(a,0);if((x===defaultSetTimout||!x)&&setTimeout)return x=setTimeout,setTimeout(a,0);try{return x(a,0)}catch(w){try{return x.call(null,a,0)}catch(w){return x.call(this,a,0)}}}!function(){try{x="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(a){x=defaultSetTimout}try{w="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(a){w=defaultClearTimeout}}();var F=[],V=!1,B=-1;function cleanUpNextTick(){V&&A&&(V=!1,A.length?F=A.concat(F):B=-1,F.length&&drainQueue())}function drainQueue(){if(!V){var a=runTimeout(cleanUpNextTick);V=!0;for(var x=F.length;x;){for(A=F,F=[];++B<x;)A&&A[B].run();B=-1,x=F.length}
51A=null,V=!1,function(a){if(w===clearTimeout)return clearTimeout(a);if((w===defaultClearTimeout||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(a);try{w(a)}catch(x){try{return w.call(null,a)}catch(x){return w.call(this,a)}}}(a)}}function Item(a,x){this.fun=a,this.array=x}function noop(){}k.nextTick=function(a){var x=Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)x[w-1]=arguments[w];F.push(new Item(a,x)),1!==F.length||V||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},k.title="browser",k.browser=!0,k.env={},k.argv=[],k.version="",k.versions={},k.on=noop,k.addListener=noop,k.once=noop,k.off=noop,k.removeListener=noop,k.removeAllListeners=noop,k.emit=noop,k.prependListener=noop,k.prependOnceListener=noop,k.listeners=function(a){return[]},k.binding=function(a){throw Error("process.binding is not supported")},k.cwd=function(){return"/"},k.chdir=function(a){throw Error("process.chdir is not supported")},k.umask=function(){return 0}}},w={};function __nccwpck_require__(a){var A=w[a];if(void 0!==A)return A.exports;var k=w[a]={exports:{}},F=!0;try{x[a](k,k.exports,__nccwpck_require__),F=!1}finally{F&&delete w[a]}return k.exports}__nccwpck_require__.ab="//";var A=__nccwpck_require__(229);a.exports=A}()},5152:function(a,x,w){a.exports=w(1342)},9008:function(a,x,w){a.exports=w(79201)},25675:function(a,x,w){a.exports=w(645)},41664:function(a,x,w){a.exports=w(65170)},11163:function(a,x,w){a.exports=w(59974)},4298:function(a,x,w){a.exports=w(85354)},92703:function(a,x,w){"use strict";var A=w(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,a.exports=function(){function shim(a,x,w,k,F,V){if(V!==A){var B=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}}function getShim(){return shim}shim.isRequired=shim;var a={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return a.PropTypes=a,a}},45697:function(a,x,w){a.exports=w(92703)()},50414:function(a){"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55760:function(a){"use strict";function Cache(a){this._maxSize=a,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Cache.prototype.get=function(a){return this._values[a]},Cache.prototype.set=function(a,x){return this._size>=this._maxSize&&this.clear(),!(a in this._values)&&this._size++,this._values[a]=x};var x=/[^.^\]^[]+|(?=\[\]|\.\.)/g,w=/^\d+$/,A=/^\d/,k=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,F=/^\s*(['"]?)(.*?)(\1)\s*$/,V=new Cache(512),B=new Cache(512),z=new Cache(512);function normalizePath(a){return V.get(a)||V.set(a,split(a).map(function(a){return a.replace(F,"$2")}))}function split(a){return a.match(x)||[""]}function isQuoted(a){return"string"==typeof a&&a&&-1!==["'",'"'].indexOf(a.charAt(0))}a.exports={Cache:Cache,split:split,normalizePath:normalizePath,setter:function(a){var x=normalizePath(a);return B.get(a)||B.set(a,function(a,w){for(var A=0,k=x.length,F=a;A<k-1;){var V=x[A];if("__proto__"===V||"constructor"===V||"prototype"===V)return a;F=F[x[A++]]}F[x[A]]=w})},getter:function(a,x){var w=normalizePath(a);return z.get(a)||z.set(a,function(a){for(var A=0,k=w.length;A<k;){if(null==a&&x)return;a=a[w[A++]]}return a})},join:function(a){return a.reduce(function(a,x){return a+(isQuoted(x)||w.test(x)?"["+x+"]":(a?".":"")+x)},"")},forEach:function(a,x,F){!function(a,x,F){var V,B,z,G,$,W=a.length;for(z=0;z<W;z++){(B=a[z])&&(!isQuoted(V=B)&&(V.match(A)&&!V.match(w)||k.test(V))&&(B='"'+B+'"'),G=!($=isQuoted(B))&&/^\d+$/.test(B),x.call(F,B,$,G,z,a))}}(Array.isArray(a)?a:split(a),x,F)}}},98130:function(a,x,w){"use strict";var A=w(67294),k=w(45697);function _classCallCheck(a,x){if(!(a instanceof x))throw TypeError("Cannot call a class as a function")}function _defineProperties(a,x){for(var w=0;w<x.length;w++){var A=x[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(a,A.key,A)}}function _createClass(a,x,w){return x&&_defineProperties(a.prototype,x),w&&_defineProperties(a,w),a}function _inherits(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(x&&x.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),x&&_setPrototypeOf(a,x)}function _getPrototypeOf(a){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}function _setPrototypeOf(a,x){return(_setPrototypeOf=Object.setPrototypeOf||function(a,x){return a.__proto__=x,a})(a,x)}function _createSuper(a){var x=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}();return function(){var w,A,k=_getPrototypeOf(a);if(x){var F=_getPrototypeOf(this).constructor;A=Reflect.construct(k,arguments,F)}else A=k.apply(this,arguments);return(w=A)&&("object"==typeof w||"function"==typeof w)?w:function(a){if
51(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(this)}}function _arrayLikeToArray(a,x){(null==x||x>a.length)&&(x=a.length);for(var w=0,A=Array(x);w<x;w++)A[w]=a[w];return A}function zeroPad(a){var x,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,A=String(a);if(0===w)return A;var k=A.match(/(.*?)([0-9]+)(.*)/),F=k?k[1]:"",V=k?k[3]:"",B=k?k[2]:A,z=B.length>=w?B:(((function(a){if(Array.isArray(a))return _arrayLikeToArray(a)})(x=Array(w))||function(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}(x)||function(a,x){if(a){if("string"==typeof a)return _arrayLikeToArray(a,x);var w=Object.prototype.toString.call(a).slice(8,-1);if("Object"===w&&a.constructor&&(w=a.constructor.name),"Map"===w||"Set"===w)return Array.from(a);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(a,x)}}(x)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(){return"0"}).join("")+B).slice(-1*w);return"".concat(F).concat(z).concat(V)}var F={daysInHours:!1,zeroPadTime:2},V=function(a){_inherits(Countdown,a);var x=_createSuper(Countdown);function Countdown(){var a;return _classCallCheck(this,Countdown),a=x.apply(this,arguments),a.state={count:a.props.count||3},a.startCountdown=function(){a.interval=window.setInterval(function(){0==a.state.count-1?(a.stopCountdown(),a.props.onComplete&&a.props.onComplete()):a.setState(function(a){return{count:a.count-1}})},1e3)},a.stopCountdown=function(){clearInterval(a.interval)},a.addTime=function(x){a.stopCountdown(),a.setState(function(a){return{count:a.count+x}},a.startCountdown)},a}return _createClass(Countdown,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,A.cloneElement)(this.props.children,{count:this.state.count}):null}}]),Countdown}(A.Component);V.propTypes={count:k.number,children:k.element,onComplete:k.func};var B=function(a){_inherits(Countdown$1,a);var x=_createSuper(Countdown$1);function Countdown$1(a){var w;if(_classCallCheck(this,Countdown$1),(w=x.call(this,a)).mounted=!1,w.initialTimestamp=w.calcOffsetStartTimestamp(),w.offsetStartTimestamp=w.props.autoStart?0:w.initialTimestamp,w.offsetTime=0,w.legacyMode=!1,w.legacyCountdownRef=null,w.tick=function(){var a=w.calcTimeDelta(),x=a.completed&&!w.props.overtime?void 0:w.props.onTick;w.setTimeDeltaState(a,void 0,x)},w.setLegacyCountdownRef=function(a){w.legacyCountdownRef=a},w.start=function(){if(!w.isStarted()){var a=w.offsetStartTimestamp;w.offsetStartTimestamp=0,w.offsetTime+=a?w.calcOffsetStartTimestamp()-a:0;var x=w.calcTimeDelta();w.setTimeDeltaState(x,"STARTED",w.props.onStart),w.props.controlled||x.completed&&!w.props.overtime||(w.clearTimer(),w.interval=window.setInterval(w.tick,w.props.intervalDelay))}},w.pause=function(){w.isPaused()||(w.clearTimer(),w.offsetStartTimestamp=w.calcOffsetStartTimestamp(),w.setTimeDeltaState(w.state.timeDelta,"PAUSED",w.props.onPause))},w.stop=function(){w.isStopped()||(w.clearTimer(),w.offsetStartTimestamp=w.calcOffsetStartTimestamp(),w.offsetTime=w.offsetStartTimestamp-w.initialTimestamp,w.setTimeDeltaState(w.calcTimeDelta(),"STOPPED",w.props.onStop))},w.isStarted=function(){return w.isStatus("STARTED")},w.isPaused=function(){return w.isStatus("PAUSED")},w.isStopped=function(){return w.isStatus("STOPPED")},w.isCompleted=function(){return w.isStatus("COMPLETED")},a.date){var A=w.calcTimeDelta();w.state={timeDelta:A,status:A.completed?"COMPLETED":"STOPPED"}}else w.legacyMode=!0;return w}return _createClass(Countdown$1,[{key:"componentDidMount",value:function(){!this.legacyMode&&(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(a){this.legacyMode||this.props.date===a.date||(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var a=this.props,x=a.date,w=a.now,A=a.precision,k=a.controlled,F=a.overtime;return function(a){var x,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=w.now,k=void 0===A?Date.now:A,F=w.precision,V=w.controlled,B=w.offsetTime,z=w.overt
51ime;x="string"==typeof a?new Date(a).getTime():a instanceof Date?a.getTime():a,V||(x+=void 0===B?0:B);var G=V?x:x-k(),$=Math.round(1e3*parseFloat(((z?G:Math.max(0,G))/1e3).toFixed(Math.min(20,Math.max(0,void 0===F?0:F))))),W=Math.abs($)/1e3;return{total:$,days:Math.floor(W/86400),hours:Math.floor(W/3600%24),minutes:Math.floor(W/60%60),seconds:Math.floor(W%60),milliseconds:Number((W%1*1e3).toFixed()),completed:$<=0}}(x,{now:w,precision:A,controlled:k,offsetTime:this.offsetTime,overtime:F})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(a){this.legacyCountdownRef.addTime(a)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(a){return this.state.status===a}},{key:"setTimeDeltaState",value:function(a,x,w){var A=this;if(this.mounted){var k=a.completed&&!this.state.timeDelta.completed,F=a.completed&&"STARTED"===x;return k&&!this.props.overtime&&this.clearTimer(),this.setState(function(w){var k=x||w.status;return a.completed&&!A.props.overtime?k="COMPLETED":x||"COMPLETED"!==k||(k="STOPPED"),{timeDelta:a,status:k}},function(){w&&w(A.state.timeDelta),A.props.onComplete&&(k||F)&&A.props.onComplete(a,F)})}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var a,x,w,A,k,V,B,z,G,$,W,Z=this.props,K=Z.daysInHours,Y=Z.zeroPadTime,J=Z.zeroPadDays,ee=this.state.timeDelta;return Object.assign(Object.assign({},ee),{api:this.getApi(),props:this.props,formatted:(a=ee.days,x=ee.hours,w=ee.minutes,A=ee.seconds,V=(k=Object.assign(Object.assign({},F),{daysInHours:K,zeroPadTime:Y,zeroPadDays:J})).daysInHours,B=k.zeroPadTime,G=void 0===(z=k.zeroPadDays)?B:z,$=Math.min(2,B),W=V?zeroPad(x+24*a,B):zeroPad(x,$),{days:V?"":zeroPad(a,G),hours:W,minutes:zeroPad(w,$),seconds:zeroPad(A,$)})})}},{key:"render",value:function(){if(this.legacyMode){var a=this.props,x=a.count,w=a.children,k=a.onComplete;return(0,A.createElement)(V,{ref:this.setLegacyCountdownRef,count:x,onComplete:k},w)}var F=this.props,B=F.className,z=F.overtime,G=F.children,$=F.renderer,W=this.getRenderProps();if($)return $(W);if(G&&this.state.timeDelta.completed&&!z)return(0,A.cloneElement)(G,{countdown:W});var Z=W.formatted,K=Z.days,Y=Z.hours,J=Z.minutes,ee=Z.seconds;return(0,A.createElement)("span",{className:B},W.total<0?"-":"",K,K?":":"",Y,":",J,":",ee)}}]),Countdown$1}(A.Component);B.defaultProps=Object.assign(Object.assign({},F),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),B.propTypes={date:(0,k.oneOfType)([(0,k.instanceOf)(Date),k.string,k.number]),daysInHours:k.bool,zeroPadTime:k.number,zeroPadDays:k.number,controlled:k.bool,intervalDelay:k.number,precision:k.number,autoStart:k.bool,overtime:k.bool,className:k.string,children:k.element,renderer:k.func,now:k.func,onMount:k.func,onStart:k.func,onPause:k.func,onStop:k.func,onTick:k.func,onComplete:k.func},x.ZP=B},85518:function(a,x,w){"use strict";var A,k,F,V,B,z,G=w(67294);G&&"object"==typeof G&&"default"in G&&G.default;var $=w(60335),W=new $,Z=W.getBrowser(),K=W.getCPU(),Y=W.getDevice(),J=W.getEngine(),ee=W.getO
51S(),et=W.getUA(),er={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},en={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},setDefaults=function(a){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return a||x},getNavigatorInstance=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},isIOS13Check=function(a){var x=getNavigatorInstance();return x&&x.platform&&(-1!==x.platform.indexOf(a)||"MacIntel"===x.platform&&x.maxTouchPoints>1&&!window.MSStream)},isBrowserType=function(a){return a.type===er.Browser},isEdgeType=function(a){return a.name===en.Edge},isEdgeChromiumType=function(a){return"string"==typeof a&&-1!==a.indexOf("Edg/")},getIPad13=function(){return isIOS13Check("iPad")};Y.type,er.SmartTv,Y.type,er.Console,Y.type,er.Wearable,Y.type,er.Embedded,Z.name===en.MobileSafari||getIPad13(),Z.name,en.Chromium;var ei=(A=Y.type)===er.Mobile||A===er.Tablet||getIPad13();Y.type,er.Mobile,Y.type===er.Tablet||getIPad13(),isBrowserType(Y),isBrowserType(Y),ee.name,ee.name,"iOS"===ee.name||getIPad13(),Z.name,en.Chrome,Z.name,en.Firefox,(k=Z.name)===en.Safari||en.MobileSafari,Z.name,en.Opera,(F=Z.name)===en.InternetExplorer||en.Ie,setDefaults(ee.version),setDefaults(ee.name),setDefaults(Z.version),setDefaults(Z.major),setDefaults(Z.name),setDefaults(Y.vendor),setDefaults(Y.model),setDefaults(J.name),setDefaults(J.version),setDefaults(et),isEdgeType(Z)||isEdgeChromiumType(et),Z.name,en.Yandex,setDefaults(Y.type,"browser"),(V=getNavigatorInstance())&&(/iPad|iPhone|iPod/.test(V.platform)||"MacIntel"===V.platform&&V.maxTouchPoints>1)&&window.MSStream,getIPad13(),isIOS13Check("iPhone"),isIOS13Check("iPod"),"string"==typeof(z=(B=getNavigatorInstance())&&B.userAgent&&B.userAgent.toLowerCase())&&/electron/.test(z),isEdgeChromiumType(et),isEdgeType(Z)&&isEdgeChromiumType(et),ee.name,ee.name,Z.name,en.MIUI,Z.name,en.SamsungBrowser,x.tq=ei},60335:function(a,x,w){var A;!function(k,F){"use strict";var V="function",B="undefined",z="object",G="string",$="major",W="model",Z="name",K="type",Y="vendor",J="version",ee="architecture",et="console",er="mobile",en="tablet",ei="smarttv",eo="wearable",ea="embedded",es="Amazon",el="Apple",eu="ASUS",ec="BlackBerry",ed="Browser",ef="Chrome",ep="Firefox",eh="Google",em="Huawei",eg="Microsoft",ev="Motorola",ey="Opera",eb="Samsung",e_="Sharp",ex="Sony",ew="Xiaomi",eS="Zebra",eE="Facebook",eA="Chromium OS",eC="Mac OS",eT=" Browser",extend=function(a,x){var w={};for(var A in a)x[A]&&x[A].length%2==0?w[A]=x[A].concat(a[A]):w[A]=a[A];return w},enumerize=function(a){for(var x={},w=0;w<a.length;w++)x[a[w].toUpperCase()]=a[w];return x},has=function(a,x){return typeof a===G&&-1!==lowerize(x).indexOf(lowerize(a))},lowerize=function(a){return a.toLowerCase()},trim=function(a,x){if(typeof a===G)return a=a.replace(/^\s\s*/,""),typeof x===B?a:a.substring(0,500)},rgxMapper=function(a,x){for(var w,A,k,B,G,$,W=0;W<x.length&&!G;){var Z=x[W],K=x[W+1];for(w=A=0;w<Z.length&&!G&&Z[w];)if(G=Z[w++].exec(a))for(k=0;k<K.length;k++)$=G[++A],typeof(B=K[k])===z&&B.length>0?2===B.length?typeof B[1]==V?this[B[0]]=B[1].call(this,$):this[B[0]]=B[1]:3===B.length?typeof B[1]!==V||B[1].exec&&B[1].test?this[B[0]]=$?$.replace(B[1],B[2]):F:this[B[0]]=$?B[1].call(this,$,B[2]):F:4===B.length&&(this[B[0]]=$?B[3].call(this,$.replace(B[1],B[2])):F):this[B]=$||F;W+=2}},strMapper=function(a,x){for(var w in x)if(typeof x[w]===z&&x[w].length>0){for(var A=0;A<x[w].length;A++)if(has(x[w][A],a))return"?"===w?F:w}else if(has(x[w],a))return"?"===w?F:w;return x.hasOwnProperty("*")?x["*"]:a},eO={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},eP={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[Z,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[Z,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Z,J],[/opios[\/ ]+([\w\.]+)/i],[J,[Z,ey+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[Z,ey+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[Z,ey]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[Z,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[Z,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[Z,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[Z,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[Z,"UC"+ed]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[Z,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[Z,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[Z,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[Z,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[Z,"Smart Lenovo "+ed]],[/(avast|avg)\/([\w\.]+)/i],[[Z,/(.+)/,"$1 Secure "+ed],J],[/\bfocus\/([\w\.]+)/i],[J,[Z,ep+" Focus"]],[/\bopt\/([\w\.]+)/i],[J,[Z,ey+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[Z,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[Z,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[Z,ey+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[Z,"MIUI "+ed]],[/fxios\/([-\w\.]+)/i],[J,[Z,ep]],[/\bqihu|(qi?ho?o?|360)browser/i],[[Z,"360"+eT]],[/\b(qq)\/([\w\.]+)/i],[[Z,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Z,/(.+)/,"$1"+eT],J],[/samsungbrowser\/([\w\.]+)/i],[J,[Z,eb+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[Z,/_/g," "],J],[/metasr[\/ ]?([\d\.]+)/i],[J,[Z,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Z,"Sogou Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[Z,J],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[Z],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Z,eE],J],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[Z,J],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[Z,"GSA"]],[/musical_ly(?:.
vendor: 5,797 bytes, line 51
51+app_?version\/|_)([\w\.]+)/i],[J,[Z,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[Z,ef+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Z,ef+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[Z,"Android "+ed]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Z,J],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[J,[Z,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[J,Z],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Z,[J,strMapper,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[Z,J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Z,"Netscape"],J],[/(wolvic)\/([\w\.]+)/i],[Z,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[Z,ep+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[Z,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Z,[J,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ee,"amd64"]],[/(ia32(?=;))/i],[[ee,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[ee,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ee,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ee,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ee,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ee,/ower/,"",lowerize]],[/(sun4\w)[;\)]/i],[[ee,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ee,lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[W,[Y,eb],[K,en]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[W,[Y,eb],[K,er]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[W,[Y,el],[K,er]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[W,[Y,el],[K,en]],[/(macintosh);/i],[W,[Y,el]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[W,[Y,e_],[K,er]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[W,[Y,em],[K,en]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[W,[Y,em],[K,er]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[W,/_/g," "],[Y,ew],[K,er]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[W,/_/g," "],[Y,ew],[K,en]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[W,[Y,"OPPO"],[K,er]],[/\b(opd2\d{3}a?) bui/i],[W,[Y,"OPPO"],[K,en]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[W,[Y,"Vivo"],[K,er]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[W,[Y,"Realme"],[K,er]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[W,[Y,ev],[K,er]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[W,[Y,ev],[K,en]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[W,[Y,"LG"],[K,en]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[W,[Y,"LG"],[K,er]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[W,[Y,"Lenovo"],[K,en]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[W,/_/g," "],[Y,"Nokia"],[K,er]],[/(pixel c)\b/i],[W,[Y,eh],[K,en]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[W,[Y,eh],[K,er]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[W,[Y,ex],[K,er]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[W,"Xperia Tablet"],[Y,ex],[K,en]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[W,[Y,"OnePlus"],[K,er]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[W,[Y,es],[K,en]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[W,/(.+)/g,"Fire Phone $1"],[Y,es],[K,er]],[/(playbook);[-\w\),; ]+(rim)/i],[W,Y,[K,en]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[W,[Y,ec],[K,er]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[W,[Y,eu],[K,en]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[W,[Y,eu],[K,er]],[/(nexus 9)/i],[W,[Y,"HTC"],[K,en]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[Y,[W,/_/g," "],[K,er]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[W,[Y,"TCL"],[K,en]],[/(itel) ((\w+))/i],[[Y,lowerize],W,[K,strMapper,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[W,[Y,"Acer"],[K,en]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[W,[Y,"Meizu"],[K,er]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[W,[Y,"Ulefone"],[K,er]],[/droid.+; (a(?:015|06[35]|142p?))/i],[W,[Y,"Nothing"],[K,er]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
51s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[Y,W,[K,er]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[Y,W,[K,en]],[/(surface duo)/i],[W,[Y,eg],[K,en]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[W,[Y,"Fairphone"],[K,er]],[/(u304aa)/i],[W,[Y,"AT&T"],[K,er]],[/\bsie-(\w*)/i],[W,[Y,"Siemens"],[K,er]],[/\b(rct\w+) b/i],[W,[Y,"RCA"],[K,en]],[/\b(venue[\d ]{2,7}) b/i],[W,[Y,"Dell"],[K,en]],[/\b(q(?:mv|ta)\w+) b/i],[W,[Y,"Verizon"],[K,en]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[W,[Y,"Barnes & Noble"],[K,en]],[/\b(tm\d{3}\w+) b/i],[W,[Y,"NuVision"],[K,en]],[/\b(k88) b/i],[W,[Y,"ZTE"],[K,en]],[/\b(nx\d{3}j) b/i],[W,[Y,"ZTE"],[K,er]],[/\b(gen\d{3}) b.+49h/i],[W,[Y,"Swiss"],[K,er]],[/\b(zur\d{3}) b/i],[W,[Y,"Swiss"],[K,en]],[/\b((zeki)?tb.*\b) b/i],[W,[Y,"Zeki"],[K,en]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[Y,"Dragon Touch"],W,[K,en]],[/\b(ns-?\w{0,9}) b/i],[W,[Y,"Insignia"],[K,en]],[/\b((nxa|next)-?\w{0,9}) b/i],[W,[Y,"NextBook"],[K,en]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[Y,"Voice"],W,[K,er]],[/\b(lvtel\-)?(v1[12]) b/i],[[Y,"LvTel"],W,[K,er]],[/\b(ph-1) /i],[W,[Y,"Essential"],[K,er]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[W,[Y,"Envizen"],[K,en]],[/\b(trio[-\w\. ]+) b/i],[W,[Y,"MachSpeed"],[K,en]],[/\btu_(1491) b/i],[W,[Y,"Rotor"],[K,en]],[/(shield[\w ]+) b/i],[W,[Y,"Nvidia"],[K,en]],[/(sprint) (\w+)/i],[Y,W,[K,er]],[/(kin\.[onetw]{3})/i],[[W,/\./g," "],[Y,eg],[K,er]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[W,[Y,eS],[K,en]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[W,[Y,eS],[K,er]],[/smart-tv.+(samsung)/i],[Y,[K,ei]],[/hbbtv.+maple;(\d+)/i],[[W,/^/,"SmartTV"],[Y,eb],[K,ei]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[Y,"LG"],[K,ei]],[/(apple) ?tv/i],[Y,[W,el+" TV"],[K,ei]],[/crkey/i],[[W,ef+"cast"],[Y,eh],[K,ei]],[/droid.+aft(\w+)( bui|\))/i],[W,[Y,es],[K,ei]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[W,[Y,e_],[K,ei]],[/(bravia[\w ]+)( bui|\))/i],[W,[Y,ex],[K,ei]],[/(mitv-\w{5}) bui/i],[W,[Y,ew],[K,ei]],[/Hbbtv.*(technisat) (.*);/i],[Y,W,[K,ei]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[Y,trim],[W,trim],[K,ei]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[K,ei]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[Y,W,[K,et]],[/droid.+; (shield) bui/i],[W,[Y,"Nvidia"],[K,et]],[/(playstation [345portablevi]+)/i],[W,[Y,ex],[K,et]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[W,[Y,eg],[K,et]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[W,[Y,eb],[K,eo]],[/((pebble))app/i],[Y,W,[K,eo]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[W,[Y,el],[K,eo]],[/droid.+; (glass) \d/i],[W,[Y,eh],[K,eo]],[/droid.+; (wt63?0{2,3})\)/i],[W,[Y,eS],[K,eo]],[/(quest( \d| pro)?)/i],[W,[Y,eE],[K,eo]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[Y,[K,ea]],[/(aeobc)\b/i],[W,[Y,es],[K,ea]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[W,[K,er]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[W,[K,en]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[K,en]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[K,er]],[/(android[-\w\. ]{0,9});.+buil/i],[W,[Y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[Z,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[Z,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Z,J],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,Z]],os:[[/microsoft (windows) (vista|xp)/i],[Z,J],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[Z,[J,strMapper,eO]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[J,strMapper,eO],[Z,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[Z,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Z,eC],[J,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[J,Z],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[Z,J],[/\(bb(10);/i],[J,[Z,ec]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[J,[Z,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[J,[Z,ep+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[J,[Z,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[J,[Z,"watchOS"]],[/crkey\/([\d\.]+)/i],[J,[Z,ef+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Z,eA],J],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[Z,J],[/(sunos) ?([\w\.\d]*)/i],[[Z,"Solaris"],J],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Z,J]]},UAParser=function(a,x){if(typeof a===z&&(x=a,a=F),!(this instanceof UAParser))return new UAParser(a,x).getResult();var w=typeof k!==B&&k.navigator?k.navigator:F,A=a||(w&&w.userAgent?w.userAgent:""),et=w&&w.userAgentData?w.userAgentData:F,ei=x?extend(eP,x):eP,eo=w&&w.userAgent==A;return this.getBrowser=function(){var a,x={};return x[Z]=F,x[J]=F,rgxMapper.call(x,A,ei.browser),x[$]=typeof(a=x[J])===G?a.replace(/[^\d\.]/g,"").split(".")[0]:F,eo&&w&&w.brave&&typeof w.brave.isBrave==V&&(x[Z]="Brave"),x},this.getCPU=function(){var a={};return a[ee]=F,rgxMapper.call(a,A,ei.cpu),a},this.getDevice=function(){var a={};return a[Y]=F,a[W]=F,a[K]=F,rgxMapper.call(a,A,ei.device),eo&&!a[K]&&et&&et.mobile&&(a[K]=er),eo&&"Macintosh"==a[W]&&w&&typeof w.standalone!==B&&w.maxTouchPoints&&w.maxTouchPoints>2&&(a[W]="iPad",a[K]=en),a},this.getEngine=function(){var a={};return a[Z]=F,a[J]=F,rgxMapper.call(a,A,ei.engine),a},this.getOS=function(){var a={};return a[Z]=F,a[J]=F,rgxMapper.call(a,A,ei.os),eo&&!a[Z]&&et&&et.platform&&"Unknown"!=et.platform&&(a[Z]=et.platform.replace(/chrome os/i,eA).replace(/macos/i,eC)),a},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(a){return A=typeof a===G&&a.length>500?trim(a,500):a,this},this.setUA(A),this};UAParser.VERSION="1.0.39",UAParser.BROWSER=enumerize([Z,J,$]),UAParser.CPU=enumerize([ee]),UAParser.DEVICE=enumerize([W,Y,K,et,er,ei,en,eo,ea]),UAParser.ENGINE=UAParser.OS=enumerize([Z,J]),typeof x!==B?(a.exports&&(x=a.exports=UAParser),x.UAParser=UAParser):w.amdO?F!==(A=(function(){return UAParser}).call(x,w,x,a))&&(a.exports=A):typeof k!==B&&(k.UAParser=UAParser);var eR=typeof k!==B&&(k.jQuery||k.Zepto);if(eR&&!eR.ua){var ek=new UAParser;eR.ua=ek.getResult(),eR.ua.get=function(){return ek.getUA()},eR.ua.set=function(a){ek.setUA(a);var x=ek.getResult();for(var w in x)eR.ua[w]=x[w]}}}("object"==typeof window?window:this)},20938:function(a){a.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},59852:function(a,x,w){"use strict";w.d(x,{j:function(){return V}});var A=w(94578),k=w(52943),F=w(52288),V=new(function(a){function FocusManager(){var x;return(x=a.call(this)||this).setup=function(a){var x;if(!F.sk&&(null==(x=window)?void 0:x.addEventListener)){var listener=function(){return a()};return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),function(){window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}},x}(0,A.Z)(FocusManager,a);var x=FocusManager.prototype;return x.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},x.onUnsubscribe=function(){if(!this.hasListeners()){var a;null==(a=this.cleanup)||a.call(this),this.cleanup=void 0}},x.setEventListener=function(a){var x,w=this;this.setup=a,null==(x=this.cleanup)||x.call(this),this.cleanup=a(function(a){"boolean"==typeof a?w.setFocused(a):w.onFocus()})},x.setFocused=function(a){this.focused=a,a&&this.onFocus()}
51,x.onFocus=function(){this.listeners.forEach(function(a){a()})},x.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},FocusManager}(k.l))},46747:function(a,x,w){"use strict";w.d(x,{QueryClient:function(){return A.S}});var A=w(61284),k=w(86755);w.o(k,"Hydrate")&&w.d(x,{Hydrate:function(){return k.Hydrate}}),w.o(k,"QueryClientProvider")&&w.d(x,{QueryClientProvider:function(){return k.QueryClientProvider}}),w.o(k,"useInfiniteQuery")&&w.d(x,{useInfiniteQuery:function(){return k.useInfiniteQuery}}),w.o(k,"useMutation")&&w.d(x,{useMutation:function(){return k.useMutation}}),w.o(k,"useQueries")&&w.d(x,{useQueries:function(){return k.useQueries}}),w.o(k,"useQuery")&&w.d(x,{useQuery:function(){return k.useQuery}}),w.o(k,"useQueryClient")&&w.d(x,{useQueryClient:function(){return k.useQueryClient}})},36997:function(a,x,w){"use strict";w.d(x,{Gm:function(){return infiniteQueryBehavior},Qy:function(){return hasNextPage},ZF:function(){return hasPreviousPage}});var A=w(21216),k=w(52288);function infiniteQueryBehavior(){return{onFetch:function(a){a.fetchFn=function(){var x,w,F,V,B,z,G,$=null==(x=a.fetchOptions)?void 0:null==(w=x.meta)?void 0:w.refetchPage,W=null==(F=a.fetchOptions)?void 0:null==(V=F.meta)?void 0:V.fetchMore,Z=null==W?void 0:W.pageParam,K=(null==W?void 0:W.direction)==="forward",Y=(null==W?void 0:W.direction)==="backward",J=(null==(B=a.state.data)?void 0:B.pages)||[],ee=(null==(z=a.state.data)?void 0:z.pageParams)||[],et=(0,k.G9)(),er=null==et?void 0:et.signal,en=ee,ei=!1,eo=a.options.queryFn||function(){return Promise.reject("Missing queryFn")},buildNewPages=function(a,x,w,A){return en=A?[x].concat(en):[].concat(en,[x]),A?[w].concat(a):[].concat(a,[w])},fetchPage=function(x,w,k,F){if(ei)return Promise.reject("Cancelled");if(void 0===k&&!w&&x.length)return Promise.resolve(x);var V=eo({queryKey:a.queryKey,signal:er,pageParam:k,meta:a.meta}),B=Promise.resolve(V).then(function(a){return buildNewPages(x,k,a,F)});return(0,A.LE)(V)&&(B.cancel=V.cancel),B};if(J.length){if(K){var ea=void 0!==Z,es=ea?Z:getNextPageParam(a.options,J);G=fetchPage(J,ea,es)}else if(Y){var el=void 0!==Z,eu=el?Z:getPreviousPageParam(a.options,J);G=fetchPage(J,el,eu,!0)}else!function(){en=[];var x=void 0===a.options.getNextPageParam;G=!$||!J[0]||$(J[0],0,J)?fetchPage([],x,ee[0]):Promise.resolve(buildNewPages([],ee[0],J[0]));for(var _loop=function(w){G=G.then(function(A){if(!$||!J[w]||$(J[w],w,J)){var k=x?ee[w]:getNextPageParam(a.options,A);return fetchPage(A,x,k)}return Promise.resolve(buildNewPages(A,ee[w],J[w]))})},w=1;w<J.length;w++)_loop(w)}()}else G=fetchPage([]);var ec=G.then(function(a){return{pages:a,pageParams:en}});return ec.cancel=function(){ei=!0,null==et||et.abort(),(0,A.LE)(G)&&G.cancel()},ec}}}}function getNextPageParam(a,x){return null==a.getNextPageParam?void 0:a.getNextPageParam(x[x.length-1],x)}function getPreviousPageParam(a,x){return null==a.getPreviousPageParam?void 0:a.getPreviousPageParam(x[0],x)}function hasNextPage(a,x){if(a.getNextPageParam&&Array.isArray(x)){var w=getNextPageParam(a,x);return null!=w&&!1!==w}}function hasPreviousPage(a,x){if(a.getPreviousPageParam&&Array.isArray(x)){var w=getPreviousPageParam(a,x);return null!=w&&!1!==w}}},41909:function(a,x,w){"use strict";w.d(x,{E:function(){return setLogger},j:function(){return getLogger}});var A=console;function getLogger(){return A}function setLogger(a){A=a}},81262:function(a,x,w){"use strict";w.d(x,{R:function(){return getDefaultState},m:function(){return z}});var A=w(87462),k=w(41909),F=w(101),V=w(21216),B=w(52288),z=function(){function Mutation(a){this.options=(0,A.Z)({},a.defaultOptions,a.options),this.mutationId=a.mutationId,this.mutationCache=a.mutationCache,this.observers=[],this.state=a.state||getDefaultState(),this.meta=a.meta}var a=Mutation.prototype;return a.setState=function(a){this.dispatch({type:"setState",state:a})},a.addObserver=function(a){-1===this.observers.indexOf(a)&&this.observers.push(a)},a.removeObserver=function(a){this.observers=this.observers.filter(function(x){return x!==a})},a.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(B.ZT).catch(B.ZT)):Promise.resolve()},a.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},a.execute=function(){var a,x=this,w="loading"===this.state.status,A=Promise.resolve();return w||(this.dispatch({type:"loading",variables:this.options.variables}),A=A.then(function(){null==x.mutationCache.config.onMutate||x.mutationCache.config.onMutate(x.state.variables,x)}).then(function(){return null==x.options.onMutate?void 0:x.options.onMutate(x.state.variables)}).then(function(a){a!==x.state.context&&x.dispatch({type:"loading",context:a,variables:x.state.variables})})),A.then(function(){return x.executeMutation()}).then(function(w){a=w,null==x.mutationCache.config.onSuccess||x.mutationCache.config.onSuccess(a,x.state.variables,x.state.context,x)}).then(function(){return null==x.options.onSuccess?void 0:x.options.onSuccess(a,x.state.variables,x.state.context)}).then(function(){return null==x.options.onSettled?void 0:x.options.onSettled(a,null,x.state.variables,x.state.context)}).then(function(){return x.dispatch({type:"success",data:a}),a}
51).catch(function(a){return null==x.mutationCache.config.onError||x.mutationCache.config.onError(a,x.state.variables,x.state.context,x),(0,k.j)().error(a),Promise.resolve().then(function(){return null==x.options.onError?void 0:x.options.onError(a,x.state.variables,x.state.context)}).then(function(){return null==x.options.onSettled?void 0:x.options.onSettled(void 0,a,x.state.variables,x.state.context)}).then(function(){throw x.dispatch({type:"error",error:a}),a})})},a.executeMutation=function(){var a,x=this;return this.retryer=new V.m4({fn:function(){return x.options.mutationFn?x.options.mutationFn(x.state.variables):Promise.reject("No mutationFn found")},onFail:function(){x.dispatch({type:"failed"})},onPause:function(){x.dispatch({type:"pause"})},onContinue:function(){x.dispatch({type:"continue"})},retry:null!=(a=this.options.retry)?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},a.dispatch=function(a){var x=this;this.state=function(a,x){switch(x.type){case"failed":return(0,A.Z)({},a,{failureCount:a.failureCount+1});case"pause":return(0,A.Z)({},a,{isPaused:!0});case"continue":return(0,A.Z)({},a,{isPaused:!1});case"loading":return(0,A.Z)({},a,{context:x.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:x.variables});case"success":return(0,A.Z)({},a,{data:x.data,error:null,status:"success",isPaused:!1});case"error":return(0,A.Z)({},a,{data:void 0,error:x.error,failureCount:a.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,A.Z)({},a,x.state);default:return a}}(this.state,a),F.V.batch(function(){x.observers.forEach(function(x){x.onMutationUpdate(a)}),x.mutationCache.notify(x)})},Mutation}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},101:function(a,x,w){"use strict";w.d(x,{V:function(){return k}});var A=w(52288),k=new(function(){function NotifyManager(){this.queue=[],this.transactions=0,this.notifyFn=function(a){a()},this.batchNotifyFn=function(a){a()}}var a=NotifyManager.prototype;return a.batch=function(a){var x;this.transactions++;try{x=a()}finally{this.transactions--,this.transactions||this.flush()}return x},a.schedule=function(a){var x=this;this.transactions?this.queue.push(a):(0,A.A4)(function(){x.notifyFn(a)})},a.batchCalls=function(a){var x=this;return function(){for(var w=arguments.length,A=Array(w),k=0;k<w;k++)A[k]=arguments[k];x.schedule(function(){a.apply(void 0,A)})}},a.flush=function(){var a=this,x=this.queue;this.queue=[],x.length&&(0,A.A4)(function(){a.batchNotifyFn(function(){x.forEach(function(x){a.notifyFn(x)})})})},a.setNotifyFunction=function(a){this.notifyFn=a},a.setBatchNotifyFunction=function(a){this.batchNotifyFn=a},NotifyManager}())},40068:function(a,x,w){"use strict";w.d(x,{N:function(){return V}});var A=w(94578),k=w(52943),F=w(52288),V=new(function(a){function OnlineManager(){var x;return(x=a.call(this)||this).setup=function(a){var x;if(!F.sk&&(null==(x=window)?void 0:x.addEventListener)){var listener=function(){return a()};return window.addEventListener("online",listener,!1),window.addEventListener("offline",listener,!1),function(){window.removeEventListener("online",listener),window.removeEventListener("offline",listener)}}},x}(0,A.Z)(OnlineManager,a);var x=OnlineManager.prototype;return x.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},x.onUnsubscribe=function(){if(!this.hasListeners()){var a;null==(a=this.cleanup)||a.call(this),this.cleanup=void 0}},x.setEventListener=function(a){var x,w=this;this.setup=a,null==(x=this.cleanup)||x.call(this),this.cleanup=a(function(a){"boolean"==typeof a?w.setOnline(a):w.onOnline()})},x.setOnline=function(a){this.online=a,a&&this.onOnline()},x.onOnline=function(){this.listeners.forEach(function(a){a()})},x.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},OnlineManager}(k.l))},61284:function(a,x,w){"use strict";w.d(x,{S:function(){return et}});var A=w(87462),k=w(52288),F=w(94578),V=w(101),B=w(41909),z=w(21216),G=function(){function Query(a){this.abort
51SignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.cache=a.cache,this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.initialState=a.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=a.meta,this.scheduleGc()}var a=Query.prototype;return a.setOptions=function(a){var x;this.options=(0,A.Z)({},this.defaultOptions,a),this.meta=null==a?void 0:a.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(x=this.options.cacheTime)?x:3e5)},a.setDefaultOptions=function(a){this.defaultOptions=a},a.scheduleGc=function(){var a=this;this.clearGcTimeout(),(0,k.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){a.optionalRemove()},this.cacheTime))},a.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},a.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},a.setData=function(a,x){var w,A,F=this.state.data,V=(0,k.SE)(a,F);return(null==(w=(A=this.options).isDataEqual)?void 0:w.call(A,F,V))?V=F:!1!==this.options.structuralSharing&&(V=(0,k.Q$)(F,V)),this.dispatch({data:V,type:"success",dataUpdatedAt:null==x?void 0:x.updatedAt}),V},a.setState=function(a,x){this.dispatch({type:"setState",state:a,setStateOptions:x})},a.cancel=function(a){var x,w=this.promise;return null==(x=this.retryer)||x.cancel(a),w?w.then(k.ZT).catch(k.ZT):Promise.resolve()},a.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},a.reset=function(){this.destroy(),this.setState(this.initialState)},a.isActive=function(){return this.observers.some(function(a){return!1!==a.options.enabled})},a.isFetching=function(){return this.state.isFetching},a.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(a){return a.getCurrentResult().isStale})},a.isStaleByTime=function(a){return void 0===a&&(a=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,k.Kp)(this.state.dataUpdatedAt,a)},a.onFocus=function(){var a,x=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});x&&x.refetch(),null==(a=this.retryer)||a.continue()},a.onOnline=function(){var a,x=this.observers.find(function(a){return a.shouldFetchOnReconnect()});x&&x.refetch(),null==(a=this.retryer)||a.continue()},a.addObserver=function(a){-1===this.observers.indexOf(a)&&(this.observers.push(a),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:a}))},a.removeObserver=function(a){-1!==this.observers.indexOf(a)&&(this.observers=this.observers.filter(function(x){return x!==a}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:a}))},a.getObserversCount=function(){return this.observers.length},a.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},a.fetch=function(a,x){var w,A,F,V,G,$,W=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==x?void 0:x.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(w=this.retryer)||w.continueRetry(),this.promise}if(a&&this.setOptions(a),!this.options.queryFn){var Z=this.observers.find(function(a){return a.options.queryFn});Z&&this.setOptions(Z.options)}var K=(0,k.mc)(this.queryKey),Y=(0,k.G9)(),J={queryKey:K,pageParam:void 0,meta:this.meta};Object.defineProperty(J,"signal",{enumerable:!0,get:function(){if(Y)return W.abortSignalConsumed=!0,Y.signal}});var ee={fetchOptions:x,options:this.options,queryKey:K,state:this.state,fetchFn:function(){return W.options.queryFn?(W.abortSignalConsumed=!1,W.options.queryFn(J)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(V=this.options.behavior)?void 0:V.onFetch)&&(null==(A=this.options.behavior)||A.onFetch(ee)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(G=ee.fetchOptions)?void 0:G.meta)||this.dispatch({type:"fetch",meta:null==(F=ee.fetchOptions)?void 0:F.meta}),this.retryer=new z.m4({fn:ee.fetchFn,abort:null==Y?void 0:null==($=Y.abort)?void 0:$.bind(Y),onSuccess:function(a){W.setData(a),null==W.cache.config.onSuccess||W.cache.config.onSuccess(a,W),0===W.cacheTime&&W.optionalRemove()},onError:function(a){(0,z.DV)(a)&&a.silent||W.dispatch({type:"error",error:a}),(0,z.DV)(a)||(null==W.cache.config.onError||W.cache.config.onError(a,W),(0,B.j)().error(a)),0===W.cacheTime&&W.optionalRemove()},onFail:function(){W.dispatch({type:"failed"})},onPause:function(){W.dispatch({type:"pause"})},onContinue:function(){W.dispatch({type:"continue"})},retry:ee.options.retry,retryDelay:ee.options.retryDelay}),this.promise=this.retryer.promise,this.promise},a.dispatch=function(a){var x=this;this.state=this.reducer(this.state,a),V.V.batch(function(){x.observers.forEac
51h(function(x){x.onQueryUpdate(a)}),x.cache.notify({query:x,type:"queryUpdated",action:a})})},a.getDefaultState=function(a){var x="function"==typeof a.initialData?a.initialData():a.initialData,w=void 0!==a.initialData?"function"==typeof a.initialDataUpdatedAt?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0,A=void 0!==x;return{data:x,dataUpdateCount:0,dataUpdatedAt:A?null!=w?w:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:A?"success":"idle"}},a.reducer=function(a,x){var w,k;switch(x.type){case"failed":return(0,A.Z)({},a,{fetchFailureCount:a.fetchFailureCount+1});case"pause":return(0,A.Z)({},a,{isPaused:!0});case"continue":return(0,A.Z)({},a,{isPaused:!1});case"fetch":return(0,A.Z)({},a,{fetchFailureCount:0,fetchMeta:null!=(w=x.meta)?w:null,isFetching:!0,isPaused:!1},!a.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,A.Z)({},a,{data:x.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:null!=(k=x.dataUpdatedAt)?k:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var F=x.error;if((0,z.DV)(F)&&F.revert&&this.revertState)return(0,A.Z)({},this.revertState);return(0,A.Z)({},a,{error:F,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,A.Z)({},a,{isInvalidated:!0});case"setState":return(0,A.Z)({},a,x.state);default:return a}},Query}(),$=w(52943),W=function(a){function QueryCache(x){var w;return(w=a.call(this)||this).config=x||{},w.queries=[],w.queriesMap={},w}(0,F.Z)(QueryCache,a);var x=QueryCache.prototype;return x.build=function(a,x,w){var A,F=x.queryKey,V=null!=(A=x.queryHash)?A:(0,k.Rm)(F,x),B=this.get(V);return B||(B=new G({cache:this,queryKey:F,queryHash:V,options:a.defaultQueryOptions(x),state:w,defaultOptions:a.getQueryDefaults(F),meta:x.meta}),this.add(B)),B},x.add=function(a){this.queriesMap[a.queryHash]||(this.queriesMap[a.queryHash]=a,this.queries.push(a),this.notify({type:"queryAdded",query:a}))},x.remove=function(a){var x=this.queriesMap[a.queryHash];x&&(a.destroy(),this.queries=this.queries.filter(function(x){return x!==a}),x===a&&delete this.queriesMap[a.queryHash],this.notify({type:"queryRemoved",query:a}))},x.clear=function(){var a=this;V.V.batch(function(){a.queries.forEach(function(x){a.remove(x)})})},x.get=function(a){return this.queriesMap[a]},x.getAll=function(){return this.queries},x.find=function(a,x){var w=(0,k.I6)(a,x)[0];return void 0===w.exact&&(w.exact=!0),this.queries.find(function(a){return(0,k._x)(w,a)})},x.findAll=function(a,x){var w=(0,k.I6)(a,x)[0];return Object.keys(w).length>0?this.queries.filter(function(a){return(0,k._x)(w,a)}):this.queries},x.notify=function(a){var x=this;V.V.batch(function(){x.listeners.forEach(function(x){x(a)})})},x.onFocus=function(){var a=this;V.V.batch(function(){a.queries.forEach(function(a){a.onFocus()})})},x.onOnline=function(){var a=this;V.V.batch(function(){a.queries.forEach(function(a){a.onOnline()})})},QueryCache}($.l),Z=w(81262),K=function(a){function MutationCache(x){var w;return(w=a.call(this)||this).config=x||{},w.mutations=[],w.mutationId=0,w}(0,F.Z)(MutationCache,a);var x=MutationCache.prototype;return x.build=function(a,x,w){var A=new Z.m({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(x),state:w,defaultOptions:x.mutationKey?a.getMutationDefaults(x.mutationKey):void 0,meta:x.meta});return this.add(A),A},x.add=function(a){this.mutations.push(a),this.notify(a)},x.remove=function(a){this.mutations=this.mutations.filter(function(x){return x!==a}),a.cancel(),this.notify(a)},x.clear=function(){var a=this;V.V.batch(function(){a.mutations.forEach(function(x){a.remove(x)})})},x.getAll=function(){return this.mutations},x.find=function(a){return void 0===a.exact&&(a.exact=!0),this.mutations.find(function(x){return(0,k.X7)(a,x)})},x.findAll=function(a){return this.mutations.filter(function(x){return(0,k.X7)(a,x)})},x.notify=function(a){var x=this;
51V.V.batch(function(){x.listeners.forEach(function(x){x(a)})})},x.onFocus=function(){this.resumePausedMutations()},x.onOnline=function(){this.resumePausedMutations()},x.resumePausedMutations=function(){var a=this.mutations.filter(function(a){return a.state.isPaused});return V.V.batch(function(){return a.reduce(function(a,x){return a.then(function(){return x.continue().catch(k.ZT)})},Promise.resolve())})},MutationCache}($.l),Y=w(59852),J=w(40068),ee=w(36997),et=function(){function QueryClient(a){void 0===a&&(a={}),this.queryCache=a.queryCache||new W,this.mutationCache=a.mutationCache||new K,this.defaultOptions=a.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var a=QueryClient.prototype;return a.mount=function(){var a=this;this.unsubscribeFocus=Y.j.subscribe(function(){Y.j.isFocused()&&J.N.isOnline()&&(a.mutationCache.onFocus(),a.queryCache.onFocus())}),this.unsubscribeOnline=J.N.subscribe(function(){Y.j.isFocused()&&J.N.isOnline()&&(a.mutationCache.onOnline(),a.queryCache.onOnline())})},a.unmount=function(){var a,x;null==(a=this.unsubscribeFocus)||a.call(this),null==(x=this.unsubscribeOnline)||x.call(this)},a.isFetching=function(a,x){var w=(0,k.I6)(a,x)[0];return w.fetching=!0,this.queryCache.findAll(w).length},a.isMutating=function(a){return this.mutationCache.findAll((0,A.Z)({},a,{fetching:!0})).length},a.getQueryData=function(a,x){var w;return null==(w=this.queryCache.find(a,x))?void 0:w.state.data},a.getQueriesData=function(a){return this.getQueryCache().findAll(a).map(function(a){return[a.queryKey,a.state.data]})},a.setQueryData=function(a,x,w){var A=(0,k._v)(a),F=this.defaultQueryOptions(A);return this.queryCache.build(this,F).setData(x,w)},a.setQueriesData=function(a,x,w){var A=this;return V.V.batch(function(){return A.getQueryCache().findAll(a).map(function(a){var k=a.queryKey;return[k,A.setQueryData(k,x,w)]})})},a.getQueryState=function(a,x){var w;return null==(w=this.queryCache.find(a,x))?void 0:w.state},a.removeQueries=function(a,x){var w=(0,k.I6)(a,x)[0],A=this.queryCache;V.V.batch(function(){A.findAll(w).forEach(function(a){A.remove(a)})})},a.resetQueries=function(a,x,w){var F=this,B=(0,k.I6)(a,x,w),z=B[0],G=B[1],$=this.queryCache,W=(0,A.Z)({},z,{active:!0});return V.V.batch(function(){return $.findAll(z).forEach(function(a){a.reset()}),F.refetchQueries(W,G)})},a.cancelQueries=function(a,x,w){var A=this,F=(0,k.I6)(a,x,w),B=F[0],z=F[1],G=void 0===z?{}:z;return void 0===G.revert&&(G.revert=!0),Promise.all(V.V.batch(function(){return A.queryCache.findAll(B).map(function(a){return a.cancel(G)})})).then(k.ZT).catch(k.ZT)},a.invalidateQueries=function(a,x,w){var F,B,z,G=this,$=(0,k.I6)(a,x,w),W=$[0],Z=$[1],K=(0,A.Z)({},W,{active:null==(F=null!=(B=W.refetchActive)?B:W.active)||F,inactive:null!=(z=W.refetchInactive)&&z});return V.V.batch(function(){return G.queryCache.findAll(W).forEach(function(a){a.invalidate()}),G.refetchQueries(K,Z)})},a.refetchQueries=function(a,x,w){var F=this,B=(0,k.I6)(a,x,w),z=B[0],G=B[1],$=Promise.all(V.V.batch(function(){return F.queryCache.findAll(z).map(function(a){return a.fetch(void 0,(0,A.Z)({},G,{meta:{refetchPage:null==z?void 0:z.refetchPage}}))})})).then(k.ZT);return(null==G?void 0:G.throwOnError)||($=$.catch(k.ZT)),$},a.fetchQuery=function(a,x,w){var A=(0,k._v)(a,x,w),F=this.defaultQueryOptions(A);void 0===F.retry&&(F.retry=!1);var V=this.queryCache.build(this,F);return V.isStaleByTime(F.staleTime)?V.fetch(F):Promise.resolve(V.state.data)},a.prefetchQuery=function(a,x,w){return this.fetchQuery(a,x,w).then(k.ZT).catch(k.ZT)},a.fetchInfiniteQuery=function(a,x,w){var A=(0,k._v)(a,x,w);return A.behavior=(0,ee.Gm)(),this.fetchQuery(A)},a.prefetchInfiniteQuery=function(a,x,w){return this.fetchInfiniteQuery(a,x,w).then(k.ZT).catch(k.ZT)},a.cancelMutations=function(){var a=this;return Promise.all(V.V.batch(function(){return a.mutationCache.getAll().map(function(a){return a.cancel()})})).then(k.ZT).catch(k.ZT)},a.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},a.executeMutation=function(a){return this.mutationCache.build(this,a).execute()},a.getQueryCache=function(){return this.queryCache},a.getMutationCache=function(){return this.mutationCache},a.getDefaultOptions=function(){return this.defaultOptions},a.setDefaultOptions=function(a){this.defaultOptions=a},a.setQueryDefaults=function(a,x){var w=this.queryDefaults.find(function(x){return(0,k.yF)(a)===(0,k.yF)(x.queryKey)});w?w.defaultOptions=x:this.queryDefaults.push({queryKey:a,defaultOptions:x})},a.getQueryDefaults=function(a){var x;return a?null==(x=this.queryDefaults.find(function(x){return(0,k.to)(a,x.queryKey)}))?void 0:x.defaultOptions:void 0},a.setMutationDefaults=function(a,x){var w=this.mutationDefaults.find(function(x){return(0,k.yF)(a)===(0,k.yF)(x.mutationKey)});w?w.defaultOptions=x:this.mutationDefaults.push({mutationKey:a,defaultOptions:x})},a.getMutationDefaults=function(a){var x;return a?null==(x=this.mutationDefaults.find(function(x){return(0,k.to)(a,x.mutationKey)}))?void 0:x.defaultOptions:void 0}
51,a.defaultQueryOptions=function(a){if(null==a?void 0:a._defaulted)return a;var x=(0,A.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==a?void 0:a.queryKey),a,{_defaulted:!0});return!x.queryHash&&x.queryKey&&(x.queryHash=(0,k.Rm)(x.queryKey,x)),x},a.defaultQueryObserverOptions=function(a){return this.defaultQueryOptions(a)},a.defaultMutationOptions=function(a){return(null==a?void 0:a._defaulted)?a:(0,A.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==a?void 0:a.mutationKey),a,{_defaulted:!0})},a.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},QueryClient}()},21216:function(a,x,w){"use strict";w.d(x,{DV:function(){return isCancelledError},LE:function(){return isCancelable},m4:function(){return Retryer}});var A=w(59852),k=w(40068),F=w(52288);function defaultRetryDelay(a){return Math.min(1e3*Math.pow(2,a),3e4)}function isCancelable(a){return"function"==typeof(null==a?void 0:a.cancel)}var CancelledError=function(a){this.revert=null==a?void 0:a.revert,this.silent=null==a?void 0:a.silent};function isCancelledError(a){return a instanceof CancelledError}var Retryer=function(a){var x,w,V,B,z=this,G=!1;this.abort=a.abort,this.cancel=function(a){return null==x?void 0:x(a)},this.cancelRetry=function(){G=!0},this.continueRetry=function(){G=!1},this.continue=function(){return null==w?void 0:w()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(a,x){V=a,B=x});var resolve=function(x){z.isResolved||(z.isResolved=!0,null==a.onSuccess||a.onSuccess(x),null==w||w(),V(x))},reject=function(x){z.isResolved||(z.isResolved=!0,null==a.onError||a.onError(x),null==w||w(),B(x))};!function run(){var V;if(!z.isResolved){try{V=a.fn()}catch(a){V=Promise.reject(a)}x=function(a){if(!z.isResolved&&(reject(new CancelledError(a)),null==z.abort||z.abort(),isCancelable(V)))try{V.cancel()}catch(a){}},z.isTransportCancelable=isCancelable(V),Promise.resolve(V).then(resolve).catch(function(x){if(!z.isResolved){var V,B,$=null!=(V=a.retry)?V:3,W=null!=(B=a.retryDelay)?B:defaultRetryDelay,Z="function"==typeof W?W(z.failureCount,x):W,K=!0===$||"number"==typeof $&&z.failureCount<$||"function"==typeof $&&$(z.failureCount,x);if(G||!K){reject(x);return}z.failureCount++,null==a.onFail||a.onFail(z.failureCount,x),(0,F.Gh)(Z).then(function(){if(!A.j.isFocused()||!k.N.isOnline())return new Promise(function(x){w=x,z.isPaused=!0,null==a.onPause||a.onPause()}).then(function(){w=void 0,z.isPaused=!1,null==a.onContinue||a.onContinue()})}).then(function(){G?reject(x):run()})}})}}()}},52943:function(a,x,w){"use strict";w.d(x,{l:function(){return A}});var A=function(){function Subscribable(){this.listeners=[]}var a=Subscribable.prototype;return a.subscribe=function(a){var x=this,w=a||function(){};return this.listeners.push(w),this.onSubscribe(),function(){x.listeners=x.listeners.filter(function(a){return a!==w}),x.onUnsubscribe()}},a.hasListeners=function(){return this.listeners.length>0},a.onSubscribe=function(){},a.onUnsubscribe=function(){},Subscribable}()},86755:function(){},52288:function(a,x,w){"use strict";w.d(x,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Q$:function(){return function replaceEqualDeep(a,x){if(a===x)return a;var w=Array.isArray(a)&&Array.isArray(x);if(w||isPlainObject(a)&&isPlainObject(x)){for(var A=w?a.length:Object.keys(a).length,k=w?x:Object.keys(x),F=k.length,V=w?[]:{},B=0,z=0;z<F;z++){var G=w?z:k[z];V[G]=replaceEqualDeep(a[G],x[G]),V[G]===a[G]&&B++}return A===F&&B===A?a:V}return x}},Rc:function(){return replaceAt},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},VS:function(){return shallowEqualObjects},X7:function(){return matchMutation},ZT:function(){return noop},_v:function(){return parseQueryArgs},_x:function(){return matchQuery},e5:function(){return difference},lV:function(){return parseMutationArgs},mc:function(){return ensureQueryKeyArray},sk:function(){return k},to:function(){return partialMatchKey},yF:function(){return hashQueryKey}});var A=w(87462),k="undefined"==typeof window;function noop(){}function functionalUpdate(a,x){return"function"==typeof a?a(x):a}function isValidTimeout(a){return"number"==typeof a&&a>=0&&a!==1/0}function ensureQueryKeyArray(a){return Array.isArray(a)?a:[a]}function difference(a,x){return a.filter(function(a){return -1===x.indexOf(a)})}function replaceAt(a,x,w){var A=a.slice(0);return A[x]=w,A}function timeUntilStale(a,x){return Math.max(a+(x||0)-Date.now(),0)}function parseQueryArgs(a,x,w){return isQueryKey(a)?"function"==typeof x?(0,A.Z)({},w,{queryKey:a,queryFn:x}):(0,A.Z)({},x,{queryKey:a}):a}function parseMutationArgs(a,x,w){return isQueryKey(a)?"function"==typeof x?(0,A.Z)({},w,{mutationKey:a,mutationFn:x}):(0,A.Z)({},x,{mutationKey:a}):"function"==typeof a?(0,A.Z)({},x,{mutationFn:a}):(0,A.Z)({},a)}function parseFilterArgs(a,x,w){return isQueryKey(a)?[(0,A.Z)({},x,{queryKey:a}),w]:[a||{},x]}function matchQuery(a,x){var w=a.active,A=a.exact,k=a.fetching,F=a.inactive,V=a.predicate,B=a.queryKey,z=a.stale;if(isQueryKey(B)){if(A){if(x.queryHash!==hashQueryKeyByOptions(B,x.options))return!1}else if(!partialMatchKey(x.queryKey,B))return!1}var G=!0===w&&!0===F||null==w&&null==F?"all":!1===w&&!1===F?"none":(null!=w?w:!F)?"active":"inactive";if("none"===G)return!1;if("all"!==G){var $=x.isActive();if("active"===G&&!$||"inactive"===G&&$)return!1}return("boolean"!=typeof z||x.isStale()===z)&&("boolean"!=typeof k||x.isFetching()===k)&&(!V||!!V(x))}function matchMutation(a,x){var w=a.exact,A=a.fetching,k=a.predicate,F=a.mutationKey;if(isQueryKey(F)){if(!x.options.mutationKey)return!1;if(w){if(hashQueryKey(x.options.mutationKey)!==hashQueryKey(F))return!1}else if(!partialMatchKey(x.options.mutationKey,F))return!1}return("boolean"!=typeof A||"loading"===x.state.status===A)&&(!k||!!k(x))}function hashQueryKeyByOptions(a,x){return((null==x?void 0:x.queryKeyHashFn)||hashQueryKey)(a)}function hashQueryKey(a){return JSON.stringify(ensureQueryKeyArray(a),function(a,x){return isPlainObject(x)?Object.keys(x).sort().reduce(function(a,w){return a[w]=x[w],a},{}):x})}function partialMatchKey(a,x){return function partialDeepEqual(a,x){return a===x||typeof a==typeof x&&!!a&&!!x&&"object"==typeof a&&"object"==typeof x&&!Object.keys(x).some(function(w){return!partialDeepEqual(a[w],x[w])})}(ensureQueryKeyArray(a),ensureQueryKeyArray(x))}function shallowEqualObjects(a,x){if(a&&!x||x&&!a)return!1;for(var w in a)if(a[w]!==x[w])return!1;return!0}function isPlainObject(a){if(!hasObjectPrototype(a))return!1;var x=a.constructor;if(void 0===x)return!0;var w=x.prototype;return!!(hasObjectPrototype(w)&&w.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(a){return"[object Object]"===Object.prototype.toString.call(a)}function isQueryKey(a){return"string"==typeof a||Array.isArray(a)}function sleep(a){return new Promise(function(x){setTimeout(x,a)})}function scheduleMicrotask(a){Promise.resolve().then(a).catch(function(a){return setTimeout(function(){throw a})})}function getAbortController(){if("function"==typeof AbortController)return new AbortController}},88767:function(a,x,w){"use strict";w.d(x,{Hydrate:function(){return k.Hydrate},QueryClient:function(){return A.QueryClient},QueryClientProvider:function(){return k.QueryClientProvider},useInfiniteQuery:function(){return k.useInfiniteQuery},useMutation:function(){return k.useMutation},useQueries:function(){return k.useQueries},useQuery:function(){return k.useQuery},useQueryClient:function(){return k.useQueryClient}});var A=w(46747);w.o(A,"Hydrate")&&w.d(x,{Hydrate:function(){return A.Hydrate}}),w.o(A,"QueryClientProvider")&&w.d(x,{QueryClientProvider:function(){return A.QueryClientProvider}}),w.o(A,"useInfiniteQuery")&&w.d(x,{useInfiniteQuery:function(){return A.useInfiniteQuery}}),w.o(A,"useMutation")&&w.d(x,{useMutation:function(){return A.useMutation}}),w.o(A,"useQueries")&&w.d(x,{useQueries:function(){return A.useQueries}}),w.o(A,"useQuery")&&w.d(x,{useQuery:function(){return A.useQuery}}),w.o(A,"useQueryClient")&&w.d(x,{useQueryClient:function(){return A.useQueryClient}});var k=w(80274)},80274:function(a,x,w){"use strict";w.d(x,{Hydrate:function(){return Hydrate},QueryClientProvider:function(){return QueryClientProvider},useInfiniteQuery:function(){return useInfiniteQuery},useMutation:function(){return useMutation},useQueries:function(){return useQueries},useQuery:function(){return useQuery},useQueryClient:function(){return useQueryClient}});var A,k=w(101),F=w(73935).unstable_batchedUpdates;k.V.setBatchNotifyFunction(F);var V=w(41909),B=console;(0,V.E)(B);var z=w(67294),G=z.createContext(void 0),$=z.createContext(!1);function getQueryClientContext(a){return a&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=G),window.ReactQueryClientContext):G}var useQueryClient=function(){var a=z.useContext(getQueryClientContext(z.useContext($)));if(!a)throw Error("No QueryClient set, use QueryClientProvider to set one");return a},QueryClientProvider=function(a){var x=a.client,w=a.contextSharing,A=void 0!==w&&w,k=a.children;z.useEffect(function(){return x.mount(),function(){x.unmount()}},[x]);var F=getQueryClientContext(A);return z.createElement($.Provider,{value:A},z.createElement(F.Provider,{value:x},k))},W=w(87462),Z=w(52288),K=w(94578),Y=w(81262),J=w(52943),ee=function(a){function MutationObserver(x,w){var A;return(A=a.call(this)||this).client=x,A.setOptions(w),A.bindMethods(),A.updateResult(),A}(0,K.Z)(MutationObserver,a);var x=MutationObserver.prototype;return x.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},x.setOptions=function(a){this.options=this.client.defaultMutationOptions(a)},x.onUnsubscribe=function(){if(!this.listeners.length){var a;null==(a=this.currentMutation)||a.removeObserver(this)}},x.onMutationUpdate=function(a){this.updateResult();var x={listeners:!0};"success"===a.type?x.onSuccess=!0:"error"===a.type&&(x.onError=!0),this.notify(x)},x.getCurrentResult=function(){return this.currentResult},x.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},x.mutate=function(a,x){return this.mutateOptions=x,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,W.Z)({},this.options,{variables:void 0!==a?a:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},x.updateResult=function(){var a=this.currentMutation?this.currentMutation.state:(0,Y.R)(),x=(0,W.Z)({},a,{isLoading:"loading"===a.status,isSuccess:"success"===a.status,isError:"error"===a.status,isIdle:"idle"===a.status,mutate:this.mutate,reset:this.reset});this.currentResult=x},x.notify=function(a){var x=this;k.V.batch(function(){x.mutateOptions&&(a.onSuccess?(null==x.mutateOptions.onSuccess||x.mutateOptions.onSuccess(x.currentResult.data,x.currentResult.variables,x.currentResult.context),null==x.mutateOptions.onSettled||x.mutateOptions.onSettled(x.currentResult.data,null,x.currentResult.variables,x.currentResult.context)):a.onError&&(null==x.mutateOptions.onError||x.mutateOptions.onError(x.currentResult.error,x.currentResult.variables,x.currentResult.context),null==x.mutateOptions.onSettled||x.mutateOptions.onSettled(void 0,x.currentResult.error,x.currentResult.variables,x.currentResult.context))),a.listeners&&x.listeners.forEac
51h(function(a){a(x.currentResult)})})},MutationObserver}(J.l);function shouldThrowError(a,x,w){return"function"==typeof x?x.apply(void 0,w):"boolean"==typeof x?x:!!a}function useMutation(a,x,w){var A=z.useRef(!1),F=z.useState(0)[1],V=(0,Z.lV)(a,x,w),B=useQueryClient(),G=z.useRef();G.current?G.current.setOptions(V):G.current=new ee(B,V);var $=G.current.getCurrentResult();z.useEffect(function(){A.current=!0;var a=G.current.subscribe(k.V.batchCalls(function(){A.current&&F(function(a){return a+1})}));return function(){A.current=!1,a()}},[]);var K=z.useCallback(function(a,x){G.current.mutate(a,x).catch(Z.ZT)},[]);if($.error&&shouldThrowError(void 0,G.current.options.useErrorBoundary,[$.error]))throw $.error;return(0,W.Z)({},$,{mutate:K,mutateAsync:$.mutate})}var et=w(59852),er=w(21216),en=function(a){function QueryObserver(x,w){var A;return(A=a.call(this)||this).client=x,A.options=w,A.trackedProps=[],A.selectError=null,A.bindMethods(),A.setOptions(w),A}(0,K.Z)(QueryObserver,a);var x=QueryObserver.prototype;return x.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},x.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},x.onUnsubscribe=function(){this.listeners.length||this.destroy()},x.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},x.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},x.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},x.setOptions=function(a,x){var w=this.options,A=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=w.queryKey),this.updateQuery();var k=this.hasListeners();k&&shouldFetchOptionally(this.currentQuery,A,this.options,w)&&this.executeFetch(),this.updateResult(x),k&&(this.currentQuery!==A||this.options.enabled!==w.enabled||this.options.staleTime!==w.staleTime)&&this.updateStaleTimeout();var F=this.computeRefetchInterval();k&&(this.currentQuery!==A||this.options.enabled!==w.enabled||F!==this.currentRefetchInterval)&&this.updateRefetchInterval(F)},x.getOptimisticResult=function(a){var x=this.client.defaultQueryObserverOptions(a),w=this.client.getQueryCache().build(this.client,x);return this.createResult(w,x)},x.getCurrentResult=function(){return this.currentResult},x.trackResult=function(a,x){var w=this,A={},trackProp=function(a){w.trackedProps.includes(a)||w.trackedProps.push(a)};return Object.keys(a).forEach(function(x){Object.defineProperty(A,x,{configurable:!1,enumerable:!0,get:function(){return trackProp(x),a[x]}})}),(x.useErrorBoundary||x.suspense)&&trackProp("error"),A},x.getNextResult=function(a){var x=this;return new Promise(function(w,A){var k=x.subscribe(function(x){x.isFetching||(k(),x.isError&&(null==a?void 0:a.throwOnError)?A(x.error):w(x))})})},x.getCurrentQuery=function(){return this.currentQuery},x.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},x.refetch=function(a){return this.fetch((0,W.Z)({},a,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))},x.fetchOptimistic=function(a){var x=this,w=this.client.defaultQueryObserverOptions(a),A=this.client.getQueryCache().build(this.client,w);return A.fetch().then(function(){return x.createResult(A,w)})},x.fetch=function(a){var x=this;return this.executeFetch(a).then(function(){return x.updateResult(),x.currentResult})},x.executeFetch=function(a){this.updateQuery();var x=this.currentQuery.fetch(this.options,a);return(null==a?void 0:a.throwOnError)||(x=x.catch(Z.ZT)),x},x.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!Z.sk&&!this.currentResult.isStale&&(0,Z.PN)(this.options.staleTime)){var x=(0,Z.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},x+1)}},x.computeRefetchInterval=function(){var a;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(a=this.options.refetchInterval)&&a}
51,x.updateRefetchInterval=function(a){var x=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!Z.sk&&!1!==this.options.enabled&&(0,Z.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(x.options.refetchIntervalInBackground||et.j.isFocused())&&x.executeFetch()},this.currentRefetchInterval))},x.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},x.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},x.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},x.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},x.createResult=function(a,x){var w,A,k=this.currentQuery,F=this.options,B=this.currentResult,z=this.currentResultState,G=this.currentResultOptions,$=a!==k,W=$?a.state:this.currentQueryInitialState,K=$?this.currentResult:this.previousQueryResult,Y=a.state,J=Y.dataUpdatedAt,ee=Y.error,et=Y.errorUpdatedAt,er=Y.isFetching,en=Y.status,ei=!1,eo=!1;if(x.optimisticResults){var ea=this.hasListeners(),es=!ea&&shouldFetchOnMount(a,x),el=ea&&shouldFetchOptionally(a,k,x,F);(es||el)&&(er=!0,J||(en="loading"))}if(x.keepPreviousData&&!Y.dataUpdateCount&&(null==K?void 0:K.isSuccess)&&"error"!==en)w=K.data,J=K.dataUpdatedAt,en=K.status,ei=!0;else if(x.select&&void 0!==Y.data){if(B&&Y.data===(null==z?void 0:z.data)&&x.select===this.selectFn)w=this.selectResult;else try{this.selectFn=x.select,w=x.select(Y.data),!1!==x.structuralSharing&&(w=(0,Z.Q$)(null==B?void 0:B.data,w)),this.selectResult=w,this.selectError=null}catch(a){(0,V.j)().error(a),this.selectError=a}}else w=Y.data;if(void 0!==x.placeholderData&&void 0===w&&("loading"===en||"idle"===en)){if((null==B?void 0:B.isPlaceholderData)&&x.placeholderData===(null==G?void 0:G.placeholderData))A=B.data;else if(A="function"==typeof x.placeholderData?x.placeholderData():x.placeholderData,x.select&&void 0!==A)try{A=x.select(A),!1!==x.structuralSharing&&(A=(0,Z.Q$)(null==B?void 0:B.data,A)),this.selectError=null}catch(a){(0,V.j)().error(a),this.selectError=a}void 0!==A&&(en="success",w=A,eo=!0)}return this.selectError&&(ee=this.selectError,w=this.selectResult,et=Date.now(),en="error"),{status:en,isLoading:"loading"===en,isSuccess:"success"===en,isError:"error"===en,isIdle:"idle"===en,data:w,dataUpdatedAt:J,error:ee,errorUpdatedAt:et,failureCount:Y.fetchFailureCount,errorUpdateCount:Y.errorUpdateCount,isFetched:Y.dataUpdateCount>0||Y.errorUpdateCount>0,isFetchedAfterMount:Y.dataUpdateCount>W.dataUpdateCount||Y.errorUpdateCount>W.errorUpdateCount,isFetching:er,isRefetching:er&&"loading"!==en,isLoadingError:"error"===en&&0===Y.dataUpdatedAt,isPlaceholderData:eo,isPreviousData:ei,isRefetchError:"error"===en&&0!==Y.dataUpdatedAt,isStale:isStale(a,x),refetch:this.refetch,remove:this.remove}},x.shouldNotifyListeners=function(a,x){if(!x)return!0;var w=this.options,A=w.notifyOnChangeProps,k=w.notifyOnChangePropsExclusions;if(!A&&!k||"tracked"===A&&!this.trackedProps.length)return!0;var F="tracked"===A?this.trackedProps:A;return Object.keys(a).some(function(w){var A=a[w]!==x[w],V=null==F?void 0:F.some(function(a){return a===w}),B=null==k?void 0:k.some(function(a){return a===w});return A&&!B&&(!F||V)})},x.updateResult=function(a){var x=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,Z.VS)(this.currentResult,x)){var w={cache:!0};(null==a?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,x)&&(w.listeners=!0),this.notify((0,W.Z)({},w,a))}},x.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var x=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==x||x.removeObserver(this),a.addObserver(this))}},x.onQueryUpdate=function(a){var x={};"success"===a.type?x.onSuccess=!0:"error"!==a.type||(0,er.DV)(a.error)||(x.onError=!0),this.updateResult(x),this.hasListeners()&&this.updateTimers()},x.notify=function(a){var x=this;k.V.batch(function(){a.onSuccess?(null==x.options.onSuccess||x.options.onSuccess(x.currentResult.data),null==x.options.onSettled||x.options.onSettled(x.currentResult.data,null)):a.onError&&(null==x.options.onError||x.options.onError(x.currentResult.error),null==x.options.onSettled||x.options.onSettled(void 0,x.currentResult.error)),a.listeners&&x.listeners.forEac
51h(function(a){a(x.currentResult)}),a.cache&&x.client.getQueryCache().notify({query:x.currentQuery,type:"observerResultsUpdated"})})},QueryObserver}(J.l);function shouldFetchOnMount(a,x){return!1!==x.enabled&&!a.state.dataUpdatedAt&&!("error"===a.state.status&&!1===x.retryOnMount)||a.state.dataUpdatedAt>0&&shouldFetchOn(a,x,x.refetchOnMount)}function shouldFetchOn(a,x,w){if(!1!==x.enabled){var A="function"==typeof w?w(a):w;return"always"===A||!1!==A&&isStale(a,x)}return!1}function shouldFetchOptionally(a,x,w,A){return!1!==w.enabled&&(a!==x||!1===A.enabled)&&(!w.suspense||"error"!==a.state.status)&&isStale(a,w)}function isStale(a,x){return a.isStaleByTime(x.staleTime)}var ei=z.createContext((A=!1,{clearReset:function(){A=!1},reset:function(){A=!0},isReset:function(){return A}}));function useBaseQuery(a,x){var w=z.useRef(!1),A=z.useState(0)[1],F=useQueryClient(),V=z.useContext(ei),B=F.defaultQueryObserverOptions(a);B.optimisticResults=!0,B.onError&&(B.onError=k.V.batchCalls(B.onError)),B.onSuccess&&(B.onSuccess=k.V.batchCalls(B.onSuccess)),B.onSettled&&(B.onSettled=k.V.batchCalls(B.onSettled)),B.suspense&&("number"!=typeof B.staleTime&&(B.staleTime=1e3),0===B.cacheTime&&(B.cacheTime=1)),(B.suspense||B.useErrorBoundary)&&!V.isReset()&&(B.retryOnMount=!1);var G=z.useState(function(){return new x(F,B)})[0],$=G.getOptimisticResult(B);if(z.useEffect(function(){w.current=!0,V.clearReset();var a=G.subscribe(k.V.batchCalls(function(){w.current&&A(function(a){return a+1})}));return G.updateResult(),function(){w.current=!1,a()}},[V,G]),z.useEffect(function(){G.setOptions(B,{listeners:!1})},[B,G]),B.suspense&&$.isLoading)throw G.fetchOptimistic(B).then(function(a){var x=a.data;null==B.onSuccess||B.onSuccess(x),null==B.onSettled||B.onSettled(x,null)}).catch(function(a){V.clearReset(),null==B.onError||B.onError(a),null==B.onSettled||B.onSettled(void 0,a)});if($.isError&&!V.isReset()&&!$.isFetching&&shouldThrowError(B.suspense,B.useErrorBoundary,[$.error,G.getCurrentQuery()]))throw $.error;return"tracked"===B.notifyOnChangeProps&&($=G.trackResult($,B)),$}function useQuery(a,x,w){return useBaseQuery((0,Z._v)(a,x,w),en)}var eo=function(a){function QueriesObserver(x,w){var A;return(A=a.call(this)||this).client=x,A.queries=[],A.result=[],A.observers=[],A.observersMap={},w&&A.setQueries(w),A}(0,K.Z)(QueriesObserver,a);var x=QueriesObserver.prototype;return x.onSubscribe=function(){var a=this;1===this.listeners.length&&this.observers.forEach(function(x){x.subscribe(function(w){a.onUpdate(x,w)})})},x.onUnsubscribe=function(){this.listeners.length||this.destroy()},x.destroy=function(){this.listeners=[],this.observers.forEach(function(a){a.destroy()})},x.setQueries=function(a,x){this.queries=a,this.updateObservers(x)},x.getCurrentResult=function(){return this.result},x.getOptimisticResult=function(a){return this.findMatchingObservers(a).map(function(a){return a.observer.getOptimisticResult(a.defaultedQueryOptions)})},x.findMatchingObservers=function(a){var x=this,w=this.observers,A=a.map(function(a){return x.client.defaultQueryObserverOptions(a)}),k=A.flatMap(function(a){var x=w.find(function(x){return x.options.queryHash===a.queryHash});return null!=x?[{defaultedQueryOptions:a,observer:x}]:[]}),F=k.map(function(a){return a.defaultedQueryOptions.queryHash}),V=A.filter(function(a){return!F.includes(a.queryHash)}),B=w.filter(function(a){return!k.some(function(x){return x.observer===a})}),z=V.map(function(a,w){if(a.keepPreviousData){var A=B[w];if(void 0!==A)return{defaultedQueryOptions:a,observer:A}}return{defaultedQueryOptions:a,observer:x.getObserver(a)}});return k.concat(z).sort(function(a,x){return A.indexOf(a.defaultedQueryOptions)-A.indexOf(x.defaultedQueryOptions)})},x.getObserver=function(a){var x=this.client.defaultQueryObserverOptions(a),w=this.observersMap[x.queryHash];return null!=w?w:new en(this.client,x)},x.updateObservers=function(a){var x=this;k.V.batch(function(){var w=x.observers,A=x.findMatchingObservers(x.queries);A.forEach(function(x){return x.observer.setOptions(x.defaultedQueryOptions,a)});var k=A.map(function(a){return a.observer}),F=Object.fromEntries(k.map(function(a){return[a.options.queryHash,a]})),V=k.map(function(a){return a.getCurrentResult()}),B=k.some(function(a,x){return a!==w[x]});(w.length!==k.length||B)&&(x.observers=k,x.observersMap=F,x.result=V,x.hasListeners()&&((0,Z.e5)(w,k).forEac
51h(function(a){a.destroy()}),(0,Z.e5)(k,w).forEach(function(a){a.subscribe(function(w){x.onUpdate(a,w)})}),x.notify()))})},x.onUpdate=function(a,x){var w=this.observers.indexOf(a);-1!==w&&(this.result=(0,Z.Rc)(this.result,w,x),this.notify())},x.notify=function(){var a=this;k.V.batch(function(){a.listeners.forEach(function(x){x(a.result)})})},QueriesObserver}(J.l);function useQueries(a){var x=z.useRef(!1),w=z.useState(0)[1],A=useQueryClient(),F=(0,z.useMemo)(function(){return a.map(function(a){var x=A.defaultQueryObserverOptions(a);return x.optimisticResults=!0,x})},[a,A]),V=z.useState(function(){return new eo(A,F)})[0],B=V.getOptimisticResult(F);return z.useEffect(function(){x.current=!0;var a=V.subscribe(k.V.batchCalls(function(){x.current&&w(function(a){return a+1})}));return function(){x.current=!1,a()}},[V]),z.useEffect(function(){V.setQueries(F,{listeners:!1})},[F,V]),B}var ea=w(36997),es=function(a){function InfiniteQueryObserver(x,w){return a.call(this,x,w)||this}(0,K.Z)(InfiniteQueryObserver,a);var x=InfiniteQueryObserver.prototype;return x.bindMethods=function(){a.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},x.setOptions=function(x,w){a.prototype.setOptions.call(this,(0,W.Z)({},x,{behavior:(0,ea.Gm)()}),w)},x.getOptimisticResult=function(x){return x.behavior=(0,ea.Gm)(),a.prototype.getOptimisticResult.call(this,x)},x.fetchNextPage=function(a){var x;return this.fetch({cancelRefetch:null==(x=null==a?void 0:a.cancelRefetch)||x,throwOnError:null==a?void 0:a.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==a?void 0:a.pageParam}}})},x.fetchPreviousPage=function(a){var x;return this.fetch({cancelRefetch:null==(x=null==a?void 0:a.cancelRefetch)||x,throwOnError:null==a?void 0:a.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==a?void 0:a.pageParam}}})},x.createResult=function(x,w){var A,k,F,V,B,z,G=x.state,$=a.prototype.createResult.call(this,x,w);return(0,W.Z)({},$,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,ea.Qy)(w,null==(A=G.data)?void 0:A.pages),hasPreviousPage:(0,ea.ZF)(w,null==(k=G.data)?void 0:k.pages),isFetchingNextPage:G.isFetching&&(null==(F=G.fetchMeta)?void 0:null==(V=F.fetchMore)?void 0:V.direction)==="forward",isFetchingPreviousPage:G.isFetching&&(null==(B=G.fetchMeta)?void 0:null==(z=B.fetchMore)?void 0:z.direction)==="backward"})},InfiniteQueryObserver}(en);function useInfiniteQuery(a,x,w){return useBaseQuery((0,Z._v)(a,x,w),es)}var Hydrate=function(a){var x,w,A,k=a.children,F=a.options;return x=a.state,w=useQueryClient(),(A=z.useRef(F)).current=F,z.useMemo(function(){x&&function(a,x,w){if("object"==typeof x&&null!==x){var A=a.getMutationCache(),k=a.getQueryCache(),F=x.mutations||[],V=x.queries||[];F.forEach(function(x){var k;A.build(a,(0,W.Z)({},null==w?void 0:null==(k=w.defaultOptions)?void 0:k.mutations,{mutationKey:x.mutationKey}),x.state)}),V.forEach(function(x){var A,F=k.get(x.queryHash);if(F){F.state.dataUpdatedAt<x.state.dataUpdatedAt&&F.setState(x.state);return}k.build(a,(0,W.Z)({},null==w?void 0:null==(A=w.defaultOptions)?void 0:A.queries,{queryKey:x.queryKey,queryHash:x.queryHash}),x.state)})}}(w,x,A.current)},[w,x]),k}},88387:function(a,x){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.isNavigator=x.isBrowser=x.off=x.on=x.noop=void 0,x.noop=function(){},x.on=function(a){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];a&&a.addEventListener&&a.addEventListener.apply(a,x)},x.off=function(a){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];a&&a.removeEventListener&&a.removeEventListener.apply(a,x)},x.isBrowser="undefined"!=typeof window,x.isNavigator="undefined"!=typeof navigator},27539:function(a,x,w){"use strict";var A=w(67294),k=w(88387);x.Z=function(a,x,w){if(!k.isBrowser)return[x,k.noop,k.noop];if(!a)throw Error("useLocalStorage key may not be falsy");var F=w?w.raw?function(a){return a}:w.deserializer:JSON.parse,V=A.useRef(function(a){try{var A=w?w.raw?String:w.serializer:JSON.stringify,k=localStorage.getItem(a);if(null!==k)return F(k);return x&&localStorage.setItem(a,A(x)),x}catch(a){return x}}),B=A.useState(function(){return V.current(a)}),z=B[0],G=B[1];A.useLayoutEffect(function(){return G(V.current(a))},[a]);var $=A.useCallback(function(x){try{var A="function"==typeof x?x(z):x;if(void 0===A)return;var k=void 0;k=w?w.raw?"string"==typeof A?A:JSON.stringify(A):w.serializer?w.serializer(A):JSON.stringify(A):JSON.stringify(A),localStorage.setItem(a,k),G(F(k))}catch(a){}},[a,G]);return[z,$,A.useCallback(function(){try{localStorage.removeItem(a),G(void 0)}catch(a){}},[a,G])]}},86257:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.YouTubeEmbed=x.GoogleMapsEmbed=x.GoogleAnalytics=void 0;var A=w(53494);Object.defineProperty(x,"GoogleAnalytics",{enumerable:!0,get:function(){return A.GoogleAnalytics}});var k=w(34248);Object.defineProperty(x,"GoogleMapsEmbed",{enumerable:!0,get:function(){return k.GoogleMapsEmbed}});var F=w(92239);Object.defineProperty(x,"YouTubeEmbed",{enumerable:!0,get:function(){return F.YouTubeEmbed}})},53494:function(a,x,w){"use strict";var A=this&&this.__rest||function(a,x){var w={};for(var A in a)Object.prototype.hasOwnProperty.call(a,A)&&0>x.indexOf(A)&&(w[A]=a[A]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var k=0,A=Object.getOwnPropertySymbols(a);k<A.length;k++)0>x.indexOf(A[k])&&Object.prototype.propertyIsEnumerable.call(a,A[k])&&(w[A[k]]=a[A[k]]);return w},k=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.GoogleAnalytics=void 0;let F=k(w(89426)),V=w(17058);x.GoogleAnalytics=a=>{var x=A(a,[]);return(0,V.formatData)(F.default,x)}},34248:function(a,x,w){"use strict";var A=this&&this.__rest||function(a,x){var w={};for(var A in a)Object.prototype.hasOwnProperty.call(a,A)&&0>x.indexOf(A)&&(w[A]=a[A]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var k=0,A=Object.getOwnPropertySymbols(a);k<A.length;k++)0>x.indexOf(A[k])&&Object.prototype.propertyIsEnumerable.call(a,A[k])&&(w[A[k]]=a[A[k]]);return w},k=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.GoogleMapsEmbed=void 0;let F=k(w(27395)),V=w(17058);x.GoogleMapsEmbed=a=>{var x=A(a,[]);return(0,V.formatData)(F.default,x)}},92239:function(a,x,w){"use strict";var A=this&&this.__rest||function(a,x){var w={};for(var A in a)Object.prototype.hasOwnProperty.call(a,A)&&0>x.indexOf(A)&&(w[A]=a[A]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var k=0,A=Object.getOwnPropertySymbols(a);k<A.length;k++)0>x.indexOf(A[k])&&Object.prototype.propertyIsEnumerable.call(a,A[k])&&(w[A[k]]=a[A[k]]);return w},k=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.YouTubeEmbed=void 0;let F=k(w(88420)),V=w(17058);x.YouTubeEmbed=a=>{var x=A(a,[]);return(0,V.formatData)(F.default,x)}},17058:function(a,x){"use strict";function filterArgs(a,x,w=!1){return x?Object.keys(a).filter(a=>w?!x.includes(a):x.includes(a)).reduce((x,w)=>(x[w]=a[w],x),{}):{}}function formatUrl(a,x,w,A){let k=A&&Object.keys(A).length>0?new URL(Object.values(A)[0],a):new URL(a);return x&&w&&x.forEach(a=>{w[a]&&k.searchParams.set(a,w[a])}),k.toString()}function createHtml(a,x,w,A,k){var F;if(!x)return`<${a}></${a}>`;let V=(null===(F=x.src)||void 0===F?void 0:F.url)?Object.assign(Object.assign({},x),{src:formatUrl(x.src.url,x.src.params,A,k)}):x,B=Object.keys(Object.assign(Object.assign({},V),w)).reduce((a,x)=>{let A=null==w?void 0:w[x],k=V[x],F=null!=A?A:k,B=!0===F?x:`${x}="${F}"`;return F?a+` ${B}`:a},"");return`<${a}${B}></${a}>`}Object.defineProperty(x,"__esModule",{value:!0}),x.formatData=x.createHtml=x.formatUrl=void 0,x.formatUrl=formatUrl,x.createHtml=createHtml,x.formatData=function(a,x){var w,A,k,F,V;let B=null===(w=a.scripts)||void 0===w?void 0:w.reduce((a,x)=>[...a,...Array.isArray(x.params)?x.params:[]],[]),z=filterArgs(x,B),G=filterArgs(x,null===(k=null===(A=a.html)||void 0===A?void 0:A.attributes.src)||void 0===k?void 0:k.params),$=filterArgs(x,[null===(V=null===(F=a.html)||void 0===F?void 0:F.attributes.src)||void 0===V?void 0:V.slugParam]),W=filterArgs(x,[...Object.keys(z),...Object.keys(G),...Object.keys($)],!0);return Object.assign(Object.assign({},a),{html:a.html?createHtml(a.html.element,a.html.attributes,W,G,$):null,scripts:a.scripts?a.scripts.map(a=>Object.assign(Object.assign({},a),{url:formatUrl(a.url,a.params,z)})):null})}},59885:function(a){let x=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,
51words=a=>a.match(x)||[],upperFirst=a=>a[0].toUpperCase()+a.slice(1),join=(a,x)=>words(a).join(x).toLowerCase(),camelCase=a=>words(a).reduce((a,x)=>`${a}${a?x[0].toUpperCase()+x.slice(1).toLowerCase():x.toLowerCase()}`,"");a.exports={words,upperFirst,camelCase,pascalCase:a=>upperFirst(camelCase(a)),snakeCase:a=>join(a,"_"),kebabCase:a=>join(a,"-"),sentenceCase:a=>upperFirst(join(a," ")),titleCase:a=>words(a).map(upperFirst).join(" ")}},94633:function(a){function toposort(a,x){var w=a.length,A=Array(w),k={},F=w,V=function(a){for(var x=new Map,w=0,A=a.length;w<A;w++){var k=a[w];x.has(k[0])||x.set(k[0],new Set),x.has(k[1])||x.set(k[1],new Set),x.get(k[0]).add(k[1])}return x}(x),B=function(a){for(var x=new Map,w=0,A=a.length;w<A;w++)x.set(a[w],w);return x}(a);for(x.forEach(function(a){if(!B.has(a[0])||!B.has(a[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});F--;)k[F]||function visit(a,x,F){if(F.has(a)){var z;try{z=", node was:"+JSON.stringify(a)}catch(a){z=""}throw Error("Cyclic dependency"+z)}if(!B.has(a))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(a));if(!k[x]){k[x]=!0;var G=V.get(a)||new Set;if(x=(G=Array.from(G)).length){F.add(a);do{var $=G[--x];visit($,B.get($),F)}while(x);F.delete(a)}A[--w]=a}}(a[F],F,new Set);return A}a.exports=function(a){return toposort(function(a){for(var x=new Set,w=0,A=a.length;w<A;w++){var k=a[w];x.add(k[0]),x.add(k[1])}return Array.from(x)}(a),a)},a.exports.array=toposort},18871:function(a,x,w){"use strict";var A=this&&this.__createBinding||(Object.create?function(a,x,w,A){void 0===A&&(A=w);var k=Object.getOwnPropertyDescriptor(x,w);(!k||("get"in k?!x.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return x[w]}}),Object.defineProperty(a,A,k)}:function(a,x,w,A){void 0===A&&(A=w),a[A]=x[w]}),k=this&&this.__setModuleDefault||(Object.create?function(a,x){Object.defineProperty(a,"default",{enumerable:!0,value:x})}:function(a,x){a.default=x}),F=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var x={};if(null!=a)for(var w in a)"default"!==w&&Object.prototype.hasOwnProperty.call(a,w)&&A(x,a,w);return k(x,a),x},V=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.Errors=x.SearchClient=x.Client=void 0;var B=V(w(84339));x.Client=B.default;var z=V(w(98834));x.SearchClient=z.default;var G=F(w(46718));x.Errors=G,x.default={Client:B.default,SearchClient:z.default,Errors:G}},78480:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(95346)),B=function(){function Alias(a,x){this.name=a,this.apiCall=x}return Alias.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Alias.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Alias.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.name)},Alias}();x.default=B},95346:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Prom
51ise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k="/aliases",F=function(){function Aliases(a){this.apiCall=a}return Aliases.prototype.upsert=function(a,x){return w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},Aliases.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(k)]})})},Aliases.prototype.endpointPath=function(a){return"".concat(Aliases.RESOURCEPATH,"/").concat(a)},Object.defineProperty(Aliases,"RESOURCEPATH",{get:function(){return k},enumerable:!1,configurable:!0}),Aliases}();x.default=F},36845:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var k=A(w(89034)),F=A(w(77533)),V=function(){function Analytics(a){this.apiCall=a,this.individualAnalyticsRules={},this.apiCall=a,this._analyticsRules=new k.default(this.apiCall)}return Analytics.prototype.rules=function(a){return void 0===a?this._analyticsRules:(void 0===this.individualAnalyticsRules[a]&&(this.individualAnalyticsRules[a]=new F.default(a,this.apiCall)),this.individualAnalyticsRules[a])},Object.defineProperty(Analytics,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),Analytics}();x.default=V},77533:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(89034)),B=function(){function AnalyticsRule(a,x){this.name=a,this.apiCall=x}return AnalyticsRule.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},AnalyticsRule.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},AnalyticsRule.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.name)},AnalyticsRule}();x.default=B},89034:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function AnalyticsRules(a){this.apiCall=a,this.apiCall=a}return AnalyticsRules.prototype.upsert=function(a,x){return w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},AnalyticsRules.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},AnalyticsRules.prototype.endpointPath=function(a){return"".concat(AnalyticsRules.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(AnalyticsRules,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),AnalyticsRules}();x.default=k},69777:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(50639)),B=w(46718),z=F(w(94492)),G=function(){function ApiCall(a){this.configuration=a,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return ApiCall.prototype.get=function(a,x,w){void 0===x&&(x={});var F=void 0===w?{}:w,V=F.abortSignal,B=void 0===V?null:V,z=F.responseType,G=void 0===z?void 0:z;return A(this,void 0,void 0,function(){return k(this,function(w){return[2,this.performRequest("get",a,{queryParameters:x,abortSignal:B,responseType:G})]})})},ApiCall.prototype.delete=function(a,x){return void 0===x&&(x={}),A(this,void 0,void 0,function(){return k(this,function(w){return[2,this.performRequest("delete",a,{queryParameters:x})]})})},ApiCall.prototype.post=function(a,x,w,F){return void 0===x&&(x={}),void 0===w&&(w={}),void 0===F&&(F={}),A(this,void 0,void 0,function(){return k(this,function(A){return[2,this.performRequest("post",a,{queryParameters:w,bodyParameters:x,additionalHeaders:F})]})})},ApiCall.prototype.put=function(a,x,w){return void 0===x&&(x={}),void 0===w&&(w={}),A(this,void 0,void 0,function(){return k(this,function(A){return[2,this.performRequest("put",a,{queryParameters:w,bodyParameters:x})]})})},ApiCall.prototype.patch=function(a,x,w){return void 0===x&&(x={}),void 0===w&&(w={}),A(this,void 0,void 0,function(){return k(this,function(A){return[2,this.performRequest("patch",a,{queryParameters:w,bodyParameters:x})]})})},ApiCall.prototype.performRequest=function(a,x,w){var F,B,z,G=w.queryParameters,$=void 0===G?null:G,W=w.bodyParameters,Z=void 0===W?null:W,K=w.additionalHeaders,Y=void 0===K?{}:K,J=w.abortSignal,ee=void 0===J?null:J,et=w.responseType,er=void 0===et?void 0:et,en=w.skipConnectionTimeout,ei=void 0!==en&&en;return A(this,void 0,void 0,function(){var w,A,G,W,K,J;return k(this,function(et){switch(et.label){case 0:this.configuration.validate(),w=Date.now(),this.logger.debug("Request #".concat(w,": Performing ").concat(a.toUpperCase()," request: ").concat(x)),G=function(G){var K,J,et,en,eo,ea;return k(this,function(k){switch(k.label){case 0:if(K=W.getNextNode(w),W.logger.debug("Request #".concat(w,": Attempting ").concat(a.toUpperCase()," request Try #").concat(G," to Node ").concat(K.index)),ee&&ee.aborted)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];J=void 0,k.label=1;case 1:return k.trys.push([1,3,5,6]),et={method:a,url:W.uriFor(x,K),headers:Object.assign({},W.defaultHeaders(),Y,W.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,responseType:er,validateStatus:function(a){return a>0},transformResponse:[function(a,x){var w=a;return void 0!==x&&"string"==typeof a&&x["content-type"]&&x["content-type"].startsWith("application/json")&&(w=JSON.parse(a)),w}]},!0!==ei&&(et.timeout=1e3*W.connectionTimeoutSeconds),$&&0!==Object.keys($).length&&(et.params=$),W.sendApiKeyAsQueryParam&&(et.params=et.params||{},et.params["x-typesense-api-key"]=W.apiKey),W.configuration.httpAgent&&(W.logger.debug("Request #".concat(w,": Using custom httpAgent")),et.httpAgent=W.configuration.httpAgent),W.configuration.httpsAgent&&(W.logger.debug("Request #".concat(w,": Using custom httpsAgent")),et.httpsAgent=W.configuration.httpsAgent),Z&&("string"==typeof Z&&0!==Z.length||"object"==typeof Z&&0!==Object.keys(Z).length)&&(et.data=Z),ee&&(en=V.default.CancelToken.source(),J=function(){return en.cancel()},ee.addEventListener("abort",J),et.cancelToken=en.token),[4,(0,V.default)(et)];case 2:if((eo=k.sent()).status>
51=1&&eo.status<=499&&W.setNodeHealthcheck(K,!0),W.logger.debug("Request #".concat(w,": Request to Node ").concat(K.index," was made. Response Code was ").concat(eo.status,".")),eo.status>=200&&eo.status<300)return[2,{value:Promise.resolve(eo.data)}];if(eo.status<500)return[2,{value:Promise.reject(W.customErrorForResponse(eo,null===(F=eo.data)||void 0===F?void 0:F.message))}];throw W.customErrorForResponse(eo,null===(B=eo.data)||void 0===B?void 0:B.message);case 3:return ea=k.sent(),W.setNodeHealthcheck(K,!1),A=ea,W.logger.warn("Request #".concat(w,": Request to Node ").concat(K.index,' failed due to "').concat(ea.code," ").concat(ea.message).concat(null==ea.response?"":" - "+JSON.stringify(null===(z=ea.response)||void 0===z?void 0:z.data),'"')),W.logger.warn("Request #".concat(w,": Sleeping for ").concat(W.retryIntervalSeconds,"s and then retrying request...")),[4,W.timer(W.retryIntervalSeconds)];case 4:return k.sent(),[3,6];case 5:return ee&&J&&ee.removeEventListener("abort",J),[7];case 6:return[2]}})},W=this,K=1,et.label=1;case 1:if(!(K<=this.numRetriesPerRequest+1))return[3,4];return[5,G(K)];case 2:if("object"==typeof(J=et.sent()))return[2,J.value];et.label=3;case 3:return K++,[3,1];case 4:return this.logger.debug("Request #".concat(w,": No retries left. Raising last error")),[2,Promise.reject(A)]}})})},ApiCall.prototype.getNextNode=function(a){if(void 0===a&&(a=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(a,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,a))return this.logger.debug("Request #".concat(a,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(a,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(a,": Nodes Health: ").concat(this.nodes.map(function(a){return"Node ".concat(a.index," is ").concat(!0===a.isHealthy?"Healthy":"Unhealthy")}).join(" || ")));for(var x=this.nodes[0],w=0;w<=this.nodes.length;w++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(x=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(x,a))return this.logger.debug("Request #".concat(a,": Updated current node to Node ").concat(x.index)),x;return this.logger.debug("Request #".concat(a,": No healthy nodes were found. Returning the next node, Node ").concat(x.index)),x},ApiCall.prototype.nodeDueForHealthcheck=function(a,x){void 0===x&&(x=0);var w=Date.now()-a.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return w&&this.logger.debug("Request #".concat(x,": Node ").concat(a.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),w},ApiCall.prototype.initializeMetadataForNodes=function(){var a=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,!0)),this.nodes.forEach(function(x,w){x.index=w,a.setNodeHealthcheck(x,!0)})},ApiCall.prototype.setNodeHealthcheck=function(a,x){a.isHealthy=x,a.lastAccessTimestamp=Date.now()},ApiCall.prototype.uriFor=function(a,x){return null!=x.url?"".concat(x.url).concat(a):"".concat(x.protocol,"://").concat(x.host,":").concat(x.port).concat(x.path).concat(a)},ApiCall.prototype.defaultHeaders=function(){var a={};return this.sendApiKeyAsQueryParam||(a["X-TYPESENSE-API-KEY"]=this.apiKey),a["Content-Type"]="application/json",a},ApiCall.prototype.timer=function(a){return A(this,void 0,void 0,function(){return k(this,function(x){return[2,new Promise(function(x){return setTimeout(x,1e3*a)})]})})},ApiCall.prototype.customErrorForResponse=function(a,x){var w="Request failed with HTTP code ".concat(a.status);"string"==typeof x&&""!==x.trim()&&(w+=" | Server said: ".concat(x));var A=new z.default(w);return(A=400===a.status?new B.RequestMalformed(w):401===a.status?new B.RequestUnauthorized(w):404===a.status?new B.ObjectNotFound(w):409===a.status?new B.ObjectAlreadyExists(w):422===a.status?new B.ObjectUnprocessable(w):a.status>=500&&a.status<=599?new B.ServerError(w):new B.HTTPError(w)).httpStatus=a.status,A},ApiCall}();x.default=G},84339:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var k=A(w(72554)),F=A(w(69777)),V=A(w(46581)),B=A(w(8243)),z=A(w(95346)),G=A(w(78480)),$=A(w(62708)),W=A(w(87309)),Z=A(w(47634)),K=A(w(6029)),Y=A(w(31930)),J=A(w(33095)),ee=A(w(29092)),et=A(w(11036)),er=A(w(51040)),en=A(w(36845)),ei=A(w(48865)),eo=A(w(93234)),ea=A(w(83215)),es=A(w(52086)),el=function(){function Client(a){var x;a.sendApiKeyAsQueryParam=null!==(x=a.sendApiKeyAsQueryParam)&&void 0!==x&&x,this.configuration=new k.default(a),this.apiCall=new F.default(this.configuration),this.debug=new Z.default(this.apiCall),this.metrics=new K.default(this.apiCall),this.health=new Y.default(this.apiCall),this.operations=new J.default(this.apiCall),this.multiSearch=new ee.default(this.apiCall,this.configuration),this._collections=new V.default(this.apiCall),this.individualCollections={},this._aliases=new z.default(this.apiCall),this.individualAliases={},this._keys=new $.default(this.apiCall),this.individualKeys={},this._presets=new et.default(this.apiCall),this.individualPresets={},this._stopwords=new ei.default(this.apiCall),this.individualStopwords={},this.analytics=new en.default(this.apiCall),this._conversations=new ea.default(this.apiCall),this.individualConversations={}}return Client.prototype.collections=function(a){return void 0===a?this._collections:(void 0===this.individualCollections[a]&&(this.individualCollections[a]=new B.default(a,this.apiCall,this.configuration)),this.individualCollections[a])},Client.prototype.aliases=function(a){return void 0===a?this._aliases:(void 0===this.individualAliases[a]&&(this.individualAliases[a]=new G.default(a,this.apiCall)),this.individualAliases[a])},Client.prototype.keys=function(a){return void 0===a?this._keys:(void 0===this.individualKeys[a]&&(this.individualKeys[a]=new W.default(a,this.apiCall)),this.individualKeys[a]
51)},Client.prototype.presets=function(a){return void 0===a?this._presets:(void 0===this.individualPresets[a]&&(this.individualPresets[a]=new er.default(a,this.apiCall)),this.individualPresets[a])},Client.prototype.stopwords=function(a){return void 0===a?this._stopwords:(void 0===this.individualStopwords[a]&&(this.individualStopwords[a]=new eo.default(a,this.apiCall)),this.individualStopwords[a])},Client.prototype.conversations=function(a){return void 0===a?this._conversations:(void 0===this.individualConversations[a]&&(this.individualConversations[a]=new es.default(a,this.apiCall)),this.individualConversations[a])},Client}();x.default=el},8243:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(46581)),B=F(w(41949)),z=w(46718),G=F(w(16067)),$=F(w(63620)),W=F(w(1940)),Z=F(w(1483)),K=w(59071),Y=function(){function Collection(a,x,w){this.name=a,this.apiCall=x,this.configuration=w,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=a,this.apiCall=x,this.configuration=w,this._documents=new B.default(this.name,this.apiCall,this.configuration),this._overrides=new G.default(this.name,this.apiCall),this._synonyms=new W.default(this.name,this.apiCall)}return Collection.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Collection.prototype.update=function(a){return A(this,void 0,void 0,function(){return k(this,function(x){return[2,this.apiCall.patch(this.endpointPath(),a)]})})},Collection.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Collection.prototype.exists=function(){return A(this,void 0,void 0,function(){var a;return k(this,function(x){switch(x.label){case 0:return x.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return x.sent(),[2,!0];case 2:if((a=x.sent())instanceof z.ObjectNotFound)return[2,!1];throw a;case 3:return[2]}})})},Collection.prototype.documents=function(a){return a?(void 0===this.individualDocuments[a]&&(this.individualDocuments[a]=new K.Document(this.name,a,this.apiCall)),this.individualDocuments[a]):this._documents},Collection.prototype.overrides=function(a){return void 0===a?this._overrides:(void 0===this.individualOverrides[a]&&(this.individualOverrides[a]=new $.default(this.name,a,this.apiCall)),this.individualOverrides[a])},Collection.prototype.synonyms=function(a){return void 0===a?this._synonyms:(void 0===this.individualSynonyms[a]&&(this.individualSynonyms[a]=new Z.default(this.name,a,this.apiCall)),this.individualSynonyms[a])},Collection.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.name)},Collection}();x.default=Y},46581:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Prom
51ise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k="/collections",F=function(){function Collections(a){this.apiCall=a}return Collections.prototype.create=function(a,x){return void 0===x&&(x={}),w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.post(k,a,x)]})})},Collections.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(k)]})})},Object.defineProperty(Collections,"RESOURCEPATH",{get:function(){return k},enumerable:!1,configurable:!0}),Collections}();x.default=F},72554:function(a,x,w){"use strict";var A=this&&this.__assign||function(){return(A=Object.assign||function(a){for(var x,w=1,A=arguments.length;w<A;w++)for(var k in x=arguments[w])Object.prototype.hasOwnProperty.call(x,k)&&(a[k]=x[k]);return a}).apply(this,arguments)},k=this&&this.__createBinding||(Object.create?function(a,x,w,A){void 0===A&&(A=w);var k=Object.getOwnPropertyDescriptor(x,w);(!k||("get"in k?!x.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return x[w]}}),Object.defineProperty(a,A,k)}:function(a,x,w,A){void 0===A&&(A=w),a[A]=x[w]}),F=this&&this.__setModuleDefault||(Object.create?function(a,x){Object.defineProperty(a,"default",{enumerable:!0,value:x})}:function(a,x){a.default=x}),V=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var x={};if(null!=a)for(var w in a)"default"!==w&&Object.prototype.hasOwnProperty.call(a,w)&&k(x,a,w);return F(x,a),x};Object.defineProperty(x,"__esModule",{value:!0});var B=V(w(2043)),z=w(46718),G=function(){function Configuration(a){var x=this;this.nodes=a.nodes||[],this.nodes=this.nodes.map(function(a){return x.setDefaultPathInNode(a)}).map(function(a){return x.setDefaultPortInNode(a)}).map(function(a){return A({},a)}),null==a.randomizeNodes&&(a.randomizeNodes=!0),!0===a.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=a.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=a.connectionTimeoutSeconds||a.timeoutSeconds||5,this.healthcheckIntervalSeconds=a.healthcheckIntervalSeconds||60,this.numRetries=a.numRetries||this.nodes.length+(null==this.nearestNode?0:1)||3,this.retryIntervalSeconds=a.retryIntervalSeconds||.1,this.apiKey=a.apiKey,this.sendApiKeyAsQueryParam=a.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=a.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=a.useServerSideSearchCache||!1,this.logger=a.logger||B,this.logLevel=a.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=a.additionalHeaders,this.httpAgent=a.httpAgent,this.httpsAgent=a.httpsAgent,this.showDeprecationWarnings(a),this.validate()}return Configuration.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new z.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new z.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new z.MissingConfigurationError("Ensure that apiKey is set");return!0},Configuration.prototype.validateNodes=function(){var a=this;return this.nodes.some(function(x){return a.isNodeMissingAnyParameters(x)})},Configuration.prototype.isNodeMissingAnyParameters=function(a){return!["protocol","host","port","path"].every(function(x){return a.hasOwnProperty(x)})&&null==a.url},Configuration.prototype.setDefaultPathInNode=function(a){return null==a||a.hasOwnProperty("path")||(a.path=""),a}
51,Configuration.prototype.setDefaultPortInNode=function(a){if(null!=a&&!a.hasOwnProperty("port")&&a.hasOwnProperty("protocol"))switch(a.protocol){case"https":a.port=443;break;case"http":a.port=80}return a},Configuration.prototype.showDeprecationWarnings=function(a){a.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),a.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),a.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},Configuration.prototype.shuffleArray=function(a){for(var x,w=a.length-1;w>0;w--){var A=Math.floor(Math.random()*(w+1));x=[a[A],a[w]],a[w]=x[0],a[A]=x[1]}},Configuration}();x.default=G},52086:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(83215)),B=function(){function Conversation(a,x){this.id=a,this.apiCall=x}return Conversation.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Conversation.prototype.update=function(a){return A(this,void 0,void 0,function(){return k(this,function(x){return[2,this.apiCall.put(this.endpointPath(),a)]})})},Conversation.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Conversation.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.id)},Conversation}();x.default=B},57918:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(109)),B=function(){function ConversationModel(a,x){this.id=a,this.apiCall=x}return ConversationModel.prototype.update=function(a){return A(this,void 0,void 0,function(){return k(this,function(x){return[2,this.apiCall.put(this.endpointPath(),a)]})})},ConversationModel.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},ConversationModel.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},ConversationModel.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.id)},ConversationModel}();x.default=B},109:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function ConversationModels(a){this.apiCall=a,this.apiCall=a}return ConversationModels.prototype.create=function(a){return w(this,void 0,void 0,function(){return A(this,function(x){return[2,this.apiCall.post(this.endpointPath(),a)]})})},ConversationModels.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},ConversationModels.prototype.endpointPath=function(a){return"".concat(ConversationModels.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(ConversationModels,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),ConversationModels}();x.default=k},83215:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(109)),B=F(w(57918)),z="/conversations",G=function(){function Conversations(a){this.apiCall=a,this.individualConversationModels={},this.apiCall=a,this._conversationsModels=new V.default(this.apiCall)}return Conversations.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(z)]})})},Conversations.prototype.models=function(a){return void 0===a?this._conversationsModels:(void 0===this.individualConversationModels[a]&&(this.individualConversationModels[a]=new B.default(a,this.apiCall)),this.individualConversationModels[a])},Object.defineProperty(Conversations,"RESOURCEPATH",{get:function(){return z},enumerable:!1,configurable:!0}),Conversations}();x.default=G},47634:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Debug(a){this.apiCall=a}return Debug.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get("/debug")]})})},Debug}();x.default=k},59071:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.Document=void 0;var V=F(w(46581)),B=F(w(41949)),z=function(){function Document(a,x,w){this.collectionName=a,this.documentId=x,this.apiCall=w}return Document.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Document.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Document.prototype.update=function(a,x){return void 0===x&&(x={}),A(this,void 0,void 0,function(){return k(this,function(w){return[2,this.apiCall.patch(this.endpointPath(),a,x)]})})},Document.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.collectionName).concat(B.default.RESOURCEPATH,"/").concat(this.documentId)},Document}();x.Document=z},41949:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},V=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var B=w(46718),z=function(a){function Documents(x,w,A){return a.call(this,x,w,A)||this}return k(Documents,a),Documents.prototype.create=function(a,x){return void 0===x&&(x={}),F(this,void 0,void 0,function(){return V(this,function(w){if(!a)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),a,x)]})})},Documents.prototype.upsert=function(a,x){return void 0===x&&(x={}),F(this,void 0,void 0,function(){return V(this,function(w){if(!a)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),a,Object.assign({},x,{action:"upsert"}))]})})},Documents.prototype.update=function(a,x){return void 0===x&&(x={}),F(this,void 0,void 0,function(){return V(this,function(w){if(!a)throw Error("No document provided");return null!=x.filter_by?[2,this.apiCall.patch(this.endpointPath(),a,Object.assign({},x))]:[2,this.apiCall.post(this.endpointPath(),a,Object.assign({},x,{action:"update"}))]})})},Documents.prototype.delete=function(a){return void 0===a&&(a={}),F(this,void 0,void 0,function(){return V(this,function(x){return[2,this.apiCall.delete(this.endpointPath(),a)]})})},Documents.prototype.createMany=function(a,x){return void 0===x&&(x={}),F(this,void 0,void 0,function(){return V(this,function(w){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(a,x)]})})},Documents.prototype.import=function(a,x){return void 0===x&&(x={}),F(this,void 0,void 0,function(){var w,A,k,F;return V(this,function(V){switch(V.label){case 0:if(Array.isArray(a))try{w=a.map(function(a){return JSON.stringify(a)}).join("\n")}catch(a){if(RangeError instanceof a&&(null==a?void 0:a.includes("Too many properties to enumerate")))throw Error("".concat(a,"\n          It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n          Please try reducing the number of keys in your document, or using CURL to import your data.\n          "));throw Error(a)}else w=a;return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:x,bodyParameters:w,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:if(A=V.sent(),!Array.isArray(a))return[2,A];if(!((F=(k=A.split("\n").map(function(a){return JSON.parse(a)})).filter(function(a){return!1===a.success})).length>0))return[2,k];throw new B.ImportError("".concat(k.length-F.length," documents imported successfully, ").concat(F.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),k)}})})}
51,Documents.prototype.export=function(a){return void 0===a&&(a={}),F(this,void 0,void 0,function(){return V(this,function(x){return[2,this.apiCall.get(this.endpointPath("export"),a)]})})},Documents.prototype.exportStream=function(a){return void 0===a&&(a={}),F(this,void 0,void 0,function(){return V(this,function(x){return[2,this.apiCall.get(this.endpointPath("export"),a,{responseType:"stream"})]})})},Documents}(w(55586).SearchOnlyDocuments);x.default=z},7117:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function HTTPError(){return null!==a&&a.apply(this,arguments)||this}return k(HTTPError,a),HTTPError}(F(w(94492)).default);x.default=V},59229:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function ImportError(x,w){var A=a.call(this,x)||this;return A.importResults=w,A}return k(ImportError,a),ImportError}(F(w(94492)).default);x.default=V},41254:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function MissingConfigurationError(){return null!==a&&a.apply(this,arguments)||this}return k(MissingConfigurationError,a),MissingConfigurationError}(F(w(94492)).default);x.default=V},64105:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function ObjectAlreadyExists(){return null!==a&&a.apply(this,arguments)||this}return k(ObjectAlreadyExists,a),ObjectAlreadyExists}(F(w(94492)).default);x.default=V},53836:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function ObjectNotFound(){return null!==a&&a.apply(this,arguments)||this}return k(ObjectNotFound,a),ObjectNotFound}(F(w(94492)).default);x.default=V},20220:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]}
51)instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function ObjectUnprocessable(){return null!==a&&a.apply(this,arguments)||this}return k(ObjectUnprocessable,a),ObjectUnprocessable}(F(w(94492)).default);x.default=V},4913:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function RequestMalformed(){return null!==a&&a.apply(this,arguments)||this}return k(RequestMalformed,a),RequestMalformed}(F(w(94492)).default);x.default=V},9976:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function RequestUnauthorized(){return null!==a&&a.apply(this,arguments)||this}return k(RequestUnauthorized,a),RequestUnauthorized}(F(w(94492)).default);x.default=V},14959:function(a,x,w){"use strict";var A,k=this&&this.__extends||(A=function(a,x){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}A(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)}),F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=function(a){function ServerError(){return null!==a&&a.apply(this,arguments)||this}return k(ServerError,a),ServerError}(F(w(94492)).default);x.default=V},94492:function(a,x){"use strict";var w,A=this&&this.__extends||(w=function(a,x){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,x){a.__proto__=x}||function(a,x){for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(a[w]=x[w])})(a,x)},function(a,x){if("function"!=typeof x&&null!==x)throw TypeError("Class extends value "+String(x)+" is not a constructor or null");function __(){this.constructor=a}w(a,x),a.prototype=null===x?Object.create(x):(__.prototype=x.prototype,new __)});Object.defineProperty(x,"__esModule",{value:!0});var k=function(a){function TypesenseError(x){var w=this.constructor,A=a.call(this,x)||this;return A.name=w.name,Object.setPrototypeOf(A,w.prototype),A}return A(TypesenseError,a),TypesenseError}(Error);x.default=k},46718:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.ImportError=x.TypesenseError=x.ServerError=x.RequestUnauthorized=x.RequestMalformed=x.ObjectUnprocessable=x.ObjectNotFound=x.ObjectAlreadyExists=x.MissingConfigurationError=x.HTTPError=void 0;var k=A(w(7117));x.HTTPError=k.default;var F=A(w(41254));x.MissingConfigurationError=F.default;
51var V=A(w(64105));x.ObjectAlreadyExists=V.default;var B=A(w(53836));x.ObjectNotFound=B.default;var z=A(w(20220));x.ObjectUnprocessable=z.default;var G=A(w(4913));x.RequestMalformed=G.default;var $=A(w(9976));x.RequestUnauthorized=$.default;var W=A(w(14959));x.ServerError=W.default;var Z=A(w(59229));x.ImportError=Z.default;var K=A(w(94492));x.TypesenseError=K.default},31930:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Health(a){this.apiCall=a}return Health.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get("/health")]})})},Health}();x.default=k},87309:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(62708)),B=function(){function Key(a,x){this.id=a,this.apiCall=x}return Key.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Key.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Key.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.id
51)},Key}();x.default=B},62708:function(a,x,w){"use strict";var A=w(48764).lW,k=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},F=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var V=w(99964),B="/keys",z=function(){function Keys(a){this.apiCall=a,this.apiCall=a}return Keys.prototype.create=function(a){return k(this,void 0,void 0,function(){return F(this,function(x){return[2,this.apiCall.post(Keys.RESOURCEPATH,a)]})})},Keys.prototype.retrieve=function(){return k(this,void 0,void 0,function(){return F(this,function(a){return[2,this.apiCall.get(B)]})})},Keys.prototype.generateScopedSearchKey=function(a,x){var w=JSON.stringify(x),k=A.from((0,V.createHmac)("sha256",a).update(w).digest("base64")),F=a.substr(0,4),B="".concat(k).concat(F).concat(w);return A.from(B).toString("base64")},Object.defineProperty(Keys,"RESOURCEPATH",{get:function(){return B},enumerable:!1,configurable:!0}),Keys}();x.default=z},6029:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Metrics(a){this.apiCall=a}return Metrics.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get("/metrics.json")]})})},Metrics}();x.default=k},29092:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Prom
51ise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(72598)),B=function(){function MultiSearch(a,x,w){void 0===w&&(w=!1),this.apiCall=a,this.configuration=x,this.useTextContentType=w,this.requestWithCache=new V.default}return MultiSearch.prototype.clearCache=function(){this.requestWithCache.clearCache()},MultiSearch.prototype.perform=function(a,x,w){void 0===x&&(x={});var F=(void 0===w?{}:w).cacheSearchResultsForSeconds,V=void 0===F?this.configuration.cacheSearchResultsForSeconds:F;return A(this,void 0,void 0,function(){var w,A,F;return k(this,function(k){return w={},this.useTextContentType&&(w["content-type"]="text/plain"),A={},!0===this.configuration.useServerSideSearchCache&&(A.use_cache=!0),F=Object.assign({},x,A),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.post,["/multi_search",a,F,w],{cacheResponseForSeconds:V})]})})},MultiSearch}();x.default=B},33095:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Operations(a){this.apiCall=a}return Operations.prototype.perform=function(a,x){return void 0===x&&(x={}),w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.post("".concat("/operations","/").concat(a),{},x)]})})},Operations}();x.default=k},63620:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Prom
51ise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(46581)),B=F(w(16067)),z=function(){function Override(a,x,w){this.collectionName=a,this.overrideId=x,this.apiCall=w}return Override.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Override.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Override.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.collectionName).concat(B.default.RESOURCEPATH,"/").concat(this.overrideId)},Override}();x.default=z},16067:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(46581)),B=function(){function Overrides(a,x){this.collectionName=a,this.apiCall=x}return Overrides.prototype.upsert=function(a,x){return A(this,void 0,void 0,function(){return k(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},Overrides.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Overrides.prototype.endpointPath=function(a){return"".concat(V.default.RESOURCEPATH,"/").concat(this.collectionName).concat(Overrides.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(Overrides,"RESOURCEPATH",{get:function(){return"/overrides"}
51,enumerable:!1,configurable:!0}),Overrides}();x.default=B},51040:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(11036)),B=function(){function Preset(a,x){this.presetId=a,this.apiCall=x}return Preset.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Preset.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Preset.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.presetId)},Preset}();x.default=B},11036:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Presets(a){this.apiCall=a}return Presets.prototype.upsert=function(a,x){return w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},Presets.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Presets.prototype.endpointPath=function(a){return"".concat(Presets.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(Presets,"RESOURCEPATH",{get:function(){return"/presets"}
51,enumerable:!1,configurable:!0}),Presets}();x.default=k},72598:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},k=this&&this.__spreadArray||function(a,x,w){if(w||2==arguments.length)for(var A,k=0,F=x.length;k<F;k++)!A&&k in x||(A||(A=Array.prototype.slice.call(x,0,k)),A[k]=x[k]);return a.concat(A||Array.prototype.slice.call(x))};Object.defineProperty(x,"__esModule",{value:!0});var F=function(){function RequestWithCache(){this.responseCache=new Map,this.responsePromiseCache=new Map}return RequestWithCache.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},RequestWithCache.prototype.perform=function(a,x,F,V){return w(this,void 0,void 0,function(){var w,B,z,G,$,W,Z,K,Y,J,ee;return A(this,function(A){switch(A.label){case 0:if(B=void 0===(w=V.cacheResponseForSeconds)?120:w,G=void 0===(z=V.maxSize)?100:z,B<=0||G<=0)return[2,x.call.apply(x,k([a],F,!1))];if($=JSON.stringify(F),W=this.responseCache.get($),Z=Date.now(),W){if(Z-W.requestTimestamp<1e3*B)return this.responseCache.delete($),this.responseCache.set($,W),[2,Promise.resolve(W.response)];this.responseCache.delete($)}if(K=this.responsePromiseCache.get($)){if(Z-K.requestTimestamp<1e3*B)return this.responsePromiseCache.delete($),this.responsePromiseCache.set($,K),[2,K.responsePromise];this.responsePromiseCache.delete($)}return Y=x.call.apply(x,k([a],F,!1)),this.responsePromiseCache.set($,{requestTimestamp:Z,responsePromise:Y}),[4,Y];case 1:return J=A.sent(),this.responseCache.set($,{requestTimestamp:Z,response:J}),this.responseCache.size>G&&(ee=this.responseCache.keys().next().value,this.responseCache.delete(ee)),this.responsePromiseCache.size>G&&(ee=this.responsePromiseCache.keys().next().value,this.responsePromiseCache.delete(ee)),[2,J]}})})},RequestWithCache}();x.default=F},98834:function(a,x,w){"use strict";var A=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var k=A(w(72554)),F=A(w(69777)),V=A(w(29092)),B=w(33320),z=function(){function SearchClient(a){var x;a.sendApiKeyAsQueryParam=null===(x=a.sendApiKeyAsQueryParam)||void 0===x||x,!0===a.sendApiKeyAsQueryParam&&(a.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),a.sendApiKeyAsQueryParam=!1),this.configuration=new k.default(a),this.apiCall=new F.default(this.configuration),this.multiSearch=new V.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return SearchClient.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEac
51h(function(a){a[0],a[1].documents().clearCache()})},SearchClient.prototype.collections=function(a){if(a)return void 0===this.individualCollections[a]&&(this.individualCollections[a]=new B.SearchOnlyCollection(a,this.apiCall,this.configuration)),this.individualCollections[a];throw Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},SearchClient}();x.default=z},33320:function(a,x,w){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.SearchOnlyCollection=void 0;var A=w(55586),k=function(){function SearchOnlyCollection(a,x,w){this.name=a,this.apiCall=x,this.configuration=w,this._documents=new A.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return SearchOnlyCollection.prototype.documents=function(){return this._documents},SearchOnlyCollection}();x.SearchOnlyCollection=k},55586:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0}),x.SearchOnlyDocuments=void 0;var V=F(w(72598)),B=F(w(46581)),z="/documents",G=function(){function SearchOnlyDocuments(a,x,w){this.collectionName=a,this.apiCall=x,this.configuration=w,this.requestWithCache=new V.default}return SearchOnlyDocuments.prototype.clearCache=function(){this.requestWithCache.clearCache()},SearchOnlyDocuments.prototype.search=function(a,x){var w=void 0===x?{}:x,F=w.cacheSearchResultsForSeconds,V=void 0===F?this.configuration.cacheSearchResultsForSeconds:F,B=w.abortSignal,z=void 0===B?null:B;return A(this,void 0,void 0,function(){var x,w,A;return k(this,function(k){for(w in x={},!0===this.configuration.useServerSideSearchCache&&(x.use_cache=!0),a)Array.isArray(a[w])&&(x[w]=a[w].join(","));return A=Object.assign({},a,x),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.get,[this.endpointPath("search"),A,{abortSignal:z}],{cacheResponseForSeconds:V})]})})},SearchOnlyDocuments.prototype.endpointPath=function(a){return"".concat(B.default.RESOURCEPATH,"/").concat(this.collectionName).concat(z).concat(void 0===a?"":"/"+a)},Object.defineProperty(SearchOnlyDocuments,"RESOURCEPATH",{get:function(){return z},enumerable:!1,configurable:!0}),SearchOnlyDocuments}();x.SearchOnlyDocuments=G},93234:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(48865)),B=function(){function Stopword(a,x){this.stopwordId=a,this.apiCall=x}return Stopword.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Stopword.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Stopword.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.stopwordId)},Stopword}();x.default=B},48865:function(a,x){"use strict";var w=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},A=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}};Object.defineProperty(x,"__esModule",{value:!0});var k=function(){function Stopwords(a){this.apiCall=a}return Stopwords.prototype.upsert=function(a,x){return w(this,void 0,void 0,function(){return A(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},Stopwords.prototype.retrieve=function(){return w(this,void 0,void 0,function(){return A(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Stopwords.prototype.endpointPath=function(a){return"".concat(Stopwords.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(Stopwords,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),Stopwords}();x.default=k},1483:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];
51return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(46581)),B=F(w(1940)),z=function(){function Synonym(a,x,w){this.collectionName=a,this.synonymId=x,this.apiCall=w}return Synonym.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Synonym.prototype.delete=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.delete(this.endpointPath())]})})},Synonym.prototype.endpointPath=function(){return"".concat(V.default.RESOURCEPATH,"/").concat(this.collectionName).concat(B.default.RESOURCEPATH,"/").concat(this.synonymId)},Synonym}();x.default=z},1940:function(a,x,w){"use strict";var A=this&&this.__awaiter||function(a,x,w,A){return new(w||(w=Promise))(function(k,F){function fulfilled(a){try{step(A.next(a))}catch(a){F(a)}}function rejected(a){try{step(A.throw(a))}catch(a){F(a)}}function step(a){var x;a.done?k(a.value):((x=a.value)instanceof w?x:new w(function(a){a(x)})).then(fulfilled,rejected)}step((A=A.apply(a,x||[])).next())})},k=this&&this.__generator||function(a,x){var w,A,k,F,V={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return F={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function verb(B){return function(z){return function(B){if(w)throw TypeError("Generator is already executing.");for(;F&&(F=0,B[0]&&(V=0)),V;)try{if(w=1,A&&(k=2&B[0]?A.return:B[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,B[1])).done)return k;switch(A=0,k&&(B=[2&B[0],k.value]),B[0]){case 0:case 1:k=B;break;case 4:return V.label++,{value:B[1],done:!1};case 5:V.label++,A=B[1],B=[0];continue;case 7:B=V.ops.pop(),V.trys.pop();continue;default:if(!(k=(k=V.trys).length>0&&k[k.length-1])&&(6===B[0]||2===B[0])){V=0;continue}if(3===B[0]&&(!k||B[1]>k[0]&&B[1]<k[3])){V.label=B[1];break}if(6===B[0]&&V.label<k[1]){V.label=k[1],k=B;break}if(k&&V.label<k[2]){V.label=k[2],V.ops.push(B);break}k[2]&&V.ops.pop(),V.trys.pop();continue}B=x.call(a,V)}catch(a){B=[6,a],A=0}finally{w=k=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,z])}}},F=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x,"__esModule",{value:!0});var V=F(w(46581)),B=function(){function Synonyms(a,x){this.collectionName=a,this.apiCall=x}return Synonyms.prototype.upsert=function(a,x){return A(this,void 0,void 0,function(){return k(this,function(w){return[2,this.apiCall.put(this.endpointPath(a),x)]})})},Synonyms.prototype.retrieve=function(){return A(this,void 0,void 0,function(){return k(this,function(a){return[2,this.apiCall.get(this.endpointPath())]})})},Synonyms.prototype.endpointPath=function(a){return"".concat(V.default.RESOURCEPATH,"/").concat(this.collectionName).concat(Synonyms.RESOURCEPATH).concat(void 0===a?"":"/"+a)},Object.defineProperty(Synonyms,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),Synonyms}();x.default=B},16310:function(a,x,w){"use strict";let A,k,F;w.d(x,{IX:function(){return create$2},O7:function(){return create$7},Rx:function(){return create$5},Ry:function(){return create$3},Xg:function(){return create$7},Z_:function(){return create$6},iH:function(){return create$9},nK:function(){return create$8}});var V=w(55760),B=w(59885),z=w(94633),G=w.n(z);let $=Object.prototype.toString,W=Error.prototype.toString,Z=RegExp.prototype.toString,K="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Y=/^Symbol\((.*)\)(.*)$/;function printSimpleValue(a,x=!1){if(null==a||!0===a||!1===a)return""+a;let w=typeof a;if("number"===w)return a!=+a?"NaN":0===a&&1/a<0?"-0":""+a;if("string"===w)return x?`"${a}"`:a;if("function"===w)return"[Function "+(a.name||"anonymous")+"]";if("symbol"===w)return K.call(a).replace(Y,"Symbol($1)");let A=$.call(a).slice(8,-1);return"Date"===A?isNaN(a.getTime())?""+a:a.toISOString(a):"Error"===A||a instanceof Error?"["+W.call(a)+"]":"RegExp"===A?Z.call(a):null}function printValue(a,x){let w=printSimpleValue(a,x);return null!==w?w:JSON.stringify(a,function(a,w){let A=printSimpleValue(this[a],x);return null!==A?A:w},2)}function toArray(a){return null==a?[]:[].concat(a)}let J=/\$\{\s*(\w+)\s*\}/g;A=Symbol.toStringTag;let ValidationErrorNoStack=class ValidationErrorNoStack{constructor(a,x,w,k){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[A]="Error",this.name="ValidationError",this.value=x,this.path=w,this.type=k,this.errors=[],this.inner=[],toArray(a).forEac
51h(a=>{if(ValidationError.isError(a)){this.errors.push(...a.errors);let x=a.inner.length?a.inner:[a];this.inner.push(...x)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};k=Symbol.hasInstance,F=Symbol.toStringTag;let ValidationError=class ValidationError extends Error{static formatError(a,x){let w=x.label||x.path||"this";return(w!==x.path&&(x=Object.assign({},x,{path:w})),"string"==typeof a)?a.replace(J,(a,w)=>printValue(x[w])):"function"==typeof a?a(x):a}static isError(a){return a&&"ValidationError"===a.name}constructor(a,x,w,A,k){let V=new ValidationErrorNoStack(a,x,w,A);if(k)return V;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[F]="Error",this.name=V.name,this.message=V.message,this.type=V.type,this.value=V.value,this.path=V.path,this.errors=V.errors,this.inner=V.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}static[k](a){return ValidationErrorNoStack[Symbol.hasInstance](a)||super[Symbol.hasInstance](a)}};let ee={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:a,type:x,value:w,originalValue:A})=>{let k=null!=A&&A!==w?` (cast from the value \`${printValue(A,!0)}\`).`:".";return"mixed"!==x?`${a} must be a \`${x}\` type, but the final value was: \`${printValue(w,!0)}\``+k:`${a} must match the configured type. The validated value was: \`${printValue(w,!0)}\``+k}},et={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},er={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},en={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ei={isValue:"${path} field must be ${value}"},eo={noUnknown:"${path} field has unspecified keys: ${unknown}"},ea={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:ee,string:et,number:er,date:en,object:eo,array:ea,boolean:ei,tuple:{notType:a=>{let{path:x,value:w,spec:A}=a,k=A.types.length;if(Array.isArray(w)){if(w.length<k)return`${x} tuple value has too few items, expected a length of ${k} but got ${w.length} for value: \`${printValue(w,!0)}\``;if(w.length>k)return`${x} tuple value has too many items, expected a length of ${k} but got ${w.length} for value: \`${printValue(w,!0)}\``}return ValidationError.formatError(ee.notType,a)}}});let isSchema=a=>a&&a.__isYupSchema__;let Condition=class Condition{static fromOptions(a,x){if(!x.then&&!x.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:w,then:A,otherwise:k}=x,F="function"==typeof w?w:(...a)=>a.every(a=>a===w);return new Condition(a,(a,x)=>{var w;let V=F(...a)?A:k;return null!=(w=null==V?void 0:V(x))?w:x})}constructor(a,x){this.fn=void 0,this.refs=a,this.refs=a,this.fn=x}resolve(a,x){let w=this.refs.map(a=>a.getValue(null==x?void 0:x.value,null==x?void 0:x.parent,null==x?void 0:x.context)),A=this.fn(w,a,x);if(void 0===A||A===a)return a;
51if(!isSchema(A))throw TypeError("conditions must return a schema object");return A.resolve(x)}};let es={context:"$",value:"."};function create$9(a,x){return new Reference(a,x)}let Reference=class Reference{constructor(a,x={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof a)throw TypeError("ref must be a string, got: "+a);if(this.key=a.trim(),""===a)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===es.context,this.isValue=this.key[0]===es.value,this.isSibling=!this.isContext&&!this.isValue;let w=this.isContext?es.context:this.isValue?es.value:"";this.path=this.key.slice(w.length),this.getter=this.path&&(0,V.getter)(this.path,!0),this.map=x.map}getValue(a,x,w){let A=this.isContext?w:this.isValue?a:x;return this.getter&&(A=this.getter(A||{})),this.map&&(A=this.map(A)),A}cast(a,x){return this.getValue(a,null==x?void 0:x.parent,null==x?void 0:x.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(a){return a&&a.__isYupRef}};Reference.prototype.__isYupRef=!0;let isAbsent=a=>null==a;function createValidation(a){function validate({value:x,path:w="",options:A,originalValue:k,schema:F},V,B){let z;let{name:G,test:$,params:W,message:Z,skipAbsent:K}=a,{parent:Y,context:J,abortEarly:ee=F.spec.abortEarly,disableStackTrace:et=F.spec.disableStackTrace}=A;function resolve(a){return Reference.isRef(a)?a.getValue(x,Y,J):a}function createError(a={}){let A=Object.assign({value:x,originalValue:k,label:F.spec.label,path:a.path||w,spec:F.spec,disableStackTrace:a.disableStackTrace||et},W,a.params);for(let a of Object.keys(A))A[a]=resolve(A[a]);let V=new ValidationError(ValidationError.formatError(a.message||Z,A),x,A.path,a.type||G,A.disableStackTrace);return V.params=A,V}let er=ee?V:B,en={path:w,parent:Y,type:G,from:A.from,createError,resolve,options:A,originalValue:k,schema:F},handleResult=a=>{ValidationError.isError(a)?er(a):a?B(null):er(createError())},handleError=a=>{ValidationError.isError(a)?er(a):V(a)},ei=K&&isAbsent(x);if(ei)return handleResult(!0);try{var eo;if(z=$.call(en,x,en),"function"==typeof(null==(eo=z)?void 0:eo.then)){if(A.sync)throw Error(`Validation test of type: "${en.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(handleResult,handleError)}}catch(a){handleError(a);return}handleResult(z)}return validate.OPTIONS=a,validate}let ReferenceSet=class ReferenceSet extends Set{describe(){let a=[];for(let x of this.values())a.push(Reference.isRef(x)?x.describe():x);return a}resolveAll(a){let x=[];for(let w of this.values())x.push(a(w));return x}clone(){return new ReferenceSet(this.values())}merge(a,x){let w=this.clone();return a.forEach(a=>w.add(a)),x.forEach(a=>w.delete(a)),w}};function clone(a,x=new Map){let w;if(isSchema(a)||!a||"object"!=typeof a)return a;if(x.has(a))return x.get(a);if(a instanceof Date)w=new Date(a.getTime()),x.set(a,w);else if(a instanceof RegExp)w=new RegExp(a),x.set(a,w);else if(Array.isArray(a)){w=Array(a.length),x.set(a,w);for(let A=0;A<a.length;A++)w[A]=clone(a[A],x)}else if(a instanceof Map)for(let[A,k]of(w=new Map,x.set(a,w),a.entries()))w.set(A,clone(k,x));else if(a instanceof Set)for(let A of(w=new Set,x.set(a,w),a))w.add(clone(A,x));else if(a instanceof Object)for(let[A,k]of(w={},x.set(a,w),Object.entries(a)))w[A]=clone(k,x);else throw Error(`Unable to clone ${a}`);return w}let Schema=class Schema{constructor(a){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ReferenceSet,this._blacklist=new ReferenceSet,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ee.notType)}),this.type=a.type,this._typeCheck=a.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==a?void 0:a.spec),this.withMutation(a=>{a.nonNullable()})}get _type(){return this.type}clone(a){if(this._mutate)return a&&Object.assign(this.spec,a),this;let x=Object.create(Object.getPrototypeOf(this));
51return x.type=this.type,x._typeCheck=this._typeCheck,x._whitelist=this._whitelist.clone(),x._blacklist=this._blacklist.clone(),x.internalTests=Object.assign({},this.internalTests),x.exclusiveTests=Object.assign({},this.exclusiveTests),x.deps=[...this.deps],x.conditions=[...this.conditions],x.tests=[...this.tests],x.transforms=[...this.transforms],x.spec=clone(Object.assign({},this.spec,a)),x}label(a){let x=this.clone();return x.spec.label=a,x}meta(...a){if(0===a.length)return this.spec.meta;let x=this.clone();return x.spec.meta=Object.assign(x.spec.meta||{},a[0]),x}withMutation(a){let x=this._mutate;this._mutate=!0;let w=a(this);return this._mutate=x,w}concat(a){if(!a||a===this)return this;if(a.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${a.type}`);let x=a.clone(),w=Object.assign({},this.spec,x.spec);return x.spec=w,x.internalTests=Object.assign({},this.internalTests,x.internalTests),x._whitelist=this._whitelist.merge(a._whitelist,a._blacklist),x._blacklist=this._blacklist.merge(a._blacklist,a._whitelist),x.tests=this.tests,x.exclusiveTests=this.exclusiveTests,x.withMutation(x=>{a.tests.forEach(a=>{x.test(a.OPTIONS)})}),x.transforms=[...this.transforms,...x.transforms],x}isType(a){return null==a?!!this.spec.nullable&&null===a||!!this.spec.optional&&void 0===a:this._typeCheck(a)}resolve(a){let x=this;if(x.conditions.length){let w=x.conditions;(x=x.clone()).conditions=[],x=(x=w.reduce((x,w)=>w.resolve(x,a),x)).resolve(a)}return x}resolveOptions(a){var x,w,A,k;return Object.assign({},a,{from:a.from||[],strict:null!=(x=a.strict)?x:this.spec.strict,abortEarly:null!=(w=a.abortEarly)?w:this.spec.abortEarly,recursive:null!=(A=a.recursive)?A:this.spec.recursive,disableStackTrace:null!=(k=a.disableStackTrace)?k:this.spec.disableStackTrace})}cast(a,x={}){let w=this.resolve(Object.assign({value:a},x)),A="ignore-optionality"===x.assert,k=w._cast(a,x);if(!1!==x.assert&&!w.isType(k)){if(A&&isAbsent(k))return k;let F=printValue(a),V=printValue(k);throw TypeError(`The value of ${x.path||"field"} could not be cast to a value that satisfies the schema type: "${w.type}". 
52
53attempted value: ${F} 
54`+(V!==F?`result of cast: ${V}`:""))}return k}_cast(a,x){let w=void 0===a?a:this.transforms.reduce((x,w)=>w.call(this,x,a,this),a);return void 0===w&&(w=this.getDefault(x)),w}_validate(a,x={},w,A){let{path:k,originalValue:F=a,strict:V=this.spec.strict}=x,B=a;V||(B=this._cast(B,Object.assign({assert:!1},x)));let z=[];for(let a of Object.values(this.internalTests))a&&z.push(a);this.runTests({path:k,value:B,originalValue:F,options:x,tests:z},w,a=>{if(a.length)return A(a,B);this.runTests({path:k,value:B,originalValue:F,options:x,tests:this.tests},w,A)})}runTests(a,x,w){let A=!1,{tests:k,value:F,originalValue:V,path:B,options:z}=a,panicOnce=a=>{A||(A=!0,x(a,F))},nextOnce=a=>{A||(A=!0,w(a,F))},G=k.length,$=[];if(!G)return nextOnce([]);let W={value:F,originalValue:V,path:B,options:z,schema:this};for(let a=0;a<k.length;a++){let x=k[a];x(W,panicOnce,function(a){a&&(Array.isArray(a)?$.push(...a):$.push(a)),--G<=0&&nextOnce($)})}}asNestedTest({key:a,index:x,parent:w,parentPath:A,originalParent:k,options:F}){let V=null!=a?a:x;if(null==V)throw TypeError("Must include `key` or `index` for nested validations");let B="number"==typeof V,z=w[V],G=Object.assign({},F,{strict:!0,parent:w,value:z,originalValue:k[V],key:void 0,[B?"index":"key"]:V,path:B||V.includes(".")?`${A||""}[${B?V:`"${V}"`}]`:(A?`${A}.`:"")+a});return(a,x,w)=>this.resolve(G)._validate(z,G,x,w)}validate(a,x){var w;let A=this.resolve(Object.assign({},x,{value:a})),k=null!=(w=null==x?void 0:x.disableStackTrace)?w:A.spec.disableStackTrace;return new Promise((w,F)=>A._validate(a,x,(a,x)=>{ValidationError.isError(a)&&(a.value=x),F(a)},(a,x)=>{a.length?F(new ValidationError(a,x,void 0,void 0,k)):w(x)}))}validateSync(a,x){var w;let A;let k=this.resolve(Object.assign({},x,{value:a})),F=null!=(w=null==x?void 0:x.disableStackTrace)?w:k.spec.disableStackTrace;return k._validate(a,Object.assign({},x,{sync:!0}),(a,x)=>{throw ValidationError.isError(a)&&(a.value=x),a},(x,w)=>{if(x.length)throw new ValidationError(x,a,void 0,void 0,F);A=w}),A}isValid(a,x){return this.validate(a,x).then(()=>!0,a=>{if(ValidationError.isError(a))return!1;throw a})}isValidSync(a,x){try{return this.validateSync(a,x),!0}catch(a){if(ValidationError.isError(a))return!1;throw a}}_getDefault(a){let x=this.spec.default;return null==x?x:"function"==typeof x?x.call(this,a):clone(x)}getDefault(a){return this.resolve(a||{})._getDefault(a)}default(a){return 0==arguments.length?this._getDefault():this.clone({default:a})}strict(a=!0){return this.clone({strict:a})}nullability(a,x){let w=this.clone({nullable:a});return w.internalTests.nullable=createValidation({message:x,name:"nullable",test(a){return null!==a||this.schema.spec.nullable}}),w}optionality(a,x){let w=this.clone({optional:a});return w.internalTests.optionality=createValidation({message:x,name:"optionality",test(a){return void 0!==a||this.schema.spec.optional}}),w}optional(){return this.optionality(!0)}defined(a=ee.defined){return this.optionality(!1,a)}nullable(){return this.nullability(!0)}nonNullable(a=ee.notNull){return this.nullability(!1,a)}required(a=ee.required){return this.clone().withMutation(x=>x.nonNullable(a).defined(a))}notRequired(){return this.clone().withMutation(a=>a.nullable().optional())}transform(a){let x=this.clone();return x.transforms.push(a),x}test(...a){let x;if(void 0===(x=1===a.length?"function"==typeof a[0]?{test:a[0]}:a[0]:2===a.length?{name:a[0],test:a[1]}
54:{name:a[0],message:a[1],test:a[2]}).message&&(x.message=ee.default),"function"!=typeof x.test)throw TypeError("`test` is a required parameters");let w=this.clone(),A=createValidation(x),k=x.exclusive||x.name&&!0===w.exclusiveTests[x.name];if(x.exclusive&&!x.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return x.name&&(w.exclusiveTests[x.name]=!!x.exclusive),w.tests=w.tests.filter(a=>a.OPTIONS.name!==x.name||!k&&a.OPTIONS.test!==A.OPTIONS.test),w.tests.push(A),w}when(a,x){Array.isArray(a)||"string"==typeof a||(x=a,a=".");let w=this.clone(),A=toArray(a).map(a=>new Reference(a));return A.forEach(a=>{a.isSibling&&w.deps.push(a.key)}),w.conditions.push("function"==typeof x?new Condition(A,x):Condition.fromOptions(A,x)),w}typeError(a){let x=this.clone();return x.internalTests.typeError=createValidation({message:a,name:"typeError",skipAbsent:!0,test(a){return!!this.schema._typeCheck(a)||this.createError({params:{type:this.schema.type}})}}),x}oneOf(a,x=ee.oneOf){let w=this.clone();return a.forEach(a=>{w._whitelist.add(a),w._blacklist.delete(a)}),w.internalTests.whiteList=createValidation({message:x,name:"oneOf",skipAbsent:!0,test(a){let x=this.schema._whitelist,w=x.resolveAll(this.resolve);return!!w.includes(a)||this.createError({params:{values:Array.from(x).join(", "),resolved:w}})}}),w}notOneOf(a,x=ee.notOneOf){let w=this.clone();return a.forEach(a=>{w._blacklist.add(a),w._whitelist.delete(a)}),w.internalTests.blacklist=createValidation({message:x,name:"notOneOf",test(a){let x=this.schema._blacklist,w=x.resolveAll(this.resolve);return!w.includes(a)||this.createError({params:{values:Array.from(x).join(", "),resolved:w}})}}),w}strip(a=!0){let x=this.clone();return x.spec.strip=a,x}describe(a){let x=(a?this.resolve(a):this).clone(),{label:w,meta:A,optional:k,nullable:F}=x.spec,V={meta:A,label:w,optional:k,nullable:F,default:x.getDefault(a),type:x.type,oneOf:x._whitelist.describe(),notOneOf:x._blacklist.describe(),tests:x.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,x,w)=>w.findIndex(x=>x.name===a.name)===x)};return V}};for(let a of(Schema.prototype.__isYupSchema__=!0,["validate","validateSync"]))Schema.prototype[`${a}At`]=function(x,w,A={}){let{parent:k,parentPath:F,schema:B}=function(a,x,w,A=w){let k,F,B;return x?((0,V.forEach)(x,(V,z,G)=>{let $=z?V.slice(1,V.length-1):V,W="tuple"===(a=a.resolve({context:A,parent:k,value:w})).type,Z=G?parseInt($,10):0;if(a.innerType||W){if(W&&!G)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${B}" must contain an index to the tuple element, e.g. "${B}[0]"`);if(w&&Z>=w.length)throw Error(`Yup.reach cannot resolve an array item at index: ${V}, in the path: ${x}. because there is no value at that index. `);k=w,w=w&&w[Z],a=W?a.spec.types[Z]:a.innerType}if(!G){if(!a.fields||!a.fields[$])throw Error(`The schema does not contain the path: ${x}. (failed at: ${B} which is a type: "${a.type}")`);k=w,w=w&&w[$],a=a.fields[$]}F=$,B=z?"["+V+"]":"."+V}),{schema:a,parent:k,parentPath:F}):{parent:k,parentPath:x,schema:a}}(this,x,w,A.context);return B[a](k&&k[F],Object.assign({},A,{parent:k,path:x}))};for(let a of["equals","is"])Schema.prototype[a]=Schema.prototype.oneOf;for(let a of["not","nope"])Schema.prototype[a]=Schema.prototype.notOneOf;let returnsTrue=()=>!0;function create$8(a){return new MixedSchema(a)}let MixedSchema=class MixedSchema extends Schema{constructor(a){super("function"==typeof a?{type:"mixed",check:a}:Object.assign({type:"mixed",check:returnsTrue},a))}};function create$7(){return new BooleanSchema}create$8.prototype=MixedSchema.prototype;let BooleanSchema=class BooleanSchema extends Schema{constructor(){super({type:"boolean",check:a=>(a instanceof Boolean&&(a=a.valueOf()),"boolean"==typeof a)}),this.withMutation(()=>{this.transform((a,x,w)=>{if(w.spec.coerce&&!w.isType(a)){if(/^(true|1)$/i.test(String(a)))return!0;if(/^(false|0)$/i.test(String(a)))return!1}return a})})}isTrue(a=ei.isValue){return this.test({message:a,name:"is-value",exclusive:!0,params:{value:"true"},test:a=>isAbsent(a)||!0===a})}isFalse(a=ei.isValue){return this.test({message:a,name:"is-value",exclusive:!0,params:{value:"false"},test:a=>isAbsent(a)||!1===a})}default(a){return super.default(a)}defined(a){return super.defined(a)}optional(){return super.optional()}required(a){return super.required(a)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(a){return super.nonNullable(a)}strip(a){return super.strip(a)}};create$7.prototype=BooleanSchema.prototype;let el=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseDateStruct(a){var x,w;let A=el.exec(a);return A?{year:toNumber(A[1]),month:toNumber(A[2],1)-1,day:toNumber(A[3],1),hour:toNumber(A[4]),minute:toNumber(A[5]),second:toNumber(A[6]),millisecond:A[7]?toNumber(A[7].substring(0,3)):0,precision:null!=(x=null==(w=A[7])?void 0:w.length)?x:void 0,z:A[8]||void 0,plusMinus:A[9]||void 0,hourOffset:toNumber(A[10]),minuteOffset:toNumber(A[11])}:null}function toNumber(a,x=0){return Number(a)||x}let eu=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ec=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ed=/^(?:[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,ef=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),isTrimmed=a=>isAbsent(a)||a===a.trim(),ep=({}).toString();function create$6(){return new StringSchema}let StringSchema=class StringSchema extends Schema{constructor(){super({type:"string",check:a=>(a instanceof String&&(a=a.valueOf()),"string"==typeof a)}),this.withMutation(()=>{this.transform((a,x,w)=>{if(!w.spec.coerce||w.isType(a)||Array.isArray(a))return a;let A=null!=a&&a.toString?a.toString():a;return A===ep?a:A})})}required(a){return super.required(a).withMutation(x=>x.test({message:a||ee.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(a=>(a.tests=a.tests.filter(a=>"required"!==a.OPTIONS.name),a))}length(a,x=et.length){return this.test({message:x,name:"length",exclusive:!0,params:{length:a},skipAbsent:!0,test(x){return x.length===this.resolve(a)}})}min(a,x=et.min){return this.test({message:x,name:"min",exclusive:!0,params:{min:a},skipAbsent:!0,test(x){return x.length>=this.resolve(a)}})}max(a,x=et.max){return this.test({name:"max",exclusive:!0,message:x,params:{max:a},skipAbsent:!0,test(x){return x.length<=this.resolve(a)}})}matches(a,x){let w,A,k=!1;return x&&("object"==typeof x?{excludeEmptyString:k=!1,message:w,name:A}=x:w=x),this.test({name:A||"matches",message:w||et.matches,params:{regex:a},skipAbsent:!0,test:x=>""===x&&k||-1!==x.search(a)})}email(a=et.email){return this.matches(eu,{name:"email",message:a,excludeEmptyString:!0})}url(a=et.url){return this.matches(ec,{name:"url",message:a,excludeEmptyString:!0})}uuid(a=et.uuid){return this.matches(ed,{name:"uuid",message:a,excludeEmptyString:!1})}datetime(a){let x,w,A="";return a&&("object"==typeof a?{message:A="",allowOffset:x=!1,precision:w}=a:A=a),this.matches(ef,{name:"datetime",message:A||et.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:A||et.datetime_offset,params:{allowOffset:x},skipAbsent:!0,test:a=>{if(!a||x)return!0;let w=parseDateStruct(a);return!!w&&!!w.z}}).test({name:"datetime_precision",message:A||et.datetime_precision,params:{precision:w},skipAbsent:!0,test:a=>{if(!a||void 0==w)return!0;let x=parseDateStruct(a);return!!x&&x.precision===w}})}ensure(){return this.default("").transform(a=>null===a?"":a)}trim(a=et.trim){return this.transform(a=>null!=a?a.trim():a).test({message:a,name:"trim",test:isTrimmed})}lowercase(a=et.lowercase){return this.transform(a=>isAbsent(a)?a:a.toLowerCase()).test({message:a,name:"string_case",exclusive:!0,skipAbsent:!0,test:a=>isAbsent(a)||a===a.toLowerCase()})}uppercase(a=et.uppercase){return this.transform(a=>isAbsent(a)?a:a.toUpperCase()).test({message:a,name:"string_case",exclusive:!0,skipAbsent:!0,test:a=>isAbsent(a)||a===a.toUpperCase()})}};create$6.prototype=StringSchema.prototype;let isNaN$1=a=>a!=+a;function create$5(){return new NumberSchema}let NumberSchema=class NumberSchema extends Schema{constructor(){super({type:"number",check:a=>(a instanceof Number&&(a=a.valueOf()),"number"==typeof a&&!isNaN$1(a))}),this.withMutation(()=>{this.transform((a,x,w)=>{if(!w.spec.coerce)return a;let A=a;if("string"==typeof A){if(""===(A=A.replace(/\s/g,"")))return NaN;A=+A}return w.isType(A)||null===A?A:parseFloat(A)})})}min(a,x=er.min){return this.test({message:x,name:"min",exclusive:!0,params:{min:a},skipAbsent:!0,test(x){return x>=this.resolve(a)}})}max(a,x=er.max){return this.test({message:x,name:"max",exclusive:!0,params:{max:a},skipAbsent:!0,test(x){return x<=this.resolve(a)}})}lessThan(a,x=er.lessThan){return this.test({message:x,name:"max",exclusive:!0,params:{less:a},skipAbsent:!0,test(x){return x<this.resolve(a)}})}moreThan(a,x=er.moreThan){return this.test({message:x,name:"min",exclusive:!0,params:{more:a},skipAbsent:!0,test(x){return x>this.resolve(a)}})}positive(a=er.positive){return this.moreThan(0,a)}negative(a=er.negative){return this.lessThan(0,a)}integer(a=er.integer){return this.test({name:"integer",message:a,skipAbsent:!0,test:a=>Number.isInteger(a)})}truncate(){return this.transform(a=>isAbsent(a)?a:0|a)}round(a){var x;let w=["ceil","floor","round","trunc"];if("trunc"===(a=(null==(x=a)?void 0:x.toLowerCase())||"round"))return this.truncate();if(-1===w.indexOf(a.toLowerCase()))throw TypeError("Only valid options for roun
54d() are: "+w.join(", "));return this.transform(x=>isAbsent(x)?x:Math[a](x))}};create$5.prototype=NumberSchema.prototype;let eh=new Date(""),isDate=a=>"[object Date]"===Object.prototype.toString.call(a);function create$4(){return new DateSchema}let DateSchema=class DateSchema extends Schema{constructor(){super({type:"date",check:a=>isDate(a)&&!isNaN(a.getTime())}),this.withMutation(()=>{this.transform((a,x,w)=>!w.spec.coerce||w.isType(a)||null===a?a:isNaN(a=function(a){let x=parseDateStruct(a);if(!x)return Date.parse?Date.parse(a):Number.NaN;if(void 0===x.z&&void 0===x.plusMinus)return new Date(x.year,x.month,x.day,x.hour,x.minute,x.second,x.millisecond).valueOf();let w=0;return"Z"!==x.z&&void 0!==x.plusMinus&&(w=60*x.hourOffset+x.minuteOffset,"+"===x.plusMinus&&(w=0-w)),Date.UTC(x.year,x.month,x.day,x.hour,x.minute+w,x.second,x.millisecond)}(a))?DateSchema.INVALID_DATE:new Date(a))})}prepareParam(a,x){let w;if(Reference.isRef(a))w=a;else{let A=this.cast(a);if(!this._typeCheck(A))throw TypeError(`\`${x}\` must be a Date or a value that can be \`cast()\` to a Date`);w=A}return w}min(a,x=en.min){let w=this.prepareParam(a,"min");return this.test({message:x,name:"min",exclusive:!0,params:{min:a},skipAbsent:!0,test(a){return a>=this.resolve(w)}})}max(a,x=en.max){let w=this.prepareParam(a,"max");return this.test({message:x,name:"max",exclusive:!0,params:{max:a},skipAbsent:!0,test(a){return a<=this.resolve(w)}})}};function findIndex(a,x){let w=1/0;return a.some((a,A)=>{var k;if(null!=(k=x.path)&&k.includes(a))return w=A,!0}),w}function sortByKeyOrder(a){return(x,w)=>findIndex(a,x)-findIndex(a,w)}DateSchema.INVALID_DATE=eh,create$4.prototype=DateSchema.prototype,create$4.INVALID_DATE=eh;let parseJson=(a,x,w)=>{if("string"!=typeof a)return a;let A=a;try{A=JSON.parse(a)}catch(a){}return w.isType(A)?A:a},deepHas=(a,x)=>{let w=[...(0,V.normalizePath)(x)];if(1===w.length)return w[0]in a;let A=w.pop(),k=(0,V.getter)((0,V.join)(w),!0)(a);return!!(k&&A in k)},isObject=a=>"[object Object]"===Object.prototype.toString.call(a),em=sortByKeyOrder([]);function create$3(a){return new ObjectSchema(a)}let ObjectSchema=class ObjectSchema extends Schema{constructor(a){super({type:"object",check:a=>isObject(a)||"function"==typeof a}),this.fields=Object.create(null),this._sortErrors=em,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{a&&this.shape(a)})}_cast(a,x={}){var w;let A=super._cast(a,x);if(void 0===A)return this.getDefault(x);if(!this._typeCheck(A))return A;let k=this.fields,F=null!=(w=x.stripUnknown)?w:this.spec.noUnknown,V=[].concat(this._nodes,Object.keys(A).filter(a=>!this._nodes.includes(a))),B={},z=Object.assign({},x,{parent:B,__validating:x.__validating||!1}),G=!1;for(let a of V){let w=k[a],V=a in A;if(w){let k;let F=A[a];z.path=(x.path?`${x.path}.`:"")+a;let V=(w=w.resolve({value:F,context:x.context,parent:B}))instanceof Schema?w.spec:void 0,$=null==V?void 0:V.strict;if(null!=V&&V.strip){G=G||a in A;continue}void 0!==(k=x.__validating&&$?A[a]:w.cast(A[a],z))&&(B[a]=k)}else V&&!F&&(B[a]=A[a]);(V!==a in B||B[a]!==A[a])&&(G=!0)}return G?B:A}_validate(a,x={},w,A){let{from:k=[],originalValue:F=a,recursive:V=this.spec.recursive}=x;x.from=[{schema:this,value:F},...k],x.__validating=!0,x.originalValue=F,super._validate(a,x,w,(a,k)=>{if(!V||!isObject(k)){A(a,k);return}F=F||k;let B=[];for(let a of this._nodes){let w=this.fields[a];!w||Reference.isRef(w)||B.push(w.asNestedTest({options:x,key:a,parent:k,parentPath:x.path,originalParent:F}))}this.runTests({tests:B,value:k,originalValue:F,options:x},w,x=>{A(x.sort(this._sortErrors).concat(a),k)})})}clone(a){let x=super.clone(a);return x.fields=Object.assign({},this.fields),x._nodes=this._nodes,x._excludedEdges=this._excludedEdges,x._sortErrors=this._sortErrors,x}concat(a){let x=super.concat(a),w=x.fields;for(let[a,x]of Object.entries(this.fields)){let A=w[a];w[a]=void 0===A?x:A}return x.withMutation(x=>x.setFields(w,[...this._excludedEdges,...a._excludedEdges]))}_getDefault(a){if("default"in this.spec)return super._getDefault(a);if(!this._nodes.length)return;let x={};
54return this._nodes.forEach(w=>{var A;let k=this.fields[w],F=a;null!=(A=F)&&A.value&&(F=Object.assign({},F,{parent:F.value,value:F.value[w]})),x[w]=k&&"getDefault"in k?k.getDefault(F):void 0}),x}setFields(a,x){let w=this.clone();return w.fields=a,w._nodes=function(a,x=[]){let w=[],A=new Set,k=new Set(x.map(([a,x])=>`${a}-${x}`));function addNode(a,x){let F=(0,V.split)(a)[0];A.add(F),k.has(`${x}-${F}`)||w.push([x,F])}for(let x of Object.keys(a)){let w=a[x];A.add(x),Reference.isRef(w)&&w.isSibling?addNode(w.path,x):isSchema(w)&&"deps"in w&&w.deps.forEach(a=>addNode(a,x))}return G().array(Array.from(A),w).reverse()}(a,x),w._sortErrors=sortByKeyOrder(Object.keys(a)),x&&(w._excludedEdges=x),w}shape(a,x=[]){return this.clone().withMutation(w=>{let A=w._excludedEdges;return x.length&&(Array.isArray(x[0])||(x=[x]),A=[...w._excludedEdges,...x]),w.setFields(Object.assign(w.fields,a),A)})}partial(){let a={};for(let[x,w]of Object.entries(this.fields))a[x]="optional"in w&&w.optional instanceof Function?w.optional():w;return this.setFields(a)}deepPartial(){let a=function deepPartial(a){if("fields"in a){let x={};for(let[w,A]of Object.entries(a.fields))x[w]=deepPartial(A);return a.setFields(x)}if("array"===a.type){let x=a.optional();return x.innerType&&(x.innerType=deepPartial(x.innerType)),x}return"tuple"===a.type?a.optional().clone({types:a.spec.types.map(deepPartial)}):"optional"in a?a.optional():a}(this);return a}pick(a){let x={};for(let w of a)this.fields[w]&&(x[w]=this.fields[w]);return this.setFields(x,this._excludedEdges.filter(([x,w])=>a.includes(x)&&a.includes(w)))}omit(a){let x=[];for(let w of Object.keys(this.fields))a.includes(w)||x.push(w);return this.pick(x)}from(a,x,w){let A=(0,V.getter)(a,!0);return this.transform(k=>{if(!k)return k;let F=k;return deepHas(k,a)&&(F=Object.assign({},k),w||delete F[a],F[x]=A(k)),F})}json(){return this.transform(parseJson)}noUnknown(a=!0,x=eo.noUnknown){"boolean"!=typeof a&&(x=a,a=!0);let w=this.test({name:"noUnknown",exclusive:!0,message:x,test(x){let w;if(null==x)return!0;let A=(w=Object.keys(this.schema.fields),Object.keys(x).filter(a=>-1===w.indexOf(a)));return!a||0===A.length||this.createError({params:{unknown:A.join(", ")}})}});return w.spec.noUnknown=a,w}unknown(a=!0,x=eo.noUnknown){return this.noUnknown(!a,x)}transformKeys(a){return this.transform(x=>{if(!x)return x;let w={};for(let A of Object.keys(x))w[a(A)]=x[A];return w})}camelCase(){return this.transformKeys(B.camelCase)}snakeCase(){return this.transformKeys(B.snakeCase)}constantCase(){return this.transformKeys(a=>(0,B.snakeCase)(a).toUpperCase())}describe(a){let x=(a?this.resolve(a):this).clone(),w=super.describe(a);for(let[k,F]of(w.fields={},Object.entries(x.fields))){var A;let x=a;null!=(A=x)&&A.value&&(x=Object.assign({},x,{parent:x.value,value:x.value[k]})),w.fields[k]=F.describe(x)}return w}};function create$2(a){return new ArraySchema(a)}create$3.prototype=ObjectSchema.prototype;let ArraySchema=class ArraySchema extends Schema{constructor(a){super({type:"array",spec:{types:a},check:a=>Array.isArray(a)}),this.innerType=void 0,this.innerType=a}_cast(a,x){let w=super._cast(a,x);if(!this._typeCheck(w)||!this.innerType)return w;let A=!1,k=w.map((a,w)=>{let k=this.innerType.cast(a,Object.assign({},x,{path:`${x.path||""}[${w}]`}));return k!==a&&(A=!0),k});return A?k:w}_validate(a,x={},w,A){var k;let F=this.innerType,V=null!=(k=x.recursive)?k:this.spec.recursive;null!=x.originalValue&&x.originalValue,super._validate(a,x,w,(k,B)=>{var z,G;if(!V||!F||!this._typeCheck(B)){A(k,B);return}let $=Array(B.length);for(let w=0;w<B.length;w++)$[w]=F.asNestedTest({options:x,index:w,parent:B,parentPath:x.path,originalParent:null!=(G=x.originalValue)?G:a});this.runTests({value:B,tests:$,originalValue:null!=(z=x.originalValue)?z:a,options:x},w,a=>A(a.concat(k),B))})}clone(a){let x=super.clone(a);return x.innerType=this.innerType,x}json(){return this.transform(parseJson)}concat(a){let x=super.concat(a);return x.innerType=this.innerType,a.innerType&&(x.innerType=x.innerType?x.innerType.concat(a.innerType):a.innerType),x}of(a){let x=this.clone();if(!isSchema(a))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+printValue(a));return x.innerType=a,x.spec=Object.assign({},x.spec,{types:a}),x}length(a,x=ea.length){return this.test({message:x,name:"length",exclusive:!0,params:{length:a},skipAbsent:!0,test(x){return x.length===this.resolve(a)}})}min(a,x){return x=x||ea.min,this.test({message:x,name:"min",exclusive:!0,params:{min:a},skipAbsent:!0,test(x){return x.length>=this.resolve(a)}})}max(a,x){return x=x||ea.max,this.test({message:x,name:"max",exclusive:!0,params:{max:a},skipAbsent:!0,test(x){return x.length<=this.resolve(a)}})}ensure(){return this.default(()=>[]).transform((a,x)=>this._typeCheck(a)?a:null==x?[]:[].concat(x))}compact(a){let x=a?(x,w,A)=>!a(x,w,A):a=>!!a;return this.transform(a=>null!=a?a.filter(x):a)}describe(a){let x=(a?this.resolve(a):this).clone(),w=super.describe(a);if(x.innerType){var A;let k=a;null!=(A=k)&&A.value&&(k=Object.assign({},k,{parent:k.value,value:k.value[0]})),w.innerType=x.innerType.describe(k)}return w}};create$2.prototype=ArraySchema.prototype},99964:function(){},93967:function(a,x){var w;/*!
55	Copyright (c) 2018 Jed Watson.
56	Licensed under the MIT License (MIT), see
57	http://jedwatson.github.io/classnames
58*/!function(){"use strict";var A={}.hasOwnProperty;function classNames(){for(var a="",x=0;x<arguments.length;x++){var w=arguments[x];
58w&&(a=appendClass(a,function(a){if("string"==typeof a||"number"==typeof a)return a;if("object"!=typeof a)return"";if(Array.isArray(a))return classNames.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var x="";for(var w in a)A.call(a,w)&&a[w]&&(x=appendClass(x,w));return x}(w)))}return a}function appendClass(a,x){return x?a?a+" "+x:a+x:a}a.exports?(classNames.default=classNames,a.exports=classNames):void 0!==(w=(function(){return classNames}).apply(x,[]))&&(a.exports=w)}()},50639:function(a,x,w){"use strict";var A,k,F,V,B,z,G,$,W,Z,K=w(83454),Y=w(48764).lW;function bind(a,x){return function(){return a.apply(x,arguments)}}let{toString:J}=Object.prototype,{getPrototypeOf:ee}=Object,et=(B=Object.create(null),a=>{let x=J.call(a);return B[x]||(B[x]=x.slice(8,-1).toLowerCase())}),kindOfTest=a=>(a=a.toLowerCase(),x=>et(x)===a),typeOfTest=a=>x=>typeof x===a,{isArray:er}=Array,en=typeOfTest("undefined"),ei=kindOfTest("ArrayBuffer"),eo=typeOfTest("string"),ea=typeOfTest("function"),es=typeOfTest("number"),isObject=a=>null!==a&&"object"==typeof a,isPlainObject=a=>{if("object"!==et(a))return!1;let x=ee(a);return(null===x||x===Object.prototype||null===Object.getPrototypeOf(x))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)},el=kindOfTest("Date"),eu=kindOfTest("File"),ec=kindOfTest("Blob"),ed=kindOfTest("FileList"),ef=kindOfTest("URLSearchParams"),[ep,eh,em,eg]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(a,x,{allOwnKeys:w=!1}={}){let A,k;if(null!=a){if("object"!=typeof a&&(a=[a]),er(a))for(A=0,k=a.length;A<k;A++)x.call(null,a[A],A,a);else{let k;let F=w?Object.getOwnPropertyNames(a):Object.keys(a),V=F.length;for(A=0;A<V;A++)k=F[A],x.call(null,a[k],k,a)}}}function findKey(a,x){let w;x=x.toLowerCase();let A=Object.keys(a),k=A.length;for(;k-- >0;)if(x===(w=A[k]).toLowerCase())return w;return null}let ev="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:w.g,isContextDefined=a=>!en(a)&&a!==ev,ey=(z="undefined"!=typeof Uint8Array&&ee(Uint8Array),a=>z&&a instanceof z),eb=kindOfTest("HTMLFormElement"),e_=(({hasOwnProperty:a})=>(x,w)=>a.call(x,w))(Object.prototype),ex=kindOfTest("RegExp"),reduceDescriptors=(a,x)=>{let w=Object.getOwnPropertyDescriptors(a),A={};forEach(w,(w,k)=>{let F;!1!==(F=x(w,k,a))&&(A[k]=F||w)}),Object.defineProperties(a,A)},ew="abcdefghijklmnopqrstuvwxyz",eS="0123456789",eE={DIGIT:eS,ALPHA:ew,ALPHA_DIGIT:ew+ew.toUpperCase()+eS},eA=kindOfTest("AsyncFunction"),eC=(A="function"==typeof setImmediate,k=ea(ev.postMessage),A?setImmediate:k?(F=`axios@${Math.random()}`,V=[],ev.addEventListener("message",({source:a,data:x})=>{a===ev&&x===F&&V.length&&V.shift()()},!1),a=>{V.push(a),ev.postMessage(F,"*")}):a=>setTimeout(a)),eT="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ev):void 0!==K&&K.nextTick||eC;var eO={isArray:er,isArrayBuffer:ei,isBuffer:function(a){return null!==a&&!en(a)&&null!==a.constructor&&!en(a.constructor)&&ea(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},isFormData:a=>{let x;return a&&("function"==typeof FormData&&a instanceof FormData||ea(a.append)&&("formdata"===(x=et(a))||"object"===x&&ea(a.toString)&&"[object FormData]"===a.toString()))},isArrayBufferView:function(a){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer&&ei(a.buffer)},isString:eo,isNumber:es,isBoolean:a=>!0===a||!1===a,isObject,isPlainObject,isReadableStream:ep,isRequest:eh,isResponse:em,isHeaders:eg,isUndefined:en,isDate:el,isFile:eu,isBlob:ec,isRegExp:ex,isFunction:ea,isStream:a=>isObject(a)&&ea(a.pipe),isURLSearchParams:ef,isTypedArray:ey,isFileList:ed,forEach,merge:function merge(){let{caseless:a}=isContextDefined(this)&&this||{},x={},assignValue=(w,A)=>{let k=a&&findKey(x,A)||A;isPlainObject(x[k])&&isPlainObject(w)?x[k]=merge(x[k],w):isPlainObject(w)?x[k]=merge({},w):er(w)?x[k]=w.slice():x[k]=w};for(let a=0,x=arguments.length;a<x;a++)arguments[a]&&forEach(arguments[a],assignValue);return x},extend:(a,x,w,{allOwnKeys:A}={})=>(forEach(x,(x,A)=>{w&&ea(x)?a[A]=bind(x,w):a[A]=x},{allOwnKeys:A}),a),trim:a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:a=>
58(65279===a.charCodeAt(0)&&(a=a.slice(1)),a),inherits:(a,x,w,A)=>{a.prototype=Object.create(x.prototype,A),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:x.prototype}),w&&Object.assign(a.prototype,w)},toFlatObject:(a,x,w,A)=>{let k,F,V;let B={};if(x=x||{},null==a)return x;do{for(F=(k=Object.getOwnPropertyNames(a)).length;F-- >0;)V=k[F],(!A||A(V,a,x))&&!B[V]&&(x[V]=a[V],B[V]=!0);a=!1!==w&&ee(a)}while(a&&(!w||w(a,x))&&a!==Object.prototype);return x},kindOf:et,kindOfTest,endsWith:(a,x,w)=>{a=String(a),(void 0===w||w>a.length)&&(w=a.length),w-=x.length;let A=a.indexOf(x,w);return -1!==A&&A===w},toArray:a=>{if(!a)return null;if(er(a))return a;let x=a.length;if(!es(x))return null;let w=Array(x);for(;x-- >0;)w[x]=a[x];return w},forEachEntry:(a,x)=>{let w;let A=a&&a[Symbol.iterator],k=A.call(a);for(;(w=k.next())&&!w.done;){let A=w.value;x.call(a,A[0],A[1])}},matchAll:(a,x)=>{let w;let A=[];for(;null!==(w=a.exec(x));)A.push(w);return A},isHTMLForm:eb,hasOwnProperty:e_,hasOwnProp:e_,reduceDescriptors,freezeMethods:a=>{reduceDescriptors(a,(x,w)=>{if(ea(a)&&-1!==["arguments","caller","callee"].indexOf(w))return!1;let A=a[w];if(ea(A)){if(x.enumerable=!1,"writable"in x){x.writable=!1;return}x.set||(x.set=()=>{throw Error("Can not rewrite read-only method '"+w+"'")})}})},toObjectSet:(a,x)=>{let w={};return(a=>{a.forEach(a=>{w[a]=!0})})(er(a)?a:String(a).split(x)),w},toCamelCase:a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,x,w){return x.toUpperCase()+w}),noop:()=>{},toFiniteNumber:(a,x)=>null!=a&&Number.isFinite(a=+a)?a:x,findKey,global:ev,isContextDefined,ALPHABET:eE,generateString:(a=16,x=eE.ALPHA_DIGIT)=>{let w="",{length:A}=x;for(;a--;)w+=x[Math.random()*A|0];return w},isSpecCompliantForm:function(a){return!!(a&&ea(a.append)&&"FormData"===a[Symbol.toStringTag]&&a[Symbol.iterator])},toJSONObject:a=>{let x=Array(10),visit=(a,w)=>{if(isObject(a)){if(x.indexOf(a)>=0)return;if(!("toJSON"in a)){x[w]=a;let A=er(a)?[]:{};return forEach(a,(a,x)=>{let k=visit(a,w+1);en(k)||(A[x]=k)}),x[w]=void 0,A}}return a};return visit(a,0)},isAsyncFn:eA,isThenable:a=>a&&(isObject(a)||ea(a))&&ea(a.then)&&ea(a.catch),setImmediate:eC,asap:eT};function AxiosError(a,x,w,A,k){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=a,this.name="AxiosError",x&&(this.code=x),w&&(this.config=w),A&&(this.request=A),k&&(this.response=k,this.status=k.status?k.status:null)}eO.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eO.toJSONObject(this.config),code:this.code,status:this.status}}});let eP=AxiosError.prototype,eR={};function isVisitable(a){return eO.isPlainObject(a)||eO.isArray(a)}function removeBrackets(a){return eO.endsWith(a,"[]")?a.slice(0,-2):a}function renderKey(a,x,w){return a?a.concat(x).map(function(a,x){return a=removeBrackets(a),!w&&x?"["+a+"]":a}).join(w?".":""):x}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{eR[a]={value:a}}),Object.defineProperties(AxiosError,eR),Object.defineProperty(eP,"isAxiosError",{value:!0}),AxiosError.from=(a,x,w,A,k,F)=>{let V=Object.create(eP);return eO.toFlatObject(a,V,function(a){return a!==Error.prototype},a=>"isAxiosError"!==a),AxiosError.call(V,a.message,x,w,A,k),V.cause=a,V.name=a.name,F&&Object.assign(V,F),V};let ek=eO.toFlatObject(eO,{},null,function(a){return/^is[A-Z]/.test(a)});function toFormData(a,x,w){if(!eO.isObject(a))throw TypeError("target must be an object");x=x||new FormData,w=eO.toFlatObject(w,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,x){return!eO.isUndefined(x[a])});let A=w.metaTokens,k=w.visitor||defaultVisitor,F=w.dots,V=w.indexes,B=w.Blob||"undefined"!=typeof Blob&&Blob,z=B&&eO.isSpecCompliantForm(x);if(!eO.isFunction(k))throw TypeError("visitor must be a function");function convertValue(a){if(null===a)return"";if(eO.isDate(a))return a.toISOString();if(!z&&eO.isBlob(a))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return eO.isArrayBuffer(a)||eO.isTypedArray(a)?z&&"function"==typeof Blob?new Blob([a]):Y.from(a):a}function defaultVisitor(a,w,k){let B=a;if(a&&!k&&"object"==typeof a){if(eO.endsWith(w,"{}"))w=A?w:w.slice(0,-2),a=JSON.stringify(a);else{var z;if(eO.isArray(a)&&(z=a,eO.isArray(z)&&!z.some(isVisitable))||(eO.isFileList(a)||eO.endsWith(w,"[]"))&&(B=eO.toArray(a)))return w=removeBrackets(w),B.forEach(function(a,A){eO.isUndefined(a)||null===a||x.append(!0===V?renderKey([w],A,F):null===V?w:w+"[]",convertValue(a))}),!1}}return!!isVisitable(a)||(x.append(renderKey(k,w,F),convertValue(a)),!1)}let G=[],$=Object.assign(ek,{defaultVisitor,convertValue,isVisitable});if(!eO.isObject(a))throw TypeError("data must be an object");return!function build(a,w){if(!eO.isUndefined(a)){if(-1!==G.indexOf(a))throw Error("Circular reference detected in "+w.join("."));G.push(a),eO.forEach(a,function(a,A){let F=!(eO.isUndefined(a)||null===a)&&k.call(x,a,eO.isString(A)?A.trim():A,w,$);!0===F&&build(a,w?w.concat(A):[A])}),G.pop()}}(a),x}
58function encode$1(a){let x={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(a){return x[a]})}function AxiosURLSearchParams(a,x){this._pairs=[],a&&toFormData(a,this,x)}let eN=AxiosURLSearchParams.prototype;function encode(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(a,x,w){let A;if(!x)return a;let k=w&&w.encode||encode;eO.isFunction(w)&&(w={serialize:w});let F=w&&w.serialize;if(A=F?F(x,w):eO.isURLSearchParams(x)?x.toString():new AxiosURLSearchParams(x,w).toString(k)){let x=a.indexOf("#");-1!==x&&(a=a.slice(0,x)),a+=(-1===a.indexOf("?")?"?":"&")+A}return a}eN.append=function(a,x){this._pairs.push([a,x])},eN.toString=function(a){let x=a?function(x){return a.call(this,x,encode$1)}:encode$1;return this._pairs.map(function(a){return x(a[0])+"="+x(a[1])},"").join("&")};var eI=class{constructor(){this.handlers=[]}use(a,x,w){return this.handlers.push({fulfilled:a,rejected:x,synchronous:!!w&&w.synchronous,runWhen:w?w.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){eO.forEach(this.handlers,function(x){null!==x&&a(x)})}},eD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eM="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,eL="undefined"!=typeof FormData?FormData:null,ej="undefined"!=typeof Blob?Blob:null;let eF="undefined"!=typeof window&&"undefined"!=typeof document,eV="object"==typeof navigator&&navigator||void 0,eU=eF&&(!eV||0>["ReactNative","NativeScript","NS"].indexOf(eV.product)),eB="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eq=eF&&window.location.href||"http://localhost";var ez={...Object.freeze({__proto__:null,hasBrowserEnv:eF,hasStandardBrowserWebWorkerEnv:eB,hasStandardBrowserEnv:eU,navigator:eV,origin:eq}),isBrowser:!0,classes:{URLSearchParams:eM,FormData:eL,Blob:ej},protocols:["http","https","file","blob","url","data"]};function formDataToJSON(a){if(eO.isFormData(a)&&eO.isFunction(a.entries)){let x={};return eO.forEachEntry(a,(a,w)=>{!function buildPath(a,x,w,A){let k=a[A++];if("__proto__"===k)return!0;let F=Number.isFinite(+k),V=A>=a.length;if(k=!k&&eO.isArray(w)?w.length:k,V)return eO.hasOwnProp(w,k)?w[k]=[w[k],x]:w[k]=x,!F;w[k]&&eO.isObject(w[k])||(w[k]=[]);let B=buildPath(a,x,w[k],A);return B&&eO.isArray(w[k])&&(w[k]=function(a){let x,w;let A={},k=Object.keys(a),F=k.length;for(x=0;x<F;x++)A[w=k[x]]=a[w];return A}(w[k])),!F}(eO.matchAll(/\w+|\[(\w*)]/g,a).map(a=>"[]"===a[0]?"":a[1]||a[0]),w,x,0)}),x}return null}let eH={transitional:eD,adapter:["xhr","http","fetch"],transformRequest:[function(a,x){let w;let A=x.getContentType()||"",k=A.indexOf("application/json")>-1,F=eO.isObject(a);F&&eO.isHTMLForm(a)&&(a=new FormData(a));let V=eO.isFormData(a);if(V)return k?JSON.stringify(formDataToJSON(a)):a;if(eO.isArrayBuffer(a)||eO.isBuffer(a)||eO.isStream(a)||eO.isFile(a)||eO.isBlob(a)||eO.isReadableStream(a))return a;if(eO.isArrayBufferView(a))return a.buffer;if(eO.isURLSearchParams(a))return x.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();if(F){if(A.indexOf("application/x-www-form-urlencoded")>-1){var B,z;return(B=a,z=this.formSerializer,toFormData(B,new ez.classes.URLSearchParams,Object.assign({visitor:function(a,x,w,A){return ez.isNode&&eO.isBuffer(a)?(this.append(x,a.toString("base64")),!1):A.defaultVisitor.apply(this,arguments)}},z))).toString()}if((w=eO.isFileList(a))||A.indexOf("multipart/form-data")>-1){let x=this.env&&this.env.FormData;return toFormData(w?{"files[]":a}:a,x&&new x,this.formSerializer)}}return F||k?(x.setContentType("application/json",!1),function(a,x,w){if(eO.isString(a))try{return(0,JSON.parse)(a),eO.trim(a)}catch(a){if("SyntaxError"!==a.name)throw a}return(0,JSON.stringify)(a)}(a)):a}],transformResponse:[function(a){let x=this.transitional||eH.transitional,w=x&&x.forcedJSONParsing,A="json"===this.responseType;
58if(eO.isResponse(a)||eO.isReadableStream(a))return a;if(a&&eO.isString(a)&&(w&&!this.responseType||A)){let w=x&&x.silentJSONParsing;try{return JSON.parse(a)}catch(a){if(!w&&A){if("SyntaxError"===a.name)throw AxiosError.from(a,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ez.classes.FormData,Blob:ez.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eO.forEach(["delete","get","head","post","put","patch"],a=>{eH.headers[a]={}});let eG=eO.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=a=>{let x,w,A;let k={};return a&&a.split("\n").forEach(function(a){A=a.indexOf(":"),x=a.substring(0,A).trim().toLowerCase(),w=a.substring(A+1).trim(),!x||k[x]&&eG[x]||("set-cookie"===x?k[x]?k[x].push(w):k[x]=[w]:k[x]=k[x]?k[x]+", "+w:w)}),k};let e$=Symbol("internals");function normalizeHeader(a){return a&&String(a).trim().toLowerCase()}function normalizeValue(a){return!1===a||null==a?a:eO.isArray(a)?a.map(normalizeValue):String(a)}let isValidHeaderName=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function matchHeaderValue(a,x,w,A,k){if(eO.isFunction(A))return A.call(this,x,w);if(k&&(x=w),eO.isString(x)){if(eO.isString(A))return -1!==x.indexOf(A);if(eO.isRegExp(A))return A.test(x)}}let AxiosHeaders=class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,x,w){let A=this;function setHeader(a,x,w){let k=normalizeHeader(x);if(!k)throw Error("header name must be a non-empty string");let F=eO.findKey(A,k);F&&void 0!==A[F]&&!0!==w&&(void 0!==w||!1===A[F])||(A[F||x]=normalizeValue(a))}let setHeaders=(a,x)=>eO.forEach(a,(a,w)=>setHeader(a,w,x));if(eO.isPlainObject(a)||a instanceof this.constructor)setHeaders(a,x);else if(eO.isString(a)&&(a=a.trim())&&!isValidHeaderName(a))setHeaders(parseHeaders(a),x);else if(eO.isHeaders(a))for(let[x,A]of a.entries())setHeader(A,x,w);else null!=a&&setHeader(x,a,w);return this}get(a,x){if(a=normalizeHeader(a)){let w=eO.findKey(this,a);if(w){let a=this[w];if(!x)return a;if(!0===x)return function(a){let x;let w=Object.create(null),A=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
58for(;x=A.exec(a);)w[x[1]]=x[2];return w}(a);if(eO.isFunction(x))return x.call(this,a,w);if(eO.isRegExp(x))return x.exec(a);throw TypeError("parser must be boolean|regexp|function")}}}has(a,x){if(a=normalizeHeader(a)){let w=eO.findKey(this,a);return!!(w&&void 0!==this[w]&&(!x||matchHeaderValue(this,this[w],w,x)))}return!1}delete(a,x){let w=this,A=!1;function deleteHeader(a){if(a=normalizeHeader(a)){let k=eO.findKey(w,a);k&&(!x||matchHeaderValue(w,w[k],k,x))&&(delete w[k],A=!0)}}return eO.isArray(a)?a.forEach(deleteHeader):deleteHeader(a),A}clear(a){let x=Object.keys(this),w=x.length,A=!1;for(;w--;){let k=x[w];(!a||matchHeaderValue(this,this[k],k,a,!0))&&(delete this[k],A=!0)}return A}normalize(a){let x=this,w={};return eO.forEach(this,(A,k)=>{let F=eO.findKey(w,k);if(F){x[F]=normalizeValue(A),delete x[k];return}let V=a?k.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,x,w)=>x.toUpperCase()+w):String(k).trim();V!==k&&delete x[k],x[V]=normalizeValue(A),w[V]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){let x=Object.create(null);return eO.forEach(this,(w,A)=>{null!=w&&!1!==w&&(x[A]=a&&eO.isArray(w)?w.join(", "):w)}),x}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,x])=>a+": "+x).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...x){let w=new this(a);return x.forEach(a=>w.set(a)),w}static accessor(a){let x=this[e$]=this[e$]={accessors:{}},w=x.accessors,A=this.prototype;function defineAccessor(a){let x=normalizeHeader(a);w[x]||(!function(a,x){let w=eO.toCamelCase(" "+x);["get","set","has"].forEach(A=>{Object.defineProperty(a,A+w,{value:function(a,w,k){return this[A].call(this,x,a,w,k)},configurable:!0})})}(A,a),w[x]=!0)}return eO.isArray(a)?a.forEach(defineAccessor):defineAccessor(a),this}};function transformData(a,x){let w=this||eH,A=x||w,k=AxiosHeaders.from(A.headers),F=A.data;return eO.forEach(a,function(a){F=a.call(w,F,k.normalize(),x?x.status:void 0)}),k.normalize(),F}function isCancel(a){return!!(a&&a.__CANCEL__)}function CanceledError(a,x,w){AxiosError.call(this,null==a?"canceled":a,AxiosError.ERR_CANCELED,x,w),this.name="CanceledError"}function settle(a,x,w){let A=w.config.validateStatus;!w.status||!A||A(w.status)?a(w):x(new AxiosError("Request failed with status code "+w.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(w.status/100)-4],w.config,w.request,w))}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eO.reduceDescriptors(AxiosHeaders.prototype,({value:a},x)=>{let w=x[0].toUpperCase()+x.slice(1);return{get:()=>a,set(a){this[w]=a}}}),eO.freezeMethods(AxiosHeaders),eO.inherits(CanceledError,AxiosError,{__CANCEL__:!0});let progressEventReducer=(a,x,w=3)=>{let A=0,k=function(a,x){let w;a=a||10;let A=Array(a),k=Array(a),F=0,V=0;return x=void 0!==x?x:1e3,function(B){let z=Date.now(),G=k[V];w||(w=z),A[F]=B,k[F]=z;let $=V,W=0;for(;$!==F;)W+=A[$++],$%=a;if((F=(F+1)%a)===V&&(V=(V+1)%a),z-w<x)return;let Z=G&&z-G;return Z?Math.round(1e3*W/Z):void 0}}(50,250);return function(a,x){let w,A,k=0,F=1e3/x,invoke=(x,F=Date.now())=>{k=F,w=null,A&&(clearTimeout(A),A=null),a.apply(null,x)};return[(...a)=>{let x=Date.now(),V=x-k;V>=F?invoke(a,x):(w=a,A||(A=setTimeout(()=>{A=null,invoke(w)},F-V)))},()=>w&&invoke(w)]}(w=>{let F=w.loaded,V=w.lengthComputable?w.total:void 0,B=F-A,z=k(B),G=F<=V;A=F,a({loaded:F,total:V,progress:V?F/V:void 0,bytes:B,rate:z||void 0,estimated:z&&V&&G?(V-F)/z:void 0,event:w,lengthComputable:null!=V,[x?"download":"upload"]:!0})},w)},progressEventDecorator=(a,x)=>{let w=null!=a;return[A=>x[0]({lengthComputable:w,total:a,loaded:A}),x[1]]},asyncDecorator=a=>(...x)=>eO.asap(()=>a(...x));var eW=ez.hasStandardBrowserEnv?(G=new URL(ez.origin),$=ez.navigator&&/(msie|trident)/i.test(ez.navigator.userAgent),a=>(a=new URL(a,ez.origin),G.protocol===a.protocol&&G.host===a.host&&($||G.port===a.port))):()=>!0,eZ=ez.hasStandardBrowserEnv?{write(a,x,w,A,k,F){let V=[a+"="+encodeURIComponent(x)];eO.isNumber(w)&&V.push("expires="+new Date(w).toGMTString()),eO.isString(A)&&V.push("path="+A),eO.isString(k)&&V.push("domain="+k),!0===F&&V.push("secure"),document.cookie=V.join("; ")},read(a){let x=document.cookie.match(RegExp("(^|;\\s*)("+a+")=([^;]*)"));
58return x?decodeURIComponent(x[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(a,x){return a&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(x)?x?a.replace(/\/?\/$/,"")+"/"+x.replace(/^\/+/,""):a:x}let headersToObject=a=>a instanceof AxiosHeaders?{...a}:a;function mergeConfig(a,x){x=x||{};let w={};function getMergedValue(a,x,w,A){return eO.isPlainObject(a)&&eO.isPlainObject(x)?eO.merge.call({caseless:A},a,x):eO.isPlainObject(x)?eO.merge({},x):eO.isArray(x)?x.slice():x}function mergeDeepProperties(a,x,w,A){return eO.isUndefined(x)?eO.isUndefined(a)?void 0:getMergedValue(void 0,a,w,A):getMergedValue(a,x,w,A)}function valueFromConfig2(a,x){if(!eO.isUndefined(x))return getMergedValue(void 0,x)}function defaultToConfig2(a,x){return eO.isUndefined(x)?eO.isUndefined(a)?void 0:getMergedValue(void 0,a):getMergedValue(void 0,x)}function mergeDirectKeys(w,A,k){return k in x?getMergedValue(w,A):k in a?getMergedValue(void 0,w):void 0}let A={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(a,x,w)=>mergeDeepProperties(headersToObject(a),headersToObject(x),w,!0)};return eO.forEach(Object.keys(Object.assign({},a,x)),function(k){let F=A[k]||mergeDeepProperties,V=F(a[k],x[k],k);eO.isUndefined(V)&&F!==mergeDirectKeys||(w[k]=V)}),w}var resolveConfig=a=>{let x;let w=mergeConfig({},a),{data:A,withXSRFToken:k,xsrfHeaderName:F,xsrfCookieName:V,headers:B,auth:z}=w;if(w.headers=B=AxiosHeaders.from(B),w.url=buildURL(buildFullPath(w.baseURL,w.url),a.params,a.paramsSerializer),z&&B.set("Authorization","Basic "+btoa((z.username||"")+":"+(z.password?unescape(encodeURIComponent(z.password)):""))),eO.isFormData(A)){if(ez.hasStandardBrowserEnv||ez.hasStandardBrowserWebWorkerEnv)B.setContentType(void 0);else if(!1!==(x=B.getContentType())){let[a,...w]=x?x.split(";").map(a=>a.trim()).filter(Boolean):[];B.setContentType([a||"multipart/form-data",...w].join("; "))}}if(ez.hasStandardBrowserEnv&&(k&&eO.isFunction(k)&&(k=k(w)),k||!1!==k&&eW(w.url))){let a=F&&V&&eZ.read(V);a&&B.set(F,a)}return w};let eK="undefined"!=typeof XMLHttpRequest;var eQ=eK&&function(a){return new Promise(function(x,w){let A,k,F,V,B;let z=resolveConfig(a),G=z.data,$=AxiosHeaders.from(z.headers).normalize(),{responseType:W,onUploadProgress:Z,onDownloadProgress:K}=z;function done(){V&&V(),B&&B(),z.cancelToken&&z.cancelToken.unsubscribe(A),z.signal&&z.signal.removeEventListener("abort",A)}let Y=new XMLHttpRequest;function onloadend(){if(!Y)return;let A=AxiosHeaders.from("getAllResponseHeaders"in Y&&Y.getAllResponseHeaders()),k=W&&"text"!==W&&"json"!==W?Y.response:Y.responseText,F={data:k,status:Y.status,statusText:Y.statusText,headers:A,config:a,request:Y};settle(function(a){x(a),done()},function(a){w(a),done()},F),Y=null}Y.open(z.method.toUpperCase(),z.url,!0),Y.timeout=z.timeout,"onloadend"in Y?Y.onloadend=onloadend:Y.onreadystatechange=function(){Y&&4===Y.readyState&&(0!==Y.status||Y.responseURL&&0===Y.responseURL.indexOf("file:"))&&setTimeout(onloadend)},Y.onabort=function(){Y&&(w(new AxiosError("Request aborted",AxiosError.ECONNABORTED,a,Y)),Y=null)},Y.onerror=function(){w(new AxiosError("Network Error",AxiosError.ERR_NETWORK,a,Y)),Y=null},Y.ontimeout=function(){let x=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded",A=z.transitional||eD;z.timeoutErrorMessage&&(x=z.timeoutErrorMessage),w(new AxiosError(x,A.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,a,Y)),Y=null},void 0===G&&$.setContentType(null),"setRequestHeader"in Y&&eO.forEach($.toJSON(),function(a,x){Y.setRequestHeader(x,a)}),eO.isUndefined(z.withCredentials)||(Y.withCredentials=!!z.withCredentials),W&&"json"!==W&&(Y.responseType=z.responseType),K&&([F,B]=progressEventReducer(K,!0),Y.addEventListener("progress",F)),Z&&Y.upload&&([k,V]=progressEventReducer(Z),Y.upload.addEventListener("progress",k),Y.upload.addEventListener("loadend",V)),(z.cancelToken||z.signal)&&(A=x=>{Y&&(w(!x||x.type?new CanceledError(null,a,Y):x),Y.abort(),Y=null)},z.cancelToken&&z.cancelToken.subscribe(A),z.signal&&(z.signal.aborted?A():z.signal.addEventListener("abort",A)));let J=function(a){let x=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return x&&x[1]||""}(z.url);if(J&&-1===ez.protocols.indexOf(J)){w(new AxiosError("Unsupported protocol "+J+":",AxiosError.ERR_BAD_REQUEST,a));return}Y.send(G||null)})},composeSignals$1=(a,x)=>{let{length:w}
58=a=a?a.filter(Boolean):[];if(x||w){let w,A=new AbortController,onabort=function(a){if(!w){w=!0,unsubscribe();let x=a instanceof Error?a:this.reason;A.abort(x instanceof AxiosError?x:new CanceledError(x instanceof Error?x.message:x))}},k=x&&setTimeout(()=>{k=null,onabort(new AxiosError(`timeout ${x} of ms exceeded`,AxiosError.ETIMEDOUT))},x),unsubscribe=()=>{a&&(k&&clearTimeout(k),k=null,a.forEach(a=>{a.unsubscribe?a.unsubscribe(onabort):a.removeEventListener("abort",onabort)}),a=null)};a.forEach(a=>a.addEventListener("abort",onabort));let{signal:F}=A;return F.unsubscribe=()=>eO.asap(unsubscribe),F}};let streamChunk=function*(a,x){let w,A=a.byteLength;if(!x||A<x){yield a;return}let k=0;for(;k<A;)w=k+x,yield a.slice(k,w),k=w},readBytes=async function*(a,x){for await(let w of readStream(a))yield*streamChunk(w,x)},readStream=async function*(a){if(a[Symbol.asyncIterator]){yield*a;return}let x=a.getReader();try{for(;;){let{done:a,value:w}=await x.read();if(a)break;yield w}}finally{await x.cancel()}},trackStream=(a,x,w,A)=>{let k;let F=readBytes(a,x),V=0,_onFinish=a=>{!k&&(k=!0,A&&A(a))};return new ReadableStream({async pull(a){try{let{done:x,value:A}=await F.next();if(x){_onFinish(),a.close();return}let k=A.byteLength;if(w){let a=V+=k;w(a)}a.enqueue(new Uint8Array(A))}catch(a){throw _onFinish(a),a}},cancel:a=>(_onFinish(a),F.return())},{highWaterMark:2})},eY="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eJ=eY&&"function"==typeof ReadableStream,eX=eY&&("function"==typeof TextEncoder?(W=new TextEncoder,a=>W.encode(a)):async a=>
58new Uint8Array(await new Response(a).arrayBuffer())),test=(a,...x)=>{try{return!!a(...x)}catch(a){return!1}},e0=eJ&&test(()=>{let a=!1,x=new Request(ez.origin,{body:new ReadableStream,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!x}),e1=eJ&&test(()=>eO.isReadableStream(new Response("").body)),e2={stream:e1&&(a=>a.body)};eY&&(Z=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(a=>{e2[a]||(e2[a]=eO.isFunction(Z[a])?x=>x[a]():(x,w)=>{throw new AxiosError(`Response type '${a}' is not supported`,AxiosError.ERR_NOT_SUPPORT,w)})}));let getBodyLength=async a=>{if(null==a)return 0;if(eO.isBlob(a))return a.size;if(eO.isSpecCompliantForm(a)){let x=new Request(ez.origin,{method:"POST",body:a});return(await x.arrayBuffer()).byteLength}return eO.isArrayBufferView(a)||eO.isArrayBuffer(a)?a.byteLength:(eO.isURLSearchParams(a)&&(a+=""),eO.isString(a))?(await eX(a)).byteLength:void 0},resolveBodyLength=async(a,x)=>{let w=eO.toFiniteNumber(a.getContentLength());return null==w?getBodyLength(x):w};var e5=eY&&(async a=>{let x,w,{url:A,method:k,data:F,signal:V,cancelToken:B,timeout:z,onDownloadProgress:G,onUploadProgress:$,responseType:W,headers:Z,withCredentials:K="same-origin",fetchOptions:Y}=resolveConfig(a);W=W?(W+"").toLowerCase():"text";let J=composeSignals$1([V,B&&B.toAbortSignal()],z),ee=J&&J.unsubscribe&&(()=>{J.unsubscribe()});try{if($&&e0&&"get"!==k&&"head"!==k&&0!==(w=await resolveBodyLength(Z,F))){let a,x=new Request(A,{method:"POST",body:F,duplex:"half"});if(eO.isFormData(F)&&(a=x.headers.get("content-type"))&&Z.setContentType(a),x.body){let[a,A]=progressEventDecorator(w,progressEventReducer(asyncDecorator($)));F=trackStream(x.body,65536,a,A)}}eO.isString(K)||(K=K?"include":"omit");let V="credentials"in Request.prototype;x=new Request(A,{...Y,signal:J,method:k.toUpperCase(),headers:Z.normalize().toJSON(),body:F,duplex:"half",credentials:V?K:void 0});let B=await fetch(x),z=e1&&("stream"===W||"response"===W);if(e1&&(G||z&&ee)){let a={};["status","statusText","headers"].forEach(x=>{a[x]=B[x]});let x=eO.toFiniteNumber(B.headers.get("content-length")),[w,A]=G&&progressEventDecorator(x,progressEventReducer(asyncDecorator(G),!0))||[];B=new Response(trackStream(B.body,65536,w,()=>{A&&A(),ee&&ee()}),a)}W=W||"text";let et=await e2[eO.findKey(e2,W)||"text"](B,a);return!z&&ee&&ee(),await new Promise((w,A)=>{settle(w,A,{data:et,headers:AxiosHeaders.from(B.headers),status:B.status,statusText:B.statusText,config:a,request:x})})}catch(w){if(ee&&ee(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,a,x),{cause:w.cause||w});throw AxiosError.from(w,w&&w.code,a,x)}});let e3={http:null,xhr:eQ,fetch:e5};eO.forEach(e3,(a,x)=>{if(a){try{Object.defineProperty(a,"name",{value:x})}catch(a){}Object.defineProperty(a,"adapterName",{value:x})}});let renderReason=a=>`- ${a}`,isResolvedHandle=a=>eO.isFunction(a)||null===a||!1===a;var e4={getAdapter:a=>{let x,w;a=eO.isArray(a)?a:[a];let{length:A}=a,k={};for(let F=0;F<A;F++){let A;if(w=x=a[F],!isResolvedHandle(x)&&void 0===(w=e3[(A=String(x)).toLowerCase()]))throw new AxiosError(`Unknown adapter '${A}'`);if(w)break;k[A||"#"+F]=w}if(!w){let a=Object.entries(k).map(([a,x])=>`adapter ${a} `+(!1===x?"is not supported by the environment":"is not available in the build")),x=A?a.length>1?"since :\n"+a.map(renderReason).join("\n"):" "+renderReason(a[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return w},adapters:e3};function throwIfCancellationRequested(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new CanceledError(null,a)}function dispatchRequest(a){throwIfCancellationRequested(a),a.headers=AxiosHeaders.from(a.headers),a.data=transformData.call(a,a.transformRequest),-1!==["post","put","patch"].indexOf(a.method)&&a.headers.setContentType("application/x-www-form-urlencoded",!1);let x=e4.getAdapter(a.adapter||eH.adapter);return x(a).then(function(x){return throwIfCancellationRequested(a),x.data=transformData.call(a,a.transformResponse,x),x.headers=AxiosHeaders.from(x.headers),x},function(x){return!isCancel(x)&&(throwIfCancellationRequested(a),x&&x.response&&(x.response.data=transformData.call(a,a.transformResponse,x.response),x.response.headers=AxiosHeaders.from(x.response.headers))),Promise.reject(x)})}let e6="1.7.9",e8={};["object","boolean","number","function","string","symbol"].forEach((a,x)=>{e8[a]=function(w){return typeof w===a||"a"+(x<1?"n ":" ")+a}});let e7={};
58e8.transitional=function(a,x,w){function formatMessage(a,x){return"[Axios v"+e6+"] Transitional option '"+a+"'"+x+(w?". "+w:"")}return(w,A,k)=>{if(!1===a)throw new AxiosError(formatMessage(A," has been removed"+(x?" in "+x:"")),AxiosError.ERR_DEPRECATED);return x&&!e7[A]&&(e7[A]=!0,console.warn(formatMessage(A," has been deprecated since v"+x+" and will be removed in the near future"))),!a||a(w,A,k)}},e8.spelling=function(a){return(x,w)=>(console.warn(`${w} is likely a misspelling of ${a}`),!0)};var e9={assertOptions:function(a,x,w){if("object"!=typeof a)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let A=Object.keys(a),k=A.length;for(;k-- >0;){let F=A[k],V=x[F];if(V){let x=a[F],w=void 0===x||V(x,F,a);if(!0!==w)throw new AxiosError("option "+F+" must be "+w,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==w)throw new AxiosError("Unknown option "+F,AxiosError.ERR_BAD_OPTION)}},validators:e8};let te=e9.validators;let Axios=class Axios{constructor(a){this.defaults=a,this.interceptors={request:new eI,response:new eI}}async request(a,x){try{return await this._request(a,x)}catch(a){if(a instanceof Error){let x={};Error.captureStackTrace?Error.captureStackTrace(x):x=Error();let w=x.stack?x.stack.replace(/^.+\n/,""):"";try{a.stack?w&&!String(a.stack).endsWith(w.replace(/^.+\n.+\n/,""))&&(a.stack+="\n"+w):a.stack=w}catch(a){}}throw a}}_request(a,x){let w,A;"string"==typeof a?(x=x||{}).url=a:x=a||{},x=mergeConfig(this.defaults,x);let{transitional:k,paramsSerializer:F,headers:V}=x;void 0!==k&&e9.assertOptions(k,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean)},!1),null!=F&&(eO.isFunction(F)?x.paramsSerializer={serialize:F}:e9.assertOptions(F,{encode:te.function,serialize:te.function},!0)),e9.assertOptions(x,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),x.method=(x.method||this.defaults.method||"get").toLowerCase();let B=V&&eO.merge(V.common,V[x.method]);V&&eO.forEach(["delete","get","head","post","put","patch","common"],a=>{delete V[a]}),x.headers=AxiosHeaders.concat(B,V);let z=[],G=!0;this.interceptors.request.forEach(function(a){("function"!=typeof a.runWhen||!1!==a.runWhen(x))&&(G=G&&a.synchronous,z.unshift(a.fulfilled,a.rejected))});let $=[];this.interceptors.response.forEach(function(a){$.push(a.fulfilled,a.rejected)});let W=0;if(!G){let a=[dispatchRequest.bind(this),void 0];for(a.unshift.apply(a,z),a.push.apply(a,$),A=a.length,w=Promise.resolve(x);W<A;)w=w.then(a[W++],a[W++]);return w}A=z.length;let Z=x;for(W=0;W<A;){let a=z[W++],x=z[W++];try{Z=a(Z)}catch(a){x.call(this,a);break}}try{w=dispatchRequest.call(this,Z)}catch(a){return Promise.reject(a)}for(W=0,A=$.length;W<A;)w=w.then($[W++],$[W++]);return w}getUri(a){a=mergeConfig(this.defaults,a);let x=buildFullPath(a.baseURL,a.url);return buildURL(x,a.params,a.paramsSerializer)}};eO.forEach(["delete","get","head","options"],function(a){Axios.prototype[a]=function(x,w){return this.request(mergeConfig(w||{},{method:a,url:x,data:(w||{}).data}))}}),eO.forEach(["post","put","patch"],function(a){function generateHTTPMethod(x){return function(w,A,k){return this.request(mergeConfig(k||{},{method:a,headers:x?{"Content-Type":"multipart/form-data"}:{},url:w,data:A}))}}Axios.prototype[a]=generateHTTPMethod(),Axios.prototype[a+"Form"]=generateHTTPMethod(!0)});let CancelToken=class CancelToken{constructor(a){let x;if("function"!=typeof a)throw TypeError("executor must be a function.");this.promise=new Promise(function(a){x=a});let w=this;this.promise.then(a=>{if(!w._listeners)return;let x=w._listeners.length;for(;x-- >0;)w._listeners[x](a);w._listeners=null}),this.promise.then=a=>{let x;let A=new Promise(a=>{w.subscribe(a),x=a}).then(a);return A.cancel=function(){w.unsubscribe(x)},A},a(function(a,A,k){w.reason||(w.reason=new CanceledError(a,A,k),x(w.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let x=this._listeners.indexOf(a);
58-1!==x&&this._listeners.splice(x,1)}toAbortSignal(){let a=new AbortController,abort=x=>{a.abort(x)};return this.subscribe(abort),a.signal.unsubscribe=()=>this.unsubscribe(abort),a.signal}static source(){let a;let x=new CancelToken(function(x){a=x});return{token:x,cancel:a}}};let tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tt).forEach(([a,x])=>{tt[x]=a});let tr=function createInstance(a){let x=new Axios(a),w=bind(Axios.prototype.request,x);return eO.extend(w,Axios.prototype,x,{allOwnKeys:!0}),eO.extend(w,x,null,{allOwnKeys:!0}),w.create=function(x){return createInstance(mergeConfig(a,x))},w}(eH);tr.Axios=Axios,tr.CanceledError=CanceledError,tr.CancelToken=CancelToken,tr.isCancel=isCancel,tr.VERSION=e6,tr.toFormData=toFormData,tr.AxiosError=AxiosError,tr.Cancel=tr.CanceledError,tr.all=function(a){return Promise.all(a)},tr.spread=function(a){return function(x){return a.apply(null,x)}},tr.isAxiosError=function(a){return eO.isObject(a)&&!0===a.isAxiosError},tr.mergeConfig=mergeConfig,tr.AxiosHeaders=AxiosHeaders,tr.formToJSON=a=>formDataToJSON(eO.isHTMLForm(a)?new FormData(a):a),tr.getAdapter=e4.getAdapter,tr.HttpStatusCode=tt,tr.default=tr,a.exports=tr},87462:function(a,x,w){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(a){for(var x=1;x<arguments.length;x++){var w=arguments[x];for(var A in w)({}).hasOwnProperty.call(w,A)&&(a[A]=w[A])}return a}).apply(null,arguments)}w.d(x,{Z:function(){return _extends}})},94578:function(a,x,w){"use strict";w.d(x,{Z:function(){return _inheritsLoose}});var A=w(89611);function _inheritsLoose(a,x){a.prototype=Object.create(x.prototype),a.prototype.constructor=a,(0,A.Z)(a,x)}},89611:function(a,x,w){"use strict";function _setPrototypeOf(a,x){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,x){return a.__proto__=x,a})(a,x)}w.d(x,{Z:function(){return _setPrototypeOf}})},71002:function(a,x,w){"use strict";function _typeof(a){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}w.d(x,{Z:function(){return _typeof}})},39516:function(a,x,w){"use strict";w.d(x,{d:function(){return $},f:function(){return M}});var A=w(67294),k=w(19946),F=w(12351),V=w(16723),B=w(23784),z=w(73781);let G=(0,A.createContext)(null);function M(){let[a,x]=(0,A.useState)([]);return[a.length>0?a.join(" "):void 0,(0,A.useMemo)(()=>function(a){let w=(0,z.z)(a=>(x(x=>[...x,a]),()=>x(x=>{let w=x.slice(),A=w.indexOf(a);return -1!==A&&w.splice(A,1),w}))),k=(0,A.useMemo)(()=>({register:w,slot:a.slot,name:a.name,props:a.props}),[w,a.slot,a.name,a.props]);return A.createElement(G.Provider,{value:k},a.children)},[x])]}let $=Object.assign((0,F.yV)(function(a,x){let w=(0,k.M)(),{id:z=`headlessui-description-${w}`,...$}=a,W=function f(){let a=(0,A.useContext)(G);if(null===a){let a=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(a,f),a}return a}(),Z=(0,B.T)(x);(0,V.e)(()=>W.register(z),[z,W.register]);let K={ref:Z,...W.props,id:z};return(0,F.sY)({ourProps:K,theirProps:$,slot:W.slot||{},defaultTag:"p",name:W.name||"Description"})}),{})},42545:function(a,x,w){"use strict";let A,k;w.d(x,{V:function(){return eV}});var F,V,B,z,G,$=w(67294),W=w.t($,2),Z=w(32984),K=w(12351),Y=w(23784),J=w(61363),ee=w(64103),et=w(19946),er=w(82180),en=w(46045),ei=w(84575),eo=w(73781),ea=w(45662),es=w(14879),el=w(51074),eu=w(14007),ec=w(81021);function m(a,x){let w=(0,$.useRef)([]),A=(0,eo.z)(a);(0,$.useEffect)(()=>{let a=[...w.current];for(let[k,F]of x.entries())if(w.current[k]!==F){let k=A(x,a);return w.current=x,k}},[A,...x])}var ed=w(94192),ef=w(61595);function P(a){if(!a)return new Set;if("function"==typeof a)return new Set(a());let x=new Set;for(let w of a.current)w.current instanceof HTMLElement&&x.add(w.current);return x}var ep=((F=ep||{})[F.None=1]="None",F[F.InitialFocus=2]="InitialFocus",F[F.TabLock=4]="TabLock",F[F.FocusLock=8]="FocusLock",F[F.RestoreFocus=16]="RestoreFocus",F[F.All=30]="All",F);let eh=Object.assign((0,K.yV)(function(a,x){let w=(0,$.useRef)(null),A=(0,Y.T)(w,x),{initialFocus:k,containers:F,features:V=30,...B}=a;(0,er.H)()||(V=1);let z=(0,el.i)(w);!function({ownerDocument:a},x){let w=function(a=!0){let x=(0,$.useRef)(em.slice());return m(([a],[w])=>{!0===w&&!1===a&&(0,ec.Y)(()=>{x.current.splice(0)}),!1===w&&!0===a&&(x.current=em.slice())},[a,em,x]),(0,eo.z)(()=>{var a;return null!=(a=x.current.find(a=>null!=a&&a.isConnected))?a:null})}(x);m(()=>{x||(null==a?void 0:a.activeElement)===(null==a?void 0:a.body)&&(0,ei.C5)(w())},[x]),(0,ef.L)(()=>{x&&(0,ei.C5)(w())})}({ownerDocument:z},!!(16&V));let G=function({ownerDocument:a,container:x,initialFocus:w},A){let k=(0,$.useRef)(null),F=(0,es.t)();return m(()=>{if(!A)return;let V=x.current;V&&(0,ec.Y)(()=>
58{if(!F.current)return;let x=null==a?void 0:a.activeElement;if(null!=w&&w.current){if((null==w?void 0:w.current)===x){k.current=x;return}}else if(V.contains(x)){k.current=x;return}null!=w&&w.current?(0,ei.C5)(w.current):(0,ei.jA)(V,ei.TO.First)===ei.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),k.current=null==a?void 0:a.activeElement})},[A]),k}({ownerDocument:z,container:w,initialFocus:k},!!(2&V));!function({ownerDocument:a,container:x,containers:w,previousActiveElement:A},k){let F=(0,es.t)();(0,eu.O)(null==a?void 0:a.defaultView,"focus",a=>{if(!k||!F.current)return;let V=P(w);x.current instanceof HTMLElement&&V.add(x.current);let B=A.current;if(!B)return;let z=a.target;z&&z instanceof HTMLElement?S(V,z)?(A.current=z,(0,ei.C5)(z)):(a.preventDefault(),a.stopPropagation(),(0,ei.C5)(B)):(0,ei.C5)(A.current)},!0)}({ownerDocument:z,container:w,containers:F,previousActiveElement:G},!!(8&V));let W=(0,ea.l)(),J=(0,eo.z)(a=>{let x=w.current;x&&(0,Z.E)(W.current,{[ea.N.Forwards]:()=>{(0,ei.jA)(x,ei.TO.First,{skipElements:[a.relatedTarget]})},[ea.N.Backwards]:()=>{(0,ei.jA)(x,ei.TO.Last,{skipElements:[a.relatedTarget]})}})}),ee=(0,ed.G)(),et=(0,$.useRef)(!1);return $.createElement($.Fragment,null,!!(4&V)&&$.createElement(en._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:J,features:en.A.Focusable}),(0,K.sY)({ourProps:{ref:A,onKeyDown(a){"Tab"==a.key&&(et.current=!0,ee.requestAnimationFrame(()=>{et.current=!1}))},onBlur(a){let x=P(F);w.current instanceof HTMLElement&&x.add(w.current);let A=a.relatedTarget;A instanceof HTMLElement&&"true"!==A.dataset.headlessuiFocusGuard&&(S(x,A)||(et.current?(0,ei.jA)(w.current,(0,Z.E)(W.current,{[ea.N.Forwards]:()=>ei.TO.Next,[ea.N.Backwards]:()=>ei.TO.Previous})|ei.TO.WrapAround,{relativeTo:a.target}):a.target instanceof HTMLElement&&(0,ei.C5)(a.target)))}},theirProps:B,defaultTag:"div",name:"FocusTrap"}),!!(4&V)&&$.createElement(en._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:J,features:en.A.Focusable}))}),{features:ep}),em=[];function S(a,x){for(let w of a)if(w.contains(x))return!0;return!1}!function(a){function e(){"loading"!==document.readyState&&(a(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}(()=>{function t(a){a.target instanceof HTMLElement&&a.target!==document.body&&em[0]!==a.target&&(em.unshift(a.target),(em=em.filter(a=>null!=a&&a.isConnected)).splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});var eg=w(2740),ev=w(31438),ey=w(39516),eb=w(16567),e_=w(16723);let ex=(0,$.createContext)(()=>{});ex.displayName="StackContext";var ew=((V=ew||{})[V.Add=0]="Add",V[V.Remove=1]="Remove",V);function stack_context_M({children:a,onUpdate:x,type:w,element:A,enabled:k}){let F=(0,$.useContext)(ex),V=(0,eo.z)((...a)=>{null==x||x(...a),F(...a)});return(0,e_.e)(()=>{let a=void 0===k||!0===k;return a&&V(0,w,A),()=>{a&&V(1,w,A)}},[V,w,A,k]),$.createElement(ex.Provider,{value:V},a)}var eS=w(39650);let{useState:eE,useEffect:eA,useLayoutEffect:eC,useDebugValue:eT}=W;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let eO=W.useSyncExternalStore;var eP=w(9362);let eR=(B={PUSH(a,x){var w;let A=null!=(w=this.get(a))?w:{doc:a,count:0,d:(0,eP.k)(),meta:new Set};return A.count++,A.meta.add(x),this.set(a,A),this},POP(a,x){let w=this.get(a);return w&&(w.count--,w.meta.delete(x)),this},SCROLL_PREVENT({doc:a,d:x,meta:w}){let A,k;let F={doc:a,d:x,meta:function(a){let x={};for(let w of a)Object.assign(x,w(x));return x}(w)},V=[/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0?{before(){A=window.pageYOffset},after({doc:a,d:x,meta:w}){function i(a){return w.containers.flatMap(a=>a()).some(x=>x.contains(a))}x.microTask(()=>
58{if("auto"!==window.getComputedStyle(a.documentElement).scrollBehavior){let w=(0,eP.k)();w.style(a.documentElement,"scroll-behavior","auto"),x.add(()=>x.microTask(()=>w.dispose()))}x.style(a.body,"marginTop",`-${A}px`),window.scrollTo(0,0);let w=null;x.addEventListener(a,"click",x=>{if(x.target instanceof HTMLElement)try{let A=x.target.closest("a");if(!A)return;let{hash:k}=new URL(A.href),F=a.querySelector(k);F&&!i(F)&&(w=F)}catch{}},!0),x.addEventListener(a,"touchmove",a=>{a.target instanceof HTMLElement&&!i(a.target)&&a.preventDefault()},{passive:!1}),x.add(()=>{window.scrollTo(0,window.pageYOffset+A),w&&w.isConnected&&(w.scrollIntoView({block:"nearest"}),w=null)})})}}:{},{before({doc:a}){var x;let w=a.documentElement;k=(null!=(x=a.defaultView)?x:window).innerWidth-w.clientWidth},after({doc:a,d:x}){let w=a.documentElement,A=w.clientWidth-w.offsetWidth,F=k-A;x.style(w,"paddingRight",`${F}px`)}},{before({doc:a,d:x}){x.style(a.documentElement,"overflow","hidden")}}];V.forEach(({before:a})=>null==a?void 0:a(F)),V.forEach(({after:a})=>null==a?void 0:a(F))},SCROLL_ALLOW({d:a}){a.dispose()},TEARDOWN({doc:a}){this.delete(a)}},A=new Map,k=new Set,{getSnapshot:()=>A,subscribe:a=>(k.add(a),()=>k.delete(a)),dispatch(a,...x){let w=B[a].call(A,...x);w&&(A=w,k.forEach(a=>a()))}});eR.subscribe(()=>{let a=eR.getSnapshot(),x=new Map;for(let[w]of a)x.set(w,w.documentElement.style.overflow);for(let w of a.values()){let a="hidden"===x.get(w.doc),A=0!==w.count;(A&&!a||!A&&a)&&eR.dispatch(w.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",w),0===w.count&&eR.dispatch("TEARDOWN",w)}});let ek=new Map,eN=new Map;function use_inert_h(a,x=!0){(0,e_.e)(()=>{var w;if(!x)return;let A="function"==typeof a?a():a.current;if(!A)return;let k=null!=(w=eN.get(A))?w:0;return eN.set(A,k+1),0!==k||(ek.set(A,{"aria-hidden":A.getAttribute("aria-hidden"),inert:A.inert}),A.setAttribute("aria-hidden","true"),A.inert=!0),function(){var a;if(!A)return;let x=null!=(a=eN.get(A))?a:1;if(1===x?eN.delete(A):eN.set(A,x-1),1!==x)return;let w=ek.get(A);w&&(null===w["aria-hidden"]?A.removeAttribute("aria-hidden"):A.setAttribute("aria-hidden",w["aria-hidden"]),A.inert=w.inert,ek.delete(A))}},[a,x])}var eI=w(65958),eD=((z=eD||{})[z.Open=0]="Open",z[z.Closed=1]="Closed",z),eM=((G=eM||{})[G.SetTitleId=0]="SetTitleId",G);let eL={0:(a,x)=>a.titleId===x.id?a:{...a,titleId:x.id}},ej=(0,$.createContext)(null);function b(a){let x=(0,$.useContext)(ej);if(null===x){let x=Error(`<${a} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(x,b),x}return x}function Be(a,x){return(0,Z.E)(x.type,eL,a,x)}ej.displayName="DialogContext";let eF=K.AN.RenderStrategy|K.AN.Static,eV=Object.assign((0,K.yV)(function(a,x){var w;let A=(0,et.M)(),{id:k=`headlessui-dialog-${A}`,open:F,onClose:V,initialFocus:B,__demoMode:z=!1,...G}=a,[W,ee]=(0,$.useState)(0),en=(0,eb.oJ)();void 0===F&&null!==en&&(F=(en&eb.ZM.Open)===eb.ZM.Open);let ei=(0,$.useRef)(null),ea=(0,Y.T)(ei,x),es=(0,el.i)(ei),ec=a.hasOwnProperty("open")||null!==en,ed=a.hasOwnProperty("onClose");if(!ec&&!ed)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!ec)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!ed)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof F)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${F}`);if("function"!=typeof V)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${V}`);let ef=F?0:1,[ep,em]=(0,$.useReducer)(Be,{titleId:null,descriptionId:null,panelRef:(0,$.createRef)()}),ex=(0,eo.z)(()=>V(!1)),eE=(0,eo.z)(a=>em({type:0,id:a})),eA=!!(0,er.H)()&&!z&&0===ef,eC=W>1,eT=null!==(0,$.useContext)(ej),[eP,ek]=(0,eg.k)(),{resolveContainers:eN,mainTreeNodeRef:eD,MainTreeNode:eM}=(0,eI.v)({portals:eP,defaultContainers:[null!=(w=ep.panelRef.current)?w:ei.current]}),eL=eC?"parent":"leaf",eV=null!==en&&(en&eb.ZM.Closing)===eb.ZM.Closing,eU=!eT&&!eV&&eA;use_inert_h((0,$.useCallback)(()=>{var a,x;return null!=(x=Array.from(null!=(a=null==es?void 0:es.querySelectorAll("body > *"))?a:[]).find(a=>"headlessui-portal-root"!==a.id&&a.contains(eD.current)&&a instanceof HTMLElement))?x:null},[eD]),eU);let eB=!!eC||eA;use_inert_h((0,$.useCallback)(()=>{var a,x;return null!=(x=Array.from(null!=(a=null==es?void 0:es.querySelectorAll("[data-headlessui-portal]"))?a:[]).find(a=>a.contains(eD.current)&&a instanceof HTMLElement))?x:null},[eD]),eB);let eq=!(!eA||eC);(0,eS.O)(eN,ex,eq);let ez=!(eC||0!==ef);(0,eu.O)(null==es?void 0:es.defaultView,"keydown",a=>{ez&&(a.defaultPrevented||a.key===J.R.Escape&&(a.preventDefault(),a.stopPropagation(),ex()))}),function(a,x,w=()=>[document.body]){var A;let k,F;A=a=>{var x;
58return{containers:[...null!=(x=a.containers)?x:[],w]}},k=eO(eR.subscribe,eR.getSnapshot,eR.getSnapshot),(F=a?k.get(a):void 0)&&F.count,(0,e_.e)(()=>{if(!(!a||!x))return eR.dispatch("PUSH",a,A),()=>eR.dispatch("POP",a,A)},[x,a])}(es,!(eV||0!==ef||eT),eN),(0,$.useEffect)(()=>{if(0!==ef||!ei.current)return;let a=new ResizeObserver(a=>{for(let x of a){let a=x.target.getBoundingClientRect();0===a.x&&0===a.y&&0===a.width&&0===a.height&&ex()}});return a.observe(ei.current),()=>a.disconnect()},[ef,ei,ex]);let[eH,eG]=(0,ey.f)(),e$=(0,$.useMemo)(()=>[{dialogState:ef,close:ex,setTitleId:eE},ep],[ef,ep,ex,eE]),eW=(0,$.useMemo)(()=>({open:0===ef}),[ef]),eZ={ref:ea,id:k,role:"dialog","aria-modal":0===ef||void 0,"aria-labelledby":ep.titleId,"aria-describedby":eH};return $.createElement(stack_context_M,{type:"Dialog",enabled:0===ef,element:ei,onUpdate:(0,eo.z)((a,x)=>{"Dialog"===x&&(0,Z.E)(a,{[ew.Add]:()=>ee(a=>a+1),[ew.Remove]:()=>ee(a=>a-1)})})},$.createElement(ev.O,{force:!0},$.createElement(eg.h,null,$.createElement(ej.Provider,{value:e$},$.createElement(eg.h.Group,{target:ei},$.createElement(ev.O,{force:!1},$.createElement(eG,{slot:eW,name:"Dialog.Description"},$.createElement(eh,{initialFocus:B,containers:eN,features:eA?(0,Z.E)(eL,{parent:eh.features.RestoreFocus,leaf:eh.features.All&~eh.features.FocusLock}):eh.features.None},$.createElement(ek,null,(0,K.sY)({ourProps:eZ,theirProps:G,slot:eW,defaultTag:"div",features:eF,visible:0===ef,name:"Dialog"}))))))))),$.createElement(eM,null))}),{Backdrop:(0,K.yV)(function(a,x){let w=(0,et.M)(),{id:A=`headlessui-dialog-backdrop-${w}`,...k}=a,[{dialogState:F},V]=b("Dialog.Backdrop"),B=(0,Y.T)(x);(0,$.useEffect)(()=>{if(null===V.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[V.panelRef]);let z=(0,$.useMemo)(()=>({open:0===F}),[F]);return $.createElement(ev.O,{force:!0},$.createElement(eg.h,null,(0,K.sY)({ourProps:{ref:B,id:A,"aria-hidden":!0},theirProps:k,slot:z,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,K.yV)(function(a,x){let w=(0,et.M)(),{id:A=`headlessui-dialog-panel-${w}`,...k}=a,[{dialogState:F},V]=b("Dialog.Panel"),B=(0,Y.T)(x,V.panelRef),z=(0,$.useMemo)(()=>({open:0===F}),[F]),G=(0,eo.z)(a=>{a.stopPropagation()});return(0,K.sY)({ourProps:{ref:B,id:A,onClick:G},theirProps:k,slot:z,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,K.yV)(function(a,x){let w=(0,et.M)(),{id:A=`headlessui-dialog-overlay-${w}`,...k}=a,[{dialogState:F,close:V}]=b("Dialog.Overlay"),B=(0,Y.T)(x),z=(0,eo.z)(a=>{if(a.target===a.currentTarget){if((0,ee.P)(a.currentTarget))return a.preventDefault();a.preventDefault(),a.stopPropagation(),V()}}),G=(0,$.useMemo)(()=>({open:0===F}),[F]);return(0,K.sY)({ourProps:{ref:B,id:A,"aria-hidden":!0,onClick:z},theirProps:k,slot:G,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,K.yV)(function(a,x){let w=(0,et.M)(),{id:A=`headlessui-dialog-title-${w}`,...k}=a,[{dialogState:F,setTitleId:V}]=b("Dialog.Title"),B=(0,Y.T)(x);(0,$.useEffect)(()=>(V(A),()=>V(null)),[A,V]);let z=(0,$.useMemo)(()=>({open:0===F}),[F]);return(0,K.sY)({ourProps:{ref:B,id:A},theirProps:k,slot:z,defaultTag:"h2",name:"Dialog.Title"})}),Description:ey.d})},61363:function(a,x,w){"use strict";w.d(x,{R:function(){return k}});var A,k=((A=k||{}).Space=" ",A.Enter="Enter",A.Escape="Escape",A.Backspace="Backspace",A.Delete="Delete",A.ArrowLeft="ArrowLeft",A.ArrowUp="ArrowUp",A.ArrowRight="ArrowRight",A.ArrowDown="ArrowDown",A.Home="Home",A.End="End",A.PageUp="PageUp",A.PageDown="PageDown",A.Tab="Tab",A)},2740:function(a,x,w){"use strict";w.d(x,{h:function(){return er},k:function(){return ae}});var A=w(67294),k=w(73935),F=w(12351),V=w(16723),B=w(31438),z=w(82180),G=w(23784),$=w(61595),W=w(51074),Z=w(77896),K=w(73781);let Y=A.Fragment,J=A.Fragment,ee=(0,A.createContext)(null),et=(0,A.createContext)(null);function ae(){let a=(0,A.useContext)(et),x=(0,A.useRef)([]),w=(0,K.z)(w=>(x.current.push(w),a&&a.register(w),()=>k(w))),k=(0,K.z)(w=>{let A=x.current.indexOf(w);-1!==A&&x.current.splice(A,1),a&&a.unregister(w)}),F=(0,A.useMemo)(()=>({register:w,unregister:k,portals:x}),[w,k,x]);return[x,(0,A.useMemo)(()=>function({children:a}){return A.createElement(et.Provider,{value:F},a)},[F])]}let er=Object.assign((0,F.yV)(function(a,x){let w=(0,A.useRef)(null),K=(0,G.T)((0,G.h)(a=>{w.current=a}),x),J=(0,W.i)(w),er=function(a){let x=(0,B.n)(),w=(0,A.useContext)(ee),k=(0,W.i)(a),[F,V]=(0,A.useState)(()=>
58{if(!x&&null!==w||Z.O.isServer)return null;let a=null==k?void 0:k.getElementById("headlessui-portal-root");if(a)return a;if(null===k)return null;let A=k.createElement("div");return A.setAttribute("id","headlessui-portal-root"),k.body.appendChild(A)});return(0,A.useEffect)(()=>{null!==F&&(null!=k&&k.body.contains(F)||null==k||k.body.appendChild(F))},[F,k]),(0,A.useEffect)(()=>{x||null!==w&&V(w.current)},[w,V,x]),F}(w),[en]=(0,A.useState)(()=>{var a;return Z.O.isServer?null:null!=(a=null==J?void 0:J.createElement("div"))?a:null}),ei=(0,A.useContext)(et),eo=(0,z.H)();return(0,V.e)(()=>{!er||!en||er.contains(en)||(en.setAttribute("data-headlessui-portal",""),er.appendChild(en))},[er,en]),(0,V.e)(()=>{if(en&&ei)return ei.register(en)},[ei,en]),(0,$.L)(()=>{var a;er&&en&&(en instanceof Node&&er.contains(en)&&er.removeChild(en),er.childNodes.length<=0&&(null==(a=er.parentElement)||a.removeChild(er)))}),eo&&er&&en?(0,k.createPortal)((0,F.sY)({ourProps:{ref:K},theirProps:a,defaultTag:Y,name:"Portal"}),en):null}),{Group:(0,F.yV)(function(a,x){let{target:w,...k}=a,V={ref:(0,G.T)(x)};return A.createElement(ee.Provider,{value:w},(0,F.sY)({ourProps:V,theirProps:k,defaultTag:J,name:"Popover.Group"}))})})},11355:function(a,x,w){"use strict";w.d(x,{u:function(){return ec}});var A,k=w(67294),F=w(12351),V=w(16567),B=w(32984),z=w(14879),G=w(16723),$=w(3855),W=w(82180),Z=w(23784),K=w(9362);function g(a,...x){a&&x.length>0&&a.classList.add(...x)}function v(a,...x){a&&x.length>0&&a.classList.remove(...x)}var Y=w(94192),J=w(73781),ee=w(44067),et=w(14227);function S(a=""){return a.split(" ").filter(a=>a.trim().length>1)}let er=(0,k.createContext)(null);er.displayName="TransitionContext";var en=((A=en||{}).Visible="visible",A.Hidden="hidden",A);let ei=(0,k.createContext)(null);function U(a){return"children"in a?U(a.children):a.current.filter(({el:a})=>null!==a.current).filter(({state:a})=>"visible"===a).length>0}function oe(a,x){let w=(0,$.E)(a),A=(0,k.useRef)([]),V=(0,z.t)(),G=(0,Y.G)(),W=(0,J.z)((a,x=F.l4.Hidden)=>{let k=A.current.findIndex(({el:x})=>x===a);-1!==k&&((0,B.E)(x,{[F.l4.Unmount](){A.current.splice(k,1)},[F.l4.Hidden](){A.current[k].state="hidden"}}),G.microTask(()=>{var a;!U(A)&&V.current&&(null==(a=w.current)||a.call(w))}))}),Z=(0,J.z)(a=>{let x=A.current.find(({el:x})=>x===a);return x?"visible"!==x.state&&(x.state="visible"):A.current.push({el:a,state:"visible"}),()=>W(a,F.l4.Unmount)}),K=(0,k.useRef)([]),ee=(0,k.useRef)(Promise.resolve()),et=(0,k.useRef)({enter:[],leave:[],idle:[]}),er=(0,J.z)((a,w,A)=>{K.current.splice(0),x&&(x.chains.current[w]=x.chains.current[w].filter(([x])=>x!==a)),null==x||x.chains.current[w].push([a,new Promise(a=>{K.current.push(a)})]),null==x||x.chains.current[w].push([a,new Promise(a=>{Promise.all(et.current[w].map(([a,x])=>x)).then(()=>a())}
58)]),"enter"===w?ee.current=ee.current.then(()=>null==x?void 0:x.wait.current).then(()=>A(w)):A(w)}),en=(0,J.z)((a,x,w)=>{Promise.all(et.current[x].splice(0).map(([a,x])=>x)).then(()=>{var a;null==(a=K.current.shift())||a()}).then(()=>w(x))});return(0,k.useMemo)(()=>({children:A,register:Z,unregister:W,onStart:er,onStop:en,wait:ee,chains:et}),[Z,W,A,er,en,et,ee])}function xe(){}ei.displayName="NestingContext";let eo=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function se(a){var x;let w={};for(let A of eo)w[A]=null!=(x=a[A])?x:xe;return w}let ea=F.AN.RenderStrategy,es=(0,F.yV)(function(a,x){let{show:w,appear:A=!1,unmount:B=!0,...z}=a,$=(0,k.useRef)(null),K=(0,Z.T)($,x);(0,W.H)();let Y=(0,V.oJ)();if(void 0===w&&null!==Y&&(w=(Y&V.ZM.Open)===V.ZM.Open),![!0,!1].includes(w))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[ee,et]=(0,k.useState)(w?"visible":"hidden"),en=oe(()=>{et("hidden")}),[eo,es]=(0,k.useState)(!0),eu=(0,k.useRef)([w]);(0,G.e)(()=>{!1!==eo&&eu.current[eu.current.length-1]!==w&&(eu.current.push(w),es(!1))},[eu,w]);let ec=(0,k.useMemo)(()=>({show:w,appear:A,initial:eo}),[w,A,eo]);(0,k.useEffect)(()=>{if(w)et("visible");else if(U(en)){let a=$.current;if(!a)return;let x=a.getBoundingClientRect();0===x.x&&0===x.y&&0===x.width&&0===x.height&&et("hidden")}else et("hidden")},[w,en]);let ed={unmount:B},ef=(0,J.z)(()=>{var x;eo&&es(!1),null==(x=a.beforeEnter)||x.call(a)}),ep=(0,J.z)(()=>{var x;eo&&es(!1),null==(x=a.beforeLeave)||x.call(a)});return k.createElement(ei.Provider,{value:en}
58,k.createElement(er.Provider,{value:ec},(0,F.sY)({ourProps:{...ed,as:k.Fragment,children:k.createElement(el,{ref:K,...ed,...z,beforeEnter:ef,beforeLeave:ep})},theirProps:{},defaultTag:k.Fragment,features:ea,visible:"visible"===ee,name:"Transition"})))}),el=(0,F.yV)(function(a,x){var w,A,en;let eo;let{beforeEnter:es,afterEnter:el,beforeLeave:eu,afterLeave:ec,enter:ed,enterFrom:ef,enterTo:ep,entered:eh,leave:em,leaveFrom:eg,leaveTo:ev,...ey}=a,eb=(0,k.useRef)(null),e_=(0,Z.T)(eb,x),ex=null==(w=ey.unmount)||w?F.l4.Unmount:F.l4.Hidden,{show:ew,appear:eS,initial:eE}=function(){let a=(0,k.useContext)(er);if(null===a)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}(),[eA,eC]=(0,k.useState)(ew?"visible":"hidden"),eT=function(){let a=(0,k.useContext)(ei);if(null===a)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}(),{register:eO,unregister:eP}=eT;(0,k.useEffect)(()=>eO(eb),[eO,eb]),(0,k.useEffect)(()=>{if(ex===F.l4.Hidden&&eb.current){if(ew&&"visible"!==eA){eC("visible");return}return(0,B.E)(eA,{hidden:()=>eP(eb),visible:()=>eO(eb)})}},[eA,eb,eO,eP,ew,ex]);let eR=(0,$.E)({base:S(ey.className),enter:S(ed),enterFrom:S(ef),enterTo:S(ep),entered:S(eh),leave:S(em),leaveFrom:S(eg),leaveTo:S(ev)}),ek=(en={beforeEnter:es,afterEnter:el,beforeLeave:eu,afterLeave:ec},eo=(0,k.useRef)(se(en)),(0,k.useEffect)(()=>{eo.current=se(en)},[en]),eo),eN=(0,W.H)();(0,k.useEffect)(()=>{if(eN&&"visible"===eA&&null===eb.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[eb,eA,eN]);let eI=eS&&ew&&eE,eD=eN&&(!eE||eS)?ew?"enter":"leave":"idle",eM=(0,et.V)(0),eL=(0,J.z)(a=>(0,B.E)(a,{enter:()=>{eM.addFlag(V.ZM.Opening),ek.current.beforeEnter()},leave:()=>{eM.addFlag(V.ZM.Closing),ek.current.beforeLeave()},idle:()=>{}})),ej=(0,J.z)(a=>(0,B.E)(a,{enter:()=>{eM.removeFlag(V.ZM.Opening),ek.current.afterEnter()},leave:()=>{eM.removeFlag(V.ZM.Closing),ek.current.afterLeave()},idle:()=>{}})),eF=oe(()=>{eC("hidden"),eP(eb)},eT);!function({immediate:a,container:x,direction:w,classes:A,onStart:k,onStop:F}){let V=(0,z.t)(),W=(0,Y.G)(),Z=(0,$.E)(w);(0,G.e)(()=>{a&&(Z.current="enter")},[a]),(0,G.e)(()=>{let a=(0,K.k)();W.add(a.dispose);let w=x.current;if(w&&"idle"!==Z.current&&V.current){var z,G,$;let x,V,W,Y,J,ee,et;return a.dispose(),k.current(Z.current),a.add((z=A.current,G="enter"===Z.current,$=()=>{a.dispose(),F.current(Z.current)},V=G?"enter":"leave",W=(0,K.k)(),Y=void 0!==$?(x={called:!1},(...a)=>{if(!x.called)return x.called=!0,$(...a)}):()=>{},"enter"===V&&(w.removeAttribute("hidden"),w.style.display=""),J=(0,B.E)(V,{enter:()=>z.enter,leave:()=>z.leave}),ee=(0,B.E)(V,{enter:()=>z.enterTo,leave:()=>z.leaveTo}),et=(0,B.E)(V,{enter:()=>z.enterFrom,leave:()=>z.leaveFrom}),v(w,...z.base,...z.enter,...z.enterTo,...z.enterFrom,...z.leave,...z.leaveFrom,...z.leaveTo,...z.entered),g(w,...z.base,...J,...et),W.nextFrame(()=>{v(w,...z.base,...J,...et),g(w,...z.base,...J,...ee),function(a,x){let w=(0,K.k)();if(!a)return w.dispose;let{transitionDuration:A,transitionDelay:k}
58=getComputedStyle(a),[F,V]=[A,k].map(a=>{let[x=0]=a.split(",").filter(Boolean).map(a=>a.includes("ms")?parseFloat(a):1e3*parseFloat(a)).sort((a,x)=>x-a);return x}),B=F+V;if(0!==B){w.group(w=>{w.setTimeout(()=>{x(),w.dispose()},B),w.addEventListener(a,"transitionrun",a=>{a.target===a.currentTarget&&w.dispose()})});let A=w.addEventListener(a,"transitionend",a=>{a.target===a.currentTarget&&(x(),A())})}else x();w.add(()=>x()),w.dispose}(w,()=>(v(w,...z.base,...J),g(w,...z.base,...z.entered),Y()))}),W.dispose)),a.dispose}},[w])}({immediate:eI,container:eb,classes:eR,direction:eD,onStart:(0,$.E)(a=>{eF.onStart(eb,a,eL)}),onStop:(0,$.E)(a=>{eF.onStop(eb,a,ej),"leave"!==a||U(eF)||(eC("hidden"),eP(eb))})});let eV=ey;return eI?eV={...eV,className:(0,ee.A)(ey.className,...eR.current.enter,...eR.current.enterFrom)}:(eV.className=(0,ee.A)(ey.className,null==(A=eb.current)?void 0:A.className),""===eV.className&&delete eV.className),k.createElement(ei.Provider,{value:eF},k.createElement(V.up,{value:(0,B.E)(eA,{visible:V.ZM.Open,hidden:V.ZM.Closed})|eM.flags},(0,F.sY)({ourProps:{ref:e_},theirProps:eV,defaultTag:"div",features:ea,visible:"visible"===eA,name:"Transition.Child"})))}),eu=(0,F.yV)(function(a,x){let w=null!==(0,k.useContext)(er),A=null!==(0,V.oJ)();return k.createElement(k.Fragment,null,!w&&A?k.createElement(es,{ref:x,...a}):k.createElement(el,{ref:x,...a}))}),ec=Object.assign(es,{Child:eu,Root:es})},94192:function(a,x,w){"use strict";w.d(x,{G:function(){return p}});var A=w(67294),k=w(9362);function p(){let[a]=(0,A.useState)(k.k);return(0,A.useEffect)(()=>()=>a.dispose(),[a]),a}},14007:function(a,x,w){"use strict";w.d(x,{O:function(){return E}});var A=w(67294),k=w(3855);function E(a,x,w,F){let V=(0,k.E)(w);(0,A.useEffect)(()=>{function r(a){V.current(a)}return(a=null!=a?a:window).addEventListener(x,r,F),()=>a.removeEventListener(x,r,F)},[a,x,F])}},73781:function(a,x,w){"use strict";w.d(x,{z:function(){return o}});var A=w(67294),k=w(3855);let o=function(a){let x=(0,k.E)(a);return A.useCallback((...a)=>x.current(...a),[x])}},14227:function(a,x,w){"use strict";w.d(x,{V:function(){return c}});var A=w(67294),k=w(14879);function c(a=0){let[x,w]=(0,A.useState)(a),F=(0,k.t)(),V=(0,A.useCallback)(a=>{F.current&&w(x=>x|a)},[x,F]),B=(0,A.useCallback)(a=>!!(x&a),[x]);return{flags:x,addFlag:V,hasFlag:B,removeFlag:(0,A.useCallback)(a=>{F.current&&w(x=>x&~a)},[w,F]),toggleFlag:(0,A.useCallback)(a=>{F.current&&w(x=>x^a)},[w])}}},19946:function(a,x,w){"use strict";w.d(x,{M:function(){return z}});var A,k=w(67294),F=w(16723),V=w(82180),B=w(77896);let z=null!=(A=k.useId)?A:function(){let a=(0,V.H)(),[x,w]=k.useState(a?()=>B.O.nextId():null);return(0,F.e)(()=>{null===x&&w(B.O.nextId())},[x]),null!=x?""+x:void 0}},14879:function(a,x,w){"use strict";w.d(x,{t:function(){return f}});var A=w(67294),k=w(16723);function f(){let a=(0,A.useRef)(!1);return(0,k.e)(()=>(a.current=!0,()=>{a.current=!1}),[]),a}},16723:function(a,x,w){"use strict";w.d(x,{e:function(){return l}});var A=w(67294),k=w(77896);let l=(a,x)=>{k.O.isServer?(0,A.useEffect)(a,x):(0,A.useLayoutEffect)(a,x)}},3855:function(a,x,w){"use strict";w.d(x,{E:function(){return s}});var A=w(67294),k=w(16723);function s(a){let x=(0,A.useRef)(a);return(0,k.e)(()=>{x.current=a},[a]),x}},61595:function(a,x,w){"use strict";w.d(x,{L:function(){return c}});var A=w(67294),k=w(81021),F=w(73781);function c(a){let x=(0,F.z)(a),w=(0,A.useRef)(!1);(0,A.useEffect)(()=>(w.current=!1,()=>{w.current=!0,(0,k.Y)(()=>{w.current&&x()})}),[x])}},39650:function(a,x,w){"use strict";w.d(x,{O:function(){return h}});var A=w(67294),k=w(84575),F=w(3855);function d(a,x,w){let k=(0,F.E)(x);(0,A.useEffect)(()=>{function t(a){k.current(a)}return document.addEventListener(a,t,w),()=>document.removeEventListener(a,t,w)},[a,w])}var V=w(7815);function h(a,x,w=!0){let F=(0,A.useRef)(!1);function c(w,A){if(!F.current||w.defaultPrevented)return;let V=A(w);if(null!==V&&V.getRootNode().contains(V)&&V.isConnected){for(let x of function u(a){return"function"==typeof a?u(a()):Array.isArray(a)||a instanceof Set?a:[a]}(a)){if(null===x)continue;let a=x instanceof HTMLElement?x:x.current;if(null!=a&&a.contains(V)||w.composed&&w.composedPath().includes(a))return}return(0,k.sP)(V,k.tJ.Loose)||-1===V.tabIndex||w.preventDefault(),x(w,V)}}(0,A.useEffect)(()=>{requestAnimationFrame(()=>{F.current=w})},[w]);let B=(0,A.useRef)(null);d("pointerdown",a=>{var x,w;F.current&&(B.current=(null==(w=null==(x=a.composedPath)?void 0:x.call(a))?void 0:w[0])||a.target)},!0),d("mousedown",a=>{var x,w;F.current&&(B.current=(null==(w=null==(x=a.composedPath)?void 0:x.call(a))?void 0:w[0])||a.target)},!0),d("click",a=>{B.current&&(c(a,()=>B.current),B.current=null)},!0),d("touchend",a=>c(a,()=>a.target instanceof HTMLElement?a.target:null),!0),(0,V.s)("blur",a=>c(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},51074:function(a,x,w){"use strict";w.d(x,{i:function(){return n}});var A=w(67294),k=w(15466);function n(...a){return(0,A.useMemo)(()=>(0,k.r)(...a),[...a])}},65958:function(a,x,w){"use strict";w.d(x,{H:function(){return y},v:function(){return j}});var A=w(67294),k=w(46045),F=w(73781),V=w(51074);function j({defaultContainers:a=[],portals:x,mainTreeNodeRef:w}={}){var B;let z=(0,A.useRef)(null!=(B=null==w?void 0:w.current)?B:null),G=(0,V.i)(z),$=(0,F.z)(()=>{var w;let A=[];for(let x of a)null!==x&&(x instanceof HTMLElement?A.push(x):"current"in x&&x.current instanceof HTMLElement&&A.push(x.current));if(null!=x&&x.current)for(let a of x.current)A.push(a);for(let a of null!=(w=null==G?void 0:G.querySelectorAll("html > *, body > *"))?w:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&"headlessui-portal-root"!==a.id&&(a.contains(z.current)||A.some(x=>a.contains(x))||A.push(a));return A});
58return{resolveContainers:$,contains:(0,F.z)(a=>$().some(x=>x.contains(a))),mainTreeNodeRef:z,MainTreeNode:(0,A.useMemo)(()=>function(){return null!=w?null:A.createElement(k._,{features:k.A.Hidden,ref:z})},[z,w])}}function y(){let a=(0,A.useRef)(null);return{mainTreeNodeRef:a,MainTreeNode:(0,A.useMemo)(()=>function(){return A.createElement(k._,{features:k.A.Hidden,ref:a})},[a])}}},82180:function(a,x,w){"use strict";w.d(x,{H:function(){return l}});var A,k=w(67294),F=w(77896);function l(){let a;let x=(a="undefined"==typeof document,(0,(A||(A=w.t(k,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!a)),[V,B]=k.useState(F.O.isHandoffComplete);return V&&!1===F.O.isHandoffComplete&&B(!1),k.useEffect(()=>{!0!==V&&B(!0)},[V]),k.useEffect(()=>F.O.handoff(),[]),!x&&V}},23784:function(a,x,w){"use strict";w.d(x,{T:function(){return y},h:function(){return T}});var A=w(67294),k=w(73781);let F=Symbol();function T(a,x=!0){return Object.assign(a,{[F]:x})}function y(...a){let x=(0,A.useRef)(a);(0,A.useEffect)(()=>{x.current=a},[a]);let w=(0,k.z)(a=>{for(let w of x.current)null!=w&&("function"==typeof w?w(a):w.current=a)});return a.every(a=>null==a||(null==a?void 0:a[F]))?void 0:w}},45662:function(a,x,w){"use strict";w.d(x,{N:function(){return V},l:function(){return n}});var A,k=w(67294),F=w(7815),V=((A=V||{})[A.Forwards=0]="Forwards",A[A.Backwards=1]="Backwards",A);function n(){let a=(0,k.useRef)(0);return(0,F.s)("keydown",x=>{"Tab"===x.key&&(a.current=x.shiftKey?1:0)},!0),a}},7815:function(a,x,w){"use strict";w.d(x,{s:function(){return s}});var A=w(67294),k=w(3855);function s(a,x,w){let F=(0,k.E)(x);(0,A.useEffect)(()=>{function t(a){F.current(a)}return window.addEventListener(a,t,w),()=>window.removeEventListener(a,t,w)},[a,w])}},46045:function(a,x,w){"use strict";w.d(x,{A:function(){return F},_:function(){return V}});var A,k=w(12351),F=((A=F||{})[A.None=1]="None",A[A.Focusable=2]="Focusable",A[A.Hidden=4]="Hidden",A);let V=(0,k.yV)(function(a,x){let{features:w=1,...A}=a,F={ref:x,"aria-hidden":(2&w)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&w)==4&&(2&w)!=2&&{display:"none"}}};return(0,k.sY)({ourProps:F,theirProps:A,slot:{},defaultTag:"div",name:"Hidden"})})},16567:function(a,x,w){"use strict";w.d(x,{ZM:function(){return V},oJ:function(){return C},up:function(){return c}});var A,k=w(67294);let F=(0,k.createContext)(null);F.displayName="OpenClosedContext";var V=((A=V||{})[A.Open=1]="Open",A[A.Closed=2]="Closed",A[A.Closing=4]="Closing",A[A.Opening=8]="Opening",A);function C(){return(0,k.useContext)(F)}function c({value:a,children:x}){return k.createElement(F.Provider,{value:a},x)}},31438:function(a,x,w){"use strict";w.d(x,{O:function(){return P},n:function(){return l}});var A=w(67294);let k=(0,A.createContext)(!1);function l(){return(0,A.useContext)(k)}function P(a){return A.createElement(k.Provider,{value:a.force},a.children)}},64103:function(a,x,w){"use strict";function r(a){let x=a.parentElement,w=null;for(;x&&!(x instanceof HTMLFieldSetElement);)x instanceof HTMLLegendElement&&(w=x),x=x.parentElement;let A=(null==x?void 0:x.getAttribute("disabled"))==="";return!(A&&function(a){if(!a)return!1;let x=a.previousElementSibling;for(;null!==x;){if(x instanceof HTMLLegendElement)return!1;x=x.previousElementSibling}return!0}(w))&&A}w.d(x,{P:function(){return r}})},44067:function(a,x,w){"use strict";function t(...a){return Array.from(new Set(a.flatMap(a=>"string"==typeof a?a.split(" "):[]))).filter(Boolean).join(" ")}w.d(x,{A:function(){return t}})},9362:function(a,x,w){"use strict";w.d(x,{k:function(){return function o(){let a=[],x={addEventListener:(a,w,A,k)=>(a.addEventListener(w,A,k),x.add(()=>a.removeEventListener(w,A,k))),requestAnimationFrame(...a){let w=requestAnimationFrame(...a);return x.add(()=>cancelAnimationFrame(w))},nextFrame:(...a)=>x.requestAnimationFrame(()=>x.requestAnimationFrame(...a)),setTimeout(...a){let w=setTimeout(...a);return x.add(()=>clearTimeout(w))},microTask(...a){let w={current:!0};return(0,A.Y)(()=>{w.current&&a[0]()}),x.add(()=>{w.current=!1})},style(a,x,w){let A=a.style.getPropertyValue(x);return Object.assign(a.style,{[x]:w}
58),this.add(()=>{Object.assign(a.style,{[x]:A})})},group(a){let x=o();return a(x),this.add(()=>x.dispose())},add:x=>(a.push(x),()=>{let w=a.indexOf(x);if(w>=0)for(let x of a.splice(w,1))x()}),dispose(){for(let x of a.splice(0))x()}};return x}}});var A=w(81021)},77896:function(a,x,w){"use strict";w.d(x,{O:function(){return k}});var A=Object.defineProperty,d=(a,x,w)=>x in a?A(a,x,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[x]=w,r=(a,x,w)=>(d(a,"symbol"!=typeof x?x+"":x,w),w);let k=new class{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(a){this.current!==a&&(this.handoffState="pending",this.currentId=0,this.current=a)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},84575:function(a,x,w){"use strict";w.d(x,{C5:function(){return y},EO:function(){return _},GO:function(){return f},TO:function(){return Z},fE:function(){return K},jA:function(){return O},sP:function(){return h},tJ:function(){return J},wI:function(){return D},z2:function(){return I}});var A,k,F,V,B,z=w(9362),G=w(32984),$=w(15466);let W=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(a=>`${a}:not([tabindex='-1'])`).join(",");var Z=((A=Z||{})[A.First=1]="First",A[A.Previous=2]="Previous",A[A.Next=4]="Next",A[A.Last=8]="Last",A[A.WrapAround=16]="WrapAround",A[A.NoScroll=32]="NoScroll",A),K=((k=K||{})[k.Error=0]="Error",k[k.Overflow=1]="Overflow",k[k.Success=2]="Success",k[k.Underflow=3]="Underflow",k),Y=((F=Y||{})[F.Previous=-1]="Previous",F[F.Next=1]="Next",F);function f(a=document.body){return null==a?[]:Array.from(a.querySelectorAll(W)).sort((a,x)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(x.tabIndex||Number.MAX_SAFE_INTEGER)))}var J=((V=J||{})[V.Strict=0]="Strict",V[V.Loose=1]="Loose",V);function h(a,x=0){var w;return a!==(null==(w=(0,$.r)(a))?void 0:w.body)&&(0,G.E)(x,{0:()=>a.matches(W),1(){let x=a;for(;null!==x;){if(x.matches(W))return!0;x=x.parentElement}return!1}})}function D(a){let x=(0,$.r)(a);(0,z.k)().nextFrame(()=>{x&&!h(x.activeElement,0)&&y(a)})}var ee=((B=ee||{})[B.Keyboard=0]="Keyboard",B[B.Mouse=1]="Mouse",B);function y(a){null==a||a.focus({preventScroll:!0})}function I(a,x=a=>a){return a.slice().sort((a,w)=>
58{let A=x(a),k=x(w);if(null===A||null===k)return 0;let F=A.compareDocumentPosition(k);return F&Node.DOCUMENT_POSITION_FOLLOWING?-1:F&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _(a,x){return O(f(),x,{relativeTo:a})}function O(a,x,{sorted:w=!0,relativeTo:A=null,skipElements:k=[]}={}){var F,V,B;let z=Array.isArray(a)?a.length>0?a[0].ownerDocument:document:a.ownerDocument,G=Array.isArray(a)?w?I(a):a:f(a);k.length>0&&G.length>1&&(G=G.filter(a=>!k.includes(a))),A=null!=A?A:z.activeElement;let $=(()=>{if(5&x)return 1;if(10&x)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),W=(()=>{if(1&x)return 0;if(2&x)return Math.max(0,G.indexOf(A))-1;if(4&x)return Math.max(0,G.indexOf(A))+1;if(8&x)return G.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),Z=32&x?{preventScroll:!0}:{},K=0,Y=G.length,J;do{if(K>=Y||K+Y<=0)return 0;let a=W+K;if(16&x)a=(a+Y)%Y;else{if(a<0)return 3;if(a>=Y)return 1}null==(J=G[a])||J.focus(Z),K+=$}while(J!==z.activeElement);return 6&x&&null!=(B=null==(V=null==(F=J)?void 0:F.matches)?void 0:V.call(F,"textarea,input"))&&B&&J.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",a=>{a.metaKey||a.altKey||a.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",a=>{1===a.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===a.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},32984:function(a,x,w){"use strict";function u(a,x,...w){if(a in x){let A=x[a];return"function"==typeof A?A(...w):A}let A=Error(`Tried to handle "${a}" but there is no handler defined. Only defined handlers are: ${Object.keys(x).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(A,u),A}w.d(x,{E:function(){return u}})},81021:function(a,x,w){"use strict";function t(a){"function"==typeof queueMicrotask?queueMicrotask(a):Promise.resolve().then(a).catch(a=>setTimeout(()=>{throw a}))}w.d(x,{Y:function(){return t}})},15466:function(a,x,w){"use strict";w.d(x,{r:function(){return e}});var A=w(77896);function e(a){return A.O.isServer?null:a instanceof Node?a.ownerDocument:null!=a&&a.hasOwnProperty("current")&&a.current instanceof Node?a.current.ownerDocument:document}},12351:function(a,x,w){"use strict";w.d(x,{AN:function(){return z},l4:function(){return G},oA:function(){return R},sY:function(){return X},yV:function(){return D}});var A,k,F=w(67294),V=w(44067),B=w(32984),z=((A=z||{})[A.None=0]="None",A[A.RenderStrategy=1]="RenderStrategy",A[A.Static=2]="Static",A),G=((k=G||{})[k.Unmount=0]="Unmount",k[k.Hidden=1]="Hidden",k);function X({ourProps:a,theirProps:x,slot:w,defaultTag:A,features:k,visible:F=!0,name:V}){let z=N(x,a);if(F)return c(z,w,A,V);let G=null!=k?k:0;if(2&G){let{static:a=!1,...x}=z;if(a)return c(x,w,A,V)}if(1&G){let{unmount:a=!0,...x}=z;return(0,B.E)(a?0:1,{0:()=>null,1:()=>c({...x,hidden:!0,style:{display:"none"}},w,A,V)})}return c(z,w,A,V)}function c(a,x={},w,A){let{as:k=w,children:B,refName:z="ref",...G}=g(a,["unmount","static"]),$=void 0!==a.ref?{[z]:a.ref}:{},W="function"==typeof B?B(x):B;"className"in G&&G.className&&"function"==typeof G.className&&(G.className=G.className(x));let Z={};if(x){let a=!1,w=[];for(let[A,k]of Object.entries(x))"boolean"==typeof k&&(a=!0),!0===k&&w.push(A);a&&(Z["data-headlessui-state"]=w.join(" "))}if(k===F.Fragment&&Object.keys(R(G)).length>0){if(!(0,F.isValidElement)(W)||Array.isArray(W)&&W.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${A} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(G).map(a=>`  - ${a}`).join(`
59`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(a=>`  - ${a}`).join(`
60`)].join(`
61`));let a=W.props,x="function"==typeof(null==a?void 0:a.className)?(...x)=>(0,V.A)(null==a?void 0:a.className(...x),G.className):(0,V.A)(null==a?void 0:a.className,G.className),w=x?{className:x}:{};return(0,F.cloneElement)(W,Object.assign({},N(W.props,R(g(G,["ref"]))),Z,$,function(...a){return{ref:a.every(a=>null==a)?void 0:x=>{for(let w of a)null!=w&&("function"==typeof w?w(x):w.current=x)}}}(W.ref,$.ref),w))}return(0,F.createElement)(k,Object.assign({},g(G,["ref"]),k!==F.Fragment&&$,k!==F.Fragment&&Z),W)}function N(...a){if(0===a.length)return{};if(1===a.length)return a[0];let x={},w={};for(let A of a)for(let a in A)a.startsWith("on")&&"function"==typeof A[a
61]?(null!=w[a]||(w[a]=[]),w[a].push(A[a])):x[a]=A[a];if(x.disabled||x["aria-disabled"])return Object.assign(x,Object.fromEntries(Object.keys(w).map(a=>[a,void 0])));for(let a in w)Object.assign(x,{[a](x,...A){for(let k of w[a]){if((x instanceof Event||(null==x?void 0:x.nativeEvent)instanceof Event)&&x.defaultPrevented)return;k(x,...A)}}});return x}function D(a){var x;return Object.assign((0,F.forwardRef)(a),{displayName:null!=(x=a.displayName)?x:a.name})}function R(a){let x=Object.assign({},a);for(let a in x)void 0===x[a]&&delete x[a];return x}function g(a,x=[]){let w=Object.assign({},a);for(let a of x)a in w&&delete w[a];return w}},47533:function(a,x,w){"use strict";w.d(x,{X:function(){return o}});var A=w(87536);let s=(a,x,w)=>{if(a&&"reportValidity"in a){let k=(0,A.U2)(w,x);a.setCustomValidity(k&&k.message||""),a.reportValidity()}},resolvers_o=(a,x)=>{for(let w in x.fields){let A=x.fields[w];A&&A.ref&&"reportValidity"in A.ref?s(A.ref,w,a):A.refs&&A.refs.forEach(x=>s(x,w,a))}},r=(a,x)=>{x.shouldUseNativeValidation&&resolvers_o(a,x);let w={};for(let k in a){let F=(0,A.U2)(x.fields,k),V=Object.assign(a[k]||{},{ref:F&&F.ref});if(i(x.names||Object.keys(a),k)){let a=Object.assign({},(0,A.U2)(w,k));(0,A.t8)(a,"root",V),(0,A.t8)(w,k,a)}else(0,A.t8)(w,k,V)}return w},i=(a,x)=>a.some(a=>a.startsWith(x+"."));function o(a,x,w){return void 0===x&&(x={}),void 0===w&&(w={}),function(k,F,V){try{return Promise.resolve(function(A,B){try{var z=(x.context,Promise.resolve(a["sync"===w.mode?"validateSync":"validate"](k,Object.assign({abortEarly:!1},x,{context:F}))).then(function(a){return V.shouldUseNativeValidation&&resolvers_o({},V),{values:w.raw?k:a,errors:{}}}))}catch(a){return B(a)}return z&&z.then?z.then(void 0,B):z}(0,function(a){var x;if(!a.inner)throw a;return{values:{},errors:r((x=!V.shouldUseNativeValidation&&"all"===V.criteriaMode,(a.inner||[]).reduce(function(a,w){if(a[w.path]||(a[w.path]={message:w.message,type:w.type}),x){var k=a[w.path].types,F=k&&k[w.type];a[w.path]=(0,A.KN)(w.path,x,a,w.type,F?[].concat(F,w.message):w.message)}return a},{})),V)}}))}catch(a){return Promise.reject(a)}}}},87066:function(a,x,w){"use strict";w.d(x,{Z:function(){return tr}});var A,k,F,V,B,z,G,$,W={};function bind(a,x){return function(){return a.apply(x,arguments)}}w.r(W),w.d(W,{hasBrowserEnv:function(){return ej},hasStandardBrowserEnv:function(){return eV},hasStandardBrowserWebWorkerEnv:function(){return eU},navigator:function(){return eF},origin:function(){return eB}});var Z=w(83454);let{toString:K}=Object.prototype,{getPrototypeOf:Y}=Object,J=(B=Object.create(null),a=>{let x=K.call(a);return B[x]||(B[x]=x.slice(8,-1).toLowerCase())}),kindOfTest=a=>(a=a.toLowerCase(),x=>J(x)===a),typeOfTest=a=>x=>typeof x===a,{isArray:ee}=Array,et=typeOfTest("undefined"),er=kindOfTest("ArrayBuffer"),en=typeOfTest("string"),ei=typeOfTest("function"),eo=typeOfTest("number"),isObject=a=>null!==a&&"object"==typeof a,isPlainObject=a=>{if("object"!==J(a))return!1;let x=Y(a);return(null===x||x===Object.prototype||null===Object.getPrototypeOf(x))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)},ea=kindOfTest("Date"),es=kindOfTest("File"),el=kindOfTest("Blob"),eu=kindOfTest("FileList"),ec=kindOfTest("URLSearchParams"),[ed,ef,ep,eh]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(a,x,{allOwnKeys:w=!1}={}){let A,k;if(null!=a){if("object"!=typeof a&&(a=[a]),ee(a))for(A=0,k=a.length;A<k;A++)x.call(null,a[A],A,a);else{let k;let F=w?Object.getOwnPropertyNames(a):Object.keys(a),V=F.length;for(A=0;A<V;A++)k=F[A],x.call(null,a[k],k,a)}}}function findKey(a,x){let w;x=x.toLowerCase();let A=Object.keys(a),k=A.length;for(;k-- >0;)if(x===(w=A[k]).toLowerCase())return w;return null}let em="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=a=>!et(a)&&a!==em,eg=(z="undefined"!=typeof Uint8Array&&Y(Uint8Array),a=>z&&a instanceof z),ev=kindOfTest("HTMLFormElement"),ey=(({hasOwnProperty:a})=>(x,w)=>a.call(x,w))(Object.prototype),eb=kindOfTest("RegExp"),reduceDescriptors=(a,x)=>{let w=Object.getOwnPropertyDescriptors(a),A={};forEach(w,(w,k)=>{let F;!1!==(F=x(w,k,a))&&(A[k]=F||w)}),Object.defineProperties(a,A)},e_="abcdefghijklmnopqrstuvwxyz",ex="0123456789",ew={DIGIT:ex,ALPHA:e_,ALPHA_DIGIT:e_+e_.toUpperCase()+ex},eS=kindOfTest("AsyncFunction"),eE=(A="function"==typeof setImmediate,k=ei(em.postMessage),A?setImmediate:k?(F=`axios@${Math.random()}`,V=[],em.addEventListener("message",({source:a,data:x})=>{a===em&&x===F&&V.length&&V.shift()()},!1),a=>{V.push(a),em.postMessage(F,"*")}):a=>setTimeout(a)),eA="undefined"!=typeof queueMicrotask?queueMicrotask.bind(em):void 0!==Z&&Z.nextTick||eE;var eC={isArray:ee,isArrayBuffer:er,isBuffer:function(a){return null!==a&&!et(a)&&null!==a.constructor&&!et(a.constructor)&&ei(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},isFormData:a=>{let x;return a&&("function"==typeof FormData&&a instanceof FormData||ei(a.append)&&("formdata"===(x=J(a))||"object"===x&&ei(a.toString)&&"[object FormData]"===a.toString()))},isArrayBufferView:function(a){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer&&er(a.buffer)},isString:en,isNumber:eo,isBoolean:a=>!0===a||!1===a,isObject,isPlainObject,isReadableStream:ed,isRequest:ef,isResponse:ep,isHeaders:eh,isUndefined:et,isDate:ea,isFile:es,isBlob:el,isRegExp:eb,isFunction:ei,isStream:a=>isObject(a)&&ei(a.pipe),isURLSearchParams:ec,isTypedArray:eg,isFileList:eu,forEach,merge:function merge(){let{caseless:a}=isContextDefined(this)&&this||{},x={},assignValue=(w,A)=>{let k=a&&findKey(x,A)||A;isPlainObject(x[k])&&isPlainObject(w)?x[k]=merge(x[k],w):isPlainObject(w)?x[k]=merge({},w):ee(w)?x[k]=w.slice():x[k]=w};for(let a=0,x=arguments.length;a<x;a++)arguments[a]&&forEach(arguments[a],assignValue);return x},extend:(a,x,w,{allOwnKeys:A}={})=>(forEach(x,(x,A)=>{w&&ei(x)?a[A]=bind(x,w):a[A]=x},{allOwnKeys:A}),a),trim:a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:a=>
61(65279===a.charCodeAt(0)&&(a=a.slice(1)),a),inherits:(a,x,w,A)=>{a.prototype=Object.create(x.prototype,A),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:x.prototype}),w&&Object.assign(a.prototype,w)},toFlatObject:(a,x,w,A)=>{let k,F,V;let B={};if(x=x||{},null==a)return x;do{for(F=(k=Object.getOwnPropertyNames(a)).length;F-- >0;)V=k[F],(!A||A(V,a,x))&&!B[V]&&(x[V]=a[V],B[V]=!0);a=!1!==w&&Y(a)}while(a&&(!w||w(a,x))&&a!==Object.prototype);return x},kindOf:J,kindOfTest,endsWith:(a,x,w)=>{a=String(a),(void 0===w||w>a.length)&&(w=a.length),w-=x.length;let A=a.indexOf(x,w);return -1!==A&&A===w},toArray:a=>{if(!a)return null;if(ee(a))return a;let x=a.length;if(!eo(x))return null;let w=Array(x);for(;x-- >0;)w[x]=a[x];return w},forEachEntry:(a,x)=>{let w;let A=a&&a[Symbol.iterator],k=A.call(a);for(;(w=k.next())&&!w.done;){let A=w.value;x.call(a,A[0],A[1])}},matchAll:(a,x)=>{let w;let A=[];for(;null!==(w=a.exec(x));)A.push(w);return A},isHTMLForm:ev,hasOwnProperty:ey,hasOwnProp:ey,reduceDescriptors,freezeMethods:a=>{reduceDescriptors(a,(x,w)=>{if(ei(a)&&-1!==["arguments","caller","callee"].indexOf(w))return!1;let A=a[w];if(ei(A)){if(x.enumerable=!1,"writable"in x){x.writable=!1;return}x.set||(x.set=()=>{throw Error("Can not rewrite read-only method '"+w+"'")})}})},toObjectSet:(a,x)=>{let w={};return(a=>{a.forEach(a=>{w[a]=!0})}
61)(ee(a)?a:String(a).split(x)),w},toCamelCase:a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,x,w){return x.toUpperCase()+w}),noop:()=>{},toFiniteNumber:(a,x)=>null!=a&&Number.isFinite(a=+a)?a:x,findKey,global:em,isContextDefined,ALPHABET:ew,generateString:(a=16,x=ew.ALPHA_DIGIT)=>{let w="",{length:A}=x;for(;a--;)w+=x[Math.random()*A|0];return w},isSpecCompliantForm:function(a){return!!(a&&ei(a.append)&&"FormData"===a[Symbol.toStringTag]&&a[Symbol.iterator])},toJSONObject:a=>{let x=Array(10),visit=(a,w)=>{if(isObject(a)){if(x.indexOf(a)>=0)return;if(!("toJSON"in a)){x[w]=a;let A=ee(a)?[]:{};return forEach(a,(a,x)=>{let k=visit(a,w+1);et(k)||(A[x]=k)}),x[w]=void 0,A}}return a};return visit(a,0)},isAsyncFn:eS,isThenable:a=>a&&(isObject(a)||ei(a))&&ei(a.then)&&ei(a.catch),setImmediate:eE,asap:eA};function AxiosError(a,x,w,A,k){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=a,this.name="AxiosError",x&&(this.code=x),w&&(this.config=w),A&&(this.request=A),k&&(this.response=k,this.status=k.status?k.status:null)}eC.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eC.toJSONObject(this.config),code:this.code,status:this.status}}});let eT=AxiosError.prototype,eO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{eO[a]={value:a}}),Object.defineProperties(AxiosError,eO),Object.defineProperty(eT,"isAxiosError",{value:!0}),AxiosError.from=(a,x,w,A,k,F)=>{let V=Object.create(eT);return eC.toFlatObject(a,V,function(a){return a!==Error.prototype},a=>"isAxiosError"!==a),AxiosError.call(V,a.message,x,w,A,k),V.cause=a,V.name=a.name,F&&Object.assign(V,F),V};var eP=w(48764).lW;function isVisitable(a){return eC.isPlainObject(a)||eC.isArray(a)}function removeBrackets(a){return eC.endsWith(a,"[]")?a.slice(0,-2):a}function renderKey(a,x,w){return a?a.concat(x).map(function(a,x){return a=removeBrackets(a),!w&&x?"["+a+"]":a}).join(w?".":""):x}let eR=eC.toFlatObject(eC,{},null,function(a){return/^is[A-Z]/.test(a)});var helpers_toFormData=function(a,x,w){if(!eC.isObject(a))throw TypeError("target must be an object");x=x||new FormData,w=eC.toFlatObject(w,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,x){return!eC.isUndefined(x[a])});let A=w.metaTokens,k=w.visitor||defaultVisitor,F=w.dots,V=w.indexes,B=w.Blob||"undefined"!=typeof Blob&&Blob,z=B&&eC.isSpecCompliantForm(x);if(!eC.isFunction(k))throw TypeError("visitor must be a function");function convertValue(a){if(null===a)return"";if(eC.isDate(a))return a.toISOString();if(!z&&eC.isBlob(a))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return eC.isArrayBuffer(a)||eC.isTypedArray(a)?z&&"function"==typeof Blob?new Blob([a]):eP.from(a):a}function defaultVisitor(a,w,k){let B=a;if(a&&!k&&"object"==typeof a){if(eC.endsWith(w,"{}"))w=A?w:w.slice(0,-2),a=JSON.stringify(a);else{var z;if(eC.isArray(a)&&(z=a,eC.isArray(z)&&!z.some(isVisitable))||(eC.isFileList(a)||eC.endsWith(w,"[]"))&&(B=eC.toArray(a)))return w=removeBrackets(w),B.forEach(function(a,A){eC.isUndefined(a)||null===a||x.append(!0===V?renderKey([w],A,F):null===V?w:w+"[]",convertValue(a))}),!1}}return!!isVisitable(a)||(x.append(renderKey(k,w,F),convertValue(a)),!1)}let G=[],$=Object.assign(eR,{defaultVisitor,convertValue,isVisitable});if(!eC.isObject(a))throw TypeError("data must be an object");return!function build(a,w){if(!eC.isUndefined(a)){if(-1!==G.indexOf(a))throw Error("Circular reference detected in "+w.join("."));G.push(a),eC.forEach(a,function(a,A){let F=!(eC.isUndefined(a)||null===a)&&k.call(x,a,eC.isString(A)?A.trim():A,w,$);!0===F&&build(a,w?w.concat(A):[A])}),G.pop()}}(a),x};function encode(a){let x={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(a){return x[a]})}function AxiosURLSearchParams(a,x){this._pairs=[],a&&helpers_toFormData(a,this,x)}let ek=AxiosURLSearchParams.prototype;function buildURL_encode(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(a,x,w){let A;if(!x)return a;let k=w&&w.encode||buildURL_encode,F=w&&w.serialize;if(A=F?F(x,w):eC.isURLSearchParams(x)?x.toString():new AxiosURLSearchParams(x,w).toString(k)){let x=a.indexOf("#");-1!==x&&(a=a.slice(0,x)),a+=(-1===a.indexOf("?")?"?":"&")+A}return a}ek.append=function(a,x){this._pairs.push([a,x])},ek.toString=function(a){let x=a?function(x){return a.call(this,x,encode)}:encode;return this._pairs.map(function(a){return x(a[0])+"="+x(a[1])},"").join("&")};var eN=class{constructor(){this.handlers=[]}use(a,x,w){return this.handlers.push({fulfilled:a,rejected:x,synchronous:!!w&&w.synchronous,runWhen:w?w.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}
61forEach(a){eC.forEach(this.handlers,function(x){null!==x&&a(x)})}},eI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eD="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,eM="undefined"!=typeof FormData?FormData:null,eL="undefined"!=typeof Blob?Blob:null;let ej="undefined"!=typeof window&&"undefined"!=typeof document,eF="object"==typeof navigator&&navigator||void 0,eV=ej&&(!eF||0>["ReactNative","NativeScript","NS"].indexOf(eF.product)),eU="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eB=ej&&window.location.href||"http://localhost";var eq={...W,isBrowser:!0,classes:{URLSearchParams:eD,FormData:eM,Blob:eL},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(a){if(eC.isFormData(a)&&eC.isFunction(a.entries)){let x={};return eC.forEachEntry(a,(a,w)=>{!function buildPath(a,x,w,A){let k=a[A++];if("__proto__"===k)return!0;let F=Number.isFinite(+k),V=A>=a.length;if(k=!k&&eC.isArray(w)?w.length:k,V)return eC.hasOwnProp(w,k)?w[k]=[w[k],x]:w[k]=x,!F;w[k]&&eC.isObject(w[k])||(w[k]=[]);let B=buildPath(a,x,w[k],A);return B&&eC.isArray(w[k])&&(w[k]=function(a){let x,w;let A={},k=Object.keys(a),F=k.length;for(x=0;x<F;x++)A[w=k[x]]=a[w];return A}(w[k])),!F}(eC.matchAll(/\w+|\[(\w*)]/g,a).map(a=>"[]"===a[0]?"":a[1]||a[0]),w,x,0)}),x}return null};let ez={transitional:eI,adapter:["xhr","http","fetch"],transformRequest:[function(a,x){let w;let A=x.getContentType()||"",k=A.indexOf("application/json")>-1,F=eC.isObject(a);F&&eC.isHTMLForm(a)&&(a=new FormData(a));let V=eC.isFormData(a);if(V)return k?JSON.stringify(helpers_formDataToJSON(a)):a;if(eC.isArrayBuffer(a)||eC.isBuffer(a)||eC.isStream(a)||eC.isFile(a)||eC.isBlob(a)||eC.isReadableStream(a))return a;if(eC.isArrayBufferView(a))return a.buffer;if(eC.isURLSearchParams(a))return x.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();if(F){if(A.indexOf("application/x-www-form-urlencoded")>-1){var B,z;return(B=a,z=this.formSerializer,helpers_toFormData(B,new eq.classes.URLSearchParams,Object.assign({visitor:function(a,x,w,A){return eq.isNode&&eC.isBuffer(a)?(this.append(x,a.toString("base64")),!1):A.defaultVisitor.apply(this,arguments)}},z))).toString()}if((w=eC.isFileList(a))||A.indexOf("multipart/form-data")>-1){let x=this.env&&this.env.FormData;return helpers_toFormData(w?{"files[]":a}:a,x&&new x,this.formSerializer)}}return F||k?(x.setContentType("application/json",!1),function(a,x,w){if(eC.isString(a))try{return(0,JSON.parse)(a),eC.trim(a)}catch(a){if("SyntaxError"!==a.name)throw a}return(0,JSON.stringify)(a)}(a)):a}],transformResponse:[function(a){let x=this.transitional||ez.transitional,w=x&&x.forcedJSONParsing,A="json"===this.responseType;if(eC.isResponse(a)||eC.isReadableStream(a))return a;if(a&&eC.isString(a)&&(w&&!this.responseType||A)){let w=x&&x.silentJSONParsing;try{return JSON.parse(a)}catch(a){if(!w&&A){if("SyntaxError"===a.name)throw AxiosError.from(a,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eq.classes.FormData,Blob:eq.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eC.forEach(["delete","get","head","post","put","patch"],a=>{ez.headers[a]={}});let eH=eC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=a=>{let x,w,A;let k={};return a&&a.split("\n").forEach(function(a){A=a.indexOf(":"),x=a.substring(0,A).trim().toLowerCase(),w=a.substring(A+1).trim(),!x||k[x]&&eH[x]||("set-cookie"===x?k[x]?k[x].push(w):k[x]=[w]:k[x]=k[x]?k[x]+", "+w:w)}),k};let eG=Symbol("internals");function normalizeHeader(a){return a&&String(a).trim().toLowerCase()}function normalizeValue(a){return!1===a||null==a?a:eC.isArray(a)?a.map(normalizeValue):String(a)}let isValidHeaderName=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function matchHeaderValue(a,x,w,A,k){if(eC.isFunction(A))return A.call(this,x,w);if(k&&(x=w),eC.isString(x)){if(eC.isString(A))return -1!==x.indexOf(A);if(eC.isRegExp(A))return A.test(x)}}let AxiosHeaders=class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,x,w){let A=this;function setHeader(a,x,w){let k=normalizeHeader(x);if(!k)throw Error("header name must be a non-empty string");let F=eC.findKey(A,k);F&&void 0!==A[F]&&!0!==w&&(void 0!==w||!1===A[F])||(A[F||x]=normalizeValue(a))}let setHeaders=(a,x)=>
61eC.forEach(a,(a,w)=>setHeader(a,w,x));if(eC.isPlainObject(a)||a instanceof this.constructor)setHeaders(a,x);else if(eC.isString(a)&&(a=a.trim())&&!isValidHeaderName(a))setHeaders(parseHeaders(a),x);else if(eC.isHeaders(a))for(let[x,A]of a.entries())setHeader(A,x,w);else null!=a&&setHeader(x,a,w);return this}get(a,x){if(a=normalizeHeader(a)){let w=eC.findKey(this,a);if(w){let a=this[w];if(!x)return a;if(!0===x)return function(a){let x;let w=Object.create(null),A=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;x=A.exec(a);)w[x[1]]=x[2];return w}(a);if(eC.isFunction(x))return x.call(this,a,w);if(eC.isRegExp(x))return x.exec(a);throw TypeError("parser must be boolean|regexp|function")}}}has(a,x){if(a=normalizeHeader(a)){let w=eC.findKey(this,a);return!!(w&&void 0!==this[w]&&(!x||matchHeaderValue(this,this[w],w,x)))}return!1}delete(a,x){let w=this,A=!1;function deleteHeader(a){if(a=normalizeHeader(a)){let k=eC.findKey(w,a);k&&(!x||matchHeaderValue(w,w[k],k,x))&&(delete w[k],A=!0)}}return eC.isArray(a)?a.forEach(deleteHeader):deleteHeader(a),A}clear(a){let x=Object.keys(this),w=x.length,A=!1;for(;w--;){let k=x[w];(!a||matchHeaderValue(this,this[k],k,a,!0))&&(delete this[k],A=!0)}return A}normalize(a){let x=this,w={};return eC.forEach(this,(A,k)=>{let F=eC.findKey(w,k);if(F){x[F]=normalizeValue(A),delete x[k];return}let V=a?k.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,x,w)=>x.toUpperCase()+w):String(k).trim();V!==k&&delete x[k],x[V]=normalizeValue(A),w[V]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){let x=Object.create(null);return eC.forEach(this,(w,A)=>{null!=w&&!1!==w&&(x[A]=a&&eC.isArray(w)?w.join(", "):w)}),x}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,x])=>a+": "+x).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...x){let w=new this(a);return x.forEach(a=>w.set(a)),w}static accessor(a){let x=this[eG]=this[eG]={accessors:{}},w=x.accessors,A=this.prototype;function defineAccessor(a){let x=normalizeHeader(a);w[x]||(!function(a,x){let w=eC.toCamelCase(" "+x);["get","set","has"].forEach(A=>{Object.defineProperty(a,A+w,{value:function(a,w,k){return this[A].call(this,x,a,w,k)},configurable:!0})})}(A,a),w[x]=!0)}return eC.isArray(a)?a.forEach(defineAccessor):defineAccessor(a),this}};function transformData(a,x){let w=this||ez,A=x||w,k=AxiosHeaders.from(A.headers),F=A.data;return eC.forEach(a,function(a){F=a.call(w,F,k.normalize(),x?x.status:void 0)}),k.normalize(),F}function isCancel(a){return!!(a&&a.__CANCEL__)}function CanceledError(a,x,w){AxiosError.call(this,null==a?"canceled":a,AxiosError.ERR_CANCELED,x,w),this.name="CanceledError"}function settle(a,x,w){let A=w.config.validateStatus;!w.status||!A||A(w.status)?a(w):x(new AxiosError("Request failed with status code "+w.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(w.status/100)-4],w.config,w.request,w))}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eC.reduceDescriptors(AxiosHeaders.prototype,({value:a},x)=>{let w=x[0].toUpperCase()+x.slice(1);return{get:()=>a,set(a){this[w]=a}}}),eC.freezeMethods(AxiosHeaders),eC.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var helpers_speedometer=function(a,x){let w;a=a||10;let A=Array(a),k=Array(a),F=0,V=0;return x=void 0!==x?x:1e3,function(B){let z=Date.now(),G=k[V];w||(w=z),A[F]=B,k[F]=z;let $=V,W=0;for(;$!==F;)W+=A[$++],$%=a;if((F=(F+1)%a)===V&&(V=(V+1)%a),z-w<x)return;let Z=G&&z-G;return Z?Math.round(1e3*W/Z):void 0}},helpers_throttle=function(a,x){let w,A,k=0,F=1e3/x,invoke=(x,F=Date.now())=>{k=F,w=null,A&&(clearTimeout(A),A=null),a.apply(null,x)};return[(...a)=>{let x=Date.now(),V=x-k;V>=F?invoke(a,x):(w=a,A||(A=setTimeout(()=>{A=null,invoke(w)},F-V)))},()=>w&&invoke(w)]};let progressEventReducer=(a,x,w=3)=>{let A=0,k=helpers_speedometer(50,250);return helpers_throttle(w=>{let F=w.loaded,V=w.lengthComputable?w.total:void 0,B=F-A,z=k(B),G=F<=V;A=F,a({loaded:F,total:V,progress:V?F/V:void 0,bytes:B,rate:z||void 0,estimated:z&&V&&G?(V-F)/z:void 0,event:w,lengthComputable:null!=V,[x?"download":"upload"]:!0})},w)},progressEventDecorator=(a,x)=>{let w=null!=a;return[A=>x[0]({lengthComputable:w,total:a,loaded:A}),x[1]]},asyncDecorator=a=>(...x)=>eC.asap(()=>a(...x));var e$=eq.hasStandardBrowserEnv?function(){let a;let x=eq.navigator&&/(msie|trident)/i.test(eq.navigator.userAgent),w=document.createElement("a");function resolveURL(a){let A=a;return x&&(w.setAttribute("href",A),A=w.href),w.setAttribute("href",A),{href:w.href,protocol:w.protocol?w.protocol.replace(/:$/,""):"",host:w.host,search:w.search?w.search.replace(/^\?/,""):"",hash:w.hash?w.hash.replace(/^#/,""):"",hostname:w.hostname,port:w.port,pathname:"/"===w.pathname.charAt(0)?w.pathname:"/"+w.pathname}}return a=resolveURL(window.location.href),function(x){let w=eC.isString(x)?resolveURL(x):x;return w.protocol===a.protocol&&w.host===a.host}}():function(){return!0},eW=eq.hasStandardBrowserEnv?{write(a,x,w,A,k,F){let V=[a+"="+encodeURIComponent(x)];eC.isNumber(w)&&V.push("expires="+new Date(w).toGMTString()),eC.isString(A)&&V.push("path="+A),eC.isString(k)&&V.push("domain="+k),!0===F&&V.push("secure"),document.cookie=V.join("; ")},read(a){let x=document.cookie.match(RegExp("(^|;\\s*)("+a+")=([^;]*)"));
61return x?decodeURIComponent(x[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(a,x){return a&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(x)?x?a.replace(/\/?\/$/,"")+"/"+x.replace(/^\/+/,""):a:x}let headersToObject=a=>a instanceof AxiosHeaders?{...a}:a;function mergeConfig(a,x){x=x||{};let w={};function getMergedValue(a,x,w){return eC.isPlainObject(a)&&eC.isPlainObject(x)?eC.merge.call({caseless:w},a,x):eC.isPlainObject(x)?eC.merge({},x):eC.isArray(x)?x.slice():x}function mergeDeepProperties(a,x,w){return eC.isUndefined(x)?eC.isUndefined(a)?void 0:getMergedValue(void 0,a,w):getMergedValue(a,x,w)}function valueFromConfig2(a,x){if(!eC.isUndefined(x))return getMergedValue(void 0,x)}function defaultToConfig2(a,x){return eC.isUndefined(x)?eC.isUndefined(a)?void 0:getMergedValue(void 0,a):getMergedValue(void 0,x)}function mergeDirectKeys(w,A,k){return k in x?getMergedValue(w,A):k in a?getMergedValue(void 0,w):void 0}let A={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(a,x)=>mergeDeepProperties(headersToObject(a),headersToObject(x),!0)};return eC.forEach(Object.keys(Object.assign({},a,x)),function(k){let F=A[k]||mergeDeepProperties,V=F(a[k],x[k],k);eC.isUndefined(V)&&F!==mergeDirectKeys||(w[k]=V)}),w}var resolveConfig=a=>{let x;let w=mergeConfig({},a),{data:A,withXSRFToken:k,xsrfHeaderName:F,xsrfCookieName:V,headers:B,auth:z}=w;if(w.headers=B=AxiosHeaders.from(B),w.url=buildURL(buildFullPath(w.baseURL,w.url),a.params,a.paramsSerializer),z&&B.set("Authorization","Basic "+btoa((z.username||"")+":"+(z.password?unescape(encodeURIComponent(z.password)):""))),eC.isFormData(A)){if(eq.hasStandardBrowserEnv||eq.hasStandardBrowserWebWorkerEnv)B.setContentType(void 0);else if(!1!==(x=B.getContentType())){let[a,...w]=x?x.split(";").map(a=>a.trim()).filter(Boolean):[];B.setContentType([a||"multipart/form-data",...w].join("; "))}}if(eq.hasStandardBrowserEnv&&(k&&eC.isFunction(k)&&(k=k(w)),k||!1!==k&&e$(w.url))){let a=F&&V&&eW.read(V);a&&B.set(F,a)}return w};let eZ="undefined"!=typeof XMLHttpRequest;var eK=eZ&&function(a){return new Promise(function(x,w){let A,k,F,V,B;let z=resolveConfig(a),G=z.data,$=AxiosHeaders.from(z.headers).normalize(),{responseType:W,onUploadProgress:Z,onDownloadProgress:K}=z;function done(){V&&V(),B&&B(),z.cancelToken&&z.cancelToken.unsubscribe(A),z.signal&&z.signal.removeEventListener("abort",A)}let Y=new XMLHttpRequest;function onloadend(){if(!Y)return;let A=AxiosHeaders.from("getAllResponseHeaders"in Y&&Y.getAllResponseHeaders()),k=W&&"text"!==W&&"json"!==W?Y.response:Y.responseText,F={data:k,status:Y.status,statusText:Y.statusText,headers:A,config:a,request:Y};settle(function(a){x(a),done()},function(a){w(a),done()},F),Y=null}Y.open(z.method.toUpperCase(),z.url,!0),Y.timeout=z.timeout,"onloadend"in Y?Y.onloadend=onloadend:Y.onreadystatechange=function(){Y&&4===Y.readyState&&(0!==Y.status||Y.responseURL&&0===Y.responseURL.indexOf("file:"))&&setTimeout(onloadend)},Y.onabort=function(){Y&&(w(new AxiosError("Request aborted",AxiosError.ECONNABORTED,a,Y)),Y=null)},Y.onerror=function(){w(new AxiosError("Network Error",AxiosError.ERR_NETWORK,a,Y)),Y=null},Y.ontimeout=function(){let x=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded",A=z.transitional||eI;z.timeoutErrorMessage&&(x=z.timeoutErrorMessage),w(new AxiosError(x,A.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,a,Y)),Y=null},void 0===G&&$.setContentType(null),"setRequestHeader"in Y&&eC.forEac
61h($.toJSON(),function(a,x){Y.setRequestHeader(x,a)}),eC.isUndefined(z.withCredentials)||(Y.withCredentials=!!z.withCredentials),W&&"json"!==W&&(Y.responseType=z.responseType),K&&([F,B]=progressEventReducer(K,!0),Y.addEventListener("progress",F)),Z&&Y.upload&&([k,V]=progressEventReducer(Z),Y.upload.addEventListener("progress",k),Y.upload.addEventListener("loadend",V)),(z.cancelToken||z.signal)&&(A=x=>{Y&&(w(!x||x.type?new CanceledError(null,a,Y):x),Y.abort(),Y=null)},z.cancelToken&&z.cancelToken.subscribe(A),z.signal&&(z.signal.aborted?A():z.signal.addEventListener("abort",A)));let J=function(a){let x=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return x&&x[1]||""}(z.url);if(J&&-1===eq.protocols.indexOf(J)){w(new AxiosError("Unsupported protocol "+J+":",AxiosError.ERR_BAD_REQUEST,a));return}Y.send(G||null)})},helpers_composeSignals=(a,x)=>{let{length:w}=a=a?a.filter(Boolean):[];if(x||w){let w,A=new AbortController,onabort=function(a){if(!w){w=!0,unsubscribe();let x=a instanceof Error?a:this.reason;A.abort(x instanceof AxiosError?x:new CanceledError(x instanceof Error?x.message:x))}},k=x&&setTimeout(()=>{k=null,onabort(new AxiosError(`timeout ${x} of ms exceeded`,AxiosError.ETIMEDOUT))},x),unsubscribe=()=>{a&&(k&&clearTimeout(k),k=null,a.forEach(a=>{a.unsubscribe?a.unsubscribe(onabort):a.removeEventListener("abort",onabort)}),a=null)};a.forEach(a=>a.addEventListener("abort",onabort));let{signal:F}=A;return F.unsubscribe=()=>eC.asap(unsubscribe),F}};let streamChunk=function*(a,x){let w,A=a.byteLength;if(!x||A<x){yield a;return}let k=0;for(;k<A;)w=k+x,yield a.slice(k,w),k=w},readBytes=async function*(a,x){for await(let w of readStream(a))yield*streamChunk(w,x)},readStream=async function*(a){if(a[Symbol.asyncIterator]){yield*a;return}let x=a.getReader();try{for(;;){let{done:a,value:w}=await x.read();if(a)break;yield w}}finally{await x.cancel()}},trackStream=(a,x,w,A)=>{let k;let F=readBytes(a,x),V=0,_onFinish=a=>{!k&&(k=!0,A&&A(a))};return new ReadableStream({async pull(a){try{let{done:x,value:A}=await F.next();if(x){_onFinish(),a.close();return}let k=A.byteLength;if(w){let a=V+=k;w(a)}a.enqueue(new Uint8Array(A))}catch(a){throw _onFinish(a),a}},cancel:a=>(_onFinish(a),F.return())},{highWaterMark:2})},eQ="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eY=eQ&&"function"==typeof ReadableStream,eJ=eQ&&("function"==typeof TextEncoder?(G=new TextEncoder,a=>G.encode(a)):async a=>
61new Uint8Array(await new Response(a).arrayBuffer())),test=(a,...x)=>{try{return!!a(...x)}catch(a){return!1}},eX=eY&&test(()=>{let a=!1,x=new Request(eq.origin,{body:new ReadableStream,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!x}),e0=eY&&test(()=>eC.isReadableStream(new Response("").body)),e1={stream:e0&&(a=>a.body)};eQ&&($=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(a=>{e1[a]||(e1[a]=eC.isFunction($[a])?x=>x[a]():(x,w)=>{throw new AxiosError(`Response type '${a}' is not supported`,AxiosError.ERR_NOT_SUPPORT,w)})}));let getBodyLength=async a=>{if(null==a)return 0;if(eC.isBlob(a))return a.size;if(eC.isSpecCompliantForm(a)){let x=new Request(eq.origin,{method:"POST",body:a});return(await x.arrayBuffer()).byteLength}return eC.isArrayBufferView(a)||eC.isArrayBuffer(a)?a.byteLength:(eC.isURLSearchParams(a)&&(a+=""),eC.isString(a))?(await eJ(a)).byteLength:void 0},resolveBodyLength=async(a,x)=>{let w=eC.toFiniteNumber(a.getContentLength());return null==w?getBodyLength(x):w};var e2=eQ&&(async a=>{let x,w,{url:A,method:k,data:F,signal:V,cancelToken:B,timeout:z,onDownloadProgress:G,onUploadProgress:$,responseType:W,headers:Z,withCredentials:K="same-origin",fetchOptions:Y}=resolveConfig(a);W=W?(W+"").toLowerCase():"text";let J=helpers_composeSignals([V,B&&B.toAbortSignal()],z),ee=J&&J.unsubscribe&&(()=>{J.unsubscribe()});try{if($&&eX&&"get"!==k&&"head"!==k&&0!==(w=await resolveBodyLength(Z,F))){let a,x=new Request(A,{method:"POST",body:F,duplex:"half"});if(eC.isFormData(F)&&(a=x.headers.get("content-type"))&&Z.setContentType(a),x.body){let[a,A]=progressEventDecorator(w,progressEventReducer(asyncDecorator($)));F=trackStream(x.body,65536,a,A)}}eC.isString(K)||(K=K?"include":"omit");let V="credentials"in Request.prototype;x=new Request(A,{...Y,signal:J,method:k.toUpperCase(),headers:Z.normalize().toJSON(),body:F,duplex:"half",credentials:V?K:void 0});let B=await fetch(x),z=e0&&("stream"===W||"response"===W);if(e0&&(G||z&&ee)){let a={};["status","statusText","headers"].forEach(x=>{a[x]=B[x]});let x=eC.toFiniteNumber(B.headers.get("content-length")),[w,A]=G&&progressEventDecorator(x,progressEventReducer(asyncDecorator(G),!0))||[];B=new Response(trackStream(B.body,65536,w,()=>{A&&A(),ee&&ee()}),a)}W=W||"text";let et=await e1[eC.findKey(e1,W)||"text"](B,a);return!z&&ee&&ee(),await new Promise((w,A)=>{settle(w,A,{data:et,headers:AxiosHeaders.from(B.headers),status:B.status,statusText:B.statusText,config:a,request:x})})}catch(w){if(ee&&ee(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,a,x),{cause:w.cause||w});throw AxiosError.from(w,w&&w.code,a,x)}});let e5={http:null,xhr:eK,fetch:e2};eC.forEach(e5,(a,x)=>{if(a){try{Object.defineProperty(a,"name",{value:x})}catch(a){}Object.defineProperty(a,"adapterName",{value:x})}});let renderReason=a=>`- ${a}`,isResolvedHandle=a=>eC.isFunction(a)||null===a||!1===a;var e3={getAdapter:a=>{let x,w;a=eC.isArray(a)?a:[a];let{length:A}=a,k={};for(let F=0;F<A;F++){let A;if(w=x=a[F],!isResolvedHandle(x)&&void 0===(w=e5[(A=String(x)).toLowerCase()]))throw new AxiosError(`Unknown adapter '${A}'`);if(w)break;k[A||"#"+F]=w}if(!w){let a=Object.entries(k).map(([a,x])=>`adapter ${a} `+(!1===x?"is not supported by the environment":"is not available in the build")),x=A?a.length>1?"since :\n"+a.map(renderReason).join("\n"):" "+renderReason(a[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return w},adapters:e5};function throwIfCancellationRequested(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new CanceledError(null,a)}function dispatchRequest(a){throwIfCancellationRequested(a),a.headers=AxiosHeaders.from(a.headers),a.data=transformData.call(a,a.transformRequest),-1!==["post","put","patch"].indexOf(a.method)&&a.headers.setContentType("application/x-www-form-urlencoded",!1);let x=e3.getAdapter(a.adapter||ez.adapter);return x(a).then(function(x){return throwIfCancellationRequested(a),x.data=transformData.call(a,a.transformResponse,x),x.headers=AxiosHeaders.from(x.headers),x},function(x){return!isCancel(x)&&(throwIfCancellationRequested(a),x&&x.response&&(x.response.data=transformData.call(a,a.transformResponse,x.response),x.response.headers=AxiosHeaders.from(x.response.headers))),Promise.reject(x)})}let e4="1.7.7",e6={};["object","boolean","number","function","string","symbol"].forEach((a,x)=>{e6[a]=function(w){return typeof w===a||"a"+(x<1?"n ":" ")+a}});let e8={};
61e6.transitional=function(a,x,w){function formatMessage(a,x){return"[Axios v"+e4+"] Transitional option '"+a+"'"+x+(w?". "+w:"")}return(w,A,k)=>{if(!1===a)throw new AxiosError(formatMessage(A," has been removed"+(x?" in "+x:"")),AxiosError.ERR_DEPRECATED);return x&&!e8[A]&&(e8[A]=!0,console.warn(formatMessage(A," has been deprecated since v"+x+" and will be removed in the near future"))),!a||a(w,A,k)}};var e7={assertOptions:function(a,x,w){if("object"!=typeof a)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let A=Object.keys(a),k=A.length;for(;k-- >0;){let F=A[k],V=x[F];if(V){let x=a[F],w=void 0===x||V(x,F,a);if(!0!==w)throw new AxiosError("option "+F+" must be "+w,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==w)throw new AxiosError("Unknown option "+F,AxiosError.ERR_BAD_OPTION)}},validators:e6};let e9=e7.validators;let Axios=class Axios{constructor(a){this.defaults=a,this.interceptors={request:new eN,response:new eN}}async request(a,x){try{return await this._request(a,x)}catch(a){if(a instanceof Error){let x;Error.captureStackTrace?Error.captureStackTrace(x={}):x=Error();let w=x.stack?x.stack.replace(/^.+\n/,""):"";try{a.stack?w&&!String(a.stack).endsWith(w.replace(/^.+\n.+\n/,""))&&(a.stack+="\n"+w):a.stack=w}catch(a){}}throw a}}_request(a,x){let w,A;"string"==typeof a?(x=x||{}).url=a:x=a||{},x=mergeConfig(this.defaults,x);let{transitional:k,paramsSerializer:F,headers:V}=x;void 0!==k&&e7.assertOptions(k,{silentJSONParsing:e9.transitional(e9.boolean),forcedJSONParsing:e9.transitional(e9.boolean),clarifyTimeoutError:e9.transitional(e9.boolean)},!1),null!=F&&(eC.isFunction(F)?x.paramsSerializer={serialize:F}:e7.assertOptions(F,{encode:e9.function,serialize:e9.function},!0)),x.method=(x.method||this.defaults.method||"get").toLowerCase();let B=V&&eC.merge(V.common,V[x.method]);V&&eC.forEach(["delete","get","head","post","put","patch","common"],a=>{delete V[a]}),x.headers=AxiosHeaders.concat(B,V);let z=[],G=!0;this.interceptors.request.forEach(function(a){("function"!=typeof a.runWhen||!1!==a.runWhen(x))&&(G=G&&a.synchronous,z.unshift(a.fulfilled,a.rejected))});let $=[];this.interceptors.response.forEach(function(a){$.push(a.fulfilled,a.rejected)});let W=0;if(!G){let a=[dispatchRequest.bind(this),void 0];for(a.unshift.apply(a,z),a.push.apply(a,$),A=a.length,w=Promise.resolve(x);W<A;)w=w.then(a[W++],a[W++]);return w}A=z.length;let Z=x;for(W=0;W<A;){let a=z[W++],x=z[W++];try{Z=a(Z)}catch(a){x.call(this,a);break}}try{w=dispatchRequest.call(this,Z)}catch(a){return Promise.reject(a)}for(W=0,A=$.length;W<A;)w=w.then($[W++],$[W++]);return w}getUri(a){a=mergeConfig(this.defaults,a);let x=buildFullPath(a.baseURL,a.url);return buildURL(x,a.params,a.paramsSerializer)}};eC.forEach(["delete","get","head","options"],function(a){Axios.prototype[a]=function(x,w){return this.request(mergeConfig(w||{},{method:a,url:x,data:(w||{}).data}))}}),eC.forEach(["post","put","patch"],function(a){function generateHTTPMethod(x){return function(w,A,k){return this.request(mergeConfig(k||{},{method:a,headers:x?{"Content-Type":"multipart/form-data"}:{},url:w,data:A}))}}Axios.prototype[a]=generateHTTPMethod(),Axios.prototype[a+"Form"]=generateHTTPMethod(!0)});let CancelToken=class CancelToken{constructor(a){let x;if("function"!=typeof a)throw TypeError("executor must be a function.");this.promise=new Promise(function(a){x=a});let w=this;this.promise.then(a=>{if(!w._listeners)return;let x=w._listeners.length;for(;x-- >0;)w._listeners[x](a);w._listeners=null}),this.promise.then=a=>{let x;let A=new Promise(a=>{w.subscribe(a),x=a}).then(a);return A.cancel=function(){w.unsubscribe(x)},A},a(function(a,A,k){w.reason||(w.reason=new CanceledError(a,A,k),x(w.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let x=this._listeners.indexOf(a);-1!==x&&this._listeners.splice(x,1)}toAbortSignal(){let a=new AbortController,abort=x=>{a.abort(x)};return this.subscribe(abort),a.signal.unsubscribe=()=>this.unsubscribe(abort),a.signal}static source(){let a;let x=new CancelToken(function(x){a=x});return{token:x,cancel:a}}};let te={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
61setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(te).forEach(([a,x])=>{te[x]=a});let tt=function createInstance(a){let x=new Axios(a),w=bind(Axios.prototype.request,x);return eC.extend(w,Axios.prototype,x,{allOwnKeys:!0}),eC.extend(w,x,null,{allOwnKeys:!0}),w.create=function(x){return createInstance(mergeConfig(a,x))},w}(ez);tt.Axios=Axios,tt.CanceledError=CanceledError,tt.CancelToken=CancelToken,tt.isCancel=isCancel,tt.VERSION=e4,tt.toFormData=helpers_toFormData,tt.AxiosError=AxiosError,tt.Cancel=tt.CanceledError,tt.all=function(a){return Promise.all(a)},tt.spread=function(a){return function(x){return a.apply(null,x)}},tt.isAxiosError=function(a){return eC.isObject(a)&&!0===a.isAxiosError},tt.mergeConfig=mergeConfig,tt.AxiosHeaders=AxiosHeaders,tt.formToJSON=a=>helpers_formDataToJSON(eC.isHTMLForm(a)?new FormData(a):a),tt.getAdapter=e3.getAdapter,tt.HttpStatusCode=te,tt.default=tt;var tr=tt},51526:function(a,x,w){"use strict";w.d(x,{M:function(){return AnimatePresence}});var A=w(67294),k=w(58868);function useIsMounted(){let a=(0,A.useRef)(!1);return(0,k.L)(()=>(a.current=!0,()=>{a.current=!1}),[]),a}var F=w(2074),V=w(240),B=w(96681);let PopChildMeasure=class PopChildMeasure extends A.Component{getSnapshotBeforeUpdate(a){let x=this.props.childRef.current;if(x&&a.isPresent&&!this.props.isPresent){let a=this.props.sizeRef.current;a.height=x.offsetHeight||0,a.width=x.offsetWidth||0,a.top=x.offsetTop,a.left=x.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:a,isPresent:x}){let w=(0,A.useId)(),k=(0,A.useRef)(null),F=(0,A.useRef)({width:0,height:0,top:0,left:0});return(0,A.useInsertionEffect)(()=>{let{width:a,height:A,top:V,left:B}=F.current;if(x||!k.current||!a||!A)return;k.current.dataset.motionPopId=w;let z=document.createElement("style");return document.head.appendChild(z),z.sheet&&z.sheet.insertRule(`
62          [data-motion-pop-id="${w}"] {
63            position: absolute !important;
64            width: ${a}px !important;
65            height: ${A}px !important;
66            top: ${V}px !important;
67            left: ${B}px !important;
68          }
69        `),()=>{document.head.removeChild(z)}},[x]),A.createElement(PopChildMeasure,{isPresent:x,childRef:k,sizeRef:F},A.cloneElement(a,{ref:k}))}let PresenceChild=({children:a,initial:x,isPresent:w,onExitComplete:k,custom:F,presenceAffectsLayout:z,mode:G})=>{let $=(0,B.h)(newChildrenMap),W=(0,A.useId)(),Z=(0,A.useMemo)(()=>({id:W,initial:x,isPresent:w,custom:F,onExitComplete:a=>{for(let x of($.set(a,!0),$.values()))if(!x)return;k&&k()},register:a=>($.set(a,!1),()=>$.delete(a))}),z?void 0:[w]);return(0,A.useMemo)(()=>{$.forEach((a,x)=>$.set(x,!1))},[w]),A.useEffect(()=>{w||$.size||!k||k()},[w]),"popLayout"===G&&(a=A.createElement(PopChild,{isPresent:w},a)),A.createElement(V.O.Provider,{value:Z},a)};function newChildrenMap(){return new Map}var z=w(25364),G=w(45487);let getChildKey=a=>a.key||"",AnimatePresence=({children:a,custom:x,initial:w=!0,onExitComplete:V,exitBeforeEnter:B,presenceAffectsLayout:$=!0,mode:W="sync"})=>{var Z;(0,G.k)(!B,"Replace exitBeforeEnter with mode='wait'");let K=(0,A.useContext)(z.p).forceRender||function(){let a=useIsMounted(),[x,w]=(0,A.useState)(0),k=(0,A.useCallback)(()=>{a.current&&w(x+1)},[x]),V=(0,A.useCallback)(()=>F.Wi.postRender(k),[k]);return[V,x]}()[0],Y=useIsMounted(),J=function(a){let x=[];
69return A.Children.forEach(a,a=>{(0,A.isValidElement)(a)&&x.push(a)}),x}(a),ee=J,et=(0,A.useRef)(new Map).current,er=(0,A.useRef)(ee),en=(0,A.useRef)(new Map).current,ei=(0,A.useRef)(!0);if((0,k.L)(()=>{ei.current=!1,function(a,x){a.forEach(a=>{let w=getChildKey(a);x.set(w,a)})}(J,en),er.current=ee}),Z=()=>{ei.current=!0,en.clear(),et.clear()},(0,A.useEffect)(()=>()=>Z(),[]),ei.current)return A.createElement(A.Fragment,null,ee.map(a=>A.createElement(PresenceChild,{key:getChildKey(a),isPresent:!0,initial:!!w&&void 0,presenceAffectsLayout:$,mode:W},a)));ee=[...ee];let eo=er.current.map(getChildKey),ea=J.map(getChildKey),es=eo.length;for(let a=0;a<es;a++){let x=eo[a];-1!==ea.indexOf(x)||et.has(x)||et.set(x,void 0)}return"wait"===W&&et.size&&(ee=[]),et.forEach((a,w)=>{if(-1!==ea.indexOf(w))return;let k=en.get(w);if(!k)return;let F=eo.indexOf(w),B=a;B||(B=A.createElement(PresenceChild,{key:getChildKey(k),isPresent:!1,onExitComplete:()=>{en.delete(w),et.delete(w);let a=er.current.findIndex(a=>a.key===w);if(er.current.splice(a,1),!et.size){if(er.current=J,!1===Y.current)return;K(),V&&V()}},custom:x,presenceAffectsLayout:$,mode:W},k),et.set(w,B)),ee.splice(F,0,B)}),ee=ee.map(a=>{let x=a.key;return et.has(x)?a:A.createElement(PresenceChild,{key:getChildKey(a),isPresent:!0,presenceAffectsLayout:$,mode:W},a)}),A.createElement(A.Fragment,null,et.size?ee:ee.map(a=>(0,A.cloneElement)(a)))}},25364:function(a,x,w){"use strict";w.d(x,{p:function(){return k}});var A=w(67294);let k=(0,A.createContext)({})},240:function(a,x,w){"use strict";w.d(x,{O:function(){return k}});var A=w(67294);let k=(0,A.createContext)(null)},2074:function(a,x,w){"use strict";w.d(x,{Pn:function(){return V},Wi:function(){return F},frameData:function(){return B},S6:function(){return z}});var A=w(81662);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(a){if(!this.scheduled.has(a))return this.scheduled.add(a),this.order.push(a),!0}remove(a){let x=this.order.indexOf(a);-1!==x&&(this.order.splice(x,1),this.scheduled.delete(a))}clear(){this.order.length=0,this.scheduled.clear()}};let k=["prepare","read","update","preRender","render","postRender"],{schedule:F,cancel:V,state:B,steps:z}=function(a,x){let w=!1,A=!0,F={delta:0,timestamp:0,isProcessing:!1},V=k.reduce((a,x)=>(a[x]=function(a){let x=new Queue,w=new Queue,A=0,k=!1,F=!1,V=new WeakSet,B={schedule:(a,F=!1,B=!1)=>{let z=B&&k,G=z?x:w;return F&&V.add(a),G.add(a)&&z&&k&&(A=x.order.length),a},cancel:a=>{w.remove(a),V.delete(a)},process:z=>{if(k){F=!0;return}if(k=!0,[x,w]=[w,x],w.clear(),A=x.order.length)for(let w=0;w<A;w++){let A=x.order[w];A(z),V.has(A)&&(B.schedule(A),a())}k=!1,F&&(F=!1,B.process(z))}};return B}(()=>w=!0),a),{}),processStep=a=>V[a].process(F),processBatch=()=>{let V=performance.now();w=!1,F.delta=A?1e3/60:Math.max(Math.min(V-F.timestamp,40),1),F.timestamp=V,F.isProcessing=!0,k.forEach(processStep),F.isProcessing=!1,w&&x&&(A=!1,a(processBatch))},wake=()=>{w=!0,A=!0,F.isProcessing||a(processBatch)},B=k.reduce((a,x)=>{let A=V[x];return a[x]=(a,x=!1,k=!1)=>(w||wake(),A.schedule(a,x,k)),a},{});return{schedule:B,cancel:a=>k.forEach(x=>V[x].cancel(a)),state:F,steps:V}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:A.Z,!0)},6813:function(a,x,w){"use strict";let A;w.d(x,{E:function(){return tQ}});var k,F,V=w(67294);let B=(0,V.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"}),z=(0,V.createContext)({});var G=w(240),$=w(58868);let W=(0,V.createContext)({strict:!1});function isRefObject(a){return"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}function isVariantLabel(a){return"string"==typeof a||Array.isArray(a)}function isAnimationControls(a){return"object"==typeof a&&"function"==typeof a.start}let Z=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],K=["initial",...Z];function isControllingVariants(a){return isAnimationControls(a.animate)||K.some(x=>isVariantLabel(a[x]))}function isVariantNode(a){return!!(isControllingVariants(a)||a.variants)}function variantLabelsAsDependency(a){return Array.isArray(a)?a.join(" "):a}let Y={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},J={};for(let a in Y)J[a]={isEnabled:x=>Y[a].some(a=>!!x[a])};var ee=w(11741),et=w(25364);let er=(0,V.createContext)({}),en=Symbol.for("motionComponentSymbol"),ei=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(a){if("string"!=typeof a||a.includes("-"));else if(ei.indexOf(a)>-1||/[A-Z]/.test(a))return!0;return!1}let eo={},ea=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(ea);function isForcedMotionValue(a,{layout:x,layoutId:w}){return es.has(a)||a.startsWith("origin")||(x||void 0!==w)&&(!!eo[a]||"opacity"===a)}let isMotionValue=a=>!!(a&&a.getVelocity),el={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eu=ea.length,checkStringStartsWith=a=>x=>"string"==typeof x&&x.startsWith(a),ec=checkStringStartsWith("--"),ed=checkStringStartsWith("var(--"),getValueAsType=(a,x)=>x&&"number"==typeof a?x.transform(a):a,clamp=(a,x,w)=>Math.min(Math.max(w,a),x),ef={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},ep={...ef,transform:a=>clamp(0,1,a)},eh={...ef,default:1},sanitize=a=>
69Math.round(1e5*a)/1e5,em=/(-)?([\d]*\.?[\d])+/g,eg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ev=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString(a){return"string"==typeof a}let createUnitType=a=>({test:x=>isString(x)&&x.endsWith(a)&&1===x.split(" ").length,parse:parseFloat,transform:x=>`${x}${a}`}),ey=createUnitType("deg"),eb=createUnitType("%"),e_=createUnitType("px"),ex=createUnitType("vh"),ew=createUnitType("vw"),eS={...eb,parse:a=>eb.parse(a)/100,transform:a=>eb.transform(100*a)},eE={...ef,transform:Math.round},eA={borderWidth:e_,borderTopWidth:e_,borderRightWidth:e_,borderBottomWidth:e_,borderLeftWidth:e_,borderRadius:e_,radius:e_,borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomRightRadius:e_,borderBottomLeftRadius:e_,width:e_,maxWidth:e_,height:e_,maxHeight:e_,size:e_,top:e_,right:e_,bottom:e_,left:e_,padding:e_,paddingTop:e_,paddingRight:e_,paddingBottom:e_,paddingLeft:e_,margin:e_,marginTop:e_,marginRight:e_,marginBottom:e_,marginLeft:e_,rotate:ey,rotateX:ey,rotateY:ey,rotateZ:ey,scale:eh,scaleX:eh,scaleY:eh,scaleZ:eh,skew:ey,skewX:ey,skewY:ey,distance:e_,translateX:e_,translateY:e_,translateZ:e_,x:e_,y:e_,z:e_,perspective:e_,transformPerspective:e_,opacity:ep,originX:eS,originY:eS,originZ:e_,zIndex:eE,fillOpacity:ep,strokeOpacity:ep,numOctaves:eE};function buildHTMLStyles(a,x,w,A){let{style:k,vars:F,transform:V,transformOrigin:B}=a,z=!1,G=!1,$=!0;for(let a in x){let w=x[a];if(ec(a)){F[a]=w;continue}let A=eA[a],W=getValueAsType(w,A);if(es.has(a)){if(z=!0,V[a]=W,!$)continue;w!==(A.default||0)&&($=!1)}else a.startsWith("origin")?(G=!0,B[a]=W):k[a]=W}if(!x.transform&&(z||A?k.transform=function(a,{enableHardwareAcceleration:x=!0,allowTransformNone:w=!0},A,k){let F="";for(let x=0;x<eu;x++){let w=ea[x];if(void 0!==a[w]){let x=el[w]||w;F+=`${x}(${a[w]}) `}}return x&&!a.z&&(F+="translateZ(0)"),F=F.trim(),k?F=k(a,A?"":F):w&&A&&(F="none"),F}(a.transform,w,$,A):k.transform&&(k.transform="none")),G){let{originX:a="50%",originY:x="50%",originZ:w=0}=B;k.transformOrigin=`${a} ${x} ${w}`}}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(a,x,w){for(let A in x)isMotionValue(x[A])||isForcedMotionValue(A,w)||(a[A]=x[A])}function useHTMLProps(a,x,w){let A={},k=function(a,x,w){let A=a.style||{},k={};return copyRawValuesOnly(k,A,a),Object.assign(k,function({transformTemplate:a},x,w){return(0,V.useMemo)(()=>{let A=createHtmlRenderState();return buildHTMLStyles(A,x,{enableHardwareAcceleration:!w},a),Object.assign({},A.vars,A.style)},[x])}(a,x,w)),a.transformValues?a.transformValues(k):k}(a,x,w);return a.drag&&!1!==a.dragListener&&(A.draggable=!1,k.userSelect=k.WebkitUserSelect=k.WebkitTouchCallout="none",k.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(A.tabIndex=0),A.style=k,A}let eC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function isValidMotionProp(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||eC.has(a)}let shouldForward=a=>!isValidMotionProp(a);try{(k=require("@emotion/is-prop-valid").default)&&(shouldForward=a=>a.startsWith("on")?!isValidMotionProp(a):k(a))}catch(a){}function calcOrigin(a,x,w){return"string"==typeof a?a:e_.transform(x+w*a)}let eT={offset:"stroke-dashoffset",array:"stroke-dasharray"},eO={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(a,{attrX:x,attrY:w,attrScale:A,originX:k,originY:F,pathLength:V,pathSpacing:B=1,pathOffset:z=0,...G},$,W,Z){if(buildHTMLStyles(a,G,$,Z),W){a.style.viewBox&&(a.attrs.viewB
69ox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:K,style:Y,dimensions:J}=a;K.transform&&(J&&(Y.transform=K.transform),delete K.transform),J&&(void 0!==k||void 0!==F||Y.transform)&&(Y.transformOrigin=function(a,x,w){let A=calcOrigin(x,a.x,a.width),k=calcOrigin(w,a.y,a.height);return`${A} ${k}`}(J,void 0!==k?k:.5,void 0!==F?F:.5)),void 0!==x&&(K.x=x),void 0!==w&&(K.y=w),void 0!==A&&(K.scale=A),void 0!==V&&function(a,x,w=1,A=0,k=!0){a.pathLength=1;let F=k?eT:eO;a[F.offset]=e_.transform(-A);let V=e_.transform(x),B=e_.transform(w);a[F.array]=`${V} ${B}`}(K,V,B,z,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=a=>"string"==typeof a&&"svg"===a.toLowerCase();function useSVGProps(a,x,w,A){let k=(0,V.useMemo)(()=>{let w=createSvgRenderState();return buildSVGAttrs(w,x,{enableHardwareAcceleration:!1},isSVGTag(A),a.transformTemplate),{...w.attrs,style:{...w.style}}},[x]);if(a.style){let x={};copyRawValuesOnly(x,a.style,a),k.style={...x,...k.style}}return k}let camelToDash=a=>a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function renderHTML(a,{style:x,vars:w},A,k){for(let F in Object.assign(a.style,x,k&&k.getProjectionStyles(A)),w)a.style.setProperty(F,w[F])}let eP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);
69function renderSVG(a,x,w,A){for(let w in renderHTML(a,x,void 0,A),x.attrs)a.setAttribute(eP.has(w)?w:camelToDash(w),x.attrs[w])}function scrapeMotionValuesFromProps(a,x){let{style:w}=a,A={};for(let k in w)(isMotionValue(w[k])||x.style&&isMotionValue(x.style[k])||isForcedMotionValue(k,a))&&(A[k]=w[k]);return A}function scrape_motion_values_scrapeMotionValuesFromProps(a,x){let w=scrapeMotionValuesFromProps(a,x);for(let A in a)if(isMotionValue(a[A])||isMotionValue(x[A])){let x=-1!==ea.indexOf(A)?"attr"+A.charAt(0).toUpperCase()+A.substring(1):A;w[x]=a[A]}return w}function resolveVariantFromProps(a,x,w,A={},k={}){return"function"==typeof x&&(x=x(void 0!==w?w:a.custom,A,k)),"string"==typeof x&&(x=a.variants&&a.variants[x]),"function"==typeof x&&(x=x(void 0!==w?w:a.custom,A,k)),x}var eR=w(96681);let isKeyframesTarget=a=>Array.isArray(a),isCustomValue=a=>!!(a&&"object"==typeof a&&a.mix&&a.toValue),resolveFinalValueInKeyframes=a=>isKeyframesTarget(a)?a[a.length-1]||0:a;function resolveMotionValue(a){let x=isMotionValue(a)?a.get():a;return isCustomValue(x)?x.toValue():x}let makeUseVisualState=a=>(x,w)=>{let A=(0,V.useContext)(z),k=(0,V.useContext)(G.O),make=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:x,onMount:w},A,k,F){let V={latestValues:function(a,x,w,A){let k={},F=A(a,{});for(let a in F)k[a]=resolveMotionValue(F[a]);let{initial:V,animate:B}=a,z=isControllingVariants(a),G=isVariantNode(a);x&&G&&!z&&!1!==a.inherit&&(void 0===V&&(V=x.initial),void 0===B&&(B=x.animate));let $=!!w&&!1===w.initial;$=$||!1===V;let W=$?B:V;if(W&&"boolean"!=typeof W&&!isAnimationControls(W)){let x=Array.isArray(W)?W:[W];x.forEach(x=>{let w=resolveVariantFromProps(a,x);if(!w)return;let{transitionEnd:A,transition:F,...V}=w;for(let a in V){let x=V[a];if(Array.isArray(x)){let a=$?x.length-1:0;x=x[a]}null!==x&&(k[a]=x)}for(let a in A)k[a]=A[a]})}return k}(A,k,F,a),renderState:x()};return w&&(V.mount=a=>w(A,a,V)),V})(a,x,A,k);return w?make():(0,eR.h)(make)};var ek=w(2074);let eN={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(a,x,{renderState:w,latestValues:A})=>{ek.Wi.read(()=>{try{w.dimensions="function"==typeof x.getBBox?x.getBBox():x.getBoundingClientRect()}catch(a){w.dimensions={x:0,y:0,width:0,height:0}}}),ek.Wi.render(()=>{buildSVGAttrs(w,A,{enableHardwareAcceleration:!1},isSVGTag(x.tagName),a.transformTemplate),renderSVG(x,w)})}})},eI={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function addDomEvent(a,x,w,A={passive:!0}){return a.addEventListener(x,w,A),()=>a.removeEventListener(x,w)}let isPrimaryPointer=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function extractEventInfo(a,x="page"){return{point:{x:a[x+"X"],y:a[x+"Y"]}}}let addPointerInfo=a=>x=>isPrimaryPointer(x)&&a(x,extractEventInfo(x));function addPointerEvent(a,x,w,A){return addDomEvent(a,x,addPointerInfo(w),A)}let combineFunctions=(a,x)=>w=>x(a(w)),pipe=(...a)=>a.reduce(combineFunctions);function createLock(a){let x=null;return()=>null===x&&(x=a,()=>{x=null})}let eD=createLock("dragHorizontal"),eM=createLock("dragVertical");function getGlobalLock(a){let x=!1;if("y"===a)x=eM();else if("x"===a)x=eD();else{let a=eD(),w=eM();a&&w?x=()=>{a(),w()}:(a&&a(),w&&w())}return x}function isDragActive(){let a=getGlobalLock(!0);return!a||(a(),!1)}let Feature=class Feature{constructor(a){this.isMounted=!1,this.node=a}update(){}};function addHoverEvent(a,x){let w="pointer"+(x?"enter":"leave"),A="onHover"+(x?"Start":"End");return addPointerEvent(a.current,w,(w,k)=>{if("touch"===w.type||isDragActive())return;let F=a.getProps();a.animationState&&F.whileHover&&a.animationState.setActive("whileHover",x),F[A]&&ek.Wi.update(()=>F[A](w,k))},{passive:!a.getProps()[A]})}let isNodeOrChild=(a,x)=>!!x&&(a===x||isNodeOrChild(a,x.parentElement));var eL=w(81662);function fireSyntheticPointerEvent(a,x){if(!x)return;let w=new PointerEvent("pointer"+a);x(w,extractEventInfo(w))}let ej=new WeakMap,eF=new WeakMap,fireObserverCallback=a=>{let x=ej.get(a.target);x&&x(a)},fireAllObserverCallbacks=a=>{a.forEach(fireObserverCallback)},eV={some:0,all:1};function shallowCompare(a,x){if(!Array.isArray(x))return!1;let w=x.length;if(w!==a.length)return!1;for(let A=0;A<w;A++)if(x[A]!==a[A])return!1;return!0}function resolveVariant(a,x,w){let A=a.getProps();return resolveVariantFromProps(A,x,void 0!==w?w:A.custom,function(a){let x={};
69return a.values.forEach((a,w)=>x[w]=a.get()),x}(a),function(a){let x={};return a.values.forEach((a,w)=>x[w]=a.getVelocity()),x}(a))}let eU="data-"+camelToDash("framerAppearId");var eB=w(45487);let secondsToMilliseconds=a=>1e3*a,millisecondsToSeconds=a=>a/1e3,eq={current:!1},isBezierDefinition=a=>Array.isArray(a)&&"number"==typeof a[0],cubicBezierAsString=([a,x,w,A])=>`cubic-bezier(${a}, ${x}, ${w}, ${A})`,ez={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])},calcBezier=(a,x,w)=>(((1-3*w+3*x)*a+(3*w-6*x))*a+3*x)*a;function cubicBezier(a,x,w,A){if(a===x&&w===A)return eL.Z;let getTForX=x=>(function(a,x,w,A,k){let F,V;let B=0;do(F=calcBezier(V=x+(w-x)/2,A,k)-a)>0?w=V:x=V;while(Math.abs(F)>1e-7&&++B<12);return V})(x,0,1,a,w);return a=>0===a||1===a?a:calcBezier(getTForX(a),x,A)}let eH=cubicBezier(.42,0,1,1),eG=cubicBezier(0,0,.58,1),e$=cubicBezier(.42,0,.58,1),isEasingArray=a=>Array.isArray(a)&&"number"!=typeof a[0],mirrorEasing=a=>x=>x<=.5?a(2*x)/2:(2-a(2*(1-x)))/2,reverseEasing=a=>x=>1-a(1-x),circIn=a=>1-Math.sin(Math.acos(a)),eW=reverseEasing(circIn),eZ=mirrorEasing(eW),eK=cubicBezier(.33,1.53,.69,.99),eQ=reverseEasing(eK),eY=mirrorEasing(eQ),eJ={linear:eL.Z,easeIn:eH,easeInOut:e$,easeOut:eG,circIn:circIn,circInOut:eZ,circOut:eW,backIn:eQ,backInOut:eY,backOut:eK,anticipate:a=>(a*=2)<1?.5*eQ(a):.5*(2-Math.pow(2,-10*(a-1)))},easingDefinitionToFunction=a=>{if(Array.isArray(a)){(0,eB.k)(4===a.length,"Cubic bezier arrays must contain four numerical values.");let[x,w,A,k]=a;return cubicBezier(x,w,A,k)}return"string"==typeof a?((0,eB.k)(void 0!==eJ[a],`Invalid easing type '${a}'`),eJ[a]):a},isColorString=(a,x)=>w=>!!(isString(w)&&ev.test(w)&&w.startsWith(a)||x&&Object.prototype.hasOwnProperty.call(w,x)),splitColor=(a,x,w)=>A=>{if(!isString(A))return A;let[k,F,V,B]=A.match(em);return{[a]:parseFloat(k),[x]:parseFloat(F),[w]:parseFloat(V),alpha:void 0!==B?parseFloat(B):1}},clampRgbUnit=a=>clamp(0,255,a),eX={...ef,transform:a=>Math.round(clampRgbUnit(a))},e0={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:a,green:x,blue:w,alpha:A=1})=>"rgba("+eX.transform(a)+", "+eX.transform(x)+", "+eX.transform(w)+", "+sanitize(ep.transform(A))+")"},e1={test:isColorString("#"),parse:function(a){let x="",w="",A="",k="";return a.length>5?(x=a.substring(1,3),w=a.substring(3,5),A=a.substring(5,7),k=a.substring(7,9)):(x=a.substring(1,2),w=a.substring(2,3),A=a.substring(3,4),k=a.substring(4,5),x+=x,w+=w,A+=A,k+=k),{red:parseInt(x,16),green:parseInt(w,16),blue:parseInt(A,16),alpha:k?parseInt(k,16)/255:1}},transform:e0.transform},e2={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:a,saturation:x,lightness:w,alpha:A=1})=>"hsla("+Math.round(a)+", "+eb.transform(sanitize(x))+", "+eb.transform(sanitize(w))+", "+sanitize(ep.transform(A))+")"},e5={test:a=>e0.test(a)||e1.test(a)||e2.test(a),parse:a=>e0.test(a)?e0.parse(a):e2.test(a)?e2.parse(a):e1.parse(a),transform:a=>isString(a)?a:a.hasOwnProperty("red")?e0.transform(a):e2.transform(a)},mix=(a,x,w)=>-w*a+w*x+a;function hueToRgb(a,x,w){return(w<0&&(w+=1),w>1&&(w-=1),w<1/6)?a+(x-a)*6*w:w<.5?x:w<2/3?a+(x-a)*(2/3-w)*6:a}let mixLinearColor=(a,x,w)=>{let A=a*a;return Math.sqrt(Math.max(0,w*(x*x-A)+A))},e3=[e1,e0,e2],getColorType=a=>e3.find(x=>x.test(a));function asRGBA(a){let x=getColorType(a);(0,eB.k)(!!x,`'${a}' is not an animatable color. Use the equivalent color code instead.`);let w=x.parse(a);return x===e2&&(w=function({hue:a,saturation:x,lightness:w,alpha:A}){a/=360,w/=100;let k=0,F=0,V=0;if(x/=100){let A=w<.5?w*(1+x):w+x-w*x,B=2*w-A;k=hueToRgb(B,A,a+1/3),F=hueToRgb(B,A,a),V=hueToRgb(B,A,a-1/3)}else k=F=V=w;return{red:Math.round(255*k),green:Math.round(255*F),blue:Math.round(255*V),alpha:A}}(w)),w}let mixColor=(a,x)=>{let w=asRGBA(a),A=asRGBA(x),k={...w};return a=>(k.red=mixLinearColor(w.red,A.red,a),k.green=mixLinearColor(w.green,A.green,a),k.blue=mixLinearColor(w.blue,A.blue,a),k.alpha=mix(w.alpha,A.alpha,a),e0.transform(k))}
69,e4={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eL.Z},e6={regex:eg,countKey:"Colors",token:"${c}",parse:e5.parse},e8={regex:em,countKey:"Numbers",token:"${n}",parse:ef.parse};function tokenise(a,{regex:x,countKey:w,token:A,parse:k}){let F=a.tokenised.match(x);F&&(a["num"+w]=F.length,a.tokenised=a.tokenised.replace(x,A),a.values.push(...F.map(k)))}function analyseComplexValue(a){let x=a.toString(),w={value:x,tokenised:x,values:[],numVars:0,numColors:0,numNumbers:0};return w.value.includes("var(--")&&tokenise(w,e4),tokenise(w,e6),tokenise(w,e8),w}function parseComplexValue(a){return analyseComplexValue(a).values}function createTransformer(a){let{values:x,numColors:w,numVars:A,tokenised:k}=analyseComplexValue(a),F=x.length;return a=>{let x=k;for(let k=0;k<F;k++)x=k<A?x.replace(e4.token,a[k]):k<A+w?x.replace(e6.token,e5.transform(a[k])):x.replace(e8.token,sanitize(a[k]));return x}}let convertNumbersToZero=a=>"number"==typeof a?0:a,e7={test:function(a){var x,w;return isNaN(a)&&isString(a)&&((null===(x=a.match(em))||void 0===x?void 0:x.length)||0)+((null===(w=a.match(eg))||void 0===w?void 0:w.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(a){let x=parseComplexValue(a),w=createTransformer(a);return w(x.map(convertNumbersToZero))}},mixImmediate=(a,x)=>w=>`${w>0?x:a}`;function getMixer(a,x){return"number"==typeof a?w=>mix(a,x,w):e5.test(a)?mixColor(a,x):a.startsWith("var(")?mixImmediate(a,x):mixComplex(a,x)}let mixArray=(a,x)=>{let w=[...a],A=w.length,k=a.map((a,w)=>getMixer(a,x[w]));return a=>{for(let x=0;x<A;x++)w[x]=k[x](a);return w}},mixObject=(a,x)=>{let w={...a,...x},A={};for(let k in w)void 0!==a[k]&&void 0!==x[k]&&(A[k]=getMixer(a[k],x[k]));return a=>{for(let x in A)w[x]=A[x](a);return w}},mixComplex=(a,x)=>{let w=e7.createTransformer(x),A=analyseComplexValue(a),k=analyseComplexValue(x),F=A.numVars===k.numVars&&A.numColors===k.numColors&&A.numNumbers>=k.numNumbers;return F?pipe(mixArray(A.values,k.values),w):((0,eB.K)(!0,`Complex values '${a}' and '${x}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),mixImmediate(a,x))},progress=(a,x,w)=>
69{let A=x-a;return 0===A?1:(w-a)/A},mixNumber=(a,x)=>w=>mix(a,x,w);function interpolate(a,x,{clamp:w=!0,ease:A,mixer:k}={}){let F=a.length;if((0,eB.k)(F===x.length,"Both input and output ranges must be the same length"),1===F)return()=>x[0];a[0]>a[F-1]&&(a=[...a].reverse(),x=[...x].reverse());let V=function(a,x,w){let A=[],k=w||function(a){if("number"==typeof a);else if("string"==typeof a)return e5.test(a)?mixColor:mixComplex;else if(Array.isArray(a))return mixArray;else if("object"==typeof a)return mixObject;return mixNumber}(a[0]),F=a.length-1;for(let w=0;w<F;w++){let F=k(a[w],a[w+1]);if(x){let a=Array.isArray(x)?x[w]||eL.Z:x;F=pipe(a,F)}A.push(F)}return A}(x,A,k),B=V.length,interpolator=x=>{let w=0;if(B>1)for(;w<a.length-2&&!(x<a[w+1]);w++);let A=progress(a[w],a[w+1],x);return V[w](A)};return w?x=>interpolator(clamp(a[0],a[F-1],x)):interpolator}function keyframes({duration:a=300,keyframes:x,times:w,ease:A="easeInOut"}){let k=isEasingArray(A)?A.map(easingDefinitionToFunction):easingDefinitionToFunction(A),F={done:!1,value:x[0]},V=(w&&w.length===x.length?w:function(a){let x=[0];return function(a,x){let w=a[a.length-1];for(let A=1;A<=x;A++){let k=progress(0,x,A);a.push(mix(w,1,k))}}(x,a.length-1),x}(x)).map(x=>x*a),B=interpolate(V,x,{ease:Array.isArray(k)?k:x.map(()=>k||e$).splice(0,x.length-1)});return{calculatedDuration:a,next:x=>(F.value=B(x),F.done=x>=a,F)}}function calcGeneratorVelocity(a,x,w){var A,k;let F=Math.max(x-5,0);return A=w-a(F),(k=x-F)?A*(1e3/k):0}function calcAngularFreq(a,x){return a*Math.sqrt(1-x*x)}let e9=["duration","bounce"],te=["stiffness","damping","mass"];function isSpringType(a,x){return x.some(x=>void 0!==a[x])}function spring({keyframes:a,restDelta:x,restSpeed:w,...A}){let k;let F=a[0],V=a[a.length-1],B={done:!1,value:F},{stiffness:z,damping:G,mass:$,velocity:W,duration:Z,isResolvedFromDuration:K}=function(a){let x={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...a};if(!isSpringType(a,te)&&isSpringType(a,e9)){let w=function({duration:a=800,bounce:x=.25,velocity:w=0,mass:A=1}){let k,F;(0,eB.K)(a<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let V=1-x;V=clamp(.05,1,V),a=clamp(.01,10,millisecondsToSeconds(a)),V<1?(k=x=>{let A=x*V,k=A*a,F=calcAngularFreq(x,V);return .001-(A-w)/F*Math.exp(-k)},F=x=>{let A=x*V,F=A*a,B=Math.pow(V,2)*Math.pow(x,2)*a,z=calcAngularFreq(Math.pow(x,2),V),G=-k(x)+.001>0?-1:1;return G*((F*w+w-B)*Math.exp(-F))/z}):(k=x=>{let A=Math.exp(-x*a),k=(x-w)*a+1;return -.001+A*k},F=x=>{let A=Math.exp(-x*a),k=(w-x)*(a*a);return A*k});let B=5/a,z=function(a,x,w){let A=w;for(let w=1;w<12;w++)A-=a(A)/x(A);return A}(k,F,B);if(a=secondsToMilliseconds(a),isNaN(z))return{stiffness:100,damping:10,duration:a};{let x=Math.pow(z,2)*A;return{stiffness:x,damping:2*V*Math.sqrt(A*x),duration:a}}}(a);(x={...x,...w,velocity:0,mass:1}).isResolvedFromDuration=!0}return x}(A),Y=W?-millisecondsToSeconds(W):0,J=G/(2*Math.sqrt(z*$)),ee=V-F,et=millisecondsToSeconds(Math.sqrt(z/$)),er=5>Math.abs(ee);if(w||(w=er?.01:2),x||(x=er?.005:.5),J<1){let a=calcAngularFreq(et,J);k=x=>{let w=Math.exp(-J*et*x);return V-w*((Y+J*et*ee)/a*Math.sin(a*x)+ee*Math.cos(a*x))}}else if(1===J)k=a=>V-Math.exp(-et*a)*(ee+(Y+et*ee)*a);else{let a=et*Math.sqrt(J*J-1);k=x=>{let w=Math.exp(-J*et*x),A=Math.min(a*x,300);return V-w*((Y+J*et*ee)*Math.sinh(A)+a*ee*Math.cosh(A))/a}}return{calculatedDuration:K&&Z||null,next:a=>{let A=k(a);if(K)B.done=a>=Z;else{let F=Y;0!==a&&(F=J<1?calcGeneratorVelocity(k,a,A):0);let z=Math.abs(F)<=w,G=Math.abs(V-A)<=x;B.done=z&&G}return B.value=B.done?V:A,B}}}function inertia({keyframes:a,velocity:x=0,power:w=.8,timeConstant:A=325,bounceDamping:k=10,bounceStiffness:F=500,modifyTarget:V,min:B,max:z,restDelta:G=.5,restSpeed:$}){let W,Z;let K=a[0],Y={done:!1,value:K},isOutOfBounds=a=>void 0!==B&&a<B||void 0!==z&&a>z,nearestBoundary=a=>void 0===B?z:void 0===z?B:Math.abs(B-a)<Math.abs(z-a)?B:z,J=w*x,ee=K+J,et=void 0===V?ee:V(ee);et!==ee&&(J=et-K);let calcDelta=a=>-J*Math.exp(-a/A),calcLatest=a=>et+calcDelta(a),applyFriction=a=>{let x=calcDelta(a),w=calcLatest(a);Y.done=Math.abs(x)<=G,Y.value=Y.done?et:w},checkCatchBoundary=a=>{isOutOfBounds(Y.value)&&(W=a,Z=spring({keyframes:[Y.value,nearestBoundary(Y.value)],velocity:calcGeneratorVelocity(calcLatest,a,Y.value),damping:k,stiffness:F,restDelta:G,restSpeed:$}))};return checkCatchBoundary(0),{calculatedDuration:null,next:a=>{let x=!1;return(Z||void 0!==W||(x=!0,applyFriction(a),checkCatchBoundary(a)),void 0!==W&&a>W)?Z.next(a-W):(x||applyFriction(a),Y)}}}let frameloopDriver=a=>{let passTimestamp=({timestamp:x})=>a(x);return{start:()=>ek.Wi.update(passTimestamp,!0),stop:()=>(0,ek.Pn)(passTimestamp),now:()=>ek.frameData.isProcessing?ek.frameData.timestamp:performance.now()}};function calcGeneratorDuration(a){let x=0,w=a.next(x);for(;!w.done&&x<2e4;)x+=50,w=a.next(x);return x>=2e4?1/0:x}let tt={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};
69function animateValue({autoplay:a=!0,delay:x=0,driver:w=frameloopDriver,keyframes:A,type:k="keyframes",repeat:F=0,repeatDelay:V=0,repeatType:B="loop",onPlay:z,onStop:G,onComplete:$,onUpdate:W,...Z}){let K,Y,J,ee,et,er=1,en=!1,updateFinishedPromise=()=>{Y=new Promise(a=>{K=a})};updateFinishedPromise();let ei=tt[k]||keyframes;ei!==keyframes&&"number"!=typeof A[0]&&(ee=interpolate([0,100],A,{clamp:!1}),A=[0,100]);let eo=ei({...Z,keyframes:A});"mirror"===B&&(et=ei({...Z,keyframes:[...A].reverse(),velocity:-(Z.velocity||0)}));let ea="idle",es=null,el=null,eu=null;null===eo.calculatedDuration&&F&&(eo.calculatedDuration=calcGeneratorDuration(eo));let{calculatedDuration:ec}=eo,ed=1/0,ef=1/0;null!==ec&&(ef=(ed=ec+V)*(F+1)-V);let ep=0,tick=a=>{if(null===el)return;er>0&&(el=Math.min(el,a)),er<0&&(el=Math.min(a-ef/er,el)),ep=null!==es?es:Math.round(a-el)*er;let w=ep-x*(er>=0?1:-1),k=er>=0?w<0:w>ef;ep=Math.max(w,0),"finished"===ea&&null===es&&(ep=ef);let z=ep,G=eo;if(F){let a=ep/ed,x=Math.floor(a),w=a%1;!w&&a>=1&&(w=1),1===w&&x--,x=Math.min(x,F+1);let A=!!(x%2);A&&("reverse"===B?(w=1-w,V&&(w-=V/ed)):"mirror"===B&&(G=et));let k=clamp(0,1,w);ep>ef&&(k="reverse"===B&&A?1:0),z=k*ed}let $=k?{done:!1,value:A[0]}:G.next(z);ee&&($.value=ee($.value));let{done:Z}=$;k||null===ec||(Z=er>=0?ep>=ef:ep<=0);let K=null===es&&("finished"===ea||"running"===ea&&Z);return W&&W($.value),K&&finish(),$},stopAnimationDriver=()=>{J&&J.stop(),J=void 0},cancel=()=>{ea="idle",stopAnimationDriver(),K(),updateFinishedPromise(),el=eu=null},finish=()=>{ea="finished",$&&$(),stopAnimationDriver(),K()},play=()=>{if(en)return;J||(J=w(tick));let a=J.now();z&&z(),null!==es?el=a-es:el&&"finished"!==ea||(el=a),"finished"===ea&&updateFinishedPromise(),eu=el,es=null,ea="running",J.start()};a&&play();let eh={then:(a,x)=>Y.then(a,x),get time(){return millisecondsToSeconds(ep)},set time(newTime){ep=newTime=secondsToMilliseconds(newTime),null===es&&J&&0!==er?el=J.now()-newTime/er:es=newTime},get duration(){let a=null===eo.calculatedDuration?calcGeneratorDuration(eo):eo.calculatedDuration;return millisecondsToSeconds(a)},get speed(){return er},set speed(newSpeed){if(newSpeed===er||!J)return;er=newSpeed,eh.time=millisecondsToSeconds(ep)},get state(){return ea},play,pause:()=>{ea="paused",es=ep},stop:()=>{en=!0,"idle"!==ea&&(ea="idle",G&&G(),cancel())},cancel:()=>{null!==eu&&tick(eu),cancel()},complete:()=>{ea="finished"},sample:a=>(el=0,tick(a))};return eh}let tr=(F=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===A&&(A=F()),A)),tn=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),requiresPregeneratedKeyframes=(a,x)=>"spring"===x.type||"backgroundColor"===a||!function isWaapiSupportedEasing(a){return!!(!a||"string"==typeof a&&ez[a]||isBezierDefinition(a)||Array.isArray(a)&&a.every(isWaapiSupportedEasing))}(x.ease),ti={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=a=>({type:"spring",stiffness:550,damping:0===a?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},ta={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(a,{keyframes:x})=>x.length>2?to:es.has(a)?a.startsWith("scale")?criticallyDampedSpring(x[1]):ti:ta,isAnimatable=(a,x)=>"zIndex"!==a&&!!("number"==typeof x||Array.isArray(x)||"string"==typeof x&&(e7.test(x)||"0"===x)&&!x.startsWith("url(")),ts=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(a){let[x,w]=a.slice(0,-1).split("(");if("drop-shadow"===x)return a;let[A]=w.match(em)||[];if(!A)return a;let k=w.replace(A,""),F=ts.has(x)?1:0;return A!==w&&(F*=100),x+"("+F+k+")"}let tl=/([a-z-]*)\(.*?\)/g,tu={...e7,getAnimatableNone:a=>{let x=a.match(tl);return x?x.map(applyDefaultFilter).join(" "):a}},tc={...eA,color:e5,backgroundColor:e5,outlineColor:e5,fill:e5,stroke:e5,borderColor:e5,borderTopColor:e5,borderRightColor:e5,borderBottomColor:e5,borderLeftColor:e5,filter:tu,WebkitFilter:tu},getDefaultValueType=a=>tc[a];function animatable_none_getAnimatableNone(a,x){let w=getDefaultValueType(a);return w!==tu&&(w=e7),w.getAnimatableNone?w.getAnimatableNone(x):void 0}let isZeroValueString=a=>/^0[^.\s]+$/.test(a);function getValueTransition(a,x){return a[x]||a.default||a}let animateMotionValue=(a,x,w,A={})=>k=>{let F=getValueTransition(A,a)||{},V=F.delay||A.delay||0,{elapsed:B=0}=A;B-=secondsToMilliseconds(V);let z=function(a,x,w,A){let k,F;let V=isAnimatable(x,w);k=Array.isArray(w)?[...w]:[null,w];let B=void 0!==A.from?A.from:a.get(),z=[];for(let a=0;a<k.length;a++){var G;null===k[a]&&(k[a]=0===a?B:k[a-1]),("number"==typeof(G=k[a])?0===G:null!==G?"none"===G||"0"===G||isZeroValueString(G):void 0)&&z.push(a),"string"==typeof k[a]&&"none"!==k[a]&&"0"!==k[a]&&(F=k[a])}if(V&&z.length&&F)for(let a=0;a<z.length;a++){let w=z[a];k[w]=animatable_none_getAnimatableNone(x,F)}return k}(x,a,w,F),G=z[0],$=z[z.length-1],W=isAnimatable(a,G),Z=isAnimatable(a,$);(0,eB.K)(W===Z,`You are trying to animate ${a} from "${G}" to "${$}". ${G} is not an animatable value - to enable this animation set ${G} to a value animatable to ${$} via the \`style\` property.`);let K={keyframes:z,velocity:x.getVelocity(),ease:"easeOut",...F,delay:-B,onUpdate:a=>{x.set(a),F.onUpdate&&F.onUpdate(a)},onComplete:()=>{k(),F.onComplete&&F.onComplete()}};if(!function({when:a,delay:x,delayChildren:w,staggerChildren:A,staggerDirection:k,repeat:F,repeatType:V,repeatDelay:B,from:z,elapsed:G,...$}){return!!Object.keys($).length}(F)&&(K={...K,...getDefaultTransition(a,K)}),K.duration&&(K.duration=secondsToMilliseconds(K.duration)),K.repeatDelay&&(K.repeatDelay=secondsToMilliseconds(K.repeatDelay)),!W||!Z||eq.current||!1===F.type)return function({keyframes:a,delay:x,onUpdate:w,onComplete:A}){let setValue=()=>(w&&w(a[a.length-1]),A&&A(),{time:0,speed:1,duration:0,play:eL.Z,pause:eL.Z,stop:eL.Z,then:a=>(a(),Promise.resolve()),cancel:eL.Z,complete:eL.Z});return x?animateValue({keyframes:[0,1],duration:0,delay:x,onComplete:setValue}):setValue()}(eq.current?{...K,delay:0}:K);if(x.owner&&x.owner.current instanceof HTMLElement&&!x.owner.getProps().onUp
69date){let w=function(a,x,{onUpdate:w,onComplete:A,...k}){let F,V;let B=tr()&&tn.has(x)&&!k.repeatDelay&&"mirror"!==k.repeatType&&0!==k.damping&&"inertia"!==k.type;if(!B)return!1;let z=!1,updateFinishedPromise=()=>{V=new Promise(a=>{F=a})};updateFinishedPromise();let{keyframes:G,duration:$=300,ease:W,times:Z}=k;if(requiresPregeneratedKeyframes(x,k)){let a=animateValue({...k,repeat:0,delay:0}),x={done:!1,value:G[0]},w=[],A=0;for(;!x.done&&A<2e4;)x=a.sample(A),w.push(x.value),A+=10;Z=void 0,G=w,$=A-10,W="linear"}let K=function(a,x,w,{delay:A=0,duration:k,repeat:F=0,repeatType:V="loop",ease:B,times:z}={}){let G={[x]:w};z&&(G.offset=z);let $=function mapEasingToNativeEasing(a){if(a)return isBezierDefinition(a)?cubicBezierAsString(a):Array.isArray(a)?a.map(mapEasingToNativeEasing):ez[a]}(B);return Array.isArray($)&&(G.easing=$),a.animate(G,{delay:A,duration:k,easing:Array.isArray($)?"linear":$,fill:"both",iterations:F+1,direction:"reverse"===V?"alternate":"normal"})}(a.owner.current,x,G,{...k,duration:$,ease:W,times:Z});k.syncStart&&(K.startTime=ek.frameData.isProcessing?ek.frameData.timestamp:document.timeline?document.timeline.currentTime:performance.now());let cancelAnimation=()=>K.cancel(),safeCancel=()=>{ek.Wi.update(cancelAnimation),F(),updateFinishedPromise()};return K.onfinish=()=>{a.set(function(a,{repeat:x,repeatType:w="loop"}){let A=x&&"loop"!==w&&x%2==1?0:a.length-1;return a[A]}(G,k)),A&&A(),safeCancel()},{then:(a,x)=>V.then(a,x),attachTimeline:a=>(K.timeline=a,K.onfinish=null,eL.Z),get time(){return millisecondsToSeconds(K.currentTime||0)},set time(newTime){K.currentTime=secondsToMilliseconds(newTime)},get speed(){return K.playbackRate},set speed(newSpeed){K.playbackRate=newSpeed},get duration(){return millisecondsToSeconds($)},play:()=>{z||(K.play(),(0,ek.Pn)(cancelAnimation))},pause:()=>K.pause(),stop:()=>{if(z=!0,"idle"===K.playState)return;let{currentTime:x}=K;if(x){let w=animateValue({...k,autoplay:!1});a.setWithVelocity(w.sample(x-10).value,w.sample(x).value,10)}safeCancel()},complete:()=>K.finish(),cancel:safeCancel}}(x,a,K);if(w)return w}return animateValue(K)};function isWillChangeMotionValue(a){return!!(isMotionValue(a)&&a.add
69)}let isNumericalString=a=>/^\-?\d*\.?\d+$/.test(a);function addUniqueItem(a,x){-1===a.indexOf(x)&&a.push(x)}function removeItem(a,x){let w=a.indexOf(x);w>-1&&a.splice(w,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(a){return addUniqueItem(this.subscriptions,a),()=>removeItem(this.subscriptions,a)}notify(a,x,w){let A=this.subscriptions.length;if(A){if(1===A)this.subscriptions[0](a,x,w);else for(let k=0;k<A;k++){let A=this.subscriptions[k];A&&A(a,x,w)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};let isFloat=a=>!isNaN(parseFloat(a)),td={current:void 0};let MotionValue=class MotionValue{constructor(a,x={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(a,x=!0)=>{this.prev=this.current,this.current=a;let{delta:w,timestamp:A}=ek.frameData;this.lastUpdated!==A&&(this.timeDelta=w,this.lastUpdated=A,ek.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),x&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ek.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:a})=>{a!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=a,this.canTrackVelocity=isFloat(this.current),this.owner=x.owner}onChange(a){return this.on("change",a)}on(a,x){this.events[a]||(this.events[a]=new SubscriptionManager);let w=this.events[a].add(x);return"change"===a?()=>{w(),ek.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:w}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,x){this.passiveEffect=a,this.stopPassiveEffect=x}set(a,x=!0){x&&this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a,x)}setWithVelocity(a,x,w){this.set(x),this.prev=a,this.timeDelta=w}jump(a){this.updateAndNotify(a),this.prev=a,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return td.current&&td.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var a,x;return this.canTrackVelocity?(a=parseFloat(this.current)-parseFloat(this.prev),(x=this.timeDelta)?a*(1e3/x):0):0}start(a){return this.stop(),new Promise(x=>{this.hasAnimated=!0,this.animation=a(x),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(a,x){return new MotionValue(a,x)}let testValueType=a=>x=>x.test(a),tf=[ef,e_,eb,ey,ew,ex,{test:a=>"auto"===a,parse:a=>a}],findDimensionValueType=a=>tf.find(testValueType(a)),tp=[...tf,e5,e7],findValueType=a=>tp.find(testValueType(a));function animateTarget(a,x,{delay:w=0,transitionOverride:A,type:k}={}){let{transition:F=a.getDefaultTransition(),transitionEnd:V,...B}=a.makeTargetAnimatable(x),z=a.getValue("willChange");A&&(F=A);let G=[],$=k&&a.animationState&&a.animationState.getState()[k];for(let x in B){let A=a.getValue(x),k=B[x];if(!A||void 0===k||$&&function({protectedKeys:a,needsAnimating:x},w){let A=a.hasOwnProperty(w)&&!0!==x[w];return x[w]=!1,A}($,x))continue;let V={delay:w,elapsed:0,...F};if(window.HandoffAppearAnimations&&!A.hasAnimated){let w=a.getProps()[eU];w&&(V.elapsed=window.HandoffAppearAnimations(w,x,A,ek.Wi),V.syncStart=!0)}A.start(animateMotionValue(x,A,k,a.shouldReduceMotion&&es.has(x)?{type:!1}:V));let W=A.animation;isWillChangeMotionValue(z)&&(z.add(x),W.then(()=>z.remove(x))),G.push(W)}return V&&Promise.all(G).then(()=>{V&&function(a,x){let w=resolveVariant(a,x),{transitionEnd:A={},transition:k={},...F}=w?a.makeTargetAnimatable(w,!1):{};for(let x in F={...F,...A}){let w=resolveFinalValueInKeyframes(F[x]);a.hasValue(x)?a.getValue(x).set(w):a.addValue(x,motionValue(w))}}(a,V)}),G}function animateVariant(a,x,w={}){let A=resolveVariant(a,x,w.custom),{transition:k=a.getDefaultTransition()||{}}=A||{};w.transitionOverride&&(k=w.transitionOverride);let F=A?()=>Promise.all(animateTarget(a,A,w)):()=>Promise.resolve(),V=a.variantChildren&&a.variantChildren.size?(A=0)=>{let{delayChildren:F=0,staggerChildren:V,staggerDirection:B}=k;return function(a,x,w=0,A=0,k=1,F){let V=[],B=(a.variantChildren.size-1)*A,z=1===k?(a=0)=>a*A:(a=0)=>B-a*A;return Array.from(a.variantChildren).sort(sortByTreeOrder).forEach((a,A)=>{a.notify("AnimationStart",x),V.push(animateVariant(a,x,{...F,delay:w+z(A)}).then(()=>a.notify("AnimationComplete",x)))}),Promise.all(V)}(a,x,F+A,V,B,w)}:()=>Promise.resolve(),{when:B}=k;if(!B)return Promise.all([F(),V(w.delay)]);{let[a,x]="beforeChildren"===B?[F,V]:[V,F];return a().then(()=>x())}}function sortByTreeOrder(a,x){return a.sortNodePosition(x)}let th=[...Z].reverse(),tm=Z.length;function createTypeState(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let tg=0,distance=(a,x)=>Math.abs(a-x);let PanSession=class PanSession{constructor(a,x,{transformPagePoint:w}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=getPanInfo(this.lastMoveEventInfo,this.history),x=null!==this.startEvent,w=function(a,x){let w=distance(a.x,x.x),A=distance(a.y,x.y);return Math.sqrt(w**2+A**2)}(a.offset,{x:0,y:0})>=3;if(!x&&!w)return;let{point:A}=a,{timestamp:k}=ek.frameData;this.history.push({...A,timestamp:k});let{onStart:F,onMove:V}=this.handlers;x||(F&&F(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,a)},this.handlePointerMove=(a,x)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=transformPoint(x,this.transformPagePoint),ek.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(a,x)=>
69{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:w,onSessionEnd:A}=this.handlers,k=getPanInfo("pointercancel"===a.type?this.lastMoveEventInfo:transformPoint(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(a,k),A&&A(a,k)},!isPrimaryPointer(a))return;this.handlers=x,this.transformPagePoint=w;let A=extractEventInfo(a),k=transformPoint(A,this.transformPagePoint),{point:F}=k,{timestamp:V}=ek.frameData;this.history=[{...F,timestamp:V}];let{onSessionStart:B}=x;B&&B(a,getPanInfo(k,this.history)),this.removeListeners=pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),(0,ek.Pn)(this.updatePoint)}};function transformPoint(a,x){return x?{point:x(a.point)}:a}function subtractPoint(a,x){return{x:a.x-x.x,y:a.y-x.y}}function getPanInfo({point:a},x){return{point:a,delta:subtractPoint(a,lastDevicePoint(x)),offset:subtractPoint(a,x[0]),velocity:function(a,x){if(a.length<2)return{x:0,y:0};let w=a.length-1,A=null,k=lastDevicePoint(a);for(;w>=0&&(A=a[w],!(k.timestamp-A.timestamp>secondsToMilliseconds(.1)));)w--;if(!A)return{x:0,y:0};let F=millisecondsToSeconds(k.timestamp-A.timestamp);if(0===F)return{x:0,y:0};let V={x:(k.x-A.x)/F,y:(k.y-A.y)/F};return V.x===1/0&&(V.x=0),V.y===1/0&&(V.y=0),V}(x,0)}}function lastDevicePoint(a){return a[a.length-1]}function calcLength(a){return a.max-a.min}function isNear(a,x=0,w=.01){return Math.abs(a-x)<=w}function calcAxisDelta(a,x,w,A=.5){a.origin=A,a.originPoint=mix(x.min,x.max,a.origin),a.scale=calcLength(w)/calcLength(x),(isNear(a.scale,1,1e-4)||isNaN(a.scale))&&(a.scale=1),a.translate=mix(w.min,w.max,a.origin)-a.originPoint,(isNear(a.translate)||isNaN(a.translate))&&(a.translate=0)}function calcBoxDelta(a,x,w,A){calcAxisDelta(a.x,x.x,w.x,A?A.originX:void 0),calcAxisDelta(a.y,x.y,w.y,A?A.originY:void 0)}function calcRelativeAxis(a,x,w){a.min=w.min+x.min,a.max=a.min+calcLength(x)}function calcRelativeAxisPosition(a,x,w){a.min=x.min-w.min,a.max=a.min+calcLength(x)}function calcRelativePosition(a,x,w){calcRelativeAxisPosition(a.x,x.x,w.x),calcRelativeAxisPosition(a.y,x.y,w.y)}function calcRelativeAxisConstraints(a,x,w){return{min:void 0!==x?a.min+x:void 0,max:void 0!==w?a.max+w-(a.max-a.min):void 0}}function calcViewportAxisConstraints(a,x){let w=x.min-a.min,A=x.max-a.max;return x.max-x.min<a.max-a.min&&([w,A]=[A,w]),{min:w,max:A}}function resolveAxisElastic(a,x,w){return{min:resolvePointElastic(a,x),max:resolvePointElastic(a,w)}}function resolvePointElastic(a,x){return"number"==typeof a?a:a[x]||0}let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(a){return[a("x"),a("y")]}function convertBoundingBoxToBox({top:a,left:x,right:w,bottom:A}){return{x:{min:x,max:w},y:{min:a,max:A}}}function isIdentityScale(a){return void 0===a||1===a}function hasScale({scale:a,scaleX:x,scaleY:w}){return!isIdentityScale(a)||!isIdentityScale(x)||!isIdentityScale(w)}function hasTransform(a){return hasScale(a)||has2DTranslate(a)||a.z||a.rotate||a.rotateX||a.rotateY}function has2DTranslate(a){var x,w;return(x=a.x)&&"0%"!==x||(w=a.y)&&"0%"!==w}function applyPointDelta(a,x,w,A,k){return void 0!==k&&(a=A+k*(a-A)),A+w*(a-A)+x}function applyAxisDelta(a,x=0,w=1,A,k){a.min=applyPointDelta(a.min,x,w,A,k),a.max=applyPointDelta(a.max,x,w,A,k)}function applyBoxDelta(a,{x,y:w}){applyAxisDelta(a.x,x.translate,x.scale,x.originPoint),applyAxisDelta(a.y,w.translate,w.scale,w.originPoint)}function snapToDefault(a){return Number.isInteger(a)?a:a>1.0000000000001||a<.999999999999?a:1}function translateAxis(a,x){a.min=a.min+x,a.max=a.max+x}function transformAxis(a,x,[w,A,k]){let F=void 0!==x[k]?x[k]:.5,V=mix(a.min,a.max,F);applyAxisDelta(a,x[w],x[A],V,x.scale)}let tv=["x","scaleX","originX"],ty=["y","scaleY","originY"];function transformBox(a,x){transformAxis(a.x,x,tv),transformAxis(a.y,x,ty)}function measureViewportBox(a,x){return convertBoundingBoxToBox(function(a,x){if(!x)return a;let w=x({x:a.left,y:a.top}),A=x({x:a.right,y:a.bottom});return{top:w.y,left:w.x,bottom:A.y,right:A.x}}(a.getBoundingClientRect(),x))}let tb=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(a){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=a}start(a,{snapToCursor:x=!1}={}){let{presenceContext:w}=this.visualElement;w&&!1===w.isPresent||(this.panSession=new PanSession(a,{onSessionStart:a=>{this.stopAnimation(),x&&this.snapToCursor(extractEventInfo(a,"page").point)},onStart:(a,x)=>{let{drag:w,dragPropagation:A,onDragStart:k}=this.getProps();if(w&&!A&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(w),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(a=>{let x=this.getAxisMotionValue(a).get()||0;if(eb.test(x)){let{projection:w}=this.visualElement;if(w&&w.layout){let A=w.layout.layoutBox[a];if(A){let a=calcLength(A);x=a*(parseFloat(x)/100)}}}
69this.originPoint[a]=x}),k&&ek.Wi.update(()=>k(a,x),!1,!0);let{animationState:F}=this.visualElement;F&&F.setActive("whileDrag",!0)},onMove:(a,x)=>{let{dragPropagation:w,dragDirectionLock:A,onDirectionLock:k,onDrag:F}=this.getProps();if(!w&&!this.openGlobalLock)return;let{offset:V}=x;if(A&&null===this.currentDirection){this.currentDirection=function(a,x=10){let w=null;return Math.abs(a.y)>x?w="y":Math.abs(a.x)>x&&(w="x"),w}(V),null!==this.currentDirection&&k&&k(this.currentDirection);return}this.updateAxis("x",x.point,V),this.updateAxis("y",x.point,V),this.visualElement.render(),F&&F(a,x)},onSessionEnd:(a,x)=>this.stop(a,x)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(a,x){let w=this.isDragging;if(this.cancel(),!w)return;let{velocity:A}=x;this.startAnimation(A);let{onDragEnd:k}=this.getProps();k&&ek.Wi.update(()=>k(a,x))}cancel(){this.isDragging=!1;let{projection:a,animationState:x}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:w}=this.getProps();!w&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),x&&x.setActive("whileDrag",!1)}updateAxis(a,x,w){let{drag:A}=this.getProps();if(!w||!shouldDrag(a,A,this.currentDirection))return;let k=this.getAxisMotionValue(a),F=this.originPoint[a]+w[a];this.constraints&&this.constraints[a]&&(F=function(a,{min:x,max:w},A){return void 0!==x&&a<x?a=A?mix(x,a,A.min):Math.max(a,x):void 0!==w&&a>w&&(a=A?mix(w,a,A.max):Math.min(a,w)),a}(F,this.constraints[a],this.elastic[a])),k.set(F)}resolveConstraints(){let{dragConstraints:a,dragElastic:x}=this.getProps(),{layout:w}=this.visualElement.projection||{},A=this.constraints;a&&isRefObject(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&w?this.constraints=function(a,{top:x,left:w,bottom:A,right:k}){return{x:calcRelativeAxisConstraints(a.x,w,k),y:calcRelativeAxisConstraints(a.y,x,A)}}(w.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:resolveAxisElastic(a,"left","right"),y:resolveAxisElastic(a,"top","bottom")}}(x),A!==this.constraints&&w&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=function(a,x){let w={};return void 0!==x.min&&(w.min=x.min-a.min),void 0!==x.max&&(w.max=x.max-a.min),w}(w.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){var a;let{dragConstraints:x,onMeasureDragConstraints:w}=this.getProps();if(!x||!isRefObject(x))return!1;let A=x.current;(0,eB.k)(null!==A,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:k}=this.visualElement;if(!k||!k.layout)return!1;let F=function(a,x,w){let A=measureViewportBox(a,w),{scroll:k}=x;return k&&(translateAxis(A.x,k.offset.x),translateAxis(A.y,k.offset.y)),A}(A,k.root,this.visualElement.getTransformPagePoint()),V={x:calcViewportAxisConstraints((a=k.layout.layoutBox).x,F.x),y:calcViewportAxisConstraints(a.y,F.y)};if(w){let a=w(function({x:a,y:x}){return{top:x.min,right:a.max,bottom:x.max,left:a.min}}(V));this.hasMutatedConstraints=!!a,a&&(V=convertBoundingBoxToBox(a))}return V}startAnimation(a){let{drag:x,dragMomentum:w,dragElastic:A,dragTransition:k,dragSnapToOrigin:F,onDragTransitionEnd:V}=this.getProps(),B=this.constraints||{},z=eachAxis(V=>{if(!shouldDrag(V,x,this.currentDirection))return;let z=B&&B[V]||{};F&&(z={min:0,max:0});let G={type:"inertia",velocity:w?a[V]:0,bounceStiffness:A?200:1e6,bounceDamping:A?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...k,...z};return this.startAxisValueAnimation(V,G)});return Promise.all(z).then(V)}startAxisValueAnimation(a,x){let w=this.getAxisMotionValue(a);return w.start(animateMotionValue(a,w,0,x))}stopAnimation(){eachAxis(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let x="_drag"+a.toUpperCase(),w=this.visualElement.getProps(),A=w[x];return A||this.visualElement.getValue(a,(w.initial?w.initial[a]:void 0)||0)}snapToCursor(a){eachAxis(x=>{let{drag:w}=this.getProps();if(!shouldDrag(x,w,this.currentDirection))return;let{projection:A}=this.visualElement,k=this.getAxisMotionValue(x);if(A&&A.layout){let{min:w,max:F}=A.layout.layoutBox[x];k.set(a[x]-mix(w,F,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:x}=this.getProps(),{projection:w}=this.visualElement;if(!isRefObject(x)||!w||!this.constraints)return;this.stopAnimation();let A={x:0,y:0};eachAxis(a=>{let x=this.getAxisMotionValue(a);if(x){let w=x.get();A[a]=function(a,x){let w=.5,A=calcLength(a),k=calcLength(x);return k>A?w=progress(x.min,x.max-A,a.min):A>k&&(w=progress(a.min,a.max-k,x.min)),clamp(0,1,w)}({min:w,max:w},this.constraints[a])}});let{transformTemplate:k}=this.visualElement.getProps();this.visualElement.current.style.transform=k?k({},""):"none",w.root&&w.root.updateScroll(),w.updateLayout(),this.resolveConstraints(),eachAxis(x=>{if(!shouldDrag(x,a,null))return;let w=this.getAxisMotionValue(x),{min:k,max:F}=this.constraints[x];w.set(mix(k,F,A[x]))})}addListeners(){if(!this.visualElement.current)return;tb.set(this.visualElement,this);let a=this.visualElement.current,x=addPointerEvent(a,"pointerdown",a=>{let{drag:x,dragListener:w=!0}=this.getProps();x&&w&&this.start(a)}),measureDragConstraints=()=>{let{dragConstraints:a}=this.getProps();isRefObject(a)&&(this.constraints=this.resolveRefConstraints())},{projection:w}=this.visualElement,A=w.addEventListener("measure",measureDragConstraints);w&&!w.layout&&(w.root&&w.root.updateScroll(),w.updateLayout()),measureDragConstraints();
69let k=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),F=w.addEventListener("didUpdate",({delta:a,hasLayoutChanged:x})=>{this.isDragging&&x&&(eachAxis(x=>{let w=this.getAxisMotionValue(x);w&&(this.originPoint[x]+=a[x].translate,w.set(w.get()+a[x].translate))}),this.visualElement.render())});return()=>{k(),x(),A(),F&&F()}}getProps(){let a=this.visualElement.getProps(),{drag:x=!1,dragDirectionLock:w=!1,dragPropagation:A=!1,dragConstraints:k=!1,dragElastic:F=.35,dragMomentum:V=!0}=a;return{...a,drag:x,dragDirectionLock:w,dragPropagation:A,dragConstraints:k,dragElastic:F,dragMomentum:V}}};function shouldDrag(a,x,w){return(!0===x||x===a)&&(null===w||w===a)}let asyncHandler=a=>(x,w)=>{a&&ek.Wi.update(()=>a(x,w))},t_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(a,x){return x.max===x.min?0:a/(x.max-x.min)*100}let tx={correct:(a,x)=>{if(!x.target)return a;if("string"==typeof a){if(!e_.test(a))return a;a=parseFloat(a)}let w=pixelsToPercent(a,x.target.x),A=pixelsToPercent(a,x.target.y);return`${w}% ${A}%`}};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends V.Component{componentDidMount(){let{visualElement:a,layoutGroup:x,switchLayoutGroup:w,layoutId:A}=this.props,{projection:k}=a;Object.assign(eo,tw),k&&(x.group&&x.group.add(k),w&&w.register&&A&&w.register(k),k.root.didUpdate(),k.addEventListener("animationComplete",()=>{this.safeToRemove()}),k.setOptions({...k.options,onExitComplete:()=>this.safeToRemove()})),t_.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:x,visualElement:w,drag:A,isPresent:k}=this.props,F=w.projection;return F&&(F.isPresent=k,A||a.layoutDependency!==x||void 0===x?F.willUpdate():this.safeToRemove(),a.isPresent===k||(k?F.promote():F.relegate()||ek.Wi.postRender(()=>{let a=F.getStack();a&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),queueMicrotask(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:x,switchLayoutGroup:w}=this.props,{projection:A}=a;A&&(A.scheduleCheckAfterUnmount(),x&&x.group&&x.group.remove(A),w&&w.deregister&&w.deregister(A))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}};function MeasureLayout(a){let[x,w]=function(){let a=(0,V.useContext)(G.O);if(null===a)return[!0,null];let{isPresent:x,onExitComplete:w,register:A}=a,k=(0,V.useId)();return(0,V.useEffect)(()=>A(k),[]),!x&&w?[!1,()=>w&&w(k)]:[!0]}(),A=(0,V.useContext)(et.p);return V.createElement(MeasureLayoutWithContext,{...a,layoutGroup:A,switchLayoutGroup:(0,V.useContext)(er),isPresent:x,safeToRemove:w})}let tw={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(a,{treeScale:x,projectionDelta:w})=>{let A=e7.parse(a);if(A.length>5)return a;let k=e7.createTransformer(a),F="number"!=typeof A[0]?1:0,V=w.x.scale*x.x,B=w.y.scale*x.y;A[0+F]/=V,A[1+F]/=B;let z=mix(V,B,.5);return"number"==typeof A[2+F]&&(A[2+F]/=z),"number"==typeof A[3+F]&&(A[3+F]/=z),k(A)}}},tS=["TopLeft","TopRight","BottomLeft","BottomRight"],tE=tS.length,asNumber=a=>"string"==typeof a?parseFloat(a):a,isPx=a=>"number"==typeof a||e_.test(a);function getRadius(a,x){return void 0!==a[x]?a[x]:a.borderRadius}let tA=compress(0,.5,eW),tC=compress(.5,.95,eL.Z);function compress(a,x,w){return A=>A<a?0:A>x?1:w(progress(a,x,A))}function copyAxisInto(a,x){a.min=x.min,a.max=x.max}function copyBoxInto(a,x){copyAxisInto(a.x,x.x),copyAxisInto(a.y,x.y)}function removePointDelta(a,x,w,A,k){return a-=x,a=A+1/w*(a-A),void 0!==k&&(a=A+1/k*(a-A)),a}function removeAxisTransforms(a,x,[w,A,k],F,V){!function(a,x=0,w=1,A=.5,k,F=a,V=a){if(eb.test(x)){x=parseFloat(x);let a=mix(V.min,V.max,x/100);x=a-V.min}if("number"!=typeof x)return;let B=mix(F.min,F.max,A);a===F&&(B-=x),a.min=removePointDelta(a.min,x,w,B,k),a.max=removePointDelta(a.max,x,w,B,k)}(a,x[w],x[A],x[k],x.scale,F,V)}let tT=["x","scaleX","originX"],tO=["y","scaleY","originY"];function removeBoxTransforms(a,x,w,A){removeAxisTransforms(a.x,x,tT,w?w.x:void 0,A?A.x:void 0),removeAxisTransforms(a.y,x,tO,w?w.y:void 0,A?A.y:void 0)}function isAxisDeltaZero(a){return 0===a.translate&&1===a.scale}function isDeltaZero(a){return isAxisDeltaZero(a.x)&&isAxisDeltaZero(a.y)}function boxEqualsRounded(a,x){return Math.round(a.x.min)===Math.round(x.x.min)&&Math.round(a.x.max)===Math.round(x.x.max)&&Math.round(a.y.min)===Math.round(x.y.min)&&Math.round(a.y.max)===Math.round(x.y.max)}function aspectRatio(a){return calcLength(a.x)/calcLength(a.y)}let NodeStack=class NodeStack{constructor(){this.members=[]}add(a){addUniqueItem(this.members,a),a.scheduleRender()}remove(a){if(removeItem(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){let x;let w=this.members.findIndex(x=>a===x);if(0===w)return!1;for(let a=w;a>=0;a--){let w=this.members[a];if(!1!==w.isPresent){x=w;break}}return!!x&&(this.promote(x),!0)}promote(a,x){let w=this.lead;if(a!==w&&(this.prevLead=w,this.lead=a,a.show(),w)){w.instance&&w.scheduleRender(),a.scheduleRender(),a.resumeFrom=w,x&&(a.resumeFrom.preserveOpacity=!0),w.snapshot&&(a.snapshot=w.snapshot,a.snapshot.latestValues=w.animationValues||w.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);let{crossfade:A}=a.options;!1===A&&w.hide()}}
69exitAnimationComplete(){this.members.forEach(a=>{let{options:x,resumingFrom:w}=a;x.onExitComplete&&x.onExitComplete(),w&&w.options.onExitComplete&&w.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function buildProjectionTransform(a,x,w){let A="",k=a.x.translate/x.x,F=a.y.translate/x.y;if((k||F)&&(A=`translate3d(${k}px, ${F}px, 0) `),(1!==x.x||1!==x.y)&&(A+=`scale(${1/x.x}, ${1/x.y}) `),w){let{rotate:a,rotateX:x,rotateY:k}=w;a&&(A+=`rotate(${a}deg) `),x&&(A+=`rotateX(${x}deg) `),k&&(A+=`rotateY(${k}deg) `)}let V=a.x.scale*x.x,B=a.y.scale*x.y;return(1!==V||1!==B)&&(A+=`scale(${V}, ${B})`),A||"none"}let compareByDepth=(a,x)=>a.depth-x.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(a){addUniqueItem(this.children,a),this.isDirty=!0}remove(a){removeItem(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(a)}};let tP=["","X","Y","Z"],tR=0,tk={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:a,defaultParent:x,measureScroll:w,checkIsScrollRoot:A,resetTransform:k}){return class{constructor(a={},w=null==x?void 0:x()){this.id=tR++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{tk.totalNodes=tk.resolvedTargetDeltas=tk.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(tk)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=w?w.root||w:this,this.path=w?[...w.path,w]:[],this.parent=w,this.depth=w?w.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(a,x){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new SubscriptionManager),this.eventHandlers.get(a).add(x)}notifyListeners(a,...x){let w=this.eventHandlers.get(a);w&&w.notify(...x)}hasListeners(a){return this.eventHandlers.has(a)}mount(x,w=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=x instanceof SVGElement&&"svg"!==x.tagName,this.instance=x;let{layoutId:A,layout:k,visualElement:F}=this.options;if(F&&!F.current&&F.mount(x),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),w&&(k||A)&&(this.isLayoutDirty=!0),a){let w;let resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;a(x,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=function(a,x){let w=performance.now(),checkElapsed=({timestamp:A})=>{let k=A-w;k>=x&&((0,ek.Pn)(checkElapsed),a(k-x))};return ek.Wi.read(checkElapsed,!0),()=>(0,ek.Pn)(checkElapsed)}(resizeUnblockUpdate,250),t_.hasAnimatedSinceResize&&(t_.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}A&&this.root.registerSharedNode(A,this),!1!==this.options.animate&&F&&(A||k)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:x,hasRelativeTargetChanged:w,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let k=this.options.transition||F.getDefaultTransition()||tN,{onLayoutAnimationStart:V,onLayoutAnimationComplete:B}=F.getProps(),z=!this.targetLayout||!boxEqualsRounded(this.targetLayout,A)||w,G=!x&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||x&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(a,G);let x={...getValueTransition(k,"layout"),onPlay:V,onComplete:B};(F.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else x||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,ek.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
69h(resetRotation),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let x=this.path[a];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}let{layoutId:x,layout:w}=this.options;if(void 0===x&&!w)return;let A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let a=this.isUpdateBlocked();if(a){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();let x=performance.now();ek.frameData.delta=clamp(0,1e3/60,x-ek.frameData.timestamp),ek.frameData.timestamp=x,ek.frameData.isProcessing=!0,ek.S6.update.process(ek.frameData),ek.S6.preRender.process(ek.frameData),ek.S6.render.process(ek.frameData),ek.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){ek.Wi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ek.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++){let x=this.path[a];x.updateScroll()}let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:x}=this.options;x&&x.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let x=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(x=!1),x&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:A(this.instance),offset:w(this.instance)})}resetTransform(){if(!k)return;let a=this.isLayoutDirty||this.shouldResetTransform,x=this.projectionDelta&&!isDeltaZero(this.projectionDelta),w=this.getTransformTemplate(),A=w?w(this.latestValues,""):void 0,F=A!==this.prevTransformTemplateValue;a&&(x||hasTransform(this.latestValues)||F)&&(k(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var x;let w=this.measurePageBox(),A=this.removeElementScroll(w);return a&&(A=this.removeTransform(A)),roundAxis((x=A).x),roundAxis(x.y),{animationId:this.root.animationId,measuredBox:w,layoutBox:A,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return createBox();let x=a.measureViewportBox(),{scroll:w}=this.root;return w&&(translateAxis(x.x,w.offset.x),translateAxis(x.y,w.offset.y)),x}removeElementScroll(a){let x=createBox();copyBoxInto(x,a);for(let w=0;w<this.path.length;w++){let A=this.path[w],{scroll:k,options:F}=A;if(A!==this.root&&k&&F.layoutScroll){if(k.isRoot){copyBoxInto(x,a);let{scroll:w}=this.root;w&&(translateAxis(x.x,-w.offset.x),translateAxis(x.y,-w.offset.y))}translateAxis(x.x,k.offset.x),translateAxis(x.y,k.offset.y)}}return x}applyTransform(a,x=!1){let w=createBox();copyBoxInto(w,a);for(let a=0;a<this.path.length;a++){let A=this.path[a];!x&&A.options.layoutScroll&&A.scroll&&A!==A.root&&transformBox(w,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),hasTransform(A.latestValues)&&transformBox(w,A.latestValues)}return hasTransform(this.latestValues)&&transformBox(w,this.latestValues),w}removeTransform(a){let x=createBox();copyBoxInto(x,a);for(let a=0;a<this.path.length;a++){let w=this.path[a];if(!w.instance||!hasTransform(w.latestValues))continue;hasScale(w.latestValues)&&w.updateSnapshot();let A=createBox(),k=w.measurePageBox();copyBoxInto(A,k),removeBoxTransforms(x,w.latestValues,w.snapshot?w.snapshot.layoutBox:void 0,A)}return hasTransform(this.latestValues)&&removeBoxTransforms(x,this.latestValues),x}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ek.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var x,w,A,k;let F=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=F.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=F.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=F.isSharedProjectionDirty);let V=!!this.resumingFrom||this!==F,B=!(a||V&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(x=this.parent)||void 0===x?void 0:x.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(B)return;let{layout:z,layoutId:G}=this.options;if(this.layout&&(z||G)){if(this.resolvedRelativeTargetAt=ek.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let a=this.getClosestProjectingParent();a&&a.layout&&1!==this.animationProgress?(this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,a.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),w=this.target,A=this.relativeTarget,k=this.relativeParent.target,calcRelativeAxis(w.x,A.x,k.x),calcRelativeAxis(w.y,A.y,k.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let a=this.getClosestProjectingParent();a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?(this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,a.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tk.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;let x=this.getLead(),w=!!this.resumingFrom||this!==x,A=!0;if((this.isProjectionDirty||(null===(a=this.parent)||void 0===a?void 0:a.isProjectionDirty))&&(A=!1),w&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(A=!1),this.resolvedRelativeTargetAt===ek.frameData.timestamp&&(A=!1),A)return;let{layout:k,layoutId:F}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(k||F))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let V=this.treeScale.x,B=this.treeScale.y;!function(a,x,w,A=!1){let k,F;let V=w.length;if(V){x.x=x.y=1;for(let B=0;B<V;B++){F=(k=w[B]).projectionDelta;let V=k.instance;(!V||!V.style||"contents"!==V.style.display)&&(A&&k.options.layoutScroll&&k.scroll&&k!==k.root&&transformBox(a,{x:-k.scroll.offset.x,y:-k.scroll.offset.y}),F&&(x.x*=F.x.scale,x.y*=F.y.scale,applyBoxDelta(a,F)),A&&hasTransform(k.latestValues)&&transformBox(a,k.latestValues))}x.x=snapToDefault(x.x),x.y=snapToDefault(x.y)}}(this.layoutCorrected,this.treeScale,this.path,w),x.layout&&!x.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(x.target=x.layout.layoutBox);let{target:z}=x;if(!z){this.projectionTransform&&(this.projectionDelta=createDelta(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta());let G=this.projectionTransform;calcBoxDelta(this.projectionDelta,this.layoutCorrected,z,this.latestValues),this.projectionTransform=buildProjectionTransform(this.projectionDelta,this.treeScale),(this.projectionTransform!==G||this.treeScale.x!==V||this.treeScale.y!==B)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",z)),tk.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,x=!1){let w;let A=this.snapshot,k=A?A.latestValues:{},F={...this.latestValues},V=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!x;let B=createBox(),z=A?A.source:void 0,G=this.layout?this.layout.source:void 0,$=z!==G,W=this.getStack(),Z=!W||W.members.length<=1,K=!!($&&!Z&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=x=>
69{let A=x/1e3;if(mixAxisDelta(V.x,a.x,A),mixAxisDelta(V.y,a.y,A),this.setTargetDelta(V),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var z,G,W,Y;calcRelativePosition(B,this.layout.layoutBox,this.relativeParent.layout.layoutBox),W=this.relativeTarget,Y=this.relativeTargetOrigin,mixAxis(W.x,Y.x,B.x,A),mixAxis(W.y,Y.y,B.y,A),w&&(z=this.relativeTarget,G=w,z.x.min===G.x.min&&z.x.max===G.x.max&&z.y.min===G.y.min&&z.y.max===G.y.max)&&(this.isProjectionDirty=!1),w||(w=createBox()),copyBoxInto(w,this.relativeTarget)}$&&(this.animationValues=F,function(a,x,w,A,k,F){k?(a.opacity=mix(0,void 0!==w.opacity?w.opacity:1,tA(A)),a.opacityExit=mix(void 0!==x.opacity?x.opacity:1,0,tC(A))):F&&(a.opacity=mix(void 0!==x.opacity?x.opacity:1,void 0!==w.opacity?w.opacity:1,A));for(let k=0;k<tE;k++){let F=`border${tS[k]}Radius`,V=getRadius(x,F),B=getRadius(w,F);if(void 0===V&&void 0===B)continue;V||(V=0),B||(B=0);let z=0===V||0===B||isPx(V)===isPx(B);z?(a[F]=Math.max(mix(asNumber(V),asNumber(B),A),0),(eb.test(B)||eb.test(V))&&(a[F]+="%")):a[F]=B}(x.rotate||w.rotate)&&(a.rotate=mix(x.rotate||0,w.rotate||0,A))}(F,k,this.latestValues,A,K,Z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,ek.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ek.Wi.update(()=>{t_.hasAnimatedSinceResize=!0,this.currentAnimation=function(a,x,w){let A=isMotionValue(a)?a:motionValue(a);return A.start(animateMotionValue("",A,1e3,w)),A.animation}(0,0,{...a,onUpdate:x=>{this.mixTargetDelta(x),a.onUpdate&&a.onUpdate(x)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:x,target:w,layout:A,latestValues:k}=a;if(x&&w&&A){if(this!==a&&this.layout&&A&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,A.layoutBox)){w=this.target||createBox();let x=calcLength(this.layout.layoutBox.x);w.x.min=a.target.x.min,w.x.max=w.x.min+x;let A=calcLength(this.layout.layoutBox.y);w.y.min=a.target.y.min,w.y.max=w.y.min+A}copyBoxInto(x,w),transformBox(x,k),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,x,k)}}registerSharedNode(a,x){this.sharedNodes.has(a)||this.sharedNodes.set(a,new NodeStack);let w=this.sharedNodes.get(a);w.add(x);let A=x.options.initialPromotionConfig;x.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.shouldPreserveFollowOpacity(x):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){var a;let{layoutId:x}=this.options;return x&&(null===(a=this.getStack())||void 0===a?void 0:a.lead)||this}getPrevLead(){var a;let{layoutId:x}=this.options;return x?null===(a=this.getStack())||void 0===a?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:x,preserveFollowOpacity:w}={}){let A=this.getStack();A&&A.promote(this,w),a&&(this.projectionDelta=void 0,this.needsReset=!0),x&&this.setOptions({transition:x})}relegate(){let a=this.getStack();return!!a&&a.relegate(this)}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let x=!1,{latestValues:w}=a;if((w.rotate||w.rotateX||w.rotateY||w.rotateZ)&&(x=!0),!x)return;let A={};for(let x=0;x<tP.length;x++){let k="rotate"+tP[x];w[k]&&(A[k]=w[k],a.setStaticValue(k,0))}for(let x in a.render(),A)a.setStaticValue(x,A[x]);a.scheduleRender()}getProjectionStyles(a={}){var x,w;let A={};if(!this.instance||this.isSVG)return A;if(!this.isVisible)return{visibility:"hidden"};A.visibility="";let k=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=resolveMotionValue(a.pointerEvents)||"",A.transform=k?k(this.latestValues,""):"none",A;let F=this.getLead();if(!this.projectionDelta||!this.layout||!F.target){let x={};return this.options.layoutId&&(x.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,x.pointerEvents=resolveMotionValue(a.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(x.transform=k?k({},""):"none",this.hasProjected=!1),x}let V=F.animationValues||F.latestValues;this.applyTransformsToTarget(),A.transform=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,V),k&&(A.transform=k(V,A.transform));let{x:B,y:z}=this.projectionDelta;for(let a in A.transformOrigin=`${100*B.origin}% ${100*z.origin}% 0`,F.animationValues?A.opacity=F===this?null!==(w=null!==(x=V.opacity)&&void 0!==x?x:this.latestValues.opacity)&&void 0!==w?w:1:this.preserveOpacity?this.latestValues.opacity:V.opacityExit:A.opacity=F===this?void 0!==V.opacity?V.opacity:"":void 0!==V.opacityExit?V.opacityExit:0,eo){if(void 0===V[a])continue;let{correct:x,applyTo:w}=eo[a],k="none"===A.transform?V[a]:x(V[a],F);if(w){let a=w.length;for(let x=0;x<a;x++)A[w[x]]=k}else A[a]=k}return this.options.layoutId&&(A.pointerEvents=F===this?resolveMotionValue(a.pointerEvents)||"":"none"),A}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
69resetTree(){this.root.nodes.forEach(a=>{var x;return null===(x=a.currentAnimation)||void 0===x?void 0:x.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(a){a.updateLayout()}function notifyLayoutUpdate(a){var x;let w=(null===(x=a.resumeFrom)||void 0===x?void 0:x.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&w&&a.hasListeners("didUpdate")){let{layoutBox:x,measuredBox:A}=a.layout,{animationType:k}=a.options,F=w.source!==a.layout.source;"size"===k?eachAxis(a=>{let A=F?w.measuredBox[a]:w.layoutBox[a],k=calcLength(A);A.min=x[a].min,A.max=A.min+k}):shouldAnimatePositionOnly(k,w.layoutBox,x)&&eachAxis(A=>{let k=F?w.measuredBox[A]:w.layoutBox[A],V=calcLength(x[A]);k.max=k.min+V,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[A].max=a.relativeTarget[A].min+V)});let V=createDelta();calcBoxDelta(V,x,w.layoutBox);let B=createDelta();F?calcBoxDelta(B,a.applyTransform(A,!0),w.measuredBox):calcBoxDelta(B,x,w.layoutBox);let z=!isDeltaZero(V),G=!1;if(!a.resumeFrom){let A=a.getClosestProjectingParent();if(A&&!A.resumeFrom){let{snapshot:k,layout:F}=A;if(k&&F){let V=createBox();calcRelativePosition(V,w.layoutBox,k.layoutBox);let B=createBox();calcRelativePosition(B,x,F.layoutBox),boxEqualsRounded(V,B)||(G=!0),A.options.layoutRoot&&(a.relativeTarget=B,a.relativeTargetOrigin=V,a.relativeParent=A)}}}a.notifyListeners("didUpdate",{layout:x,snapshot:w,delta:B,layoutDelta:V,hasLayoutChanged:z,hasRelativeTargetChanged:G})}else if(a.isLead()){let{onExitComplete:x}=a.options;x&&x()}a.options.transition=void 0}function propagateDirtyNodes(a){tk.totalNodes++,a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function cleanDirtyNodes(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function clearSnapshot(a){a.clearSnapshot()}function clearMeasurements(a){a.clearMeasurements()}function clearIsLayoutDirty(a){a.isLayoutDirty=!1}function resetTransformStyle(a){let{visualElement:x}=a.options;x&&x.getProps().onBeforeLayoutMeasure&&x.notify("BeforeLayoutMeasure"),a.resetTransform()}function finishAnimation(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function resolveTargetDelta(a){a.resolveTargetDelta()}function calcProjection(a){a.calcProjection()}function resetRotation(a){a.resetRotation()}function removeLeadSnapshots(a){a.removeLeadSnapshot()}function mixAxisDelta(a,x,w){a.translate=mix(x.translate,0,w),a.scale=mix(x.scale,1,w),a.origin=x.origin,a.originPoint=x.originPoint}function mixAxis(a,x,w,A){a.min=mix(x.min,w.min,A),a.max=mix(x.max,w.max,A)}function hasOpacityCrossfade(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}let tN={duration:.45,ease:[.4,0,.1,1]},userAgentContains=a=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(a),tI=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:eL.Z;function roundAxis(a){a.min=tI(a.min),a.max=tI(a.max)}function shouldAnimatePositionOnly(a,x,w){return"position"===a||"preserve-aspect"===a&&!isNear(aspectRatio(x),aspectRatio(w),.2)}let tD=createProjectionNode({attachResizeListener:(a,x)=>addDomEvent(a,"resize",x),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tM={current:void 0},tL=createProjectionNode({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!tM.current){let a=new tD({});a.mount(window),a.setOptions({layoutScroll:!0}),tM.current=a}return tM.current},resetTransform:(a,x)=>{a.style.transform=void 0!==x?x:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position}),tj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(a,x,w=1){(0,eB.k)(w<=4,`Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`);let[A,k]=function(a){let x=tj.exec(a);if(!x)return[,];let[,w,A]=x;return[w,A]}(a);if(!A)return;let F=window.getComputedStyle(x).getPropertyValue(A);if(F){let a=F.trim();return isNumericalString(a)?parseFloat(a):a}return ed(k)?getVariableValue(k,x,w+1):k}let tF=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=a=>tF.has(a),hasPositionalKey=a=>Object.keys(a).some(isPositionalKey),isNumOrPxType=a=>
69a===ef||a===e_,getPosFromMatrix=(a,x)=>parseFloat(a.split(", ")[x]),getTranslateFromMatrix=(a,x)=>(w,{transform:A})=>{if("none"===A||!A)return 0;let k=A.match(/^matrix3d\((.+)\)$/);if(k)return getPosFromMatrix(k[1],x);{let x=A.match(/^matrix\((.+)\)$/);return x?getPosFromMatrix(x[1],a):0}},tV=new Set(["x","y","z"]),tU=ea.filter(a=>!tV.has(a)),tB={width:({x:a},{paddingLeft:x="0",paddingRight:w="0"})=>a.max-a.min-parseFloat(x)-parseFloat(w),height:({y:a},{paddingTop:x="0",paddingBottom:w="0"})=>a.max-a.min-parseFloat(x)-parseFloat(w),top:(a,{top:x})=>parseFloat(x),left:(a,{left:x})=>parseFloat(x),bottom:({y:a},{top:x})=>parseFloat(x)+(a.max-a.min),right:({x:a},{left:x})=>parseFloat(x)+(a.max-a.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};tB.translateX=tB.x,tB.translateY=tB.y;let convertChangedValueTypes=(a,x,w)=>{let A=x.measureViewportBox(),k=x.current,F=getComputedStyle(k),{display:V}=F,B={};"none"===V&&x.setStaticValue("display",a.display||"block"),w.forEach(a=>{B[a]=tB[a](A,F)}),x.render();let z=x.measureViewportBox();return w.forEach(w=>{let A=x.getValue(w);A&&A.jump(B[w]),a[w]=tB[w](z,F)}),a},checkAndConvertChangedValueTypes=(a,x,w={},A={})=>{x={...x},A={...A};let k=Object.keys(x).filter(isPositionalKey),F=[],V=!1,B=[];if(k.forEach(k=>{let z;let G=a.getValue(k);if(!a.hasValue(k))return;let $=w[k],W=findDimensionValueType($),Z=x[k];if(isKeyframesTarget(Z)){let a=Z.length,x=null===Z[0]?1:0;
69W=findDimensionValueType($=Z[x]);for(let w=x;w<a&&null!==Z[w];w++)z?(0,eB.k)(findDimensionValueType(Z[w])===z,"All keyframes must be of the same type"):(z=findDimensionValueType(Z[w]),(0,eB.k)(z===W||isNumOrPxType(W)&&isNumOrPxType(z),"Keyframes must be of the same dimension as the current value"))}else z=findDimensionValueType(Z);if(W!==z){if(isNumOrPxType(W)&&isNumOrPxType(z)){let a=G.get();"string"==typeof a&&G.set(parseFloat(a)),"string"==typeof Z?x[k]=parseFloat(Z):Array.isArray(Z)&&z===e_&&(x[k]=Z.map(parseFloat))}else(null==W?void 0:W.transform)&&(null==z?void 0:z.transform)&&(0===$||0===Z)?0===$?G.set(z.transform($)):x[k]=W.transform(Z):(V||(F=function(a){let x=[];return tU.forEach(w=>{let A=a.getValue(w);void 0!==A&&(x.push([w,A.get()]),A.set(w.startsWith("scale")?1:0))}),x.length&&a.render(),x}(a),V=!0),B.push(k),A[k]=void 0!==A[k]?A[k]:x[k],G.jump(Z))}}),!B.length)return{target:x,transitionEnd:A};{let w=B.indexOf("height")>=0?window.pageYOffset:null,k=convertChangedValueTypes(x,a,B);return F.length&&F.forEach(([x,w])=>{a.getValue(x).set(w)}),a.render(),ee.j&&null!==w&&window.scrollTo({top:w}),{target:k,transitionEnd:A}}},parseDomVariant=(a,x,w,A)=>{var k,F;let V=function(a,{...x},w){let A=a.current;if(!(A instanceof Element))return{target:x,transitionEnd:w};for(let k in w&&(w={...w}),a.values.forEach(a=>{let x=a.get();if(!ed(x))return;let w=getVariableValue(x,A);w&&a.set(w)}),x){let a=x[k];if(!ed(a))continue;let F=getVariableValue(a,A);F&&(x[k]=F,w||(w={}),void 0===w[k]&&(w[k]=a))}return{target:x,transitionEnd:w}}(a,x,A);return x=V.target,A=V.transitionEnd,k=x,F=A,hasPositionalKey(k)?checkAndConvertChangedValueTypes(a,k,w,F):{target:k,transitionEnd:F}};var tq=w(20270),tz=w(89609);let tH=new WeakMap,tG=Object.keys(J),t$=tG.length,tW=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tZ=K.length;let VisualElement=class VisualElement{constructor({parent:a,props:x,presenceContext:w,reducedMotionConfig:A,visualState:k},F={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ek.Wi.render(this.render,!1,!0);let{latestValues:V,renderState:B}=k;this.latestValues=V,this.baseTarget={...V},this.initialValues=x.initial?{...V}:{},this.renderState=B,this.parent=a,this.props=x,this.presenceContext=w,this.depth=a?a.depth+1:0,this.reducedMotionConfig=A,this.options=F,this.isControllingVariants=isControllingVariants(x),this.isVariantNode=isVariantNode(x),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);let{willChange:z,...G}=this.scrapeMotionValuesFromProps(x,{});for(let a in G){let x=G[a];void 0!==V[a]&&isMotionValue(x)&&(x.set(V[a],!1),isWillChangeMotionValue(z)&&z.add(a))}}scrapeMotionValuesFromProps(a,x){return{}}mount(a){this.current=a,tH.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,x)=>this.bindToMotionValue(x,a)),tz.O.current||(0,tq.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tz.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let a in tH.delete(this.current),this.projection&&this.projection.unmount(),(0,ek.Pn)(this.notifyUpdate),(0,ek.Pn)(this.render),this.valueSubscriptions.forEach(a=>a()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[a].clear();for(let a in this.features)this.features[a].unmount();this.current=null}bindToMotionValue(a,x){let w=es.has(a),A=x.on("change",x=>{this.latestValues[a]=x,this.props.onUpdate&&ek.Wi.update(this.notifyUpdate,!1,!0),w&&this.projection&&(this.projection.isTransformDirty=!0)}),k=x.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(a,()=>{A(),k()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}loadFeatures({children:a,...x},w,A,k){let F,V;for(let a=0;a<t$;a++){let w=tG[a],{isEnabled:A,Feature:k,ProjectionNode:B,MeasureLayout:z}=J[w];B&&(F=B),A(x)&&(!this.features[w]&&k&&(this.features[w]=new k(this)),z&&(V=z))}if(!this.projection&&F){this.projection=new F(this.latestValues,this.parent&&this.parent.projection);let{layoutId:a,layout:w,drag:A,dragConstraints:V,layoutScroll:B,layoutRoot:z}=x;this.projection.setOptions({layoutId:a,layout:w,alwaysMeasureLayout:!!A||V&&isRefObject(V),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof w?w:"both",initialPromotionConfig:k,layoutScroll:B,layoutRoot:z})}return V}updateFeatures(){for(let a in this.features){let x=this.features[a];x.isMounted?x.update():(x.mount(),x.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,x){this.latestValues[a]=x}makeTargetAnimatable(a,x=!0){return this.makeTargetAnimatableFromInstance(a,this.props,x)}update(a,x){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=x;for(let x=0;x<tW.length;x++){let w=tW[x];this.propEventSubscriptions[w]&&(this.propEventSubscriptions[w](),delete this.propEventSubscriptions[w]);let A=a["on"+w];A&&(this.propEventSubscriptions[w]=this.on(w,A))}this.prevMotionValues=function(a,x,w){let{willChange:A}=x;for(let k in x){let F=x[k],V=w[k];if(isMotionValue(F))a.addValue(k,F),isWillChangeMotionValue(A)&&A.add(k);else if(isMotionValue(V))a.addValue(k,motionValue(F,{owner:a})),isWillChangeMotionValue(A)&&A.remove(k);else if(V!==F){if(a.hasValue(k)){let x=a.getValue(k);x.hasAnimated||x.set(F)}else{let x=a.getStaticValue(k);a.addValue(k,motionValue(void 0!==x?x:F,{owner:a}))}}}for(let A in w)void 0===x[A]&&a.removeValue(A);return x}(this,this.scrapeMotionValuesFromProps(a,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(a=!1){if(a)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let a=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(a.initial=this.props.initial),a}let x={};for(let a=0;a<tZ;a++){let w=K[a],A=this.props[w];(isVariantLabel(A)||!1===A)&&(x[w]=A)}return x}addVariantChild(a){let x=this.getClosestVariantNode();if(x)return x.variantChildren&&x.variantChildren.add(a),()=>x.variantChildren.delete(a)}addValue(a,x){x!==this.values.get(a)&&(this.removeValue(a),this.bindToMotionValue(a,x)),this.values.set(a,x),this.latestValues[a]=x.get()}removeValue(a){this.values.delete(a);let x=this.valueSubscriptions.get(a);x&&(x(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,x){if(this.props.values&&this.props.values[a])return this.props.values[a];let w=this.values.get(a);return void 0===w&&void 0!==x&&(w=motionValue(x,{owner:this}),this.addValue(a,w)),w}readValue(a){var x;return void 0===this.latestValues[a]&&this.current?null!==(x=this.getBaseTargetFromProps(this.props,a))&&void 0!==x?x:this.readValueFromInstance(this.current,a,this.options):this.latestValues[a]}setBaseTarget(a,x){this.baseTarget[a]=x}getBaseTarget(a){var x;let{initial:w}
69=this.props,A="string"==typeof w||"object"==typeof w?null===(x=resolveVariantFromProps(this.props,w))||void 0===x?void 0:x[a]:void 0;if(w&&void 0!==A)return A;let k=this.getBaseTargetFromProps(this.props,a);return void 0===k||isMotionValue(k)?void 0!==this.initialValues[a]&&void 0===A?void 0:this.baseTarget[a]:k}on(a,x){return this.events[a]||(this.events[a]=new SubscriptionManager),this.events[a].add(x)}notify(a,...x){this.events[a]&&this.events[a].notify(...x)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{sortInstanceNodePosition(a,x){return 2&a.compareDocumentPosition(x)?1:-1}getBaseTargetFromProps(a,x){return a.style?a.style[x]:void 0}removeValueFromRenderState(a,{vars:x,style:w}){delete x[a],delete w[a]}makeTargetAnimatableFromInstance({transition:a,transitionEnd:x,...w},{transformValues:A},k){let F=function(a,x,w){let A={};for(let k in a){let a=function(a,x){if(!x)return;let w=x[a]||x.default||x;return w.from}(k,x);if(void 0!==a)A[k]=a;else{let a=w.getValue(k);a&&(A[k]=a.get())}}return A}(w,a||{},this);if(A&&(x&&(x=A(x)),w&&(w=A(w)),F&&(F=A(F))),k){!function(a,x,w){var A,k;let F=Object.keys(x).filter(x=>!a.hasValue(x)),V=F.length;if(V)for(let B=0;B<V;B++){let V=F[B],z=x[V],G=null;Array.isArray(z)&&(G=z[0]),null===G&&(G=null!==(k=null!==(A=w[V])&&void 0!==A?A:a.readValue(V))&&void 0!==k?k:x[V]),null!=G&&("string"==typeof G&&(isNumericalString(G)||isZeroValueString(G))?G=parseFloat(G):!findValueType(G)&&e7.test(z)&&(G=animatable_none_getAnimatableNone(V,z)),a.addValue(V,motionValue(G,{owner:a})),void 0===w[V]&&(w[V]=G),null!==G&&a.setBaseTarget(V,G))}}(this,w,F);let a=parseDomVariant(this,w,F,x);x=a.transitionEnd,w=a.target}return{transition:a,transitionEnd:x,...w}}};let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{readValueFromInstance(a,x){if(es.has(x)){let a=getDefaultValueType(x);return a&&a.default||0}{let w=window.getComputedStyle(a),A=(ec(x)?w.getPropertyValue(x):w[x])||0;return"string"==typeof A?A.trim():A}}measureInstanceViewportBox(a,{transformPagePoint:x}){return measureViewportBox(a,x)}build(a,x,w,A){buildHTMLStyles(a,x,w,A.transformTemplate)}scrapeMotionValuesFromProps(a,x){return scrapeMotionValuesFromProps(a,x)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;isMotionValue(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}renderInstance(a,x,w,A){renderHTML(a,x,w,A)}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(a,x){return a[x]}readValueFromInstance(a,x){if(es.has(x)){let a=getDefaultValueType(x);return a&&a.default||0}return x=eP.has(x)?x:camelToDash(x),a.getAttribute(x)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(a,x){return scrape_motion_values_scrapeMotionValuesFromProps(a,x)}build(a,x,w,A){buildSVGAttrs(a,x,w,this.isSVGTag,A.transformTemplate)}renderInstance(a,x,w,A){renderSVG(a,x,w,A)}mount(a){this.isSVGTag=isSVGTag(a.tagName),super.mount(a)}};let create_visual_element_createDomVisualElement=(a,x)=>isSVGComponent(a)?new SVGVisualElement(x,{enableHardwareAcceleration:!1}):new HTMLVisualElement(x,{enableHardwareAcceleration:!0}),tK={animation:{Feature:class extends Feature{constructor(a){super(a),a.animationState||(a.animationState=function(a){let animate=x=>Promise.all(x.map(({animation:x,options:w})=>(function(a,x,w={}){let A;if(a.notify("AnimationStart",x),Array.isArray(x)){let k=x.map(x=>animateVariant(a,x,w));A=Promise.all(k)}else if("string"==typeof x)A=animateVariant(a,x,w);else{let k="function"==typeof x?resolveVariant(a,x,w.custom):x;A=Promise.all(animateTarget(a,k,w))}return A.then(()=>a.notify("AnimationComplete",x))})(a,x,w))),x={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},w=!0,buildResolvedTypeValues=(x,w)=>{let A=resolveVariant(a,w);if(A){let{transition:a,transitionEnd:w,...k}=A;x={...x,...k,...w}}return x};function animateChanges(A,k){let F=a.getProps(),V=a.getVariantContext(!0)||{},B=[],z=new Set,G={},$=1/0;for(let Z=0;Z<tm;Z++){var W;let K=th[Z],Y=x[K],J=void 0!==F[K]?F[K]:V[K],ee=isVariantLabel(J),et=K===k?Y.isActive:null;!1===et&&($=Z);let er=J===V[K]&&J!==F[K]&&ee;if(er&&w&&a.manuallyAnimateOnMount&&(er=!1),Y.protectedKeys={...G},!Y.isActive&&null===et||!J&&!Y.prevProp||isAnimationControls(J)||"boolean"==typeof J)continue;let en=(W=Y.prevProp,"string"==typeof J?J!==W:!!Array.isArray(J)&&!shallowCompare(J,W)),ei=en||K===k&&Y.isActive&&!er&&ee||Z>$&&ee,eo=Array.isArray(J)?J:[J],ea=eo.reduce(buildResolvedTypeValues,{});!1===et&&(ea={});let{prevResolvedValues:es={}}=Y,el={...es,...ea},markToAnimate=a=>{ei=!0,z.delete(a),Y.needsAnimating[a]=!0};for(let a in el){let x=ea[a],w=es[a];G.hasOwnProperty(a)||(x!==w?isKeyframesTarget(x)&&isKeyframesTarget(w)?!shallowCompare(x,w)||en?markToAnimate(a):Y.protectedKeys[a]=!0:void 0!==x?markToAnimate(a):z.add(a):void 0!==x&&z.has(a)?markToAnimate(a):Y.protectedKeys[a]=!0)}Y.prevProp=J,Y.prevResolvedValues=ea,Y.isActive&&(G={...G,...ea}),w&&a.blockInitialAnimation&&(ei=!1),ei&&!er&&B.push(...eo.map(a=>({animation:a,options:{type:K,...A}})))}
69if(z.size){let x={};z.forEach(w=>{let A=a.getBaseTarget(w);void 0!==A&&(x[w]=A)}),B.push({animation:x})}let Z=!!B.length;return w&&!1===F.initial&&!a.manuallyAnimateOnMount&&(Z=!1),w=!1,Z?animate(B):Promise.resolve()}return{animateChanges,setActive:function(w,A,k){var F;if(x[w].isActive===A)return Promise.resolve();null===(F=a.variantChildren)||void 0===F||F.forEach(a=>{var x;return null===(x=a.animationState)||void 0===x?void 0:x.setActive(w,A)}),x[w].isActive=A;let V=animateChanges(k,w);for(let a in x)x[a].protectedKeys={};return V},setAnimateFunction:function(x){animate=x(a)},getState:()=>x}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();this.unmount(),isAnimationControls(a)&&(this.unmount=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:x}=this.node.prevProps||{};a!==x&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=tg++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:x,custom:w}=this.node.presenceContext,{isPresent:A}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===A)return;let k=this.node.animationState.setActive("exit",!a,{custom:null!=w?w:this.node.getProps().custom});x&&!a&&k.then(()=>x(this.id))}mount(){let{register:a}=this.node.presenceContext||{};a&&(this.unmount=a(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:a={}}=this.node.getProps(),{root:x,margin:w,amount:A="some",once:k}=a,F={root:x?x.current:void 0,rootMargin:w,threshold:"number"==typeof A?A:eV[A]};return function(a,x,w){let A=function({root:a,...x}){let w=a||document;eF.has(w)||eF.set(w,{});let A=eF.get(w),k=JSON.stringify(x);return A[k]||(A[k]=new IntersectionObserver(fireAllObserverCallbacks,{root:a,...x})),A[k]}(x);return ej.set(a,w),A.observe(a),()=>{ej.delete(a),A.unobserve(a)}}(this.node.current,F,a=>{let{isIntersecting:x}=a;if(this.isInView===x||(this.isInView=x,k&&!x&&this.hasEnteredView))return;x&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",x);let{onViewportEnter:w,onViewportLeave:A}=this.node.getProps(),F=x?w:A;F&&F(a)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:a,prevProps:x}=this.node,w=["amount","margin","root"].some(function({viewport:a={}},{viewport:x={}}={}){return w=>a[w]!==x[w]}(a,x));w&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=eL.Z,this.removeEndListeners=eL.Z,this.removeAccessibleListeners=eL.Z,this.startPointerPress=(a,x)=>{if(this.removeEndListeners(),this.isPressing)return;let w=this.node.getProps(),A=addPointerEvent(window,"pointerup",(a,x)=>{if(!this.checkPressEnd())return;let{onTap:w,onTapCancel:A}=this.node.getProps();ek.Wi.update(()=>{isNodeOrChild(this.node.current,a.target)?w&&w(a,x):A&&A(a,x)})},{passive:!(w.onTap||w.onPointerUp)}),k=addPointerEvent(window,"pointercancel",(a,x)=>this.cancelPress(a,x),{passive:!(w.onTapCancel||w.onPointerCancel)});this.removeEndListeners=pipe(A,k),this.startPress(a,x)},this.startAccessiblePress=()=>{let a=addDomEvent(this.node.current,"keydown",a=>{"Enter"!==a.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",a=>{"Enter"===a.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(a,x)=>{let{onTap:w}=this.node.getProps();w&&ek.Wi.update(()=>w(a,x))})}),fireSyntheticPointerEvent("down",(a,x)=>{this.startPress(a,x)}))}),x=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(a,x)=>this.cancelPress(a,x))});this.removeAccessibleListeners=pipe(a,x)}}startPress(a,x){this.isPressing=!0;let{onTapStart:w,whileTap:A}=this.node.getProps();A&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),w&&ek.Wi.update(()=>w(a,x))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let a=this.node.getProps();return a.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(a,x){if(!this.checkPressEnd())return;let{onTapCancel:w}=this.node.getProps();w&&ek.Wi.update(()=>w(a,x))}mount(){let a=this.node.getProps(),x=addPointerEvent(this.node.current,"pointerdown",this.startPointerPress,{passive:!(a.onTapStart||a.onPointerStart)}),w=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(x,w)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(x){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHover
69Event(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=eL.Z}onPointerDown(a){this.session=new PanSession(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:x,onPan:w,onPanEnd:A}=this.node.getProps();return{onSessionStart:asyncHandler(a),onStart:asyncHandler(x),onMove:w,onEnd:(a,x)=>{delete this.session,A&&ek.Wi.update(()=>A(a,x))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(a){super(a),this.removeGroupControls=eL.Z,this.removeListeners=eL.Z,this.controls=new VisualElementDragControls(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eL.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tL,MeasureLayout:MeasureLayout},layout:{ProjectionNode:tL,MeasureLayout:MeasureLayout}},tQ=function(a){function custom(x,w={}){return function({preloadedFeatures:a,createVisualElement:x,useRender:w,useVisualState:A,Component:k}){a&&function(a){for(let x in a)J[x]={...J[x],...a[x]}}(a);let F=(0,V.forwardRef)(function(F,Z){var K;let Y;let J={...(0,V.useContext)(B),...F,layoutId:function({layoutId:a}){let x=(0,V.useContext)(et.p).id;return x&&void 0!==a?x+"-"+a:a}(F)},{isStatic:en}=J,ei=function(a){let{initial:x,animate:w}=function(a,x){if(isControllingVariants(a)){let{initial:x,animate:w}=a;return{initial:!1===x||isVariantLabel(x)?x:void 0,animate:isVariantLabel(w)?w:void 0}}return!1!==a.inherit?x:{}}(a,(0,V.useContext)(z));return(0,V.useMemo)(()=>({initial:x,animate:w}),[variantLabelsAsDependency(x),variantLabelsAsDependency(w)])}(F),eo=A(F,en);if(!en&&ee.j){ei.visualElement=function(a,x,w,A){let{visualElement:k}=(0,V.useContext)(z),F=(0,V.useContext)(W),Z=(0,V.useContext)(G.O),K=(0,V.useContext)(B).reducedMotion,Y=(0,V.useRef)();A=A||F.renderer,!Y.current&&A&&(Y.current=A(a,{visualState:x,parent:k,props:w,presenceContext:Z,blockInitialAnimation:!!Z&&!1===Z.initial,reducedMotionConfig:K}));let J=Y.current;(0,V.useInsertionEffect)(()=>{J&&J.update(w,Z)});let ee=(0,V.useRef)(!!window.HandoffAppearAnimations);return(0,$.L)(()=>{J&&(J.render(),ee.current&&J.animationState&&J.animationState.animateChanges())}),(0,V.useEffect)(()=>{J&&(J.updateFeatures(),!ee.current&&J.animationState&&J.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,ee.current=!1)}),J}(k,eo,J,x);let w=(0,V.useContext)(er),A=(0,V.useContext)(W).strict;ei.visualElement&&(Y=ei.visualElement.loadFeatures(J,A,a,w))}return V.createElement(z.Provider,{value:ei},Y&&ei.visualElement?V.createElement(Y,{visualElement:ei.visualElement,...J}):null,w(k,F,(K=ei.visualElement,(0,V.useCallback)(a=>{a&&eo.mount&&eo.mount(a),K&&(a?K.mount(a):K.unmount()),Z&&("function"==typeof Z?Z(a):isRefObject(Z)&&(Z.current=a))},[K])),eo,en,ei.visualElement))});return F[en]=k,F}(a(x,w))}if("undefined"==typeof Proxy)return custom;let x=new Map;return new Proxy(custom,{get:(a,w)=>(x.has(w)||x.set(w,custom(w)),x.get(w))})}((a,x)=>(function(a,{forwardMotionProps:x=!1},w,A){let k=isSVGComponent(a)?eN:eI;return{...k,preloadedFeatures:w,useRender:function(a=!1){return(x,w,A,{latestValues:k},F)=>{let B=isSVGComponent(x)?useSVGProps:useHTMLProps,z=B(w,k,F,x),G=function(a,x,w){let A={};for(let k in a)("values"!==k||"object"!=typeof a.values)&&(shouldForward(k)||!0===w&&isValidMotionProp(k)||!x&&!isValidMotionProp(k)||a.draggable&&k.startsWith("onDrag"))&&(A[k]=a[k]);return A}(w,"string"==typeof x,a),$={...G,...z,ref:A},{children:W}=w,Z=(0,V.useMemo)(()=>isMotionValue(W)?W.get():W,[W]);return(0,V.createElement)(x,{...$,children:Z})}}(x),createVisualElement:A,Component:a}})(a,x,tK,create_visual_element_createDomVisualElement))},45487:function(a,x,w){"use strict";w.d(x,{K:function(){return k},k:function(){return F}});var A=w(81662);let k=A.Z,F=A.Z},11741:function(a,x,w){"use strict";w.d(x,{j:function(){return A}});let A="undefined"!=typeof document},81662:function(a,x,w){"use strict";w.d(x,{Z:function(){return noop}});let noop=a=>a},20270:function(a,x,w){"use strict";w.d(x,{A:function(){return initPrefersReducedMotion}});var A=w(11741),k=w(89609);function initPrefersReducedMotion(){if(k.O.current=!0,A.j){if(window.matchMedia){let a=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>k.n.current=a.matches;a.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else k.n.current=!1}}},89609:function(a,x,w){"use strict";w.d(x,{O:function(){return k},n:function(){return A}});let A={current:null},k={current:!1}},96681:function(a,x,w){"use strict";w.d(x,{h:function(){return useConstant}});var A=w(67294);function useConstant(a){let x=(0,A.useRef)(null);return null===x.current&&(x.current=a()),x.current}},58868:function(a,x,w){"use strict";w.d(x,{L:function(){return F}});
69var A=w(67294),k=w(11741);let F=k.j?A.useLayoutEffect:A.useEffect},48583:function(a,x,w){"use strict";w.d(x,{Dv:function(){return useAtomValue},KO:function(){return useAtom},b9:function(){return useSetAtom}});var A=w(67294),k=w(15103);let F=(0,A.createContext)(void 0),useStore=a=>{let x=(0,A.useContext)(F);return(null==a?void 0:a.store)||x||(0,k.K7)()},isPromiseLike=a=>"function"==typeof(null==a?void 0:a.then),attachPromiseMeta=a=>{a.status="pending",a.then(x=>{a.status="fulfilled",a.value=x},x=>{a.status="rejected",a.reason=x})},V=A.use||(a=>{if("pending"===a.status)throw a;if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw attachPromiseMeta(a),a}),B=new WeakMap,createContinuablePromise=a=>{let x=B.get(a);return x||(x=new Promise((w,A)=>{let k=a,onFulfilled=a=>x=>{k===a&&w(x)},onRejected=a=>x=>{k===a&&A(x)},registerCancelHandler=a=>{"onCancel"in a&&"function"==typeof a.onCancel&&a.onCancel(A=>{if(A===a)throw Error("[Bug] p is not updated even after cancelation");isPromiseLike(A)?(B.set(A,x),k=A,A.then(onFulfilled(A),onRejected(A)),registerCancelHandler(A)):w(A)})};a.then(onFulfilled(a),onRejected(a)),registerCancelHandler(a)}),B.set(a,x)),x};function useAtomValue(a,x){let w=useStore(x),[[k,F,B],z]=(0,A.useReducer)(x=>{let A=w.get(a);return Object.is(x[0],A)&&x[1]===w&&x[2]===a?x:[A,w,a]},void 0,()=>[w.get(a),w,a]),G=k;(F!==w||B!==a)&&(z(),G=w.get(a));let $=null==x?void 0:x.delay;if((0,A.useEffect)(()=>{let x=w.sub(a,()=>{if("number"==typeof $){let x=w.get(a);isPromiseLike(x)&&attachPromiseMeta(createContinuablePromise(x)),setTimeout(z,$);return}z()});return z(),x},[w,a,$]),(0,A.useDebugValue)(G),isPromiseLike(G)){let a=createContinuablePromise(G);return V(a)}return G}function useSetAtom(a,x){let w=useStore(x),k=(0,A.useCallback)((...x)=>{if(!("write"in a))throw Error("not writable atom");return w.set(a,...x)},[w,a]);return k}function useAtom(a,x){return[useAtomValue(a,x),useSetAtom(a,x)]}},15103:function(a,x,w){"use strict";let A;w.d(x,{K7:function(){return getDefaultStore},cn:function(){return atom}});let k=0;function atom(a,x){let w=`atom${++k}`,A={toString(){return this.debugLabel?w+":"+this.debugLabel:w}};return"function"==typeof a?A.read=a:(A.init=a,A.read=defaultRead,A.write=defaultWrite),x&&(A.write=x),A}function defaultRead(a){return a(this)}function defaultWrite(a,x,w){return x(this,"function"==typeof w?w(a(this)):w)}let isSelfAtom=(a,x)=>a.unstable_is?a.unstable_is(x):x===a,hasInitialValue=a=>"init"in a,isActuallyWritableAtom=a=>!!a.write,F=new WeakMap,isPendingPromise=a=>{var x;return isPromiseLike(a)&&!(null==(x=F.get(a))?void 0:x[1])},cancelPromise=(a,x)=>{let w=F.get(a);if(w)w[1]=!0,w[0].forEach(a=>a(x));else throw Error("[Bug] cancelable promise not found")},patchPromiseForCancelability=a=>{if(F.has(a))return;let x=[new Set,!1];F.set(a,x);let settle=()=>{x[1]=!0};a.then(settle,settle),a.onCancel=a=>{x[0].add(a)}},isPromiseLike=a=>"function"==typeof(null==a?void 0:a.then),isAtomStateInitialized=a=>"v"in a||"e"in a,returnAtomValue=a=>{if("e"in a)throw a.e;if(!("v"in a))throw Error("[Bug] atom state is not initialized");return a.v},addPendingPromiseToDependency=(a,x,w)=>{w.p.has(a)||(w.p.add(a),x.then(()=>{w.p.delete(a)},()=>{w.p.delete(a)}))},addDependency=(a,x,w,A,k)=>{var F;if(A===x)throw Error("[Bug] atom cannot depend on itself");w.d.set(A,k.n),isPendingPromise(w.v)&&addPendingPromiseToDependency(x,w.v,k),null==(F=k.m)||F.t.add(x),a&&addPendingDependent(a,A,x)},createPending=()=>[new Map,new Map,new Set],addPendingAtom=(a,x,w)=>{a[0].has(x)||a[0].set(x,new Set),a[1].set(x,w)},addPendingDependent=(a,x,w)=>{let A=a[0].get(x);A&&A.add(w)},getPendingDependents=(a,x)=>a[0].get(x),addPendingFunction=(a,x)=>{a[2].add(x)},flushPending=a=>{for(;a[1].size||a[2].size;){a[0].clear();let x=new Set(a[1].values());a[1].clear();let w=new Set(a[2]);a[2].clear(),x.forEach(a=>{var x;return null==(x=a.m)?void 0:x.l.forEach(a=>a())}
69),w.forEach(a=>a())}},buildStore=a=>{let x;x=new Set;let setAtomStateValueOrPromise=(x,w,A)=>{let k="v"in w,F=w.v,V=isPendingPromise(w.v)?w.v:null;if(isPromiseLike(A)){for(let k of(patchPromiseForCancelability(A),w.d.keys()))addPendingPromiseToDependency(x,A,a(k,w));w.v=A,delete w.e}else w.v=A,delete w.e;k&&Object.is(F,w.v)||(++w.n,V&&cancelPromise(V,A))},readAtomState=(x,w,A,k)=>{var F;let V,B;if(isAtomStateInitialized(A)&&(A.m&&!(null==k?void 0:k.has(w))||Array.from(A.d).every(([w,F])=>readAtomState(x,w,a(w,A),k).n===F)))return A;A.d.clear();let z=!0;try{let G=w.read(F=>{if(isSelfAtom(w,F)){let x=a(F,A);if(!isAtomStateInitialized(x)){if(hasInitialValue(F))setAtomStateValueOrPromise(F,x,F.init);else throw Error("no atom init")}return returnAtomValue(x)}let V=readAtomState(x,F,a(F,A),k);if(z)addDependency(x,w,A,F,V);else{let a=createPending();addDependency(a,w,A,F,V),mountDependencies(a,w,A),flushPending(a)}return returnAtomValue(V)},{get signal(){return V||(V=new AbortController),V.signal},get setSelf(){return isActuallyWritableAtom(w)||console.warn("setSelf function cannot be used with read-only atom"),!B&&isActuallyWritableAtom(w)&&(B=(...a)=>{if(z&&console.warn("setSelf function cannot be called in sync"),!z)return writeAtom(w,...a)}),B}});if(setAtomStateValueOrPromise(w,A,G),isPromiseLike(G)){null==(F=G.onCancel)||F.call(G,()=>null==V?void 0:V.abort());let complete=()=>{if(A.m){let a=createPending();mountDependencies(a,w,A),flushPending(a)}};G.then(complete,complete)}return A}catch(a){return delete A.v,A.e=a,++A.n,A}finally{z=!1}},getDependents=(x,w,A)=>{var k,F;let V=new Map;for(let x of(null==(k=A.m)?void 0:k.t)||[])V.set(x,a(x,A));for(let x of A.p)V.set(x,a(x,A));return null==(F=getPendingDependents(x,w))||F.forEach(x=>{V.set(x,a(x,A))}),V},recomputeDependents=(a,x,w)=>{let A=[],k=new Set,visit=(x,w)=>{if(!k.has(x)){for(let[A,F]of(k.add(x),getDependents(a,x,w)))x!==A&&visit(A,F);A.push([x,w,w.n])}};visit(x,w);let F=new Set([x]);for(let x=A.length-1;x>=0;--x){let[w,V,B]=A[x],z=!1;for(let a of V.d.keys())if(a!==w&&F.has(a)){z=!0;break}z&&(readAtomState(a,w,V,k),mountDependencies(a,w,V),B!==V.n&&(addPendingAtom(a,w,V),F.add(w))),k.delete(w)}},writeAtomState=(x,w,A,...k)=>{let F=w.write(w=>returnAtomValue(readAtomState(x,w,a(w,A))),(k,...F)=>{let V;let B=a(k,A);if(isSelfAtom(w,k)){if(!hasInitialValue(k))throw Error("atom not writable");let a="v"in B,w=B.v,A=F[0];setAtomStateValueOrPromise(k,B,A),mountDependencies(x,k,B),a&&Object.is(w,B.v)||(addPendingAtom(x,k,B),recomputeDependents(x,k,B))}else V=writeAtomState(x,k,B,...F);return flushPending(x),V},...k);return F},writeAtom=(x,...w)=>{let A=createPending(),k=writeAtomState(A,x,a(x),...w);return flushPending(A),k},mountDependencies=(x,w,A)=>{if(A.m&&!isPendingPromise(A.v)){for(let k of A.d.keys())if(!A.m.d.has(k)){let F=mountAtom(x,k,a(k,A));F.t.add(w),A.m.d.add(k)}for(let k of A.m.d||[])if(!A.d.has(k)){A.m.d.delete(k);let F=unmountAtom(x,k,a(k,A));null==F||F.t.delete(w)}}},mountAtom=(w,A,k)=>{if(!k.m){for(let x of(readAtomState(w,A,k),k.d.keys())){let F=mountAtom(w,x,a(x,k));F.t.add(A)}if(k.m={l:new Set,d:new Set(k.d.keys()),t:new Set},x.add(A),isActuallyWritableAtom(A)&&A.onMount){let a=k.m,{onMount:x}=A;addPendingFunction(w,()=>{let F=x((...a)=>writeAtomState(w,A,k,...a));F&&(a.u=F)})}}return k.m},unmountAtom=(w,A,k)=>{if(k.m&&!k.m.l.size&&!Array.from(k.m.t).some(x=>{var w;return null==(w=a(x,k).m)?void 0:w.d.has(A)})){let F=k.m.u;for(let V of(F&&addPendingFunction(w,F),delete k.m,x.delete(A),k.d.keys())){let x=unmountAtom(w,V,a(V,k));null==x||x.t.delete(A)}return}return k.m},w={get:x=>returnAtomValue(readAtomState(void 0,x,a(x))),set:writeAtom,sub:(x,w)=>{let A=createPending(),k=a(x),F=mountAtom(A,x,k);flushPending(A);let V=F.l;return V.add(w),()=>{V.delete(w);let a=createPending();unmountAtom(a,x,k),flushPending(a)}},unstable_derive:x=>buildStore(...x(a))};return Object.assign(w,{dev4_get_internal_weak_map:()=>({get:x=>{let w=a(x);if(0!==w.n)return w}}),dev4_get_mounted_atoms:()=>x,dev4_restore_atoms:x=>{let w=createPending();
69for(let[A,k]of x)if(hasInitialValue(A)){let x=a(A),F="v"in x,V=x.v;setAtomStateValueOrPromise(A,x,k),mountDependencies(w,A,x),F&&Object.is(V,x.v)||(addPendingAtom(w,A,x),recomputeDependents(w,A,x))}flushPending(w)}}),w},createStore=()=>{let a=new WeakMap;return buildStore(x=>{let w=a.get(x);return w||(w={d:new Map,p:new Set,n:0},a.set(x,w)),w})},getDefaultStore=()=>(A||(A=createStore(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=A),globalThis.__JOTAI_DEFAULT_STORE__!==A&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),A)},95495:function(a,x,w){"use strict";w.d(x,{O4:function(){return atomWithStorage}});var A=w(15103);let k=Symbol("RESET"),isPromiseLike=a=>"function"==typeof(null==a?void 0:a.then),F=function(a=()=>{try{return window.localStorage}catch(a){"undefined"!=typeof window&&console.warn(a);return}},x){var w,A;let k,F,V;let B={getItem:(w,A)=>{var V,B;let parse=a=>{if(k!==(a=a||"")){try{F=JSON.parse(a,null==x?void 0:x.reviver)}catch(a){return A}k=a}return F},z=null!=(B=null==(V=a())?void 0:V.getItem(w))?B:null;return isPromiseLike(z)?z.then(parse):parse(z)},setItem:(w,A)=>{var k;return null==(k=a())?void 0:k.setItem(w,JSON.stringify(A,null==x?void 0:x.replacer))},removeItem:x=>{var w;return null==(w=a())?void 0:w.removeItem(x)}};try{V=null==(w=a())?void 0:w.subscribe}catch(a){}return!V&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(V=(x,w)=>{if(!(a() instanceof window.Storage))return()=>{};let storageEventCallback=A=>{A.storageArea===a()&&A.key===x&&w(A.newValue)};return window.addEventListener("storage",storageEventCallback),()=>{window.removeEventListener("storage",storageEventCallback)}}),V&&(B.subscribe=(A=V,(a,x,w)=>A(a,a=>{let A;try{A=JSON.parse(a||"")}catch(a){A=w}x(A)}))),B}();function atomWithStorage(a,x,w=F,V){let B=null==V?void 0:V.getOnInit,z=(0,A.cn)(B?w.getItem(a,x):x);z.debugPrivate=!0,z.onMount=A=>{let k;return A(w.getItem(a,x)),w.subscribe&&(k=w.subscribe(a,A,x)),k};let G=(0,A.cn)(a=>a(z),(A,F,V)=>{let B="function"==typeof V?V(A(z)):V;return B===k?(F(z,x),w.removeItem(a)):B instanceof Promise?B.then(x=>(F(z,x),w.setItem(a,x))):(F(z,B),w.setItem(a,B))});return G}},31955:function(a,x,w){"use strict";/*! js-cookie v3.0.5 | MIT */function assign(a){for(var x=1;x<arguments.length;x++){var w=arguments[x];for(var A in w)a[A]=w[A]}return a}w.d(x,{Z:function(){return A}});var A=function init(a,x){function set(w,A,k){if("undefined"!=typeof document){"number"==typeof(k=assign({},x,k)).expires&&(k.expires=new Date(Date.now()+864e5*k.expires)),k.expires&&(k.expires=k.expires.toUTCString()),w=encodeURIComponent(w).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var F="";for(var V in k)k[V]&&(F+="; "+V,!0!==k[V]&&(F+="="+k[V].split(";")[0]));return document.cookie=w+"="+a.write(A,w)+F}}return Object.create({set,get:function(x){if("undefined"!=typeof document&&(!arguments.length||x)){for(var w=document.cookie?document.cookie.split("; "):[],A={},k=0;k<w.length;k++){var F=w[k].split("="),V=F.slice(1).join("=");try{var B=decodeURIComponent(F[0]);if(A[B]=a.read(V,B),x===B)break}catch(a){}}return x?A[x]:A}},remove:function(a,x){set(a,"",assign({},x,{expires:-1}))},withAttributes:function(a){return init(this.converter,assign({},this.attributes,a))},withConverter:function(a){return init(assign({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(x)},converter:{value:Object.freeze(a)}})}({read:function(a){return'"'===a[0]&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},87536:function(a,x,w){"use strict";w.d(x,{Gc:function(){return useFormContext},KN:function(){return appendErrors},Qr:function(){return Controller},RV:function(){return FormProvider},U2:function(){return get},cI:function(){return useForm},cl:function(){return useFormState},t8:function(){return set}});var A=w(67294),isCheckBoxInput=a=>"checkbox"===a.type,isDateObject=a=>a instanceof Date,isNullOrUndefined=a=>null==a;let isObjectType=a=>"object"==typeof a;var isObject=a=>!isNullOrUndefined(a)&&!Array.isArray(a)&&isObjectType(a)&&!isDateObject(a),getEventValue=a=>isObject(a)&&a.target?isCheckBoxInput(a.target)?a.target.checked:a.target.value:a,getNodeParentName=a=>
69a.substring(0,a.search(/\.\d+(\.|$)/))||a,isNameInFieldArray=(a,x)=>a.has(getNodeParentName(x)),isPlainObject=a=>{let x=a.constructor&&a.constructor.prototype;return isObject(x)&&x.hasOwnProperty("isPrototypeOf")},k="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function cloneObject(a){let x;let w=Array.isArray(a);if(a instanceof Date)x=new Date(a);else if(a instanceof Set)x=new Set(a);else if(!(!(k&&(a instanceof Blob||a instanceof FileList))&&(w||isObject(a))))return a;else if(x=w?[]:{},w||isPlainObject(a))for(let w in a)a.hasOwnProperty(w)&&(x[w]=cloneObject(a[w]));else x=a;return x}var compact=a=>Array.isArray(a)?a.filter(Boolean):[],isUndefined=a=>void 0===a,get=(a,x,w)=>{if(!x||!isObject(a))return w;let A=compact(x.split(/[,[\].]+?/)).reduce((a,x)=>isNullOrUndefined(a)?a:a[x],a);return isUndefined(A)||A===a?isUndefined(a[x])?w:a[x]:A},isBoolean=a=>"boolean"==typeof a,isKey=a=>/^\w*$/.test(a),stringToPath=a=>compact(a.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(a,x,w)=>{let A=-1,k=isKey(x)?[x]:stringToPath(x),F=k.length,V=F-1;for(;++A<F;){let x=k[A],F=w;if(A!==V){let w=a[x];F=isObject(w)||Array.isArray(w)?w:isNaN(+k[A+1])?{}:[]}if("__proto__"===x)return;a[x]=F,a=a[x]}return a};let F={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},V={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},B={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},z=A.createContext(null),useFormContext=()=>A.useContext(z),FormProvider=a=>{let{children:x,...w}=a;return A.createElement(z.Provider,{value:w},x)};var getProxyFormState=(a,x,w,A=!0)=>{let k={defaultValues:x._defaultValues};for(let F in a)Object.defineProperty(k,F,{get:()=>(x._proxyFormState[F]!==V.all&&(x._proxyFormState[F]=!A||V.all),w&&(w[F]=!0),a[F])});return k},isEmptyObject=a=>isObject(a)&&!Object.keys(a).length,shouldRenderFormState=(a,x,w,A)=>{w(a);let{name:k,...F}=a;return isEmptyObject(F)||Object.keys(F).length>=Object.keys(x).length||Object.keys(F).find(a=>x[a]===(!A||V.all))},convertToArrayPayload=a=>Array.isArray(a)?a:[a],shouldSubscribeByName=(a,x,w)=>!a||!x||a===x||convertToArrayPayload(a).some(a=>a&&(w?a===x:a.startsWith(x)||x.startsWith(a)));function useSubscribe(a){let x=A.useRef(a);x.current=a,A.useEffect(()=>{let w=!a.disabled&&x.current.subject&&x.current.subject.subscribe({next:x.current.next});return()=>{w&&w.unsubscribe()}},[a.disabled])}function useFormState(a){let x=useFormContext(),{control:w=x.control,disabled:k,name:F,exact:V}=a||{},[B,z]=A.useState(w._formState),G=A.useRef(!0),$=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),W=A.useRef(F);return W.current=F,useSubscribe({disabled:k,next:a=>G.current&&shouldSubscribeByName(W.current,a.name,V)&&shouldRenderFormState(a,$.current,w._updateFormState)&&z({...w._formState,...a}),subject:w._subjects.state}),A.useEffect(()=>(G.current=!0,$.current.isValid&&w._updateValid(!0),()=>{G.current=!1}),[w]),getProxyFormState(B,w,$.current,!1)}var isString=a=>"string"==typeof a,generateWatchOutput=(a,x,w,A,k)=>isString(a)?(A&&x.watch.add(a),get(w,a,k)):Array.isArray(a)?a.map(a=>(A&&x.watch.add(a),get(w,a))):(A&&(x.watchAll=!0),w);let Controller=a=>a.render(function(a){let x=useFormContext(),{name:w,disabled:k,control:V=x.control,shouldUnregister:B}=a,z=isNameInFieldArray(V._names.array,w),G=function(a){let x=useFormContext(),{control:w=x.control,name:k,defaultValue:F,disabled:V,exact:B}=a||{},z=A.useRef(k);z.current=k,useSubscribe({disabled:V,subject:w._subjects.values,next:a=>{shouldSubscribeByName(z.current,a.name,B)&&$(cloneObject(generateWatchOutput(z.current,w._names,a.values||w._formValues,!1,F)))}});let[G,$]=A.useState(w._getWatch(k,F));return A.useEffect(()=>w._removeUnmounted()),G}({control:V,name:w,defaultValue:get(V._formValues,w,get(V._defaultValues,w,a.defaultValue)),exact:!0}),$=useFormState({control:V,name:w,exact:!0}),W=A.useRef(V.register(w,{...a.rules,value:G,...isBoolean(a.disabled)?{disabled:a.disabled}:{}}));return A.useEffect(()=>{let a=V._options.shouldUnregister||B,updateMounted=(a,x)=>{let w=get(V._fields,a);w&&w._f&&(w._f.mount=x)};if(updateMounted(w,!0),a){let a=cloneObject(get(V._options.defaultValues,w));set(V._defaultValues,w,a),isUndefined(get(V._formValues,w))&&set(V._formValues,w,a)}return()=>{(z?a&&!V._state.action:a)?V.unregister(w):updateMounted(w,!1)}},[w,V,z,B]),A.useEffect(()=>{get(V._fields,w)&&V._updateDisabledField({disabled:k,fields:V._fields,name:w,value:get(V._fields,w)._f.value})},[k,w,V]),{field:{name:w,value:G,...isBoolean(k)||$.disabled?{disabled:$.disabled||k}:{},onChange:A.useCallback(a=>W.current.onChange({target:{value:getEventValue(a),name:w}
69,type:F.CHANGE}),[w]),onBlur:A.useCallback(()=>W.current.onBlur({target:{value:get(V._formValues,w),name:w},type:F.BLUR}),[w,V]),ref:A.useCallback(a=>{let x=get(V._fields,w);x&&a&&(x._f.ref={focus:()=>a.focus(),select:()=>a.select(),setCustomValidity:x=>a.setCustomValidity(x),reportValidity:()=>a.reportValidity()})},[V._fields,w])},formState:$,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get($.errors,w)},isDirty:{enumerable:!0,get:()=>!!get($.dirtyFields,w)},isTouched:{enumerable:!0,get:()=>!!get($.touchedFields,w)},isValidating:{enumerable:!0,get:()=>!!get($.validatingFields,w)},error:{enumerable:!0,get:()=>get($.errors,w)}})}}(a));var appendErrors=(a,x,w,A,k)=>x?{...w[a],types:{...w[a]&&w[a].types?w[a].types:{},[A]:k||!0}}:{},getValidationModes=a=>({isOnSubmit:!a||a===V.onSubmit,isOnBlur:a===V.onBlur,isOnChange:a===V.onChange,isOnAll:a===V.all,isOnTouch:a===V.onTouched}),isWatched=(a,x,w)=>!w&&(x.watchAll||x.watch.has(a)||[...x.watch].some(x=>a.startsWith(x)&&/^\.\w+/.test(a.slice(x.length))));let iterateFieldsByAction=(a,x,w,A)=>{for(let k of w||Object.keys(a)){let w=get(a,k);if(w){let{_f:a,...F}=w;if(a){if(a.refs&&a.refs[0]&&x(a.refs[0],k)&&!A||a.ref&&x(a.ref,a.name)&&!A)return!0;if(iterateFieldsByAction(F,x))break}else if(isObject(F)&&iterateFieldsByAction(F,x))break}}};var updateFieldArrayRootError=(a,x,w)=>{let A=convertToArrayPayload(get(a,w));return set(A,"root",x[w]),set(a,w,A),a},isFileInput=a=>"file"===a.type,isFunction=a=>"function"==typeof a,isHTMLElement=a=>{if(!k)return!1;let x=a?a.ownerDocument:0;return a instanceof(x&&x.defaultView?x.defaultView.HTMLElement:HTMLElement)},isMessage=a=>isString(a),isRadioInput=a=>"radio"===a.type,isRegex=a=>a instanceof RegExp;let G={value:!1,isValid:!1},$={value:!0,isValid:!0};var getCheckboxValue=a=>{if(Array.isArray(a)){if(a.length>1){let x=a.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:x,isValid:!!x.length}}return a[0].checked&&!a[0].disabled?a[0].attributes&&!isUndefined(a[0].attributes.value)?isUndefined(a[0].value)||""===a[0].value?$:{value:a[0].value,isValid:!0}:$:G}return G};let W={isValid:!1,value:null};var getRadioValue=a=>Array.isArray(a)?a.reduce((a,x)=>x&&x.checked&&!x.disabled?{isValid:!0,value:x.value}:a,W):W;function getValidateError(a,x,w="validate"){if(isMessage(a)||Array.isArray(a)&&a.every(isMessage)||isBoolean(a)&&!a)return{type:w,message:isMessage(a)?a:"",ref:x}}var getValueAndMessage=a=>isObject(a)&&!isRegex(a)?a:{value:a,message:""},validateField=async(a,x,w,A,k)=>{let{ref:F,refs:V,required:z,maxLength:G,minLength:$,min:W,max:Z,pattern:K,validate:Y,name:J,valueAsNumber:ee,mount:et,disabled:er}=a._f,en=get(x,J);if(!et||er)return{};let ei=V?V[0]:F,setCustomValidity=a=>{A&&ei.reportValidity&&(ei.setCustomValidity(isBoolean(a)?"":a||""),ei.reportValidity())},eo={},ea=isRadioInput(F),es=isCheckBoxInput(F),el=(ee||isFileInput(F))&&isUndefined(F.value)&&isUndefined(en)||isHTMLElement(F)&&""===F.value||""===en||Array.isArray(en)&&!en.length,eu=appendErrors.bind(null,J,w,eo),getMinMaxMessage=(a,x,w,A=B.maxLength,k=B.minLength)=>{let V=a?x:w;eo[J]={type:a?A:k,message:V,ref:F,...eu(a?A:k,V)}};if(k?!Array.isArray(en)||!en.length:z&&(!(ea||es)&&(el||isNullOrUndefined(en))||isBoolean(en)&&!en||es&&!getCheckboxValue(V).isValid||ea&&!getRadioValue(V).isValid)){let{value:a,message:x}=isMessage(z)?{value:!!z,message:z}:getValueAndMessage(z);if(a&&(eo[J]={type:B.required,message:x,ref:ei,...eu(B.required,x)},!w))return setCustomValidity(x),eo}if(!el&&(!isNullOrUndefined(W)||!isNullOrUndefined(Z))){let a,x;let A=getValueAndMessage(Z),k=getValueAndMessage(W);if(isNullOrUndefined(en)||isNaN(en)){let w=F.valueAsDate||new Date(en),convertTimeToDate=a=>new Date(new Date().toDateString()+" "+a),V="time"==F.type,B="week"==F.type;isString(A.value)&&en&&(a=V?convertTimeToDate(en)>convertTimeToDate(A.value):B?en>A.value:w>new Date(A.value)),isString(k.value)&&en&&(x=V?convertTimeToDate(en)<convertTimeToDate(k.value):B?en<k.value:w<new Date(k.value))}else{let w=F.valueAsNumber||(en?+en:en);isNullOrUndefined(A.value)||(a=w>A.value),isNullOrUndefined(k.value)||(x=w<k.value)}if((a||x)&&(getMinMaxMessage(!!a,A.message,k.message,B.max,B.min),!w))return setCustomValidity(eo[J].message),eo}if((G||$)&&!el&&(isString(en)||k&&Array.isArray(en))){let a=getValueAndMessage(G),x=getValueAndMessage($),A=!isNullOrUndefined(a.value)&&en.length>+a.value,k=!isNullOrUndefined(x.value)&&en.length<+x.value;if((A||k)&&(getMinMaxMessage(A,a.message,x.message),!w))return setCustomValidity(eo[J].message),eo}if(K&&!el&&isString(en)){let{value:a,message:x}=getValueAndMessage(K);if(isRegex(a)&&!en.match(a)&&(eo[J]={type:B.pattern,message:x,ref:F,...eu(B.pattern,x)},!w))return setCustomValidity(x),eo}if(Y){if(isFunction(Y)){let a=await Y(en,x),A=getValidateError(a,ei);if(A&&(eo[J]={...A,...eu(B.validate,A.message)},!w))return setCustomValidity(A.message),eo}else if(isObject(Y)){let a={};for(let A in Y){if(!isEmptyObject(a)&&!w)break;let k=getValidateError(await Y[A](en,x),ei,A);k&&(a={...k,...eu(A,k.message)},setCustomValidity(k.message),w&&(eo[J]=a))}if(!isEmptyObject(a)&&(eo[J]={ref:ei,...a},!w))return eo}}return setCustomValidity(!0),eo};function unset(a,x){let w=Array.isArray(x)?x:isKey(x)?[x]:stringToPath(x),A=1===w.length?a:function(a,x){let w=x.slice(0,-1).length,A=0;for(;A<w;)a=isUndefined(a)?A++:a[x[A++]];return a}(a,w),k=w.length-1,F=w[k];return A&&delete A[F],0!==k&&(isObject(A)&&isEmptyObject(A)||Array.isArray(A)&&function(a){for(let x in a)if(a.hasOwnProperty(x)&&!isUndefined(a[x]))return!1;return!0}(A))&&unset(a,w.slice(0,-1)),a}var createSubject=()=>{let a=[];return{get observers(){return a},next:x=>{for(let w of a)w.next&&w.next(x)},subscribe:x=>(a.push(x),{unsubscribe:()=>{a=a.filter(a=>a!==x)}}),unsubscribe:()=>{a=[]}}},isPrimitive=a=>isNullOrUndefined(a)||!isObjectType(a);function deepEqual(a,x){if(isPrimitive(a)||isPrimitive(x))return a===x;if(isDateObject(a)&&isDateObject(x))return a.getTime()===x.getTime();let w=Object.keys(a),A=Object.keys(x);if(w.length!==A.length)return!1;for(let k of w){let w=a[k];if(!A.includes(k))return!1;if("ref"!==k){let a=x[k];if(isDateObject(w)&&isDateObject(a)||isObject(w)&&isObject(a)||Array.isArray(w)&&Array.isArray(a)?!deepEqual(w,a):w!==a)return!1}}return!0}var isMultipleSelect=a=>"select-multiple"===a.type,isRadioOrCheckbox=a=>isRadioInput(a)||isCheckBoxInput(a),live=a=>isHTMLElement(a)&&a.isConnected,objectHasFunction=a=>{for(let x in a)if(isFunction(a[x]))return!0;return!1};function markFieldsDirty(a,x={}){let w=Array.isArray(a);if(isObject(a)||w)for(let w in a)Array.isArray(a[w])||isObject(a[w])&&!objectHasFunction(a[w])?(x[w]=Array.isArray(a[w])?[]:{},markFieldsDirty(a[w],x[w])):isNullOrUndefined(a[w])||(x[w]=!0);return x}var getDirtyFields=(a,x)=>(function getDirtyFieldsFromDefaultValues(a,x,w){let A=Array.isArray(a);if(isObject(a)||A)for(let A in a)Array.isArray(a[A])||isObject(a[A])&&!objectHasFunction(a[A])?isUndefined(x)||isPrimitive(w[A])?w[A]=Array.isArray(a[A])?markFieldsDirty(a[A],[]):{...markFieldsDirty(a[A])}:getDirtyFieldsFromDefaultValues(a[A],isNullOrUndefined(x)?{}:x[A],w[A]):w[A]=!deepEqual(a[A],x[A]);return w})(a,x,markFieldsDirty(x)),getFieldValueAs=(a,{valueAsNumber:x,valueAsDate:w,setValueAs:A})=>isUndefined(a)?a:x?""===a?NaN:a?+a:a:w&&isString(a)?new Date(a):A?A(a):a;function getFieldValue(a){let x=a.ref;return(a.refs?a.refs.every(a=>a.disabled):x.disabled)?void 0:isFileInput(x)?x.files:isRadioInput(
69x)?getRadioValue(a.refs).value:isMultipleSelect(x)?[...x.selectedOptions].map(({value:a})=>a):isCheckBoxInput(x)?getCheckboxValue(a.refs).value:getFieldValueAs(isUndefined(x.value)?a.ref.value:x.value,a)}var getResolverOptions=(a,x,w,A)=>{let k={};for(let w of a){let a=get(x,w);a&&set(k,w,a._f)}return{criteriaMode:w,names:[...a],fields:k,shouldUseNativeValidation:A}},getRuleValue=a=>isUndefined(a)?a:isRegex(a)?a.source:isObject(a)?isRegex(a.value)?a.value.source:a.value:a;let Z="AsyncFunction";var hasPromiseValidation=a=>(!a||!a.validate)&&!!(isFunction(a.validate)&&a.validate.constructor.name===Z||isObject(a.validate)&&Object.values(a.validate).find(a=>a.constructor.name===Z)),hasValidation=a=>a.mount&&(a.required||a.min||a.max||a.maxLength||a.minLength||a.pattern||a.validate);function schemaErrorLookup(a,x,w){let A=get(a,w);if(A||isKey(w))return{error:A,name:w};let k=w.split(".");for(;k.length;){let A=k.join("."),F=get(x,A),V=get(a,A);if(F&&!Array.isArray(F)&&w!==A)break;if(V&&V.type)return{name:A,error:V};k.pop()}return{name:w}}var skipValidation=(a,x,w,A,k)=>!k.isOnAll&&(!w&&k.isOnTouch?!(x||a):(w?A.isOnBlur:k.isOnBlur)?!a:(w?!A.isOnChange:!k.isOnChange)||a),unsetEmptyArray=(a,x)=>!compact(get(a,x)).length&&unset(a,x);let K={mode:V.onSubmit,reValidateMode:V.onChange,shouldFocusError:!0};function useForm(a={}){let x=A.useRef(),w=A.useRef(),[B,z]=A.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(a.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:a.errors||{},disabled:a.disabled||!1,defaultValues:isFunction(a.defaultValues)?void 0:a.defaultValues});x.current||(x.current={...function(a={}){let x,w={...K,...a},A={submitCount:0,isDirty:!1,isLoading:isFunction(w.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:w.errors||{},disabled:w.disabled||!1},B={},z=(isObject(w.defaultValues)||isObject(w.values))&&cloneObject(w.defaultValues||w.values)||{},G=w.shouldUnregister?{}:cloneObject(z),$={action:!1,mount:!1,watch:!1},W={mount:new Set,unMount:new Set,array:new Set,watch:new Set},Z=0,Y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},J={values:createSubject(),array:createSubject(),state:createSubject()},ee=getValidationModes(w.mode),et=getValidationModes(w.reValidateMode),er=w.criteriaMode===V.all,debounce=a=>x=>{clearTimeout(Z),Z=setTimeout(a,x)}
vendor: 4,720 bytes, line 69
69,_updateValid=async x=>{if(!a.disabled&&(Y.isValid||x)){let a=w.resolver?isEmptyObject((await _executeSchema()).errors):await executeBuiltInValidation(B,!0);a!==A.isValid&&J.state.next({isValid:a})}},_updateIsValidating=(x,w)=>{!a.disabled&&(Y.isValidating||Y.validatingFields)&&((x||Array.from(W.mount)).forEach(a=>{a&&(w?set(A.validatingFields,a,w):unset(A.validatingFields,a))}),J.state.next({validatingFields:A.validatingFields,isValidating:!isEmptyObject(A.validatingFields)}))},updateErrors=(a,x)=>{set(A.errors,a,x),J.state.next({errors:A.errors})},updateValidAndValue=(a,x,w,A)=>{let k=get(B,a);if(k){let F=get(G,a,isUndefined(w)?get(z,a):w);isUndefined(F)||A&&A.defaultChecked||x?set(G,a,x?F:getFieldValue(k._f)):setFieldValue(a,F),$.mount&&_updateValid()}},updateTouchAndDirty=(x,w,k,F,V)=>{let G=!1,$=!1,W={name:x};if(!a.disabled){let a=!!(get(B,x)&&get(B,x)._f&&get(B,x)._f.disabled);if(!k||F){Y.isDirty&&($=A.isDirty,A.isDirty=W.isDirty=_getDirty(),G=$!==W.isDirty);let k=a||deepEqual(get(z,x),w);$=!!(!a&&get(A.dirtyFields,x)),k||a?unset(A.dirtyFields,x):set(A.dirtyFields,x,!0),W.dirtyFields=A.dirtyFields,G=G||Y.dirtyFields&&!k!==$}if(k){let a=get(A.touchedFields,x);a||(set(A.touchedFields,x,k),W.touchedFields=A.touchedFields,G=G||Y.touchedFields&&a!==k)}G&&V&&J.state.next(W)}return G?W:{}},shouldRenderByError=(w,k,F,V)=>{let B=get(A.errors,w),z=Y.isValid&&isBoolean(k)&&A.isValid!==k;if(a.delayError&&F?(x=debounce(()=>updateErrors(w,F)))(a.delayError):(clearTimeout(Z),x=null,F?set(A.errors,w,F):unset(A.errors,w)),(F?!deepEqual(B,F):B)||!isEmptyObject(V)||z){let a={...V,...z&&isBoolean(k)?{isValid:k}:{},errors:A.errors,name:w};A={...A,...a},J.state.next(a)}},_executeSchema=async a=>{_updateIsValidating(a,!0);let x=await w.resolver(G,w.context,getResolverOptions(a||W.mount,B,w.criteriaMode,w.shouldUseNativeValidation));return _updateIsValidating(a),x},executeSchemaAndUpdateState=async a=>{let{errors:x}=await _executeSchema(a);if(a)for(let w of a){let a=get(x,w);a?set(A.errors,w,a):unset(A.errors,w)}else A.errors=x;return x},executeBuiltInValidation=async(a,x,k={valid:!0})=>{for(let F in a){let V=a[F];if(V){let{_f:a,...B}=V;if(a){let B=W.array.has(a.name),z=V._f&&hasPromiseValidation(V._f);z&&Y.validatingFields&&_updateIsValidating([F],!0);let $=await validateField(V,G,er,w.shouldUseNativeValidation&&!x,B);if(z&&Y.validatingFields&&_updateIsValidating([F]),$[a.name]&&(k.valid=!1,x))break;x||(get($,a.name)?B?updateFieldArrayRootError(A.errors,$,a.name):set(A.errors,a.name,$[a.name]):unset(A.errors,a.name))}isEmptyObject(B)||await executeBuiltInValidation(B,x,k)}}return k.valid},_getDirty=(x,w)=>!a.disabled&&(x&&w&&set(G,x,w),!deepEqual(getValues(),z)),_getWatch=(a,x,w)=>generateWatchOutput(a,W,{...$.mount?G:isUndefined(x)?z:isString(a)?{[a]:x}:x},w,x),setFieldValue=(a,x,w={})=>{let A=get(B,a),k=x;if(A){let w=A._f;w&&(w.disabled||set(G,a,getFieldValueAs(x,w)),k=isHTMLElement(w.ref)&&isNullOrUndefined(x)?"":x,isMultipleSelect(w.ref)?[...w.ref.options].forEach(a=>a.selected=k.includes(a.value)):w.refs?isCheckBoxInput(w.ref)?w.refs.length>1?w.refs.forEach(a=>(!a.defaultChecked||!a.disabled)&&(a.checked=Array.isArray(k)?!!k.find(x=>x===a.value):k===a.value)):w.refs[0]&&(w.refs[0].checked=!!k):w.refs.forEach(a=>a.checked=a.value===k):isFileInput(w.ref)?w.ref.value="":(w.ref.value=k,w.ref.type||J.values.next({name:a,values:{...G}})))}(w.shouldDirty||w.shouldTouch)&&updateTouchAndDirty(a,k,w.shouldTouch,w.shouldDirty,!0),w.shouldValidate&&trigger(a)},setValues=(a,x,w)=>{for(let A in x){let k=x[A],F=`${a}.${A}`,V=get(B,F);(W.array.has(a)||isObject(k)||V&&!V._f)&&!isDateObject(k)?setValues(F,k,w):setFieldValue(F,k,w)}},setValue=(a,x,w={})=>{let k=get(B,a),F=W.array.has(a),V=cloneObject(x);set(G,a,V),F?(J.array.next({name:a,values:{...G}}),(Y.isDirty||Y.dirtyFields)&&w.shouldDirty&&J.state.next({name:a,dirtyFields:getDirtyFields(z,G),isDirty:_getDirty(a,V)})):!k||k._f||isNullOrUndefined(V)?setFieldValue(a,V,w):setValues(a,V,w),isWatched(a,W)&&J.state.next({...A}),J.values.next({name:$.mount?a:void 0,values:{...G}})},onChange=async k=>{$.mount=!0;let V=k.target,z=V.name,Z=!0,K=get(B,z),_updateIsFieldValueUpdated=a=>{Z=Number.isNaN(a)||isDateObject(a)&&isNaN(a.getTime())||deepEqual(a,get(G,z,a))};if(K){let $,en;let ei=V.type?getFieldValue(K._f):getEventValue(k),eo=k.type===F.BLUR||k.type===F.FOCUS_OUT,ea=!hasValidation(K._f)&&!w.resolver&&!get(A.errors,z)&&!K._f.deps||skipValidation(eo,get(A.touchedFields,z),A.isSubmitted,et,ee),es=isWatched(z,W,eo);set(G,z,ei),eo?(K._f.onBlur&&K._f.onBlur(k),x&&x(0)):K._f.onChange&&K._f.onChange(k);let el=updateTouchAndDirty(z,ei,eo,!1),eu=!isEmptyObject(el)||es;if(eo||J.values.next({name:z,type:k.type,values:{...G}}
69),ea)return Y.isValid&&("onBlur"===a.mode?eo&&_updateValid():_updateValid()),eu&&J.state.next({name:z,...es?{}:el});if(!eo&&es&&J.state.next({...A}),w.resolver){let{errors:a}=await _executeSchema([z]);if(_updateIsFieldValueUpdated(ei),Z){let x=schemaErrorLookup(A.errors,B,z),w=schemaErrorLookup(a,B,x.name||z);$=w.error,z=w.name,en=isEmptyObject(a)}}else _updateIsValidating([z],!0),$=(await validateField(K,G,er,w.shouldUseNativeValidation))[z],_updateIsValidating([z]),_updateIsFieldValueUpdated(ei),Z&&($?en=!1:Y.isValid&&(en=await executeBuiltInValidation(B,!0)));Z&&(K._f.deps&&trigger(K._f.deps),shouldRenderByError(z,en,$,el))}},_focusInput=(a,x)=>{if(get(A.errors,x)&&a.focus)return a.focus(),1},trigger=async(a,x={})=>{let k,F;let V=convertToArrayPayload(a);if(w.resolver){let x=await executeSchemaAndUpdateState(isUndefined(a)?a:V);k=isEmptyObject(x),F=a?!V.some(a=>get(x,a)):k}else a?((F=(await Promise.all(V.map(async a=>{let x=get(B,a);return await executeBuiltInValidation(x&&x._f?{[a]:x}:x)}))).every(Boolean))||A.isValid)&&_updateValid():F=k=await executeBuiltInValidation(B);return J.state.next({...!isString(a)||Y.isValid&&k!==A.isValid?{}:{name:a},...w.resolver||!a?{isValid:k}:{},errors:A.errors}),x.shouldFocus&&!F&&iterateFieldsByAction(B,_focusInput,a?V:W.mount),F},getValues=a=>{let x={...$.mount?G:z};return isUndefined(a)?x:isString(a)?get(x,a):a.map(a=>get(x,a))},getFieldState=(a,x)=>({invalid:!!get((x||A).errors,a),isDirty:!!get((x||A).dirtyFields,a),error:get((x||A).errors,a),isValidating:!!get(A.validatingFields,a),isTouched:!!get((x||A).touchedFields,a)}),setError=(a,x,w)=>{let k=(get(B,a,{_f:{}})._f||{}).ref,F=get(A.errors,a)||{},{ref:V,message:z,type:G,...$}=F;set(A.errors,a,{...$,...x,ref:k}),J.state.next({name:a,errors:A.errors,isValid:!1}),w&&w.shouldFocus&&k&&k.focus&&k.focus()},unregister=(a,x={})=>{for(let k of a?convertToArrayPayload(a):W.mount)W.mount.delete(k),W.array.delete(k),x.keepValue||(unset(B,k),unset(G,k)),x.keepError||unset(A.errors,k),x.keepDirty||unset(A.dirtyFields,k),x.keepTouched||unset(A.touchedFields,k),x.keepIsValidating||unset(A.validatingFields,k),w.shouldUnregister||x.keepDefaultValue||unset(z,k);J.values.next({values:{...G}}),J.state.next({...A,...x.keepDirty?{isDirty:_getDirty()}:{}}),x.keepIsValid||_updateValid()},_updateDisabledField=({disabled:a,name:x,field:w,fields:A,value:k})=>{if(isBoolean(a)&&$.mount||a){let F=a?void 0:isUndefined(k)?getFieldValue(w?w._f:get(A,x)._f):k;set(G,x,F),updateTouchAndDirty(x,F,!1,!1,!0)}},register=(x,A={})=>{let k=get(B,x),F=isBoolean(A.disabled)||isBoolean(a.disabled);return set(B,x,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:x}},name:x,mount:!0,...A}}),W.mount.add(x),k?_updateDisabledField({field:k,disabled:isBoolean(A.disabled)?A.disabled:a.disabled,name:x,value:A.value}):updateValidAndValue(x,!0,A.value),{...F?{disabled:A.disabled||a.disabled}:{},...w.progressive?{required:!!A.required,min:getRuleValue(A.min),max:getRuleValue(A.max),minLength:getRuleValue(A.minLength),maxLength:getRuleValue(A.maxLength),pattern:getRuleValue(A.pattern)}:{},name:x,onChange,onBlur:onChange,ref:a=>{if(a){register(x,A),k=get(B,x);let w=isUndefined(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,F=isRadioOrCheckbox(w),V=k._f.refs||[];(F?V.find(a=>a===w):w===k._f.ref)||(set(B,x,{_f:{...k._f,...F?{refs:[...V.filter(live),w,...Array.isArray(get(z,x))?[{}]:[]],ref:{type:w.type,name:x}}:{ref:w}}}),updateValidAndValue(x,!1,void 0,w))}else(k=get(B,x,{}))._f&&(k._f.mount=!1),(w.shouldUnregister||A.shouldUnregister)&&!(isNameInFieldArray(W.array,x)&&$.action)&&W.unMount.add(x)}}},_focusError=()=>w.shouldFocusError&&iterateFieldsByAction(B,_focusInput,W.mount),handleSubmit=(a,x)=>async k=>{let F;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let V=cloneObject(G);if(J.state.next({isSubmitting:!0}),w.resolver){let{errors:a,values:x}=await _executeSchema();A.errors=a,V=x}else await executeBuiltInValidation(B);if(unset(A.errors,"root"),isEmptyObject(A.errors)){J.state.next({errors:{}});try{await a(V,k)}catch(a){F=a}}else x&&await x({...A.errors},k),_focusError(),setTimeout(_focusError);if(J.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(A.errors)&&!F,submitCount:A.submitCount+1,errors:A.errors}),F)throw F},_reset=(x,w={})=>{let F=x?cloneObject(x):z,V=cloneObject(F),Z=isEmptyObject(x),K=Z?z:V;if(w.keepDefaultValues||(z=F),!w.keepValues){if(w.keepDirtyValues){let a=new Set([...W.mount,...Object.keys(getDirtyFields(z,G))]);for(let x of Array.from(a))get(A.dirtyFields,x)?set(K,x,get(G,x)):setValue(x,get(K,x))}else{if(k&&isUndefined(x))for(let a of W.mount){let x=get(B,a);if(x&&x._f){let a=Array.isArray(x._f.refs)?x._f.refs[0]:x._f.ref;if(isHTMLElement(a)){let x=a.closest("form");if(x){x.reset();break}}}}B={}}G=a.shouldUnregister?w.keepDefaultValues?cloneObject(z):{}:cloneObject(K),J.array.next({values:{...K}}),J.values.next({values:{...K}})}W={mount:w.keepDirtyValues?W.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},$.mount=!Y.isValid||!!w.keepIsValid||!!w.keepDirtyValues,$.watch=!!a.shouldUnregister,J.state.next({submitCount:w.keepSubmitCount?A.submitCount:0,isDirty:!Z&&(w.keepDirty?A.isDirty:!!(w.keepDefaultValues&&!deepEqual(x,z))),isSubmitted:!!w.keepIsSubmitted&&A.isSubmitted,dirtyFields:Z?{}:w.keepDirtyValues?w.keepDefaultValues&&G?getDirtyFields(z,G):A.dirtyFields:w.keepDefaultValues&&x?getDirtyFields(z,x):w.keepDirty?A.dirtyFields:{},touchedFields:w.keepTouched?A.touchedFields:{},errors:w.keepErrors?A.errors:{},isSubmitSuccessful:!!w.keepIsSubmitSuccessful&&A.isSubmitSuccessful,isSubmitting:!1})},reset=(a,x)=>_reset(isFunction(a)?a(G):a,x);return{control:{register,unregister,getFieldState,handleSubmit,setError,_executeSchema,_getWatch,_getDirty,_updateV
69alid,_removeUnmounted:()=>{for(let a of W.unMount){let x=get(B,a);x&&(x._f.refs?x._f.refs.every(a=>!live(a)):!live(x._f.ref))&&unregister(a)}W.unMount=new Set},_updateFieldArray:(x,w=[],k,F,V=!0,W=!0)=>{if(F&&k&&!a.disabled){if($.action=!0,W&&Array.isArray(get(B,x))){let a=k(get(B,x),F.argA,F.argB);V&&set(B,x,a)}if(W&&Array.isArray(get(A.errors,x))){let a=k(get(A.errors,x),F.argA,F.argB);V&&set(A.errors,x,a),unsetEmptyArray(A.errors,x)}if(Y.touchedFields&&W&&Array.isArray(get(A.touchedFields,x))){let a=k(get(A.touchedFields,x),F.argA,F.argB);V&&set(A.touchedFields,x,a)}Y.dirtyFields&&(A.dirtyFields=getDirtyFields(z,G)),J.state.next({name:x,isDirty:_getDirty(x,w),dirtyFields:A.dirtyFields,errors:A.errors,isValid:A.isValid})}else set(G,x,w)},_updateDisabledField,_getFieldArray:x=>compact(get($.mount?G:z,x,a.shouldUnregister?get(z,x,[]):[])),_reset,_resetDefaultValues:()=>isFunction(w.defaultValues)&&w.defaultValues().then(a=>{reset(a,w.resetOptions),J.state.next({isLoading:!1})}),_updateFormState:a=>{A={...A,...a}},_disableForm:a=>{isBoolean(a)&&(J.state.next({disabled:a}),iterateFieldsByAction(B,(x,w)=>{let A=get(B,w);A&&(x.disabled=A._f.disabled||a,Array.isArray(A._f.refs)&&A._f.refs.forEach(x=>{x.disabled=A._f.disabled||a}))},0,!1))},_subjects:J,_proxyFormState:Y,_setErrors:a=>{A.errors=a,J.state.next({errors:A.errors,isValid:!1})},get _fields(){return B},get _formValues(){return G},get _state(){return $},set _state(value){$=value},get _defaultValues(){return z},get _names(){return W},set _names(value){W=value},get _formState(){return A},set _formState(value){A=value},get _options(){return w},set _options(value){w={...w,...value}}},trigger,register,handleSubmit,watch:(a,x)=>isFunction(a)?J.values.subscribe({next:w=>a(_getWatch(void 0,x),w)}):_getWatch(a,x,!0),setValue,getValues,reset,resetField:(a,x={})=>{get(B,a)&&(isUndefined(x.defaultValue)?setValue(a,cloneObject(get(z,a))):(setValue(a,x.defaultValue),set(z,a,cloneObject(x.defaultValue))),x.keepTouched||unset(A.touchedFields,a),x.keepDirty||(unset(A.dirtyFields,a),A.isDirty=x.defaultValue?_getDirty(a,cloneObject(get(z,a))):_getDirty()),!x.keepError&&(unset(A.errors,a),Y.isValid&&_updateValid()),J.state.next({...A}))},clearErrors:a=>{a&&convertToArrayPayload(a).forEach(a=>unset(A.errors,a)),J.state.next({errors:a?A.errors:{}})},unregister,setError,setFocus:(a,x={})=>{let w=get(B,a),A=w&&w._f;if(A){let a=A.refs?A.refs[0]:A.ref;a.focus&&(a.focus(),x.shouldSelect&&a.select())}},getFieldState}}(a),formState:B});let G=x.current.control;return G._options=a,useSubscribe({subject:G._subjects.state,next:a=>{shouldRenderFormState(a,G._proxyFormState,G._updateFormState,!0)&&z({...G._formState})}}),A.useEffect(()=>G._disableForm(a.disabled),[G,a.disabled]),A.useEffect(()=>{if(G._proxyFormState.isDirty){let a=G._getDirty();a!==B.isDirty&&G._subjects.state.next({isDirty:a})}},[G,B.isDirty]),A.useEffect(()=>{a.values&&!deepEqual(a.values,w.current)?(G._reset(a.values,G._options.resetOptions),w.current=a.values,z(a=>({...a}))):G._resetDefaultValues()},[a.values,G]),A.useEffect(()=>{a.errors&&G._setErrors(a.errors)},[a.errors,G]),A.useEffect(()=>{G._state.mount||(G._updateValid(),G._state.mount=!0),G._state.watch&&(G._state.watch=!1,G._subjects.state.next({...G._formState})),G._removeUnmounted()}),A.useEffect(()=>{a.shouldUnregister&&G._subjects.values.next({values:G._getWatch()})},[a.shouldUnregister,G]),A.useEffect(()=>{x.current&&(x.current.watch=x.current.watch.bind({}))},[B]),x.current.formState=getProxyFormState(B,G),x.current}},55678:function(a,x,w){"use strict";w.r(x),w.d(x,{Bounce:function(){return B},Flip:function(){return $},Icons:function(){return V},Slide:function(){return z},ToastContainer:function(){return W},Zoom:function(){return G},collapseToast:function(){return g},cssTransition:function(){return h},toast:function(){return Q},useToast:function(){return _},useToastContainer:function(){return C}});var A=w(67294),k=w(86010);let u=a=>"number"==typeof a&&!isNaN(a),d=a=>"string"==typeof a,p=a=>"function"==typeof a,m=a=>d(a)||p(a)?a:null,f=a=>(0,A.isValidElement)(a)||d(a)||p(a)||u(a);function g(a,x,w){void 0===w&&(w=300);let{scrollHeight:A,style:k}=a;requestAnimationFrame(()=>{k.minHeight="initial",k.height=A+"px",k.transition=`all ${w}ms`,requestAnimationFrame(()=>{k.height="0",k.padding="0",k.margin="0",setTimeout(x,w)})})}function h(a){let{enter:x,exit:w,appendPosition:k=!1,collapse:F=!0,collapseDuration:V=300}=a;return function(a){let{children:B,position:z,preventExitTransition:G,done:$,nodeRef:W,isIn:Z}=a,K=k?`${x}--${z}`:x,Y=k?`${w}--${z}`:w,J=(0,A.useRef)(0);return(0,A.useLayoutEffect)(()=>{let a=W.current,x=K.split(" "),n=w=>{w.target===W.current&&(a.dispatchEvent(new Event("d")),a.removeEventListener("animationend",n),a.removeEventListener("animationcancel",n),0===J.current&&"animationcancel"!==w.t
69ype&&a.classList.remove(...x))};a.classList.add(...x),a.addEventListener("animationend",n),a.addEventListener("animationcancel",n)},[]),(0,A.useEffect)(()=>{let a=W.current,e=()=>{a.removeEventListener("animationend",e),F?g(a,$,V):$()};Z||(G?e():(J.current=1,a.className+=` ${Y}`,a.addEventListener("animationend",e)))},[Z]),A.createElement(A.Fragment,null,B)}}function y(a,x){return null!=a?{content:a.content,containerId:a.props.containerId,id:a.props.toastId,theme:a.props.theme,type:a.props.type,data:a.props.data||{},isLoading:a.props.isLoading,icon:a.props.icon,status:x}:{}}let F={list:new Map,emitQueue:new Map,on(a,x){return this.list.has(a)||this.list.set(a,[]),this.list.get(a).push(x),this},off(a,x){if(x){let w=this.list.get(a).filter(a=>a!==x);return this.list.set(a,w),this}return this.list.delete(a),this},cancelEmit(a){let x=this.emitQueue.get(a);return x&&(x.forEach(clearTimeout),this.emitQueue.delete(a)),this},emit(a){this.list.has(a)&&this.list.get(a).forEach(x=>{let w=setTimeout(()=>{x(...[].slice.call(arguments,1))},0);this.emitQueue.has(a)||this.emitQueue.set(a,[]),this.emitQueue.get(a).push(w)})}},T=a=>{let{theme:x,type:w,...k}=a;return A.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===x?"currentColor":`var(--toastify-icon-color-${w})`,...k})},V={info:function(a){return A.createElement(T,{...a},A.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(a){return A.createElement(T,{...a},A.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(a){return A.createElement(T,{...a},A.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(a){return A.createElement(T,{...a},A.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return A.createElement("div",{className:"Toastify__spinner"})}};function C(a){let[,x]=(0,A.useReducer)(a=>a+1,0),[w,k]=(0,A.useState)([]),B=(0,A.useRef)(null),z=(0,A.useRef)(new Map).current,T=a=>-1!==w.indexOf(a),G=(0,A.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:a,containerId:null,isToastActive:T,getToast:a=>z.get(a)}).current;function b(a){let{containerId:x}=a,{limit:w}=G.props;!w||x&&G.containerId!==x||(G.count-=G.queue.length,G.queue=[])}function I(a){k(x=>null==a?[]:x.filter(x=>x!==a))}function _(){let{toastContent:a,toastProps:x,staleId:w}=G.queue.shift();O(a,x,w)}function L(a,w){var k,$;let{delay:W,staleId:Z,...K}=w;if(!f(a)||!B.current||G.props.enableMultiContainer&&K.containerId!==G.props.containerId||z.has(K.toastId)&&null==K.updateId)return;let{toastId:Y,updateId:J,data:ee}=K,{props:et}=G,L=()=>I(Y),er=null==J;er&&G.count++;let en={...et,style:et.toastStyle,key:G.toastKey++,...Object.fromEntries(Object.entries(K).filter(a=>{let[x,w]=a;return null!=w})),toastId:Y,updateId:J,data:ee,closeToast:L,isIn:!1,className:m(K.className||et.toastClassName),bodyClassName:m(K.bodyClassName||et.bodyClassName),progressClassName:m(K.progressClassName||et.progressClassName),autoClose:!K.isLoading&&(k=K.autoClose,$=et.autoClose,!1===k||u(k)&&k>0?k:$),deleteToast(){let a=y(z.get(Y),"removed");
69z.delete(Y),F.emit(4,a);let w=G.queue.length;if(G.count=null==Y?G.count-G.displayedToast:G.count-1,G.count<0&&(G.count=0),w>0){let a=null==Y?G.props.limit:1;if(1===w||1===a)G.displayedToast++,_();else{let x=a>w?w:a;G.displayedToast=x;for(let a=0;a<x;a++)_()}}else x()}};en.iconOut=function(a){let{theme:x,type:w,isLoading:k,icon:F}=a,B=null,z={theme:x,type:w};return!1===F||(p(F)?B=F(z):(0,A.isValidElement)(F)?B=(0,A.cloneElement)(F,z):d(F)||u(F)?B=F:k?B=V.spinner():w in V&&(B=V[w](z))),B}(en),p(K.onOpen)&&(en.onOpen=K.onOpen),p(K.onClose)&&(en.onClose=K.onClose),en.closeButton=et.closeButton,!1===K.closeButton||f(K.closeButton)?en.closeButton=K.closeButton:!0===K.closeButton&&(en.closeButton=!f(et.closeButton)||et.closeButton);let ei=a;(0,A.isValidElement)(a)&&!d(a.type)?ei=(0,A.cloneElement)(a,{closeToast:L,toastProps:en,data:ee}):p(a)&&(ei=a({closeToast:L,toastProps:en,data:ee})),et.limit&&et.limit>0&&G.count>et.limit&&er?G.queue.push({toastContent:ei,toastProps:en,staleId:Z}):u(W)?setTimeout(()=>{O(ei,en,Z)},W):O(ei,en,Z)}function O(a,x,w){let{toastId:A}=x;w&&z.delete(w);let V={content:a,props:x};z.set(A,V),k(a=>[...a,A].filter(a=>a!==w)),F.emit(4,y(V,null==V.props.updateId?"added":"updated"))}return(0,A.useEffect)(()=>(G.containerId=a.containerId,F.cancelEmit(3).on(0,L).on(1,a=>B.current&&I(a)).on(5,b).emit(2,G),()=>{z.clear(),F.emit(3,G)}),[]),(0,A.useEffect)(()=>{G.props=a,G.isToastActive=T,G.displayedToast=w.length}),{getToastToRender:function(x){let w=new Map,A=Array.from(z.values());return a.newestOnTop&&A.reverse(),A.forEach(a=>{let{position:x}=a.props;w.has(x)||w.set(x,[]),w.get(x).push(a)}),Array.from(w,a=>x(a[0],a[1]))},containerRef:B,isToastActive:T}}function b(a){return a.targetTouches&&a.targetTouches.length>=1?a.targetTouches[0].clientX:a.clientX}function I(a){return a.targetTouches&&a.targetTouches.length>=1?a.targetTouches[0].clientY:a.clientY}function _(a){let[x,w]=(0,A.useState)(!1),[k,F]=(0,A.useState)(!1),V=(0,A.useRef)(null),B=(0,A.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,z=(0,A.useRef)(a),{autoClose:G,pauseOnHover:$,closeToast:W,onClick:Z,closeOnClick:K}=a;function v(x){if(a.draggable){"touchstart"===x.nativeEvent.type&&x.nativeEvent.preventDefault(),B.didMove=!1,document.addEventListener("mousemove",_),document.addEventListener("mouseup",L),document.addEventListener("touchmove",_),document.addEventListener("touchend",L);let w=V.current;B.canCloseOnClick=!0,B.canDrag=!0,B.boundingRect=w.getBoundingClientRect(),w.style.transition="",B.x=b(x.nativeEvent),B.y=I(x.nativeEvent),"x"===a.draggableDirection?(B.start=B.x,B.removalDistance=w.offsetWidth*(a.draggablePercent/100)):(B.start=B.y,B.removalDistance=w.offsetHeight*(80===a.draggablePercent?1.5*a.draggablePercent:a.draggablePercent/100))}}function T(x){if(B.boundingRect){let{top:w,bottom:A,left:k,right:F}=B.boundingRect;"touchend"!==x.nativeEvent.type&&a.pauseOnHover&&B.x>=k&&B.x<=F&&B.y>=w&&B.y<=A?C():E()}}function E(){w(!0)}function C(){w(!1)}function _(w){let A=V.current;B.canDrag&&A&&(B.didMove=!0,x&&C(),B.x=b(w),B.y=I(w),B.delta="x"===a.draggableDirection?B.x-B.start:B.y-B.start,B.start!==B.x&&(B.canCloseOnClick=!1),A.style.transform=`translate${a.draggableDirection}(${B.delta}px)`,A.style.opacity=""+(1-Math.abs(B.delta/B.removalDistance)))}function L(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L);let x=V.current;if(B.canDrag&&B.didMove&&x){if(B.canDrag=!1,Math.abs(B.delta)>B.removalDistance)return F(!0),void a.closeToast();x.style.transition="transform 0.2s, opacity 0.2s",x.style.transform=`translate${a.draggableDirection}(0)`,x.style.opacity="1"}}(0,A.useEffect)(()=>{z.current=a}),(0,A.useEffect)(()=>(V.current&&V.current.addEventListener("d",E,{once:!0}),p(a.onOpen)&&a.onOpen((0,A.isValidElement)(a.children)&&a.children.props),()=>{let a=z.current;p(a.onClose)&&a.onClose((0,A.isValidElement)(a.children)&&a.children.props)}),[]),(0,A.useEffect)(()=>(a.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",E),window.addEventListener("blur",C)),()=>{a.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",C))}),[a.pauseOnFocusLoss]);let Y={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return G&&$&&(Y.onMouseEnter=C,Y.onMouseLeave=E),K&&(Y.onClick=a=>{Z&&Z(a),B.canCloseOnClick&&W()}),{playToast:E,pauseToast:C,isRunning:x,preventExitTransition:k,toastRef:V,eventHandlers:Y}}function L(a){let{closeToast:x,theme:w,ariaLabel:k="close"}=a;return A.createElement("button",{className:`Toastify__close-button Toastify__close-button--${w}`,type:"button",onClick:a=>{a.stopPropagation(),x(a)},"aria-label":k},A.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},A.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(a){let{delay:x,isRunning:w,closeToast:F,type:V="default",hide:B,className:z,style:G,controlledProgress:$,progress:W,rtl:Z,isIn:K,theme:Y}=a,J=B||$&&0===W,ee={...G,animationDuration:`${x}ms`,animationPlayState:w?"running":"paused",opacity:J?0:1};$&&(ee.transform=`scaleX(${W})`);let et=(0,k.default)("Toastify__progress-bar",$?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Y}`,`Toastify__progress-bar--${V}`,{"Toastify__progress-bar--rtl":Z}),er=p(z)?z({rtl:Z,type:V,defaultClassName:et}):(0,k.default)(et,z);return A.createElement("div",{role:"progressbar","aria-hidden":J?"true":"false","aria-label":"notification timer",className:er,style:ee,[$&&W>=1?"onTransitionEnd":"onAnimationEnd"]:$&&W<1?null:()=>{K&&F()}})}let N=a=>{let{isRunning:x,preventExitTransition:w,toastRef:F,eventHandlers:V}=_(a),{closeButton:B,children:z,autoClose:G,onClick:$,type:W,hideProgressBar:Z,closeToast:K,transition:Y,position:J,className:ee,style:et,bodyClassName:er,bodyStyle:en,progressClassName:ei,progressStyle:eo,updateId:ea,role:es,progress:el,rtl:eu,toastId:ec,deleteToast:ed,isIn:ef,isLoading:ep,iconOut:eh,closeOnClick:em,theme:eg}=a,ev=(0,k.default)("Toastify__toast",`Toastify__toast-theme--${eg}`,`Toastify__toast--${W}`,{"Toastify__toast--rtl":eu},{"Toastify__toast--close-on-click":em}),ey=p(ee)?ee({rtl:eu,position:J,type:W,defaultClassName:ev}
69):(0,k.default)(ev,ee),eb=!!el||!G,e_={closeToast:K,type:W,theme:eg},ex=null;return!1===B||(ex=p(B)?B(e_):(0,A.isValidElement)(B)?(0,A.cloneElement)(B,e_):L(e_)),A.createElement(Y,{isIn:ef,done:ed,position:J,preventExitTransition:w,nodeRef:F},A.createElement("div",{id:ec,onClick:$,className:ey,...V,style:et,ref:F},A.createElement("div",{...ef&&{role:es},className:p(er)?er({type:W}):(0,k.default)("Toastify__toast-body",er),style:en},null!=eh&&A.createElement("div",{className:(0,k.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ep})},eh),A.createElement("div",null,z)),ex,A.createElement(O,{...ea&&!eb?{key:`pb-${ea}`}:{},rtl:eu,theme:eg,delay:G,isRunning:x,isIn:ef,closeToast:K,hide:Z,type:W,style:eo,className:ei,controlledProgress:eb,progress:el||0})))},M=function(a,x){return void 0===x&&(x=!1),{enter:`Toastify--animate Toastify__${a}-enter`,exit:`Toastify--animate Toastify__${a}-exit`,appendPosition:x}},B=h(M("bounce",!0)),z=h(M("slide",!0)),G=h(M("zoom")),$=h(M("flip")),W=(0,A.forwardRef)((a,x)=>{let{getToastToRender:w,containerRef:F,isToastActive:V}=C(a),{className:B,style:z,rtl:G,containerId:$}=a;return(0,A.useEffect)(()=>{x&&(x.current=F.current)},[]),A.createElement("div",{ref:F,className:"Toastify",id:$},w((a,x)=>{let w=x.length?{...z}:{...z,pointerEvents:"none"};return A.createElement("div",{className:function(a){let x=(0,k.default)("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":G});return p(B)?B({position:a,rtl:G,defaultClassName:x}):(0,k.default)(x,m(B))}(a),style:w,key:`container-${a}`},x.map((a,w)=>{let{content:k,props:F}=a;return A.createElement(N,{...F,isIn:V(F.toastId),style:{...F.style,"--nth":w+1,"--len":x.length},key:`toast-${F.key}`},k)}))}))});W.displayName="ToastContainer",W.defaultProps={position:"top-right",transition:B,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Z,K=new Map,Y=[],J=1;function H(a,x){return K.size>0?F.emit(0,a,x):Y.push({content:a,options:x}),x.toastId}function S(a,x){return{...x,type:x&&x.type||a,toastId:x&&(d(x.toastId)||u(x.toastId))?x.toastId:""+J++}}function q(a){return(x,w)=>H(x,S(a,w))}function Q(a,x){return H(a,S("default",x))}Q.loading=(a,x)=>H(a,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...x})),Q.promise=function(a,x,w){let A,{pending:k,error:F,success:V}=x;k&&(A=d(k)?Q.loading(k,w):Q.loading(k.render,{...w,...k}));let B={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(a,x,k)=>{if(null==x)return void Q.dismiss(A);let F={type:a,...B,...w,data:k},V=d(x)?{render:x}:x;return A?Q.update(A,{...F,...V}):Q(V.render,{...F,...V}),k},z=p(a)?a():a;return z.then(a=>l("success",V,a)).catch(a=>l("error",F,a)),z},Q.success=q("success"),Q.info=q("info"),Q.error=q("error"),Q.warning=q("warning"),Q.warn=Q.warning,Q.dark=(a,x)=>H(a,S("default",{theme:"dark",...x})),Q.dismiss=a=>{K.size>0?F.emit(1,a):Y=Y.filter(x=>null!=a&&x.options.toastId!==a)},Q.clearWaitingQueue=function(a){return void 0===a&&(a={}),F.emit(5,a)},Q.isActive=a=>{let x=!1;return K.forEach(w=>{w.isToastActive&&w.isToastActive(a)&&(x=!0)}),x},Q.update=function(a,x){void 0===x&&(x={}),setTimeout(()=>{let w=function(a,x){let{containerId:w}=x,A=K.get(w||Z);return A&&A.getToast(a)}(a,x);if(w){let{props:A,content:k}=w,F={delay:100,...A,...x,toastId:x.toastId||a,updateId:""+J++};F.toastId!==a&&(F.staleId=a);let V=F.render||k;delete F.render,H(V,F)}},0)},Q.done=a=>{Q.update(a,{progress:1})},Q.onChange=a=>(F.on(4,a),()=>{F.off(4,a)}),Q.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Q.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},F.on(2,a=>{Z=a.containerId||a,K.set(Z,a),Y.forEach(a=>{F.emit(0,a.content,a.options)}),Y=[]}).on(3,a=>{K.delete(a.containerId||a),0===K.size&&F.off(0).off(1).off(5)})},98388:function(a,x,w){"use strict";w.d(x,{m6:function(){return J}});let createClassGroupUtils=a=>{let x=createClassMap(a),{conflictingClassGroups:w,conflictingClassGroupModifiers:A}=a;return{getClassGroupId:a=>{let w=a.split("-");return""===w[0]&&1!==w.length&&w.shift(),getGroupRecursive(w,x)||getGroupIdForArbitraryPro
69perty(a)},getConflictingClassGroupIds:(a,x)=>{let k=w[a]||[];return x&&A[a]?[...k,...A[a]]:k}}},getGroupRecursive=(a,x)=>{if(0===a.length)return x.classGroupId;let w=a[0],A=x.nextPart.get(w),k=A?getGroupRecursive(a.slice(1),A):void 0;if(k)return k;if(0===x.validators.length)return;let F=a.join("-");return x.validators.find(({validator:a})=>a(F))?.classGroupId},A=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=a=>{if(A.test(a)){let x=A.exec(a)[1],w=x?.substring(0,x.indexOf(":"));if(w)return"arbitrary.."+w}},createClassMap=a=>{let{theme:x,prefix:w}=a,A={nextPart:new Map,validators:[]},k=getPrefixedClassGroupEntries(Object.entries(a.classGroups),w);return k.forEach(([a,w])=>{processClassesRecursively(w,A,a,x)}),A},processClassesRecursively=(a,x,w,A)=>{a.forEach(a=>{if("string"==typeof a){let A=""===a?x:getPart(x,a);A.classGroupId=w;return}if("function"==typeof a){if(isThemeGetter(a)){processClassesRecursively(a(A),x,w,A);return}x.validators.push({validator:a,classGroupId:w});return}Object.entries(a).forEach(([a,k])=>{processClassesRecursively(k,getPart(x,a),w,A)})})},getPart=(a,x)=>{let w=a;return x.split("-").forEach(a=>{w.nextPart.has(a)||w.nextPart.set(a,{nextPart:new Map,validators:[]}),w=w.nextPart.get(a)}),w},isThemeGetter=a=>a.isThemeGetter,getPrefixedClassGroupEntries=(a,x)=>x?a.map(([a,w])=>{let A=w.map(a=>"string"==typeof a?x+a:"object"==typeof a?Object.fromEntries(Object.entries(a).map(([a,w])=>[x+a,w])):a);return[a,A]}):a,createLruCache=a=>{if(a<1)return{get:()=>void 0,set:()=>{}};let x=0,w=new Map,A=new Map,update=(k,F)=>{w.set(k,F),++x>a&&(x=0,A=w,w=new Map)};return{get(a){let x=w.get(a);return void 0!==x?x:void 0!==(x=A.get(a))?(update(a,x),x):void 0},set(a,x){w.has(a)?w.set(a,x):update(a,x)}}},createParseClassName=a=>{let{separator:x,experimentalParseClassName:w}=a,A=1===x.length,k=x[0],F=x.length,parseClassName=a=>{let w;let V=[],B=0,z=0;for(let G=0;G<a.length;G++){let $=a[G];if(0===B){if($===k&&(A||a.slice(G,G+F)===x)){V.push(a.slice(z,G)),z=G+F;continue}if("/"===$){w=G;continue}}"["===$?B++:"]"===$&&B--}let G=0===V.length?a:a.substring(z),$=G.startsWith("!"),W=$?G.substring(1):G,Z=w&&w>z?w-z:void 0;return{modifiers:V,hasImportantModifier:$,baseClassName:W,maybePostfixModifierPosition:Z}};return w?a=>w({className:a,parseClassName}):parseClassName},sortModifiers=a=>
69{if(a.length<=1)return a;let x=[],w=[];return a.forEach(a=>{let A="["===a[0];A?(x.push(...w.sort(),a),w=[]):w.push(a)}),x.push(...w.sort()),x},createConfigUtils=a=>({cache:createLruCache(a.cacheSize),parseClassName:createParseClassName(a),...createClassGroupUtils(a)}),k=/\s+/,mergeClassList=(a,x)=>{let{parseClassName:w,getClassGroupId:A,getConflictingClassGroupIds:F}=x,V=[],B=a.trim().split(k),z="";for(let a=B.length-1;a>=0;a-=1){let x=B[a],{modifiers:k,hasImportantModifier:G,baseClassName:$,maybePostfixModifierPosition:W}=w(x),Z=!!W,K=A(Z?$.substring(0,W):$);if(!K){if(!Z||!(K=A($))){z=x+(z.length>0?" "+z:z);continue}Z=!1}let Y=sortModifiers(k).join(":"),J=G?Y+"!":Y,ee=J+K;if(V.includes(ee))continue;V.push(ee);let et=F(K,Z);for(let a=0;a<et.length;++a){let x=et[a];V.push(J+x)}z=x+(z.length>0?" "+z:z)}return z};function twJoin(){let a,x,w=0,A="";for(;w<arguments.length;)(a=arguments[w++])&&(x=toValue(a))&&(A&&(A+=" "),A+=x);return A}let toValue=a=>{let x;if("string"==typeof a)return a;let w="";for(let A=0;A<a.length;A++)a[A]&&(x=toValue(a[A]))&&(w&&(w+=" "),w+=x);return w},fromTheme=a=>{let themeGetter=x=>x[a]||[];return themeGetter.isThemeGetter=!0,themeGetter},F=/^\[(?:([a-z-]+):)?(.+)\]$/i,V=/^\d+\/\d+$/,B=new Set(["px","full","screen"]),z=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,W=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=a=>isNumber(a)||B.has(a)||V.test(a),isArbitraryLength=a=>getIsArbitraryValue(a,"length",isLengthOnly),isNumber=a=>!!a&&!Number.isNaN(Number(a)),isArbitraryNumber=a=>getIsArbitraryValue(a,"number",isNumber),isInteger=a=>!!a&&Number.isInteger(Number(a)),isPercent=a=>a.endsWith("%")&&isNumber(a.slice(0,-1)),isArbitraryValue=a=>F.test(a),isTshirtSize=a=>z.test(a),K=new Set(["length","size","percentage"]),isArbitrarySize=a=>getIsArbitraryValue(a,K,isNever),isArbitraryPosition=a=>getIsArbitraryValue(a,"position",isNever),Y=new Set(["image","url"]),isArbitraryImage=a=>getIsArbitraryValue(a,Y,isImage),isArbitraryShadow=a=>getIsArbitraryValue(a,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(a,x,w)=>{let A=F.exec(a);return!!A&&(A[1]?"string"==typeof x?A[1]===x:x.has(A[1]):w(A[2]))},isLengthOnly=a=>G.test(a)&&!$.test(a),isNever=()=>!1,isShadow=a=>W.test(a),isImage=a=>Z.test(a),J=function(a){let x,w,A;let functionToCall=function(k){let F=[].reduce((a,x)=>x(a),a());return w=(x=createConfigUtils(F)).cache.get,A=x.cache.set,functionToCall=tailwindMerge,tailwindMerge(k)};function tailwindMerge(a){let k=w(a);if(k)return k;let F=mergeClassList(a,x);return A(a,F),F}return function(){return functionToCall(twJoin.apply(null,arguments))}}(()=>{let a=fromTheme("colors"),x=fromTheme("spacing"),w=fromTheme("blur"),A=fromTheme("brightness"),k=fromTheme("borderColor"),F=fromTheme("borderRadius"),V=fromTheme("borderSpacing"),B=fromTheme("borderWidth"),z=fromTheme("contrast"),G=fromTheme("grayscale"),$=fromTheme("hueRotate"),W=fromTheme("invert"),Z=fromTheme("gap"),K=fromTheme("gradientColorStops"),Y=fromTheme("gradientColorStopPositions"),J=fromTheme("inset"),ee=fromTheme("margin"),et=fromTheme("opacity"),er=fromTheme("padding"),en=fromTheme("saturate"),ei=fromTheme("scale"),eo=fromTheme("sepia"),ea=fromTheme("skew"),es=fromTheme("space"),el=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>["auto",isArbitraryValue,x],getSpacingWithArbitrary=()=>[isArbitraryValue,x],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumberAndArbitrary(),borderColor:[a],borderRadius:["n
69one","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumberAndArbitrary(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[a],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumberAndArbitrary(),padding:getSpacingWithArbitrary(),saturate:getNumberAndArbitrary(),scale:getNumberAndArbitrary(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[J]}],"inset-x":[{"inset-x":[J]}],"inset-y":[{"inset-y":[J]}],start:[{start:[J]}],end:[{end:[J]}],top:[{top:[J]}],right:[{right:[J]}],bottom:[{bottom:[J]}],left:[{left:[J]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Z]}],"gap-x":[{"gap-x":[Z]}],"gap-y":[{"gap-y":[Z]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[er]}],px:[{px:[er]}],py:[{py:[er]}],ps:[{ps:[er]}],pe:[{pe:[er]}],pt:[{pt:[er]}],pr:[{pr:[er]}],pb:[{pb:[er]}],pl:[{pl:[er]}],m:[{m:[ee]}],mx:[{mx:[ee]}],my:[{my:[ee]}],ms:[{ms:[ee]}],me:[{me:[ee]}],mt:[{mt:[ee]}],mr:[{mr:[ee]}],mb:[{mb:[ee]}],ml:[{ml:[ee]}],"space-x":[{"space-x":[es]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[es]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",
vendor: 9,512 bytes, line 69
69isArbitraryValue,x]}],"min-w":[{"min-w":[isArbitraryValue,x,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,x,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,x,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,x,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,x,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,x,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[et]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[et]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[Y]}],"gradient-via-pos":[{via:[Y]}],"gradient-to-pos":[{to:[Y]}],"gradient-from":[{from:[K]}],"gradient-via":[{via:[K]}],"gradient-to":[{to:[K]}],rounded:[{rounded:[F]}],"rounded-s":[{"rounded-s":[F]}],"rounded-e":[{"rounded-e":[F]}],"rounded-t":[{"rounded-t":[F]}],"rounded-r":[{"rounded-r":[F]}],"rounded-b":[{"rounded-b":[F]}],"rounded-l":[{"rounded-l":[F]}],"rounded-ss":[{"rounded-ss":[F]}],"rounded-se":[{"rounded-se":[F]}],"rounded-ee":[{"rounded-ee":[F]}],"rounded-es":[{"rounded-es":[F]}],"rounded-tl":[{"rounded-tl":[F]}],"rounded-tr":[{"rounded-tr":[F]}],"rounded-br":[{"rounded-br":[F]}],"rounded-bl":[{"rounded-bl":[F]}],"border-w":[{border:[B]}],"border-w-x":[{"border-x":[B]}],"border-w-y":[{"border-y":[B]}],"border-w-s":[{"border-s":[B]}],"border-w-e":[{"border-e":[B]}],"border-w-t":[{"border-t":[B]}],"border-w-r":[{"border-r":[B]}],"border-w-b":[{"border-b":[B]}],"border-w-l":[{"border-l":[B]}],"border-opacity":[{"border-opacity":[et]}],"border-style":[{border:[...getLineStyles(),"hidden"]}],"divide-x":[{"divide-x":[B]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[B]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[et]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[k]}],"border-color-x":[{"border-x":[k]}],"border-color-y":[{"border-y":[k]}],"border-color-s":[{"border-s":[k]}],"border-color-e":[{"border-e":[k]}],"border-color-t":[{"border-t":[k]}],"border-color-r":[{"border-r":[k]}],"border-color-b":[{"border-b":[k]}],"border-color-l":[{"border-l":[k]}],"divide-color":[{divide:[k]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[et]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[et]}],"mix-blend":[{"mix-blend":[...getBlendModes(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[w]}],brightness:[{brightness:[A]}],contrast:[{contrast:[z]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[G]}],"hue-rotate":[{"hue-rotate":[$]}],invert:[{invert:[W]}],saturate:[{saturate:[en]}],sepia:[{sepia:[eo]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[w]}],"backdrop-brightness":[{"backdrop-brightness":[A]}],"backdrop-contrast":[{"backdrop-contrast":[z]}],"backdrop-grayscale":[{"backdrop-grayscale":[G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$]}],"backdrop-invert":[{"backdrop-invert":[W]}],"backdrop-opacity":[{"backdrop-opacity":[et]}],"backdrop-saturate":[{"backdrop-saturate":[en]}],"backdrop-sepia":[{"backdrop-sepia":[eo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[V]}],"border-spacing-x":[{"border-spacing-x":[V]}],"border-spacing-y":[{"border-spacing-y":[V]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ei]}],"scale-x":[{"scale-x":[ei]}],"scale-y":[{"scale-y":[ei]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[el]}],"translate-y":[{"translate-y":[el]}],"skew-x":[{"skew-x":[ea]}],"skew-y":[{"skew-y":[ea]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",a]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}
69],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},89426:function(a){"use strict";a.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},27395:function(a){"use strict";a.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},88420:function(a){"use strict";a.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}},function(a){var __webpack_exec__=function(x){return a(a.s=x)};a.O(0,[9774,179],function(){return __webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=a.O()}]);
70//# sourceMappingURL=_app-45ddaa49500695b0.js.map

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