var xB=Object.defineProperty;var kB=(ht,fn,Ys)=>fn in ht?xB(ht,fn,{enumerable:!0,configurable:!0,writable:!0,value:Ys}):ht[fn]=Ys;var Dt=(ht,fn,Ys)=>kB(ht,typeof fn!="symbol"?fn+"":fn,Ys);try{let ht=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fn=new ht.Error().stack;fn&&(ht._sentryDebugIds=ht._sentryDebugIds||{},ht._sentryDebugIds[fn]="7a940b88-156a-4f56-9fb9-e2413d59bcf9",ht._sentryDebugIdIdentifier="sentry-dbid-7a940b88-156a-4f56-9fb9-e2413d59bcf9")}catch{}(function(){"use strict";{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"d2adfba4dd07c8ef940282206258a25899a76fbe"}}const ht={mounted:"edmap-root-mounted",unmounted:"edmap-root-unmounted"};class fn extends HTMLElement{constructor(){super()}connectedCallback(){window.dispatchEvent(new CustomEvent(ht.mounted)),console.log(ht.mounted)}disconnectedCallback(){window.dispatchEvent(new CustomEvent(ht.unmounted)),console.log(ht.unmounted)}}customElements.get("edmap-view-root")||customElements.define("edmap-view-root",fn);function Ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xu={exports:{}},ri={},ku={exports:{}},Ie={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fh;function OE(){if(Fh)return Ie;Fh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,x={};function k(A,q,Se){this.props=A,this.context=q,this.refs=x,this.updater=Se||E}k.prototype.isReactComponent={},k.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,q,"setState")},k.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function O(){}O.prototype=k.prototype;function R(A,q,Se){this.props=A,this.context=q,this.refs=x,this.updater=Se||E}var $=R.prototype=new O;$.constructor=R,_($,k.prototype),$.isPureReactComponent=!0;var H=Array.isArray,z=Object.prototype.hasOwnProperty,M={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function U(A,q,Se){var _e,Oe={},Pe=null,Ue=null;if(q!=null)for(_e in q.ref!==void 0&&(Ue=q.ref),q.key!==void 0&&(Pe=""+q.key),q)z.call(q,_e)&&!L.hasOwnProperty(_e)&&(Oe[_e]=q[_e]);var De=arguments.length-2;if(De===1)Oe.children=Se;else if(1<De){for(var We=Array(De),wt=0;wt<De;wt++)We[wt]=arguments[wt+2];Oe.children=We}if(A&&A.defaultProps)for(_e in De=A.defaultProps,De)Oe[_e]===void 0&&(Oe[_e]=De[_e]);return{$$typeof:e,type:A,key:Pe,ref:Ue,props:Oe,_owner:M.current}}function te(A,q){return{$$typeof:e,type:A.type,key:q,ref:A.ref,props:A.props,_owner:A._owner}}function K(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function oe(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Se){return q[Se]})}var ae=/\/+/g;function me(A,q){return typeof A=="object"&&A!==null&&A.key!=null?oe(""+A.key):q.toString(36)}function Te(A,q,Se,_e,Oe){var Pe=typeof A;(Pe==="undefined"||Pe==="boolean")&&(A=null);var Ue=!1;if(A===null)Ue=!0;else switch(Pe){case"string":case"number":Ue=!0;break;case"object":switch(A.$$typeof){case e:case t:Ue=!0}}if(Ue)return Ue=A,Oe=Oe(Ue),A=_e===""?"."+me(Ue,0):_e,H(Oe)?(Se="",A!=null&&(Se=A.replace(ae,"$&/")+"/"),Te(Oe,q,Se,"",function(wt){return wt})):Oe!=null&&(K(Oe)&&(Oe=te(Oe,Se+(!Oe.key||Ue&&Ue.key===Oe.key?"":(""+Oe.key).replace(ae,"$&/")+"/")+A)),q.push(Oe)),1;if(Ue=0,_e=_e===""?".":_e+":",H(A))for(var De=0;De<A.length;De++){Pe=A[De];var We=_e+me(Pe,De);Ue+=Te(Pe,q,Se,We,Oe)}else if(We=w(A),typeof We=="function")for(A=We.call(A),De=0;!(Pe=A.next()).done;)Pe=Pe.value,We=_e+me(Pe,De++),Ue+=Te(Pe,q,Se,We,Oe);else if(Pe==="object")throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Ue}function ze(A,q,Se){if(A==null)return A;var _e=[],Oe=0;return Te(A,_e,"","",function(Pe){return q.call(Se,Pe,Oe++)}),_e}function J(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(Se){(A._status===0||A._status===-1)&&(A._status=1,A._result=Se)},function(Se){(A._status===0||A._status===-1)&&(A._status=2,A._result=Se)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var ve={current:null},W={transition:null},re={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:W,ReactCurrentOwner:M};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Ie.Children={map:ze,forEach:function(A,q,Se){ze(A,function(){q.apply(this,arguments)},Se)},count:function(A){var q=0;return ze(A,function(){q++}),q},toArray:function(A){return ze(A,function(q){return q})||[]},only:function(A){if(!K(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Ie.Component=k,Ie.Fragment=n,Ie.Profiler=i,Ie.PureComponent=R,Ie.StrictMode=s,Ie.Suspense=f,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,Ie.act=Z,Ie.cloneElement=function(A,q,Se){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var _e=_({},A.props),Oe=A.key,Pe=A.ref,Ue=A._owner;if(q!=null){if(q.ref!==void 0&&(Pe=q.ref,Ue=M.current),q.key!==void 0&&(Oe=""+q.key),A.type&&A.type.defaultProps)var De=A.type.defaultProps;for(We in q)z.call(q,We)&&!L.hasOwnProperty(We)&&(_e[We]=q[We]===void 0&&De!==void 0?De[We]:q[We])}var We=arguments.length-2;if(We===1)_e.children=Se;else if(1<We){De=Array(We);for(var wt=0;wt<We;wt++)De[wt]=arguments[wt+2];_e.children=De}return{$$typeof:e,type:A.type,key:Oe,ref:Pe,props:_e,_owner:Ue}},Ie.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:a,_context:A},A.Consumer=A},Ie.createElement=U,Ie.createFactory=function(A){var q=U.bind(null,A);return q.type=A,q},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(A){return{$$typeof:d,render:A}},Ie.isValidElement=K,Ie.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:J}},Ie.memo=function(A,q){return{$$typeof:h,type:A,compare:q===void 0?null:q}},Ie.startTransition=function(A){var q=W.transition;W.transition={};try{A()}finally{W.transition=q}},Ie.unstable_act=Z,Ie.useCallback=function(A,q){return ve.current.useCallback(A,q)},Ie.useContext=function(A){return ve.current.useContext(A)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(A){return ve.current.useDeferredValue(A)},Ie.useEffect=function(A,q){return ve.current.useEffect(A,q)},Ie.useId=function(){return ve.current.useId()},Ie.useImperativeHandle=function(A,q,Se){return ve.current.useImperativeHandle(A,q,Se)},Ie.useInsertionEffect=function(A,q){return ve.current.useInsertionEffect(A,q)},Ie.useLayoutEffect=function(A,q){return ve.current.useLayoutEffect(A,q)},Ie.useMemo=function(A,q){return ve.current.useMemo(A,q)},Ie.useReducer=function(A,q,Se){return ve.current.useReducer(A,q,Se)},Ie.useRef=function(A){return ve.current.useRef(A)},Ie.useState=function(A){return ve.current.useState(A)},Ie.useSyncExternalStore=function(A,q,Se){return ve.current.useSyncExternalStore(A,q,Se)},Ie.useTransition=function(){return ve.current.useTransition()},Ie.version="18.3.1",Ie}var zh;function Tu(){return zh||(zh=1,ku.exports=OE()),ku.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Uh;function PE(){if(Uh)return ri;Uh=1;var e=Tu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var y,g={},w=null,E=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(E=f.ref);for(y in f)s.call(f,y)&&!a.hasOwnProperty(y)&&(g[y]=f[y]);if(d&&d.defaultProps)for(y in f=d.defaultProps,f)g[y]===void 0&&(g[y]=f[y]);return{$$typeof:t,type:d,key:w,ref:E,props:g,_owner:i.current}}return ri.Fragment=n,ri.jsx=c,ri.jsxs=c,ri}var Hh;function NE(){return Hh||(Hh=1,xu.exports=PE()),xu.exports}var v=NE(),C=Tu();const Tt=Ys(C);var Ta={},bu={exports:{}},Wt={},Iu={exports:{}},Cu={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wh;function ME(){return Wh||(Wh=1,function(e){function t(W,re){var Z=W.length;W.push(re);e:for(;0<Z;){var A=Z-1>>>1,q=W[A];if(0<i(q,re))W[A]=re,W[Z]=q,Z=A;else break e}}function n(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],Z=W.pop();if(Z!==re){W[0]=Z;e:for(var A=0,q=W.length,Se=q>>>1;A<Se;){var _e=2*(A+1)-1,Oe=W[_e],Pe=_e+1,Ue=W[Pe];if(0>i(Oe,Z))Pe<q&&0>i(Ue,Oe)?(W[A]=Ue,W[Pe]=Z,A=Pe):(W[A]=Oe,W[_e]=Z,A=_e);else if(Pe<q&&0>i(Ue,Z))W[A]=Ue,W[Pe]=Z,A=Pe;else break e}}return re}function i(W,re){var Z=W.sortIndex-re.sortIndex;return Z!==0?Z:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],y=1,g=null,w=3,E=!1,_=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(W){for(var re=n(h);re!==null;){if(re.callback===null)s(h);else if(re.startTime<=W)s(h),re.sortIndex=re.expirationTime,t(f,re);else break;re=n(h)}}function H(W){if(x=!1,$(W),!_)if(n(f)!==null)_=!0,J(z);else{var re=n(h);re!==null&&ve(H,re.startTime-W)}}function z(W,re){_=!1,x&&(x=!1,O(U),U=-1),E=!0;var Z=w;try{for($(re),g=n(f);g!==null&&(!(g.expirationTime>re)||W&&!oe());){var A=g.callback;if(typeof A=="function"){g.callback=null,w=g.priorityLevel;var q=A(g.expirationTime<=re);re=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(f)&&s(f),$(re)}else s(f);g=n(f)}if(g!==null)var Se=!0;else{var _e=n(h);_e!==null&&ve(H,_e.startTime-re),Se=!1}return Se}finally{g=null,w=Z,E=!1}}var M=!1,L=null,U=-1,te=5,K=-1;function oe(){return!(e.unstable_now()-K<te)}function ae(){if(L!==null){var W=e.unstable_now();K=W;var re=!0;try{re=L(!0,W)}finally{re?me():(M=!1,L=null)}}else M=!1}var me;if(typeof R=="function")me=function(){R(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,ze=Te.port2;Te.port1.onmessage=ae,me=function(){ze.postMessage(null)}}else me=function(){k(ae,0)};function J(W){L=W,M||(M=!0,me())}function ve(W,re){U=k(function(){W(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){_||E||(_=!0,J(z))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(W){switch(w){case 1:case 2:case 3:var re=3;break;default:re=w}var Z=w;w=re;try{return W()}finally{w=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=w;w=W;try{return re()}finally{w=Z}},e.unstable_scheduleCallback=function(W,re,Z){var A=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?A+Z:A):Z=A,W){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=Z+q,W={id:y++,callback:re,priorityLevel:W,startTime:Z,expirationTime:q,sortIndex:-1},Z>A?(W.sortIndex=Z,t(h,W),n(f)===null&&W===n(h)&&(x?(O(U),U=-1):x=!0,ve(H,Z-A))):(W.sortIndex=q,t(f,W),_||E||(_=!0,J(z))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=w;return function(){var Z=w;w=re;try{return W.apply(this,arguments)}finally{w=Z}}}}(Cu)),Cu}var qh;function LE(){return qh||(qh=1,Iu.exports=ME()),Iu.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vh;function jE(){if(Vh)return Wt;Vh=1;var e=Tu(),t=LE();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function a(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(i[r]=o,r=0;r<o.length;r++)s.add(o[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},g={};function w(r){return f.call(g,r)?!0:f.call(y,r)?!1:h.test(r)?g[r]=!0:(y[r]=!0,!1)}function E(r,o,l,u){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function _(r,o,l,u){if(o===null||typeof o>"u"||E(r,o,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function x(r,o,l,u,p,m,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=m,this.removeEmptyString=S}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new x(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];k[o]=new x(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new x(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new x(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){k[r]=new x(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new x(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new x(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new x(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new x(r,5,!1,r.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function R(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(O,R);k[o]=new x(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(O,R);k[o]=new x(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(O,R);k[o]=new x(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new x(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new x(r,1,!1,r.toLowerCase(),null,!0,!0)});function $(r,o,l,u){var p=k.hasOwnProperty(o)?k[o]:null;(p!==null?p.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(_(o,l,p,u)&&(l=null),u||p===null?w(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):p.mustUseProperty?r[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,u=p.attributeNamespace,l===null?r.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,u?r.setAttributeNS(u,o,l):r.setAttribute(o,l))))}var H=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),M=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),oe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(r){return r===null||typeof r!="object"?null:(r=W&&r[W]||r["@@iterator"],typeof r=="function"?r:null)}var Z=Object.assign,A;function q(r){if(A===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);A=o&&o[1]||""}return`
`+A+r}var Se=!1;function _e(r,o){if(!r||Se)return"";Se=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(j){var u=j}Reflect.construct(r,[],o)}else{try{o.call()}catch(j){u=j}r.call(o.prototype)}else{try{throw Error()}catch(j){u=j}r()}}catch(j){if(j&&u&&typeof j.stack=="string"){for(var p=j.stack.split(`
`),m=u.stack.split(`
`),S=p.length-1,T=m.length-1;1<=S&&0<=T&&p[S]!==m[T];)T--;for(;1<=S&&0<=T;S--,T--)if(p[S]!==m[T]){if(S!==1||T!==1)do if(S--,T--,0>T||p[S]!==m[T]){var b=`
`+p[S].replace(" at new "," at ");return r.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",r.displayName)),b}while(1<=S&&0<=T);break}}}finally{Se=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function Oe(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=_e(r.type,!1),r;case 11:return r=_e(r.type.render,!1),r;case 1:return r=_e(r.type,!0),r;default:return""}}function Pe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case L:return"Fragment";case M:return"Portal";case te:return"Profiler";case U:return"StrictMode";case me:return"Suspense";case Te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case oe:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case ae:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ze:return o=r.displayName||null,o!==null?o:Pe(r.type)||"Memo";case J:o=r._payload,r=r._init;try{return Pe(r(o))}catch{}}return null}function Ue(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(o);case 8:return o===U?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function De(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function We(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function wt(r){var o=We(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),u=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,m.call(this,S)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Os(r){r._valueTracker||(r._valueTracker=wt(r))}function pc(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),u="";return r&&(u=We(r)?r.checked?"true":"false":r.value),r=u,r!==l?(o.setValue(r),!0):!1}function Oo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function On(r,o){var l=o.checked;return Z({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Yn(r,o){var l=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;l=De(o.value!=null?o.value:l),r._wrapperState={initialChecked:u,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Po(r,o){o=o.checked,o!=null&&$(r,"checked",o,!1)}function Ps(r,o){Po(r,o);var l=De(o.value),u=o.type;if(l!=null)u==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Ms(r,o.type,l):o.hasOwnProperty("defaultValue")&&Ms(r,o.type,De(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ns(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Ms(r,o,l){(o!=="number"||Oo(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Re=Array.isArray;function _t(r,o,l,u){if(r=r.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<r.length;l++)p=o.hasOwnProperty("$"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&u&&(r[l].defaultSelected=!0)}else{for(l=""+De(l),o=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function Ce(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return Z({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ke(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Re(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:De(l)}}function je(r,o){var l=De(o.value),u=De(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),u!=null&&(r.defaultValue=""+u)}function Kn(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function hc(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xf(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?hc(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var mc,WS=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,u,p){MSApp.execUnsafeLocalFunction(function(){return r(o,l,u,p)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(mc=mc||document.createElement("div"),mc.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=mc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function zi(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I$=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(r){I$.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Ui[o]=Ui[r]})});function qS(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Ui.hasOwnProperty(r)&&Ui[r]?(""+o).trim():o+"px"}function VS(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var u=l.indexOf("--")===0,p=qS(l,o[l],u);l==="float"&&(l="cssFloat"),u?r.setProperty(l,p):r[l]=p}}var C$=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jf(r,o){if(o){if(C$[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Zf(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ep=null;function tp(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var np=null,No=null,Mo=null;function GS(r){if(r=ua(r)){if(typeof np!="function")throw Error(n(280));var o=r.stateNode;o&&(o=$c(o),np(r.stateNode,r.type,o))}}function YS(r){No?Mo?Mo.push(r):Mo=[r]:No=r}function KS(){if(No){var r=No,o=Mo;if(Mo=No=null,GS(r),o)for(r=0;r<o.length;r++)GS(o[r])}}function QS(r,o){return r(o)}function XS(){}var rp=!1;function JS(r,o,l){if(rp)return r(o,l);rp=!0;try{return QS(r,o,l)}finally{rp=!1,(No!==null||Mo!==null)&&(XS(),KS())}}function Hi(r,o){var l=r.stateNode;if(l===null)return null;var u=$c(l);if(u===null)return null;l=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var sp=!1;if(d)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){sp=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{sp=!1}function R$(r,o,l,u,p,m,S,T,b){var j=Array.prototype.slice.call(arguments,3);try{o.apply(l,j)}catch(G){this.onError(G)}}var qi=!1,gc=null,yc=!1,op=null,A$={onError:function(r){qi=!0,gc=r}};function O$(r,o,l,u,p,m,S,T,b){qi=!1,gc=null,R$.apply(A$,arguments)}function P$(r,o,l,u,p,m,S,T,b){if(O$.apply(this,arguments),qi){if(qi){var j=gc;qi=!1,gc=null}else throw Error(n(198));yc||(yc=!0,op=j)}}function Ls(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,o.flags&4098&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function ZS(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function ew(r){if(Ls(r)!==r)throw Error(n(188))}function N$(r){var o=r.alternate;if(!o){if(o=Ls(r),o===null)throw Error(n(188));return o!==r?null:r}for(var l=r,u=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return ew(p),r;if(m===u)return ew(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==u.return)l=p,u=m;else{for(var S=!1,T=p.child;T;){if(T===l){S=!0,l=p,u=m;break}if(T===u){S=!0,u=p,l=m;break}T=T.sibling}if(!S){for(T=m.child;T;){if(T===l){S=!0,l=m,u=p;break}if(T===u){S=!0,u=m,l=p;break}T=T.sibling}if(!S)throw Error(n(189))}}if(l.alternate!==u)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:o}function tw(r){return r=N$(r),r!==null?nw(r):null}function nw(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=nw(r);if(o!==null)return o;r=r.sibling}return null}var rw=t.unstable_scheduleCallback,sw=t.unstable_cancelCallback,M$=t.unstable_shouldYield,L$=t.unstable_requestPaint,at=t.unstable_now,j$=t.unstable_getCurrentPriorityLevel,ip=t.unstable_ImmediatePriority,ow=t.unstable_UserBlockingPriority,vc=t.unstable_NormalPriority,D$=t.unstable_LowPriority,iw=t.unstable_IdlePriority,Sc=null,Qn=null;function $$(r){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(Sc,r,void 0,(r.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:z$,B$=Math.log,F$=Math.LN2;function z$(r){return r>>>=0,r===0?32:31-(B$(r)/F$|0)|0}var wc=64,_c=4194304;function Vi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ec(r,o){var l=r.pendingLanes;if(l===0)return 0;var u=0,p=r.suspendedLanes,m=r.pingedLanes,S=l&268435455;if(S!==0){var T=S&~p;T!==0?u=Vi(T):(m&=S,m!==0&&(u=Vi(m)))}else S=l&~p,S!==0?u=Vi(S):m!==0&&(u=Vi(m));if(u===0)return 0;if(o!==0&&o!==u&&!(o&p)&&(p=u&-u,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if(u&4&&(u|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=u;0<o;)l=31-Pn(o),p=1<<l,u|=r[l],o&=~p;return u}function U$(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function H$(r,o){for(var l=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,m=r.pendingLanes;0<m;){var S=31-Pn(m),T=1<<S,b=p[S];b===-1?(!(T&l)||T&u)&&(p[S]=U$(T,o)):b<=o&&(r.expiredLanes|=T),m&=~T}}function ap(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function aw(){var r=wc;return wc<<=1,!(wc&4194240)&&(wc=64),r}function lp(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function Gi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Pn(o),r[o]=l}function W$(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<l;){var p=31-Pn(l),m=1<<p;o[p]=0,u[p]=-1,r[p]=-1,l&=~m}}function cp(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var u=31-Pn(l),p=1<<u;p&o|r[u]&o&&(r[u]|=o),l&=~p}}var He=0;function lw(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var cw,up,uw,dw,fw,dp=!1,xc=[],Ur=null,Hr=null,Wr=null,Yi=new Map,Ki=new Map,qr=[],q$="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pw(r,o){switch(r){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":Yi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(o.pointerId)}}function Qi(r,o,l,u,p,m){return r===null||r.nativeEvent!==m?(r={blockedOn:o,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},o!==null&&(o=ua(o),o!==null&&up(o)),r):(r.eventSystemFlags|=u,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function V$(r,o,l,u,p){switch(o){case"focusin":return Ur=Qi(Ur,r,o,l,u,p),!0;case"dragenter":return Hr=Qi(Hr,r,o,l,u,p),!0;case"mouseover":return Wr=Qi(Wr,r,o,l,u,p),!0;case"pointerover":var m=p.pointerId;return Yi.set(m,Qi(Yi.get(m)||null,r,o,l,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Ki.set(m,Qi(Ki.get(m)||null,r,o,l,u,p)),!0}return!1}function hw(r){var o=js(r.target);if(o!==null){var l=Ls(o);if(l!==null){if(o=l.tag,o===13){if(o=ZS(l),o!==null){r.blockedOn=o,fw(r.priority,function(){uw(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function kc(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=pp(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);ep=u,l.target.dispatchEvent(u),ep=null}else return o=ua(l),o!==null&&up(o),r.blockedOn=l,!1;o.shift()}return!0}function mw(r,o,l){kc(r)&&l.delete(o)}function G$(){dp=!1,Ur!==null&&kc(Ur)&&(Ur=null),Hr!==null&&kc(Hr)&&(Hr=null),Wr!==null&&kc(Wr)&&(Wr=null),Yi.forEach(mw),Ki.forEach(mw)}function Xi(r,o){r.blockedOn===o&&(r.blockedOn=null,dp||(dp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,G$)))}function Ji(r){function o(p){return Xi(p,r)}if(0<xc.length){Xi(xc[0],r);for(var l=1;l<xc.length;l++){var u=xc[l];u.blockedOn===r&&(u.blockedOn=null)}}for(Ur!==null&&Xi(Ur,r),Hr!==null&&Xi(Hr,r),Wr!==null&&Xi(Wr,r),Yi.forEach(o),Ki.forEach(o),l=0;l<qr.length;l++)u=qr[l],u.blockedOn===r&&(u.blockedOn=null);for(;0<qr.length&&(l=qr[0],l.blockedOn===null);)hw(l),l.blockedOn===null&&qr.shift()}var Lo=H.ReactCurrentBatchConfig,Tc=!0;function Y$(r,o,l,u){var p=He,m=Lo.transition;Lo.transition=null;try{He=1,fp(r,o,l,u)}finally{He=p,Lo.transition=m}}function K$(r,o,l,u){var p=He,m=Lo.transition;Lo.transition=null;try{He=4,fp(r,o,l,u)}finally{He=p,Lo.transition=m}}function fp(r,o,l,u){if(Tc){var p=pp(r,o,l,u);if(p===null)Ap(r,o,u,bc,l),pw(r,u);else if(V$(p,r,o,l,u))u.stopPropagation();else if(pw(r,u),o&4&&-1<q$.indexOf(r)){for(;p!==null;){var m=ua(p);if(m!==null&&cw(m),m=pp(r,o,l,u),m===null&&Ap(r,o,u,bc,l),m===p)break;p=m}p!==null&&u.stopPropagation()}else Ap(r,o,u,null,l)}}var bc=null;function pp(r,o,l,u){if(bc=null,r=tp(u),r=js(r),r!==null)if(o=Ls(r),o===null)r=null;else if(l=o.tag,l===13){if(r=ZS(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return bc=r,null}function gw(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(j$()){case ip:return 1;case ow:return 4;case vc:case D$:return 16;case iw:return 536870912;default:return 16}default:return 16}}var Vr=null,hp=null,Ic=null;function yw(){if(Ic)return Ic;var r,o=hp,l=o.length,u,p="value"in Vr?Vr.value:Vr.textContent,m=p.length;for(r=0;r<l&&o[r]===p[r];r++);var S=l-r;for(u=1;u<=S&&o[l-u]===p[m-u];u++);return Ic=p.slice(r,1<u?1-u:void 0)}function Cc(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Rc(){return!0}function vw(){return!1}function ln(r){function o(l,u,p,m,S){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(l=r[T],this[T]=l?l(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Rc:vw,this.isPropagationStopped=vw,this}return Z(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Rc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Rc)},persist:function(){},isPersistent:Rc}),o}var jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mp=ln(jo),Zi=Z({},jo,{view:0,detail:0}),Q$=ln(Zi),gp,yp,ea,Ac=Z({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sp,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ea&&(ea&&r.type==="mousemove"?(gp=r.screenX-ea.screenX,yp=r.screenY-ea.screenY):yp=gp=0,ea=r),gp)},movementY:function(r){return"movementY"in r?r.movementY:yp}}),Sw=ln(Ac),X$=Z({},Ac,{dataTransfer:0}),J$=ln(X$),Z$=Z({},Zi,{relatedTarget:0}),vp=ln(Z$),e8=Z({},jo,{animationName:0,elapsedTime:0,pseudoElement:0}),t8=ln(e8),n8=Z({},jo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),r8=ln(n8),s8=Z({},jo,{data:0}),ww=ln(s8),o8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},a8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l8(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=a8[r])?!!o[r]:!1}function Sp(){return l8}var c8=Z({},Zi,{key:function(r){if(r.key){var o=o8[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Cc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?i8[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sp,charCode:function(r){return r.type==="keypress"?Cc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Cc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),u8=ln(c8),d8=Z({},Ac,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_w=ln(d8),f8=Z({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sp}),p8=ln(f8),h8=Z({},jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),m8=ln(h8),g8=Z({},Ac,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),y8=ln(g8),v8=[9,13,27,32],wp=d&&"CompositionEvent"in window,ta=null;d&&"documentMode"in document&&(ta=document.documentMode);var S8=d&&"TextEvent"in window&&!ta,Ew=d&&(!wp||ta&&8<ta&&11>=ta),xw=" ",kw=!1;function Tw(r,o){switch(r){case"keyup":return v8.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bw(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Do=!1;function w8(r,o){switch(r){case"compositionend":return bw(o);case"keypress":return o.which!==32?null:(kw=!0,xw);case"textInput":return r=o.data,r===xw&&kw?null:r;default:return null}}function _8(r,o){if(Do)return r==="compositionend"||!wp&&Tw(r,o)?(r=yw(),Ic=hp=Vr=null,Do=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Ew&&o.locale!=="ko"?null:o.data;default:return null}}var E8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Iw(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!E8[r.type]:o==="textarea"}function Cw(r,o,l,u){YS(u),o=Lc(o,"onChange"),0<o.length&&(l=new mp("onChange","change",null,l,u),r.push({event:l,listeners:o}))}var na=null,ra=null;function x8(r){Vw(r,0)}function Oc(r){var o=Uo(r);if(pc(o))return r}function k8(r,o){if(r==="change")return o}var Rw=!1;if(d){var _p;if(d){var Ep="oninput"in document;if(!Ep){var Aw=document.createElement("div");Aw.setAttribute("oninput","return;"),Ep=typeof Aw.oninput=="function"}_p=Ep}else _p=!1;Rw=_p&&(!document.documentMode||9<document.documentMode)}function Ow(){na&&(na.detachEvent("onpropertychange",Pw),ra=na=null)}function Pw(r){if(r.propertyName==="value"&&Oc(ra)){var o=[];Cw(o,ra,r,tp(r)),JS(x8,o)}}function T8(r,o,l){r==="focusin"?(Ow(),na=o,ra=l,na.attachEvent("onpropertychange",Pw)):r==="focusout"&&Ow()}function b8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Oc(ra)}function I8(r,o){if(r==="click")return Oc(o)}function C8(r,o){if(r==="input"||r==="change")return Oc(o)}function R8(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Nn=typeof Object.is=="function"?Object.is:R8;function sa(r,o){if(Nn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),u=Object.keys(o);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!f.call(o,p)||!Nn(r[p],o[p]))return!1}return!0}function Nw(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Mw(r,o){var l=Nw(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=o&&u>=o)return{node:l,offset:o-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nw(l)}}function Lw(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Lw(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function jw(){for(var r=window,o=Oo();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=Oo(r.document)}return o}function xp(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function A8(r){var o=jw(),l=r.focusedElem,u=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Lw(l.ownerDocument.documentElement,l)){if(u!==null&&xp(l)){if(o=u.start,r=u.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var p=l.textContent.length,m=Math.min(u.start,p);u=u.end===void 0?m:Math.min(u.end,p),!r.extend&&m>u&&(p=u,u=m,m=p),p=Mw(l,m);var S=Mw(l,u);p&&S&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==S.node||r.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),r.removeAllRanges(),m>u?(r.addRange(o),r.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var O8=d&&"documentMode"in document&&11>=document.documentMode,$o=null,kp=null,oa=null,Tp=!1;function Dw(r,o,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tp||$o==null||$o!==Oo(u)||(u=$o,"selectionStart"in u&&xp(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),oa&&sa(oa,u)||(oa=u,u=Lc(kp,"onSelect"),0<u.length&&(o=new mp("onSelect","select",null,o,l),r.push({event:o,listeners:u}),o.target=$o)))}function Pc(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Bo={animationend:Pc("Animation","AnimationEnd"),animationiteration:Pc("Animation","AnimationIteration"),animationstart:Pc("Animation","AnimationStart"),transitionend:Pc("Transition","TransitionEnd")},bp={},$w={};d&&($w=document.createElement("div").style,"AnimationEvent"in window||(delete Bo.animationend.animation,delete Bo.animationiteration.animation,delete Bo.animationstart.animation),"TransitionEvent"in window||delete Bo.transitionend.transition);function Nc(r){if(bp[r])return bp[r];if(!Bo[r])return r;var o=Bo[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in $w)return bp[r]=o[l];return r}var Bw=Nc("animationend"),Fw=Nc("animationiteration"),zw=Nc("animationstart"),Uw=Nc("transitionend"),Hw=new Map,Ww="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Gr(r,o){Hw.set(r,o),a(o,[r])}for(var Ip=0;Ip<Ww.length;Ip++){var Cp=Ww[Ip],P8=Cp.toLowerCase(),N8=Cp[0].toUpperCase()+Cp.slice(1);Gr(P8,"on"+N8)}Gr(Bw,"onAnimationEnd"),Gr(Fw,"onAnimationIteration"),Gr(zw,"onAnimationStart"),Gr("dblclick","onDoubleClick"),Gr("focusin","onFocus"),Gr("focusout","onBlur"),Gr(Uw,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ia="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M8=new Set("cancel close invalid load scroll toggle".split(" ").concat(ia));function qw(r,o,l){var u=r.type||"unknown-event";r.currentTarget=l,P$(u,o,void 0,r),r.currentTarget=null}function Vw(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],p=u.event;u=u.listeners;e:{var m=void 0;if(o)for(var S=u.length-1;0<=S;S--){var T=u[S],b=T.instance,j=T.currentTarget;if(T=T.listener,b!==m&&p.isPropagationStopped())break e;qw(p,T,j),m=b}else for(S=0;S<u.length;S++){if(T=u[S],b=T.instance,j=T.currentTarget,T=T.listener,b!==m&&p.isPropagationStopped())break e;qw(p,T,j),m=b}}}if(yc)throw r=op,yc=!1,op=null,r}function Xe(r,o){var l=o[jp];l===void 0&&(l=o[jp]=new Set);var u=r+"__bubble";l.has(u)||(Gw(o,r,2,!1),l.add(u))}function Rp(r,o,l){var u=0;o&&(u|=4),Gw(l,r,u,o)}var Mc="_reactListening"+Math.random().toString(36).slice(2);function aa(r){if(!r[Mc]){r[Mc]=!0,s.forEach(function(l){l!=="selectionchange"&&(M8.has(l)||Rp(l,!1,r),Rp(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Mc]||(o[Mc]=!0,Rp("selectionchange",!1,o))}}function Gw(r,o,l,u){switch(gw(o)){case 1:var p=Y$;break;case 4:p=K$;break;default:p=fp}l=p.bind(null,o,l,r),p=void 0,!sp||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(o,l,{capture:!0,passive:p}):r.addEventListener(o,l,!0):p!==void 0?r.addEventListener(o,l,{passive:p}):r.addEventListener(o,l,!1)}function Ap(r,o,l,u,p){var m=u;if(!(o&1)&&!(o&2)&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var T=u.stateNode.containerInfo;if(T===p||T.nodeType===8&&T.parentNode===p)break;if(S===4)for(S=u.return;S!==null;){var b=S.tag;if((b===3||b===4)&&(b=S.stateNode.containerInfo,b===p||b.nodeType===8&&b.parentNode===p))return;S=S.return}for(;T!==null;){if(S=js(T),S===null)return;if(b=S.tag,b===5||b===6){u=m=S;continue e}T=T.parentNode}}u=u.return}JS(function(){var j=m,G=tp(l),Y=[];e:{var V=Hw.get(r);if(V!==void 0){var ne=mp,ie=r;switch(r){case"keypress":if(Cc(l)===0)break e;case"keydown":case"keyup":ne=u8;break;case"focusin":ie="focus",ne=vp;break;case"focusout":ie="blur",ne=vp;break;case"beforeblur":case"afterblur":ne=vp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Sw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=J$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=p8;break;case Bw:case Fw:case zw:ne=t8;break;case Uw:ne=m8;break;case"scroll":ne=Q$;break;case"wheel":ne=y8;break;case"copy":case"cut":case"paste":ne=r8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=_w}var le=(o&4)!==0,lt=!le&&r==="scroll",P=le?V!==null?V+"Capture":null:V;le=[];for(var I=j,N;I!==null;){N=I;var Q=N.stateNode;if(N.tag===5&&Q!==null&&(N=Q,P!==null&&(Q=Hi(I,P),Q!=null&&le.push(la(I,Q,N)))),lt)break;I=I.return}0<le.length&&(V=new ne(V,ie,null,l,G),Y.push({event:V,listeners:le}))}}if(!(o&7)){e:{if(V=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",V&&l!==ep&&(ie=l.relatedTarget||l.fromElement)&&(js(ie)||ie[hr]))break e;if((ne||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,ne?(ie=l.relatedTarget||l.toElement,ne=j,ie=ie?js(ie):null,ie!==null&&(lt=Ls(ie),ie!==lt||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ne=null,ie=j),ne!==ie)){if(le=Sw,Q="onMouseLeave",P="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(le=_w,Q="onPointerLeave",P="onPointerEnter",I="pointer"),lt=ne==null?V:Uo(ne),N=ie==null?V:Uo(ie),V=new le(Q,I+"leave",ne,l,G),V.target=lt,V.relatedTarget=N,Q=null,js(G)===j&&(le=new le(P,I+"enter",ie,l,G),le.target=N,le.relatedTarget=lt,Q=le),lt=Q,ne&&ie)t:{for(le=ne,P=ie,I=0,N=le;N;N=Fo(N))I++;for(N=0,Q=P;Q;Q=Fo(Q))N++;for(;0<I-N;)le=Fo(le),I--;for(;0<N-I;)P=Fo(P),N--;for(;I--;){if(le===P||P!==null&&le===P.alternate)break t;le=Fo(le),P=Fo(P)}le=null}else le=null;ne!==null&&Yw(Y,V,ne,le,!1),ie!==null&&lt!==null&&Yw(Y,lt,ie,le,!0)}}e:{if(V=j?Uo(j):window,ne=V.nodeName&&V.nodeName.toLowerCase(),ne==="select"||ne==="input"&&V.type==="file")var ce=k8;else if(Iw(V))if(Rw)ce=C8;else{ce=b8;var ue=T8}else(ne=V.nodeName)&&ne.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(ce=I8);if(ce&&(ce=ce(r,j))){Cw(Y,ce,l,G);break e}ue&&ue(r,V,j),r==="focusout"&&(ue=V._wrapperState)&&ue.controlled&&V.type==="number"&&Ms(V,"number",V.value)}switch(ue=j?Uo(j):window,r){case"focusin":(Iw(ue)||ue.contentEditable==="true")&&($o=ue,kp=j,oa=null);break;case"focusout":oa=kp=$o=null;break;case"mousedown":Tp=!0;break;case"contextmenu":case"mouseup":case"dragend":Tp=!1,Dw(Y,l,G);break;case"selectionchange":if(O8)break;case"keydown":case"keyup":Dw(Y,l,G)}var de;if(wp)e:{switch(r){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Do?Tw(r,l)&&(ge="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(Ew&&l.locale!=="ko"&&(Do||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Do&&(de=yw()):(Vr=G,hp="value"in Vr?Vr.value:Vr.textContent,Do=!0)),ue=Lc(j,ge),0<ue.length&&(ge=new ww(ge,r,null,l,G),Y.push({event:ge,listeners:ue}),de?ge.data=de:(de=bw(l),de!==null&&(ge.data=de)))),(de=S8?w8(r,l):_8(r,l))&&(j=Lc(j,"onBeforeInput"),0<j.length&&(G=new ww("onBeforeInput","beforeinput",null,l,G),Y.push({event:G,listeners:j}),G.data=de))}Vw(Y,o)})}function la(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Lc(r,o){for(var l=o+"Capture",u=[];r!==null;){var p=r,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=Hi(r,l),m!=null&&u.unshift(la(r,m,p)),m=Hi(r,o),m!=null&&u.push(la(r,m,p))),r=r.return}return u}function Fo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Yw(r,o,l,u,p){for(var m=o._reactName,S=[];l!==null&&l!==u;){var T=l,b=T.alternate,j=T.stateNode;if(b!==null&&b===u)break;T.tag===5&&j!==null&&(T=j,p?(b=Hi(l,m),b!=null&&S.unshift(la(l,b,T))):p||(b=Hi(l,m),b!=null&&S.push(la(l,b,T)))),l=l.return}S.length!==0&&r.push({event:o,listeners:S})}var L8=/\r\n?/g,j8=/\u0000|\uFFFD/g;function Kw(r){return(typeof r=="string"?r:""+r).replace(L8,`
`).replace(j8,"")}function jc(r,o,l){if(o=Kw(o),Kw(r)!==o&&l)throw Error(n(425))}function Dc(){}var Op=null,Pp=null;function Np(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Mp=typeof setTimeout=="function"?setTimeout:void 0,D8=typeof clearTimeout=="function"?clearTimeout:void 0,Qw=typeof Promise=="function"?Promise:void 0,$8=typeof queueMicrotask=="function"?queueMicrotask:typeof Qw<"u"?function(r){return Qw.resolve(null).then(r).catch(B8)}:Mp;function B8(r){setTimeout(function(){throw r})}function Lp(r,o){var l=o,u=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(u===0){r.removeChild(p),Ji(o);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=p}while(l);Ji(o)}function Yr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Xw(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var zo=Math.random().toString(36).slice(2),Xn="__reactFiber$"+zo,ca="__reactProps$"+zo,hr="__reactContainer$"+zo,jp="__reactEvents$"+zo,F8="__reactListeners$"+zo,z8="__reactHandles$"+zo;function js(r){var o=r[Xn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[hr]||l[Xn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=Xw(r);r!==null;){if(l=r[Xn])return l;r=Xw(r)}return o}r=l,l=r.parentNode}return null}function ua(r){return r=r[Xn]||r[hr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Uo(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function $c(r){return r[ca]||null}var Dp=[],Ho=-1;function Kr(r){return{current:r}}function Je(r){0>Ho||(r.current=Dp[Ho],Dp[Ho]=null,Ho--)}function Qe(r,o){Ho++,Dp[Ho]=r.current,r.current=o}var Qr={},Nt=Kr(Qr),Jt=Kr(!1),Ds=Qr;function Wo(r,o){var l=r.type.contextTypes;if(!l)return Qr;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=p),p}function Zt(r){return r=r.childContextTypes,r!=null}function Bc(){Je(Jt),Je(Nt)}function Jw(r,o,l){if(Nt.current!==Qr)throw Error(n(168));Qe(Nt,o),Qe(Jt,l)}function Zw(r,o,l){var u=r.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var p in u)if(!(p in o))throw Error(n(108,Ue(r)||"Unknown",p));return Z({},l,u)}function Fc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Qr,Ds=Nt.current,Qe(Nt,r),Qe(Jt,Jt.current),!0}function e_(r,o,l){var u=r.stateNode;if(!u)throw Error(n(169));l?(r=Zw(r,o,Ds),u.__reactInternalMemoizedMergedChildContext=r,Je(Jt),Je(Nt),Qe(Nt,r)):Je(Jt),Qe(Jt,l)}var mr=null,zc=!1,$p=!1;function t_(r){mr===null?mr=[r]:mr.push(r)}function U8(r){zc=!0,t_(r)}function Xr(){if(!$p&&mr!==null){$p=!0;var r=0,o=He;try{var l=mr;for(He=1;r<l.length;r++){var u=l[r];do u=u(!0);while(u!==null)}mr=null,zc=!1}catch(p){throw mr!==null&&(mr=mr.slice(r+1)),rw(ip,Xr),p}finally{He=o,$p=!1}}return null}var qo=[],Vo=0,Uc=null,Hc=0,yn=[],vn=0,$s=null,gr=1,yr="";function Bs(r,o){qo[Vo++]=Hc,qo[Vo++]=Uc,Uc=r,Hc=o}function n_(r,o,l){yn[vn++]=gr,yn[vn++]=yr,yn[vn++]=$s,$s=r;var u=gr;r=yr;var p=32-Pn(u)-1;u&=~(1<<p),l+=1;var m=32-Pn(o)+p;if(30<m){var S=p-p%5;m=(u&(1<<S)-1).toString(32),u>>=S,p-=S,gr=1<<32-Pn(o)+p|l<<p|u,yr=m+r}else gr=1<<m|l<<p|u,yr=r}function Bp(r){r.return!==null&&(Bs(r,1),n_(r,1,0))}function Fp(r){for(;r===Uc;)Uc=qo[--Vo],qo[Vo]=null,Hc=qo[--Vo],qo[Vo]=null;for(;r===$s;)$s=yn[--vn],yn[vn]=null,yr=yn[--vn],yn[vn]=null,gr=yn[--vn],yn[vn]=null}var cn=null,un=null,Ze=!1,Mn=null;function r_(r,o){var l=En(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function s_(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,cn=r,un=Yr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,cn=r,un=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=$s!==null?{id:gr,overflow:yr}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=En(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,cn=r,un=null,!0):!1;default:return!1}}function zp(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Up(r){if(Ze){var o=un;if(o){var l=o;if(!s_(r,o)){if(zp(r))throw Error(n(418));o=Yr(l.nextSibling);var u=cn;o&&s_(r,o)?r_(u,l):(r.flags=r.flags&-4097|2,Ze=!1,cn=r)}}else{if(zp(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ze=!1,cn=r}}}function o_(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;cn=r}function Wc(r){if(r!==cn)return!1;if(!Ze)return o_(r),Ze=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Np(r.type,r.memoizedProps)),o&&(o=un)){if(zp(r))throw i_(),Error(n(418));for(;o;)r_(r,o),o=Yr(o.nextSibling)}if(o_(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){un=Yr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}un=null}}else un=cn?Yr(r.stateNode.nextSibling):null;return!0}function i_(){for(var r=un;r;)r=Yr(r.nextSibling)}function Go(){un=cn=null,Ze=!1}function Hp(r){Mn===null?Mn=[r]:Mn.push(r)}var H8=H.ReactCurrentBatchConfig;function da(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var u=l.stateNode}if(!u)throw Error(n(147,r));var p=u,m=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(S){var T=p.refs;S===null?delete T[m]:T[m]=S},o._stringRef=m,o)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function qc(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function a_(r){var o=r._init;return o(r._payload)}function l_(r){function o(P,I){if(r){var N=P.deletions;N===null?(P.deletions=[I],P.flags|=16):N.push(I)}}function l(P,I){if(!r)return null;for(;I!==null;)o(P,I),I=I.sibling;return null}function u(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function p(P,I){return P=os(P,I),P.index=0,P.sibling=null,P}function m(P,I,N){return P.index=N,r?(N=P.alternate,N!==null?(N=N.index,N<I?(P.flags|=2,I):N):(P.flags|=2,I)):(P.flags|=1048576,I)}function S(P){return r&&P.alternate===null&&(P.flags|=2),P}function T(P,I,N,Q){return I===null||I.tag!==6?(I=Mh(N,P.mode,Q),I.return=P,I):(I=p(I,N),I.return=P,I)}function b(P,I,N,Q){var ce=N.type;return ce===L?G(P,I,N.props.children,Q,N.key):I!==null&&(I.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===J&&a_(ce)===I.type)?(Q=p(I,N.props),Q.ref=da(P,I,N),Q.return=P,Q):(Q=mu(N.type,N.key,N.props,null,P.mode,Q),Q.ref=da(P,I,N),Q.return=P,Q)}function j(P,I,N,Q){return I===null||I.tag!==4||I.stateNode.containerInfo!==N.containerInfo||I.stateNode.implementation!==N.implementation?(I=Lh(N,P.mode,Q),I.return=P,I):(I=p(I,N.children||[]),I.return=P,I)}function G(P,I,N,Q,ce){return I===null||I.tag!==7?(I=Gs(N,P.mode,Q,ce),I.return=P,I):(I=p(I,N),I.return=P,I)}function Y(P,I,N){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Mh(""+I,P.mode,N),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return N=mu(I.type,I.key,I.props,null,P.mode,N),N.ref=da(P,null,I),N.return=P,N;case M:return I=Lh(I,P.mode,N),I.return=P,I;case J:var Q=I._init;return Y(P,Q(I._payload),N)}if(Re(I)||re(I))return I=Gs(I,P.mode,N,null),I.return=P,I;qc(P,I)}return null}function V(P,I,N,Q){var ce=I!==null?I.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return ce!==null?null:T(P,I,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case z:return N.key===ce?b(P,I,N,Q):null;case M:return N.key===ce?j(P,I,N,Q):null;case J:return ce=N._init,V(P,I,ce(N._payload),Q)}if(Re(N)||re(N))return ce!==null?null:G(P,I,N,Q,null);qc(P,N)}return null}function ne(P,I,N,Q,ce){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return P=P.get(N)||null,T(I,P,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case z:return P=P.get(Q.key===null?N:Q.key)||null,b(I,P,Q,ce);case M:return P=P.get(Q.key===null?N:Q.key)||null,j(I,P,Q,ce);case J:var ue=Q._init;return ne(P,I,N,ue(Q._payload),ce)}if(Re(Q)||re(Q))return P=P.get(N)||null,G(I,P,Q,ce,null);qc(I,Q)}return null}function ie(P,I,N,Q){for(var ce=null,ue=null,de=I,ge=I=0,kt=null;de!==null&&ge<N.length;ge++){de.index>ge?(kt=de,de=null):kt=de.sibling;var Fe=V(P,de,N[ge],Q);if(Fe===null){de===null&&(de=kt);break}r&&de&&Fe.alternate===null&&o(P,de),I=m(Fe,I,ge),ue===null?ce=Fe:ue.sibling=Fe,ue=Fe,de=kt}if(ge===N.length)return l(P,de),Ze&&Bs(P,ge),ce;if(de===null){for(;ge<N.length;ge++)de=Y(P,N[ge],Q),de!==null&&(I=m(de,I,ge),ue===null?ce=de:ue.sibling=de,ue=de);return Ze&&Bs(P,ge),ce}for(de=u(P,de);ge<N.length;ge++)kt=ne(de,P,ge,N[ge],Q),kt!==null&&(r&&kt.alternate!==null&&de.delete(kt.key===null?ge:kt.key),I=m(kt,I,ge),ue===null?ce=kt:ue.sibling=kt,ue=kt);return r&&de.forEach(function(is){return o(P,is)}),Ze&&Bs(P,ge),ce}function le(P,I,N,Q){var ce=re(N);if(typeof ce!="function")throw Error(n(150));if(N=ce.call(N),N==null)throw Error(n(151));for(var ue=ce=null,de=I,ge=I=0,kt=null,Fe=N.next();de!==null&&!Fe.done;ge++,Fe=N.next()){de.index>ge?(kt=de,de=null):kt=de.sibling;var is=V(P,de,Fe.value,Q);if(is===null){de===null&&(de=kt);break}r&&de&&is.alternate===null&&o(P,de),I=m(is,I,ge),ue===null?ce=is:ue.sibling=is,ue=is,de=kt}if(Fe.done)return l(P,de),Ze&&Bs(P,ge),ce;if(de===null){for(;!Fe.done;ge++,Fe=N.next())Fe=Y(P,Fe.value,Q),Fe!==null&&(I=m(Fe,I,ge),ue===null?ce=Fe:ue.sibling=Fe,ue=Fe);return Ze&&Bs(P,ge),ce}for(de=u(P,de);!Fe.done;ge++,Fe=N.next())Fe=ne(de,P,ge,Fe.value,Q),Fe!==null&&(r&&Fe.alternate!==null&&de.delete(Fe.key===null?ge:Fe.key),I=m(Fe,I,ge),ue===null?ce=Fe:ue.sibling=Fe,ue=Fe);return r&&de.forEach(function(EB){return o(P,EB)}),Ze&&Bs(P,ge),ce}function lt(P,I,N,Q){if(typeof N=="object"&&N!==null&&N.type===L&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case z:e:{for(var ce=N.key,ue=I;ue!==null;){if(ue.key===ce){if(ce=N.type,ce===L){if(ue.tag===7){l(P,ue.sibling),I=p(ue,N.props.children),I.return=P,P=I;break e}}else if(ue.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===J&&a_(ce)===ue.type){l(P,ue.sibling),I=p(ue,N.props),I.ref=da(P,ue,N),I.return=P,P=I;break e}l(P,ue);break}else o(P,ue);ue=ue.sibling}N.type===L?(I=Gs(N.props.children,P.mode,Q,N.key),I.return=P,P=I):(Q=mu(N.type,N.key,N.props,null,P.mode,Q),Q.ref=da(P,I,N),Q.return=P,P=Q)}return S(P);case M:e:{for(ue=N.key;I!==null;){if(I.key===ue)if(I.tag===4&&I.stateNode.containerInfo===N.containerInfo&&I.stateNode.implementation===N.implementation){l(P,I.sibling),I=p(I,N.children||[]),I.return=P,P=I;break e}else{l(P,I);break}else o(P,I);I=I.sibling}I=Lh(N,P.mode,Q),I.return=P,P=I}return S(P);case J:return ue=N._init,lt(P,I,ue(N._payload),Q)}if(Re(N))return ie(P,I,N,Q);if(re(N))return le(P,I,N,Q);qc(P,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,I!==null&&I.tag===6?(l(P,I.sibling),I=p(I,N),I.return=P,P=I):(l(P,I),I=Mh(N,P.mode,Q),I.return=P,P=I),S(P)):l(P,I)}return lt}var Yo=l_(!0),c_=l_(!1),Vc=Kr(null),Gc=null,Ko=null,Wp=null;function qp(){Wp=Ko=Gc=null}function Vp(r){var o=Vc.current;Je(Vc),r._currentValue=o}function Gp(r,o,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),r===l)break;r=r.return}}function Qo(r,o){Gc=r,Wp=Ko=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&o&&(en=!0),r.firstContext=null)}function Sn(r){var o=r._currentValue;if(Wp!==r)if(r={context:r,memoizedValue:o,next:null},Ko===null){if(Gc===null)throw Error(n(308));Ko=r,Gc.dependencies={lanes:0,firstContext:r}}else Ko=Ko.next=r;return o}var Fs=null;function Yp(r){Fs===null?Fs=[r]:Fs.push(r)}function u_(r,o,l,u){var p=o.interleaved;return p===null?(l.next=l,Yp(o)):(l.next=p.next,p.next=l),o.interleaved=l,vr(r,u)}function vr(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Jr=!1;function Kp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d_(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Sr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Zr(r,o,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,$e&2){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,vr(r,l)}return p=u.interleaved,p===null?(o.next=o,Yp(u)):(o.next=p.next,p.next=o),u.interleaved=o,vr(r,l)}function Yc(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,cp(r,l)}}function f_(r,o){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var S={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=S:m=m.next=S,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,effects:u.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function Kc(r,o,l,u){var p=r.updateQueue;Jr=!1;var m=p.firstBaseUpdate,S=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var b=T,j=b.next;b.next=null,S===null?m=j:S.next=j,S=b;var G=r.alternate;G!==null&&(G=G.updateQueue,T=G.lastBaseUpdate,T!==S&&(T===null?G.firstBaseUpdate=j:T.next=j,G.lastBaseUpdate=b))}if(m!==null){var Y=p.baseState;S=0,G=j=b=null,T=m;do{var V=T.lane,ne=T.eventTime;if((u&V)===V){G!==null&&(G=G.next={eventTime:ne,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var ie=r,le=T;switch(V=o,ne=l,le.tag){case 1:if(ie=le.payload,typeof ie=="function"){Y=ie.call(ne,Y,V);break e}Y=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=le.payload,V=typeof ie=="function"?ie.call(ne,Y,V):ie,V==null)break e;Y=Z({},Y,V);break e;case 2:Jr=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,V=p.effects,V===null?p.effects=[T]:V.push(T))}else ne={eventTime:ne,lane:V,tag:T.tag,payload:T.payload,callback:T.callback,next:null},G===null?(j=G=ne,b=Y):G=G.next=ne,S|=V;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;V=T,T=V.next,V.next=null,p.lastBaseUpdate=V,p.shared.pending=null}}while(!0);if(G===null&&(b=Y),p.baseState=b,p.firstBaseUpdate=j,p.lastBaseUpdate=G,o=p.shared.interleaved,o!==null){p=o;do S|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);Hs|=S,r.lanes=S,r.memoizedState=Y}}function p_(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var u=r[o],p=u.callback;if(p!==null){if(u.callback=null,u=l,typeof p!="function")throw Error(n(191,p));p.call(u)}}}var fa={},Jn=Kr(fa),pa=Kr(fa),ha=Kr(fa);function zs(r){if(r===fa)throw Error(n(174));return r}function Qp(r,o){switch(Qe(ha,o),Qe(pa,r),Qe(Jn,fa),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Xf(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Xf(o,r)}Je(Jn),Qe(Jn,o)}function Xo(){Je(Jn),Je(pa),Je(ha)}function h_(r){zs(ha.current);var o=zs(Jn.current),l=Xf(o,r.type);o!==l&&(Qe(pa,r),Qe(Jn,l))}function Xp(r){pa.current===r&&(Je(Jn),Je(pa))}var et=Kr(0);function Qc(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Jp=[];function Zp(){for(var r=0;r<Jp.length;r++)Jp[r]._workInProgressVersionPrimary=null;Jp.length=0}var Xc=H.ReactCurrentDispatcher,eh=H.ReactCurrentBatchConfig,Us=0,tt=null,ft=null,Et=null,Jc=!1,ma=!1,ga=0,W8=0;function Mt(){throw Error(n(321))}function th(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Nn(r[l],o[l]))return!1;return!0}function nh(r,o,l,u,p,m){if(Us=m,tt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Xc.current=r===null||r.memoizedState===null?Y8:K8,r=l(u,p),ma){m=0;do{if(ma=!1,ga=0,25<=m)throw Error(n(301));m+=1,Et=ft=null,o.updateQueue=null,Xc.current=Q8,r=l(u,p)}while(ma)}if(Xc.current=tu,o=ft!==null&&ft.next!==null,Us=0,Et=ft=tt=null,Jc=!1,o)throw Error(n(300));return r}function rh(){var r=ga!==0;return ga=0,r}function Zn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?tt.memoizedState=Et=r:Et=Et.next=r,Et}function wn(){if(ft===null){var r=tt.alternate;r=r!==null?r.memoizedState:null}else r=ft.next;var o=Et===null?tt.memoizedState:Et.next;if(o!==null)Et=o,ft=r;else{if(r===null)throw Error(n(310));ft=r,r={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Et===null?tt.memoizedState=Et=r:Et=Et.next=r}return Et}function ya(r,o){return typeof o=="function"?o(r):o}function sh(r){var o=wn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=ft,p=u.baseQueue,m=l.pending;if(m!==null){if(p!==null){var S=p.next;p.next=m.next,m.next=S}u.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,u=u.baseState;var T=S=null,b=null,j=m;do{var G=j.lane;if((Us&G)===G)b!==null&&(b=b.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),u=j.hasEagerState?j.eagerState:r(u,j.action);else{var Y={lane:G,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};b===null?(T=b=Y,S=u):b=b.next=Y,tt.lanes|=G,Hs|=G}j=j.next}while(j!==null&&j!==m);b===null?S=u:b.next=T,Nn(u,o.memoizedState)||(en=!0),o.memoizedState=u,o.baseState=S,o.baseQueue=b,l.lastRenderedState=u}if(r=l.interleaved,r!==null){p=r;do m=p.lane,tt.lanes|=m,Hs|=m,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function oh(r){var o=wn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var S=p=p.next;do m=r(m,S.action),S=S.next;while(S!==p);Nn(m,o.memoizedState)||(en=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,u]}function m_(){}function g_(r,o){var l=tt,u=wn(),p=o(),m=!Nn(u.memoizedState,p);if(m&&(u.memoizedState=p,en=!0),u=u.queue,ih(S_.bind(null,l,u,r),[r]),u.getSnapshot!==o||m||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,va(9,v_.bind(null,l,u,p,o),void 0,null),xt===null)throw Error(n(349));Us&30||y_(l,o,p)}return p}function y_(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function v_(r,o,l,u){o.value=l,o.getSnapshot=u,w_(o)&&__(r)}function S_(r,o,l){return l(function(){w_(o)&&__(r)})}function w_(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Nn(r,l)}catch{return!0}}function __(r){var o=vr(r,1);o!==null&&$n(o,r,1,-1)}function E_(r){var o=Zn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:r},o.queue=r,r=r.dispatch=G8.bind(null,tt,r),[o.memoizedState,r]}function va(r,o,l,u){return r={tag:r,create:o,destroy:l,deps:u,next:null},o=tt.updateQueue,o===null?(o={lastEffect:null,stores:null},tt.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,o.lastEffect=r)),r}function x_(){return wn().memoizedState}function Zc(r,o,l,u){var p=Zn();tt.flags|=r,p.memoizedState=va(1|o,l,void 0,u===void 0?null:u)}function eu(r,o,l,u){var p=wn();u=u===void 0?null:u;var m=void 0;if(ft!==null){var S=ft.memoizedState;if(m=S.destroy,u!==null&&th(u,S.deps)){p.memoizedState=va(o,l,m,u);return}}tt.flags|=r,p.memoizedState=va(1|o,l,m,u)}function k_(r,o){return Zc(8390656,8,r,o)}function ih(r,o){return eu(2048,8,r,o)}function T_(r,o){return eu(4,2,r,o)}function b_(r,o){return eu(4,4,r,o)}function I_(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function C_(r,o,l){return l=l!=null?l.concat([r]):null,eu(4,4,I_.bind(null,o,r),l)}function ah(){}function R_(r,o){var l=wn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&th(o,u[1])?u[0]:(l.memoizedState=[r,o],r)}function A_(r,o){var l=wn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&th(o,u[1])?u[0]:(r=r(),l.memoizedState=[r,o],r)}function O_(r,o,l){return Us&21?(Nn(l,o)||(l=aw(),tt.lanes|=l,Hs|=l,r.baseState=!0),o):(r.baseState&&(r.baseState=!1,en=!0),r.memoizedState=l)}function q8(r,o){var l=He;He=l!==0&&4>l?l:4,r(!0);var u=eh.transition;eh.transition={};try{r(!1),o()}finally{He=l,eh.transition=u}}function P_(){return wn().memoizedState}function V8(r,o,l){var u=rs(r);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},N_(r))M_(o,l);else if(l=u_(r,o,l,u),l!==null){var p=Ht();$n(l,r,u,p),L_(l,o,u)}}function G8(r,o,l){var u=rs(r),p={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(N_(r))M_(o,p);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var S=o.lastRenderedState,T=m(S,l);if(p.hasEagerState=!0,p.eagerState=T,Nn(T,S)){var b=o.interleaved;b===null?(p.next=p,Yp(o)):(p.next=b.next,b.next=p),o.interleaved=p;return}}catch{}finally{}l=u_(r,o,p,u),l!==null&&(p=Ht(),$n(l,r,u,p),L_(l,o,u))}}function N_(r){var o=r.alternate;return r===tt||o!==null&&o===tt}function M_(r,o){ma=Jc=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function L_(r,o,l){if(l&4194240){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,cp(r,l)}}var tu={readContext:Sn,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useInsertionEffect:Mt,useLayoutEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useMutableSource:Mt,useSyncExternalStore:Mt,useId:Mt,unstable_isNewReconciler:!1},Y8={readContext:Sn,useCallback:function(r,o){return Zn().memoizedState=[r,o===void 0?null:o],r},useContext:Sn,useEffect:k_,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,Zc(4194308,4,I_.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Zc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Zc(4,2,r,o)},useMemo:function(r,o){var l=Zn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var u=Zn();return o=l!==void 0?l(o):o,u.memoizedState=u.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},u.queue=r,r=r.dispatch=V8.bind(null,tt,r),[u.memoizedState,r]},useRef:function(r){var o=Zn();return r={current:r},o.memoizedState=r},useState:E_,useDebugValue:ah,useDeferredValue:function(r){return Zn().memoizedState=r},useTransition:function(){var r=E_(!1),o=r[0];return r=q8.bind(null,r[1]),Zn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var u=tt,p=Zn();if(Ze){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),xt===null)throw Error(n(349));Us&30||y_(u,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,k_(S_.bind(null,u,m,r),[r]),u.flags|=2048,va(9,v_.bind(null,u,m,l,o),void 0,null),l},useId:function(){var r=Zn(),o=xt.identifierPrefix;if(Ze){var l=yr,u=gr;l=(u&~(1<<32-Pn(u)-1)).toString(32)+l,o=":"+o+"R"+l,l=ga++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=W8++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},K8={readContext:Sn,useCallback:R_,useContext:Sn,useEffect:ih,useImperativeHandle:C_,useInsertionEffect:T_,useLayoutEffect:b_,useMemo:A_,useReducer:sh,useRef:x_,useState:function(){return sh(ya)},useDebugValue:ah,useDeferredValue:function(r){var o=wn();return O_(o,ft.memoizedState,r)},useTransition:function(){var r=sh(ya)[0],o=wn().memoizedState;return[r,o]},useMutableSource:m_,useSyncExternalStore:g_,useId:P_,unstable_isNewReconciler:!1},Q8={readContext:Sn,useCallback:R_,useContext:Sn,useEffect:ih,useImperativeHandle:C_,useInsertionEffect:T_,useLayoutEffect:b_,useMemo:A_,useReducer:oh,useRef:x_,useState:function(){return oh(ya)},useDebugValue:ah,useDeferredValue:function(r){var o=wn();return ft===null?o.memoizedState=r:O_(o,ft.memoizedState,r)},useTransition:function(){var r=oh(ya)[0],o=wn().memoizedState;return[r,o]},useMutableSource:m_,useSyncExternalStore:g_,useId:P_,unstable_isNewReconciler:!1};function Ln(r,o){if(r&&r.defaultProps){o=Z({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function lh(r,o,l,u){o=r.memoizedState,l=l(u,o),l=l==null?o:Z({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var nu={isMounted:function(r){return(r=r._reactInternals)?Ls(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var u=Ht(),p=rs(r),m=Sr(u,p);m.payload=o,l!=null&&(m.callback=l),o=Zr(r,m,p),o!==null&&($n(o,r,p,u),Yc(o,r,p))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var u=Ht(),p=rs(r),m=Sr(u,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Zr(r,m,p),o!==null&&($n(o,r,p,u),Yc(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=Ht(),u=rs(r),p=Sr(l,u);p.tag=2,o!=null&&(p.callback=o),o=Zr(r,p,u),o!==null&&($n(o,r,u,l),Yc(o,r,u))}};function j_(r,o,l,u,p,m,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,S):o.prototype&&o.prototype.isPureReactComponent?!sa(l,u)||!sa(p,m):!0}function D_(r,o,l){var u=!1,p=Qr,m=o.contextType;return typeof m=="object"&&m!==null?m=Sn(m):(p=Zt(o)?Ds:Nt.current,u=o.contextTypes,m=(u=u!=null)?Wo(r,p):Qr),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=nu,r.stateNode=o,o._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=m),o}function $_(r,o,l,u){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,u),o.state!==r&&nu.enqueueReplaceState(o,o.state,null)}function ch(r,o,l,u){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},Kp(r);var m=o.contextType;typeof m=="object"&&m!==null?p.context=Sn(m):(m=Zt(o)?Ds:Nt.current,p.context=Wo(r,m)),p.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(lh(r,o,m,l),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&nu.enqueueReplaceState(p,p.state,null),Kc(r,l,p,u),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function Jo(r,o){try{var l="",u=o;do l+=Oe(u),u=u.return;while(u);var p=l}catch(m){p=`
Error generating stack: `+m.message+`
`+m.stack}return{value:r,source:o,stack:p,digest:null}}function uh(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function dh(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var X8=typeof WeakMap=="function"?WeakMap:Map;function B_(r,o,l){l=Sr(-1,l),l.tag=3,l.payload={element:null};var u=o.value;return l.callback=function(){cu||(cu=!0,bh=u),dh(r,o)},l}function F_(r,o,l){l=Sr(-1,l),l.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var p=o.value;l.payload=function(){return u(p)},l.callback=function(){dh(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){dh(r,o),typeof u!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),l}function z_(r,o,l){var u=r.pingCache;if(u===null){u=r.pingCache=new X8;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(l)||(p.add(l),r=dB.bind(null,r,o,l),o.then(r,r))}function U_(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function H_(r,o,l,u,p){return r.mode&1?(r.flags|=65536,r.lanes=p,r):(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=Sr(-1,1),o.tag=2,Zr(l,o,1))),l.lanes|=1),r)}var J8=H.ReactCurrentOwner,en=!1;function Ut(r,o,l,u){o.child=r===null?c_(o,null,l,u):Yo(o,r.child,l,u)}function W_(r,o,l,u,p){l=l.render;var m=o.ref;return Qo(o,p),u=nh(r,o,l,u,m,p),l=rh(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,wr(r,o,p)):(Ze&&l&&Bp(o),o.flags|=1,Ut(r,o,u,p),o.child)}function q_(r,o,l,u,p){if(r===null){var m=l.type;return typeof m=="function"&&!Nh(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,V_(r,o,m,u,p)):(r=mu(l.type,null,u,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(m=r.child,!(r.lanes&p)){var S=m.memoizedProps;if(l=l.compare,l=l!==null?l:sa,l(S,u)&&r.ref===o.ref)return wr(r,o,p)}return o.flags|=1,r=os(m,u),r.ref=o.ref,r.return=o,o.child=r}function V_(r,o,l,u,p){if(r!==null){var m=r.memoizedProps;if(sa(m,u)&&r.ref===o.ref)if(en=!1,o.pendingProps=u=m,(r.lanes&p)!==0)r.flags&131072&&(en=!0);else return o.lanes=r.lanes,wr(r,o,p)}return fh(r,o,l,u,p)}function G_(r,o,l){var u=o.pendingProps,p=u.children,m=r!==null?r.memoizedState:null;if(u.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(ei,dn),dn|=l;else{if(!(l&1073741824))return r=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Qe(ei,dn),dn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=m!==null?m.baseLanes:l,Qe(ei,dn),dn|=u}else m!==null?(u=m.baseLanes|l,o.memoizedState=null):u=l,Qe(ei,dn),dn|=u;return Ut(r,o,p,l),o.child}function Y_(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function fh(r,o,l,u,p){var m=Zt(l)?Ds:Nt.current;return m=Wo(o,m),Qo(o,p),l=nh(r,o,l,u,m,p),u=rh(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,wr(r,o,p)):(Ze&&u&&Bp(o),o.flags|=1,Ut(r,o,l,p),o.child)}function K_(r,o,l,u,p){if(Zt(l)){var m=!0;Fc(o)}else m=!1;if(Qo(o,p),o.stateNode===null)su(r,o),D_(o,l,u),ch(o,l,u,p),u=!0;else if(r===null){var S=o.stateNode,T=o.memoizedProps;S.props=T;var b=S.context,j=l.contextType;typeof j=="object"&&j!==null?j=Sn(j):(j=Zt(l)?Ds:Nt.current,j=Wo(o,j));var G=l.getDerivedStateFromProps,Y=typeof G=="function"||typeof S.getSnapshotBeforeUpdate=="function";Y||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==u||b!==j)&&$_(o,S,u,j),Jr=!1;var V=o.memoizedState;S.state=V,Kc(o,u,S,p),b=o.memoizedState,T!==u||V!==b||Jt.current||Jr?(typeof G=="function"&&(lh(o,l,G,u),b=o.memoizedState),(T=Jr||j_(o,l,T,u,V,b,j))?(Y||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=b),S.props=u,S.state=b,S.context=j,u=T):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{S=o.stateNode,d_(r,o),T=o.memoizedProps,j=o.type===o.elementType?T:Ln(o.type,T),S.props=j,Y=o.pendingProps,V=S.context,b=l.contextType,typeof b=="object"&&b!==null?b=Sn(b):(b=Zt(l)?Ds:Nt.current,b=Wo(o,b));var ne=l.getDerivedStateFromProps;(G=typeof ne=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==Y||V!==b)&&$_(o,S,u,b),Jr=!1,V=o.memoizedState,S.state=V,Kc(o,u,S,p);var ie=o.memoizedState;T!==Y||V!==ie||Jt.current||Jr?(typeof ne=="function"&&(lh(o,l,ne,u),ie=o.memoizedState),(j=Jr||j_(o,l,j,u,V,ie,b)||!1)?(G||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(u,ie,b),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(u,ie,b)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||T===r.memoizedProps&&V===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&V===r.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=ie),S.props=u,S.state=ie,S.context=b,u=j):(typeof S.componentDidUpdate!="function"||T===r.memoizedProps&&V===r.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&V===r.memoizedState||(o.flags|=1024),u=!1)}return ph(r,o,l,u,m,p)}function ph(r,o,l,u,p,m){Y_(r,o);var S=(o.flags&128)!==0;if(!u&&!S)return p&&e_(o,l,!1),wr(r,o,m);u=o.stateNode,J8.current=o;var T=S&&typeof l.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,r!==null&&S?(o.child=Yo(o,r.child,null,m),o.child=Yo(o,null,T,m)):Ut(r,o,T,m),o.memoizedState=u.state,p&&e_(o,l,!0),o.child}function Q_(r){var o=r.stateNode;o.pendingContext?Jw(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Jw(r,o.context,!1),Qp(r,o.containerInfo)}function X_(r,o,l,u,p){return Go(),Hp(p),o.flags|=256,Ut(r,o,l,u),o.child}var hh={dehydrated:null,treeContext:null,retryLane:0};function mh(r){return{baseLanes:r,cachePool:null,transitions:null}}function J_(r,o,l){var u=o.pendingProps,p=et.current,m=!1,S=(o.flags&128)!==0,T;if((T=S)||(T=r!==null&&r.memoizedState===null?!1:(p&2)!==0),T?(m=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Qe(et,p&1),r===null)return Up(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(o.mode&1?r.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(S=u.children,r=u.fallback,m?(u=o.mode,m=o.child,S={mode:"hidden",children:S},!(u&1)&&m!==null?(m.childLanes=0,m.pendingProps=S):m=gu(S,u,0,null),r=Gs(r,u,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=mh(l),o.memoizedState=hh,r):gh(o,S));if(p=r.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return Z8(r,o,S,u,T,p,l);if(m){m=u.fallback,S=o.mode,p=r.child,T=p.sibling;var b={mode:"hidden",children:u.children};return!(S&1)&&o.child!==p?(u=o.child,u.childLanes=0,u.pendingProps=b,o.deletions=null):(u=os(p,b),u.subtreeFlags=p.subtreeFlags&14680064),T!==null?m=os(T,m):(m=Gs(m,S,l,null),m.flags|=2),m.return=o,u.return=o,u.sibling=m,o.child=u,u=m,m=o.child,S=r.child.memoizedState,S=S===null?mh(l):{baseLanes:S.baseLanes|l,cachePool:null,transitions:S.transitions},m.memoizedState=S,m.childLanes=r.childLanes&~l,o.memoizedState=hh,u}return m=r.child,r=m.sibling,u=os(m,{mode:"visible",children:u.children}),!(o.mode&1)&&(u.lanes=l),u.return=o,u.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=u,o.memoizedState=null,u}function gh(r,o){return o=gu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function ru(r,o,l,u){return u!==null&&Hp(u),Yo(o,r.child,null,l),r=gh(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Z8(r,o,l,u,p,m,S){if(l)return o.flags&256?(o.flags&=-257,u=uh(Error(n(422))),ru(r,o,S,u)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=u.fallback,p=o.mode,u=gu({mode:"visible",children:u.children},p,0,null),m=Gs(m,p,S,null),m.flags|=2,u.return=o,m.return=o,u.sibling=m,o.child=u,o.mode&1&&Yo(o,r.child,null,S),o.child.memoizedState=mh(S),o.memoizedState=hh,m);if(!(o.mode&1))return ru(r,o,S,null);if(p.data==="$!"){if(u=p.nextSibling&&p.nextSibling.dataset,u)var T=u.dgst;return u=T,m=Error(n(419)),u=uh(m,u,void 0),ru(r,o,S,u)}if(T=(S&r.childLanes)!==0,en||T){if(u=xt,u!==null){switch(S&-S){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=p&(u.suspendedLanes|S)?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,vr(r,p),$n(u,r,p,-1))}return Ph(),u=uh(Error(n(421))),ru(r,o,S,u)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=fB.bind(null,r),p._reactRetry=o,null):(r=m.treeContext,un=Yr(p.nextSibling),cn=o,Ze=!0,Mn=null,r!==null&&(yn[vn++]=gr,yn[vn++]=yr,yn[vn++]=$s,gr=r.id,yr=r.overflow,$s=o),o=gh(o,u.children),o.flags|=4096,o)}function Z_(r,o,l){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o),Gp(r.return,o,l)}function yh(r,o,l,u,p){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=l,m.tailMode=p)}function eE(r,o,l){var u=o.pendingProps,p=u.revealOrder,m=u.tail;if(Ut(r,o,u.children,l),u=et.current,u&2)u=u&1|2,o.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Z_(r,l,o);else if(r.tag===19)Z_(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if(Qe(et,u),!(o.mode&1))o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)r=l.alternate,r!==null&&Qc(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),yh(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&Qc(r)===null){o.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}yh(o,!0,l,null,m);break;case"together":yh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function su(r,o){!(o.mode&1)&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function wr(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Hs|=o.lanes,!(l&o.childLanes))return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,l=os(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=os(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function eB(r,o,l){switch(o.tag){case 3:Q_(o),Go();break;case 5:h_(o);break;case 1:Zt(o.type)&&Fc(o);break;case 4:Qp(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,p=o.memoizedProps.value;Qe(Vc,u._currentValue),u._currentValue=p;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Qe(et,et.current&1),o.flags|=128,null):l&o.child.childLanes?J_(r,o,l):(Qe(et,et.current&1),r=wr(r,o,l),r!==null?r.sibling:null);Qe(et,et.current&1);break;case 19:if(u=(l&o.childLanes)!==0,r.flags&128){if(u)return eE(r,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Qe(et,et.current),u)break;return null;case 22:case 23:return o.lanes=0,G_(r,o,l)}return wr(r,o,l)}var tE,vh,nE,rE;tE=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},vh=function(){},nE=function(r,o,l,u){var p=r.memoizedProps;if(p!==u){r=o.stateNode,zs(Jn.current);var m=null;switch(l){case"input":p=On(r,p),u=On(r,u),m=[];break;case"select":p=Z({},p,{value:void 0}),u=Z({},u,{value:void 0}),m=[];break;case"textarea":p=Ce(r,p),u=Ce(r,u),m=[];break;default:typeof p.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=Dc)}Jf(l,u);var S;l=null;for(j in p)if(!u.hasOwnProperty(j)&&p.hasOwnProperty(j)&&p[j]!=null)if(j==="style"){var T=p[j];for(S in T)T.hasOwnProperty(S)&&(l||(l={}),l[S]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(i.hasOwnProperty(j)?m||(m=[]):(m=m||[]).push(j,null));for(j in u){var b=u[j];if(T=p!=null?p[j]:void 0,u.hasOwnProperty(j)&&b!==T&&(b!=null||T!=null))if(j==="style")if(T){for(S in T)!T.hasOwnProperty(S)||b&&b.hasOwnProperty(S)||(l||(l={}),l[S]="");for(S in b)b.hasOwnProperty(S)&&T[S]!==b[S]&&(l||(l={}),l[S]=b[S])}else l||(m||(m=[]),m.push(j,l)),l=b;else j==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,T=T?T.__html:void 0,b!=null&&T!==b&&(m=m||[]).push(j,b)):j==="children"?typeof b!="string"&&typeof b!="number"||(m=m||[]).push(j,""+b):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(i.hasOwnProperty(j)?(b!=null&&j==="onScroll"&&Xe("scroll",r),m||T===b||(m=[])):(m=m||[]).push(j,b))}l&&(m=m||[]).push("style",l);var j=m;(o.updateQueue=j)&&(o.flags|=4)}},rE=function(r,o,l,u){l!==u&&(o.flags|=4)};function Sa(r,o){if(!Ze)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Lt(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(o)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&14680064,u|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=l,o}function tB(r,o,l){var u=o.pendingProps;switch(Fp(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(o),null;case 1:return Zt(o.type)&&Bc(),Lt(o),null;case 3:return u=o.stateNode,Xo(),Je(Jt),Je(Nt),Zp(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Wc(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Mn!==null&&(Rh(Mn),Mn=null))),vh(r,o),Lt(o),null;case 5:Xp(o);var p=zs(ha.current);if(l=o.type,r!==null&&o.stateNode!=null)nE(r,o,l,u,p),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(n(166));return Lt(o),null}if(r=zs(Jn.current),Wc(o)){u=o.stateNode,l=o.type;var m=o.memoizedProps;switch(u[Xn]=o,u[ca]=m,r=(o.mode&1)!==0,l){case"dialog":Xe("cancel",u),Xe("close",u);break;case"iframe":case"object":case"embed":Xe("load",u);break;case"video":case"audio":for(p=0;p<ia.length;p++)Xe(ia[p],u);break;case"source":Xe("error",u);break;case"img":case"image":case"link":Xe("error",u),Xe("load",u);break;case"details":Xe("toggle",u);break;case"input":Yn(u,m),Xe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!m.multiple},Xe("invalid",u);break;case"textarea":Ke(u,m),Xe("invalid",u)}Jf(l,m),p=null;for(var S in m)if(m.hasOwnProperty(S)){var T=m[S];S==="children"?typeof T=="string"?u.textContent!==T&&(m.suppressHydrationWarning!==!0&&jc(u.textContent,T,r),p=["children",T]):typeof T=="number"&&u.textContent!==""+T&&(m.suppressHydrationWarning!==!0&&jc(u.textContent,T,r),p=["children",""+T]):i.hasOwnProperty(S)&&T!=null&&S==="onScroll"&&Xe("scroll",u)}switch(l){case"input":Os(u),Ns(u,m,!0);break;case"textarea":Os(u),Kn(u);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(u.onclick=Dc)}u=p,o.updateQueue=u,u!==null&&(o.flags|=4)}else{S=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=hc(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=S.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=S.createElement(l,{is:u.is}):(r=S.createElement(l),l==="select"&&(S=r,u.multiple?S.multiple=!0:u.size&&(S.size=u.size))):r=S.createElementNS(r,l),r[Xn]=o,r[ca]=u,tE(r,o,!1,!1),o.stateNode=r;e:{switch(S=Zf(l,u),l){case"dialog":Xe("cancel",r),Xe("close",r),p=u;break;case"iframe":case"object":case"embed":Xe("load",r),p=u;break;case"video":case"audio":for(p=0;p<ia.length;p++)Xe(ia[p],r);p=u;break;case"source":Xe("error",r),p=u;break;case"img":case"image":case"link":Xe("error",r),Xe("load",r),p=u;break;case"details":Xe("toggle",r),p=u;break;case"input":Yn(r,u),p=On(r,u),Xe("invalid",r);break;case"option":p=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},p=Z({},u,{value:void 0}),Xe("invalid",r);break;case"textarea":Ke(r,u),p=Ce(r,u),Xe("invalid",r);break;default:p=u}Jf(l,p),T=p;for(m in T)if(T.hasOwnProperty(m)){var b=T[m];m==="style"?VS(r,b):m==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&WS(r,b)):m==="children"?typeof b=="string"?(l!=="textarea"||b!=="")&&zi(r,b):typeof b=="number"&&zi(r,""+b):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(i.hasOwnProperty(m)?b!=null&&m==="onScroll"&&Xe("scroll",r):b!=null&&$(r,m,b,S))}switch(l){case"input":Os(r),Ns(r,u,!1);break;case"textarea":Os(r),Kn(r);break;case"option":u.value!=null&&r.setAttribute("value",""+De(u.value));break;case"select":r.multiple=!!u.multiple,m=u.value,m!=null?_t(r,!!u.multiple,m,!1):u.defaultValue!=null&&_t(r,!!u.multiple,u.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Dc)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Lt(o),null;case 6:if(r&&o.stateNode!=null)rE(r,o,r.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(n(166));if(l=zs(ha.current),zs(Jn.current),Wc(o)){if(u=o.stateNode,l=o.memoizedProps,u[Xn]=o,(m=u.nodeValue!==l)&&(r=cn,r!==null))switch(r.tag){case 3:jc(u.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&jc(u.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Xn]=o,o.stateNode=u}return Lt(o),null;case 13:if(Je(et),u=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ze&&un!==null&&o.mode&1&&!(o.flags&128))i_(),Go(),o.flags|=98560,m=!1;else if(m=Wc(o),u!==null&&u.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Xn]=o}else Go(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Lt(o),m=!1}else Mn!==null&&(Rh(Mn),Mn=null),m=!0;if(!m)return o.flags&65536?o:null}return o.flags&128?(o.lanes=l,o):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(o.child.flags|=8192,o.mode&1&&(r===null||et.current&1?pt===0&&(pt=3):Ph())),o.updateQueue!==null&&(o.flags|=4),Lt(o),null);case 4:return Xo(),vh(r,o),r===null&&aa(o.stateNode.containerInfo),Lt(o),null;case 10:return Vp(o.type._context),Lt(o),null;case 17:return Zt(o.type)&&Bc(),Lt(o),null;case 19:if(Je(et),m=o.memoizedState,m===null)return Lt(o),null;if(u=(o.flags&128)!==0,S=m.rendering,S===null)if(u)Sa(m,!1);else{if(pt!==0||r!==null&&r.flags&128)for(r=o.child;r!==null;){if(S=Qc(r),S!==null){for(o.flags|=128,Sa(m,!1),u=S.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=l,l=o.child;l!==null;)m=l,r=u,m.flags&=14680066,S=m.alternate,S===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=S.childLanes,m.lanes=S.lanes,m.child=S.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=S.memoizedProps,m.memoizedState=S.memoizedState,m.updateQueue=S.updateQueue,m.type=S.type,r=S.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Qe(et,et.current&1|2),o.child}r=r.sibling}m.tail!==null&&at()>ti&&(o.flags|=128,u=!0,Sa(m,!1),o.lanes=4194304)}else{if(!u)if(r=Qc(S),r!==null){if(o.flags|=128,u=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Sa(m,!0),m.tail===null&&m.tailMode==="hidden"&&!S.alternate&&!Ze)return Lt(o),null}else 2*at()-m.renderingStartTime>ti&&l!==1073741824&&(o.flags|=128,u=!0,Sa(m,!1),o.lanes=4194304);m.isBackwards?(S.sibling=o.child,o.child=S):(l=m.last,l!==null?l.sibling=S:o.child=S,m.last=S)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=at(),o.sibling=null,l=et.current,Qe(et,u?l&1|2:l&1),o):(Lt(o),null);case 22:case 23:return Oh(),u=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(o.flags|=8192),u&&o.mode&1?dn&1073741824&&(Lt(o),o.subtreeFlags&6&&(o.flags|=8192)):Lt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function nB(r,o){switch(Fp(o),o.tag){case 1:return Zt(o.type)&&Bc(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Xo(),Je(Jt),Je(Nt),Zp(),r=o.flags,r&65536&&!(r&128)?(o.flags=r&-65537|128,o):null;case 5:return Xp(o),null;case 13:if(Je(et),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Go()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Je(et),null;case 4:return Xo(),null;case 10:return Vp(o.type._context),null;case 22:case 23:return Oh(),null;case 24:return null;default:return null}}var ou=!1,jt=!1,rB=typeof WeakSet=="function"?WeakSet:Set,se=null;function Zo(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){rt(r,o,u)}else l.current=null}function Sh(r,o,l){try{l()}catch(u){rt(r,o,u)}}var sE=!1;function sB(r,o){if(Op=Tc,r=jw(),xp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var S=0,T=-1,b=-1,j=0,G=0,Y=r,V=null;t:for(;;){for(var ne;Y!==l||p!==0&&Y.nodeType!==3||(T=S+p),Y!==m||u!==0&&Y.nodeType!==3||(b=S+u),Y.nodeType===3&&(S+=Y.nodeValue.length),(ne=Y.firstChild)!==null;)V=Y,Y=ne;for(;;){if(Y===r)break t;if(V===l&&++j===p&&(T=S),V===m&&++G===u&&(b=S),(ne=Y.nextSibling)!==null)break;Y=V,V=Y.parentNode}Y=ne}l=T===-1||b===-1?null:{start:T,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Pp={focusedElem:r,selectionRange:l},Tc=!1,se=o;se!==null;)if(o=se,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,se=r;else for(;se!==null;){o=se;try{var ie=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var le=ie.memoizedProps,lt=ie.memoizedState,P=o.stateNode,I=P.getSnapshotBeforeUpdate(o.elementType===o.type?le:Ln(o.type,le),lt);P.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var N=o.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Q){rt(o,o.return,Q)}if(r=o.sibling,r!==null){r.return=o.return,se=r;break}se=o.return}return ie=sE,sE=!1,ie}function wa(r,o,l){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&r)===r){var m=p.destroy;p.destroy=void 0,m!==void 0&&Sh(o,l,m)}p=p.next}while(p!==u)}}function iu(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var u=l.create;l.destroy=u()}l=l.next}while(l!==o)}}function wh(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function oE(r){var o=r.alternate;o!==null&&(r.alternate=null,oE(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Xn],delete o[ca],delete o[jp],delete o[F8],delete o[z8])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function iE(r){return r.tag===5||r.tag===3||r.tag===4}function aE(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||iE(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function _h(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Dc));else if(u!==4&&(r=r.child,r!==null))for(_h(r,o,l),r=r.sibling;r!==null;)_h(r,o,l),r=r.sibling}function Eh(r,o,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(Eh(r,o,l),r=r.sibling;r!==null;)Eh(r,o,l),r=r.sibling}var Rt=null,jn=!1;function es(r,o,l){for(l=l.child;l!==null;)lE(r,o,l),l=l.sibling}function lE(r,o,l){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Sc,l)}catch{}switch(l.tag){case 5:jt||Zo(l,o);case 6:var u=Rt,p=jn;Rt=null,es(r,o,l),Rt=u,jn=p,Rt!==null&&(jn?(r=Rt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Rt.removeChild(l.stateNode));break;case 18:Rt!==null&&(jn?(r=Rt,l=l.stateNode,r.nodeType===8?Lp(r.parentNode,l):r.nodeType===1&&Lp(r,l),Ji(r)):Lp(Rt,l.stateNode));break;case 4:u=Rt,p=jn,Rt=l.stateNode.containerInfo,jn=!0,es(r,o,l),Rt=u,jn=p;break;case 0:case 11:case 14:case 15:if(!jt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){p=u=u.next;do{var m=p,S=m.destroy;m=m.tag,S!==void 0&&(m&2||m&4)&&Sh(l,o,S),p=p.next}while(p!==u)}es(r,o,l);break;case 1:if(!jt&&(Zo(l,o),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(T){rt(l,o,T)}es(r,o,l);break;case 21:es(r,o,l);break;case 22:l.mode&1?(jt=(u=jt)||l.memoizedState!==null,es(r,o,l),jt=u):es(r,o,l);break;default:es(r,o,l)}}function cE(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new rB),o.forEach(function(u){var p=pB.bind(null,r,u);l.has(u)||(l.add(u),u.then(p,p))})}}function Dn(r,o){var l=o.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];try{var m=r,S=o,T=S;e:for(;T!==null;){switch(T.tag){case 5:Rt=T.stateNode,jn=!1;break e;case 3:Rt=T.stateNode.containerInfo,jn=!0;break e;case 4:Rt=T.stateNode.containerInfo,jn=!0;break e}T=T.return}if(Rt===null)throw Error(n(160));lE(m,S,p),Rt=null,jn=!1;var b=p.alternate;b!==null&&(b.return=null),p.return=null}catch(j){rt(p,o,j)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)uE(o,r),o=o.sibling}function uE(r,o){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Dn(o,r),er(r),u&4){try{wa(3,r,r.return),iu(3,r)}catch(le){rt(r,r.return,le)}try{wa(5,r,r.return)}catch(le){rt(r,r.return,le)}}break;case 1:Dn(o,r),er(r),u&512&&l!==null&&Zo(l,l.return);break;case 5:if(Dn(o,r),er(r),u&512&&l!==null&&Zo(l,l.return),r.flags&32){var p=r.stateNode;try{zi(p,"")}catch(le){rt(r,r.return,le)}}if(u&4&&(p=r.stateNode,p!=null)){var m=r.memoizedProps,S=l!==null?l.memoizedProps:m,T=r.type,b=r.updateQueue;if(r.updateQueue=null,b!==null)try{T==="input"&&m.type==="radio"&&m.name!=null&&Po(p,m),Zf(T,S);var j=Zf(T,m);for(S=0;S<b.length;S+=2){var G=b[S],Y=b[S+1];G==="style"?VS(p,Y):G==="dangerouslySetInnerHTML"?WS(p,Y):G==="children"?zi(p,Y):$(p,G,Y,j)}switch(T){case"input":Ps(p,m);break;case"textarea":je(p,m);break;case"select":var V=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var ne=m.value;ne!=null?_t(p,!!m.multiple,ne,!1):V!==!!m.multiple&&(m.defaultValue!=null?_t(p,!!m.multiple,m.defaultValue,!0):_t(p,!!m.multiple,m.multiple?[]:"",!1))}p[ca]=m}catch(le){rt(r,r.return,le)}}break;case 6:if(Dn(o,r),er(r),u&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,m=r.memoizedProps;try{p.nodeValue=m}catch(le){rt(r,r.return,le)}}break;case 3:if(Dn(o,r),er(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ji(o.containerInfo)}catch(le){rt(r,r.return,le)}break;case 4:Dn(o,r),er(r);break;case 13:Dn(o,r),er(r),p=r.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(Th=at())),u&4&&cE(r);break;case 22:if(G=l!==null&&l.memoizedState!==null,r.mode&1?(jt=(j=jt)||G,Dn(o,r),jt=j):Dn(o,r),er(r),u&8192){if(j=r.memoizedState!==null,(r.stateNode.isHidden=j)&&!G&&r.mode&1)for(se=r,G=r.child;G!==null;){for(Y=se=G;se!==null;){switch(V=se,ne=V.child,V.tag){case 0:case 11:case 14:case 15:wa(4,V,V.return);break;case 1:Zo(V,V.return);var ie=V.stateNode;if(typeof ie.componentWillUnmount=="function"){u=V,l=V.return;try{o=u,ie.props=o.memoizedProps,ie.state=o.memoizedState,ie.componentWillUnmount()}catch(le){rt(u,l,le)}}break;case 5:Zo(V,V.return);break;case 22:if(V.memoizedState!==null){pE(Y);continue}}ne!==null?(ne.return=V,se=ne):pE(Y)}G=G.sibling}e:for(G=null,Y=r;;){if(Y.tag===5){if(G===null){G=Y;try{p=Y.stateNode,j?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(T=Y.stateNode,b=Y.memoizedProps.style,S=b!=null&&b.hasOwnProperty("display")?b.display:null,T.style.display=qS("display",S))}catch(le){rt(r,r.return,le)}}}else if(Y.tag===6){if(G===null)try{Y.stateNode.nodeValue=j?"":Y.memoizedProps}catch(le){rt(r,r.return,le)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===r)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===r)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===r)break e;G===Y&&(G=null),Y=Y.return}G===Y&&(G=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:Dn(o,r),er(r),u&4&&cE(r);break;case 21:break;default:Dn(o,r),er(r)}}function er(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(iE(l)){var u=l;break e}l=l.return}throw Error(n(160))}switch(u.tag){case 5:var p=u.stateNode;u.flags&32&&(zi(p,""),u.flags&=-33);var m=aE(r);Eh(r,m,p);break;case 3:case 4:var S=u.stateNode.containerInfo,T=aE(r);_h(r,T,S);break;default:throw Error(n(161))}}catch(b){rt(r,r.return,b)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function oB(r,o,l){se=r,dE(r)}function dE(r,o,l){for(var u=(r.mode&1)!==0;se!==null;){var p=se,m=p.child;if(p.tag===22&&u){var S=p.memoizedState!==null||ou;if(!S){var T=p.alternate,b=T!==null&&T.memoizedState!==null||jt;T=ou;var j=jt;if(ou=S,(jt=b)&&!j)for(se=p;se!==null;)S=se,b=S.child,S.tag===22&&S.memoizedState!==null?hE(p):b!==null?(b.return=S,se=b):hE(p);for(;m!==null;)se=m,dE(m),m=m.sibling;se=p,ou=T,jt=j}fE(r)}else p.subtreeFlags&8772&&m!==null?(m.return=p,se=m):fE(r)}}function fE(r){for(;se!==null;){var o=se;if(o.flags&8772){var l=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:jt||iu(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!jt)if(l===null)u.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:Ln(o.type,l.memoizedProps);u.componentDidUpdate(p,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&p_(o,m,u);break;case 3:var S=o.updateQueue;if(S!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}p_(o,S,l)}break;case 5:var T=o.stateNode;if(l===null&&o.flags&4){l=T;var b=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&l.focus();break;case"img":b.src&&(l.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var j=o.alternate;if(j!==null){var G=j.memoizedState;if(G!==null){var Y=G.dehydrated;Y!==null&&Ji(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}jt||o.flags&512&&wh(o)}catch(V){rt(o,o.return,V)}}if(o===r){se=null;break}if(l=o.sibling,l!==null){l.return=o.return,se=l;break}se=o.return}}function pE(r){for(;se!==null;){var o=se;if(o===r){se=null;break}var l=o.sibling;if(l!==null){l.return=o.return,se=l;break}se=o.return}}function hE(r){for(;se!==null;){var o=se;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{iu(4,o)}catch(b){rt(o,l,b)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var p=o.return;try{u.componentDidMount()}catch(b){rt(o,p,b)}}var m=o.return;try{wh(o)}catch(b){rt(o,m,b)}break;case 5:var S=o.return;try{wh(o)}catch(b){rt(o,S,b)}}}catch(b){rt(o,o.return,b)}if(o===r){se=null;break}var T=o.sibling;if(T!==null){T.return=o.return,se=T;break}se=o.return}}var iB=Math.ceil,au=H.ReactCurrentDispatcher,xh=H.ReactCurrentOwner,_n=H.ReactCurrentBatchConfig,$e=0,xt=null,ct=null,At=0,dn=0,ei=Kr(0),pt=0,_a=null,Hs=0,lu=0,kh=0,Ea=null,tn=null,Th=0,ti=1/0,_r=null,cu=!1,bh=null,ts=null,uu=!1,ns=null,du=0,xa=0,Ih=null,fu=-1,pu=0;function Ht(){return $e&6?at():fu!==-1?fu:fu=at()}function rs(r){return r.mode&1?$e&2&&At!==0?At&-At:H8.transition!==null?(pu===0&&(pu=aw()),pu):(r=He,r!==0||(r=window.event,r=r===void 0?16:gw(r.type)),r):1}function $n(r,o,l,u){if(50<xa)throw xa=0,Ih=null,Error(n(185));Gi(r,l,u),(!($e&2)||r!==xt)&&(r===xt&&(!($e&2)&&(lu|=l),pt===4&&ss(r,At)),nn(r,u),l===1&&$e===0&&!(o.mode&1)&&(ti=at()+500,zc&&Xr()))}function nn(r,o){var l=r.callbackNode;H$(r,o);var u=Ec(r,r===xt?At:0);if(u===0)l!==null&&sw(l),r.callbackNode=null,r.callbackPriority=0;else if(o=u&-u,r.callbackPriority!==o){if(l!=null&&sw(l),o===1)r.tag===0?U8(gE.bind(null,r)):t_(gE.bind(null,r)),$8(function(){!($e&6)&&Xr()}),l=null;else{switch(lw(u)){case 1:l=ip;break;case 4:l=ow;break;case 16:l=vc;break;case 536870912:l=iw;break;default:l=vc}l=kE(l,mE.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function mE(r,o){if(fu=-1,pu=0,$e&6)throw Error(n(327));var l=r.callbackNode;if(ni()&&r.callbackNode!==l)return null;var u=Ec(r,r===xt?At:0);if(u===0)return null;if(u&30||u&r.expiredLanes||o)o=hu(r,u);else{o=u;var p=$e;$e|=2;var m=vE();(xt!==r||At!==o)&&(_r=null,ti=at()+500,qs(r,o));do try{cB();break}catch(T){yE(r,T)}while(!0);qp(),au.current=m,$e=p,ct!==null?o=0:(xt=null,At=0,o=pt)}if(o!==0){if(o===2&&(p=ap(r),p!==0&&(u=p,o=Ch(r,p))),o===1)throw l=_a,qs(r,0),ss(r,u),nn(r,at()),l;if(o===6)ss(r,u);else{if(p=r.current.alternate,!(u&30)&&!aB(p)&&(o=hu(r,u),o===2&&(m=ap(r),m!==0&&(u=m,o=Ch(r,m))),o===1))throw l=_a,qs(r,0),ss(r,u),nn(r,at()),l;switch(r.finishedWork=p,r.finishedLanes=u,o){case 0:case 1:throw Error(n(345));case 2:Vs(r,tn,_r);break;case 3:if(ss(r,u),(u&130023424)===u&&(o=Th+500-at(),10<o)){if(Ec(r,0)!==0)break;if(p=r.suspendedLanes,(p&u)!==u){Ht(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Mp(Vs.bind(null,r,tn,_r),o);break}Vs(r,tn,_r);break;case 4:if(ss(r,u),(u&4194240)===u)break;for(o=r.eventTimes,p=-1;0<u;){var S=31-Pn(u);m=1<<S,S=o[S],S>p&&(p=S),u&=~m}if(u=p,u=at()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*iB(u/1960))-u,10<u){r.timeoutHandle=Mp(Vs.bind(null,r,tn,_r),u);break}Vs(r,tn,_r);break;case 5:Vs(r,tn,_r);break;default:throw Error(n(329))}}}return nn(r,at()),r.callbackNode===l?mE.bind(null,r):null}function Ch(r,o){var l=Ea;return r.current.memoizedState.isDehydrated&&(qs(r,o).flags|=256),r=hu(r,o),r!==2&&(o=tn,tn=l,o!==null&&Rh(o)),r}function Rh(r){tn===null?tn=r:tn.push.apply(tn,r)}function aB(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var p=l[u],m=p.getSnapshot;p=p.value;try{if(!Nn(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ss(r,o){for(o&=~kh,o&=~lu,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-Pn(o),u=1<<l;r[l]=-1,o&=~u}}function gE(r){if($e&6)throw Error(n(327));ni();var o=Ec(r,0);if(!(o&1))return nn(r,at()),null;var l=hu(r,o);if(r.tag!==0&&l===2){var u=ap(r);u!==0&&(o=u,l=Ch(r,u))}if(l===1)throw l=_a,qs(r,0),ss(r,o),nn(r,at()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Vs(r,tn,_r),nn(r,at()),null}function Ah(r,o){var l=$e;$e|=1;try{return r(o)}finally{$e=l,$e===0&&(ti=at()+500,zc&&Xr())}}function Ws(r){ns!==null&&ns.tag===0&&!($e&6)&&ni();var o=$e;$e|=1;var l=_n.transition,u=He;try{if(_n.transition=null,He=1,r)return r()}finally{He=u,_n.transition=l,$e=o,!($e&6)&&Xr()}}function Oh(){dn=ei.current,Je(ei)}function qs(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,D8(l)),ct!==null)for(l=ct.return;l!==null;){var u=l;switch(Fp(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Bc();break;case 3:Xo(),Je(Jt),Je(Nt),Zp();break;case 5:Xp(u);break;case 4:Xo();break;case 13:Je(et);break;case 19:Je(et);break;case 10:Vp(u.type._context);break;case 22:case 23:Oh()}l=l.return}if(xt=r,ct=r=os(r.current,null),At=dn=o,pt=0,_a=null,kh=lu=Hs=0,tn=Ea=null,Fs!==null){for(o=0;o<Fs.length;o++)if(l=Fs[o],u=l.interleaved,u!==null){l.interleaved=null;var p=u.next,m=l.pending;if(m!==null){var S=m.next;m.next=p,u.next=S}l.pending=u}Fs=null}return r}function yE(r,o){do{var l=ct;try{if(qp(),Xc.current=tu,Jc){for(var u=tt.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Jc=!1}if(Us=0,Et=ft=tt=null,ma=!1,ga=0,xh.current=null,l===null||l.return===null){pt=1,_a=o,ct=null;break}e:{var m=r,S=l.return,T=l,b=o;if(o=At,T.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var j=b,G=T,Y=G.tag;if(!(G.mode&1)&&(Y===0||Y===11||Y===15)){var V=G.alternate;V?(G.updateQueue=V.updateQueue,G.memoizedState=V.memoizedState,G.lanes=V.lanes):(G.updateQueue=null,G.memoizedState=null)}var ne=U_(S);if(ne!==null){ne.flags&=-257,H_(ne,S,T,m,o),ne.mode&1&&z_(m,j,o),o=ne,b=j;var ie=o.updateQueue;if(ie===null){var le=new Set;le.add(b),o.updateQueue=le}else ie.add(b);break e}else{if(!(o&1)){z_(m,j,o),Ph();break e}b=Error(n(426))}}else if(Ze&&T.mode&1){var lt=U_(S);if(lt!==null){!(lt.flags&65536)&&(lt.flags|=256),H_(lt,S,T,m,o),Hp(Jo(b,T));break e}}m=b=Jo(b,T),pt!==4&&(pt=2),Ea===null?Ea=[m]:Ea.push(m),m=S;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var P=B_(m,b,o);f_(m,P);break e;case 1:T=b;var I=m.type,N=m.stateNode;if(!(m.flags&128)&&(typeof I.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(ts===null||!ts.has(N)))){m.flags|=65536,o&=-o,m.lanes|=o;var Q=F_(m,T,o);f_(m,Q);break e}}m=m.return}while(m!==null)}wE(l)}catch(ce){o=ce,ct===l&&l!==null&&(ct=l=l.return);continue}break}while(!0)}function vE(){var r=au.current;return au.current=tu,r===null?tu:r}function Ph(){(pt===0||pt===3||pt===2)&&(pt=4),xt===null||!(Hs&268435455)&&!(lu&268435455)||ss(xt,At)}function hu(r,o){var l=$e;$e|=2;var u=vE();(xt!==r||At!==o)&&(_r=null,qs(r,o));do try{lB();break}catch(p){yE(r,p)}while(!0);if(qp(),$e=l,au.current=u,ct!==null)throw Error(n(261));return xt=null,At=0,pt}function lB(){for(;ct!==null;)SE(ct)}function cB(){for(;ct!==null&&!M$();)SE(ct)}function SE(r){var o=xE(r.alternate,r,dn);r.memoizedProps=r.pendingProps,o===null?wE(r):ct=o,xh.current=null}function wE(r){var o=r;do{var l=o.alternate;if(r=o.return,o.flags&32768){if(l=nB(l,o),l!==null){l.flags&=32767,ct=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{pt=6,ct=null;return}}else if(l=tB(l,o,dn),l!==null){ct=l;return}if(o=o.sibling,o!==null){ct=o;return}ct=o=r}while(o!==null);pt===0&&(pt=5)}function Vs(r,o,l){var u=He,p=_n.transition;try{_n.transition=null,He=1,uB(r,o,l,u)}finally{_n.transition=p,He=u}return null}function uB(r,o,l,u){do ni();while(ns!==null);if($e&6)throw Error(n(327));l=r.finishedWork;var p=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=l.lanes|l.childLanes;if(W$(r,m),r===xt&&(ct=xt=null,At=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||uu||(uu=!0,kE(vc,function(){return ni(),null})),m=(l.flags&15990)!==0,l.subtreeFlags&15990||m){m=_n.transition,_n.transition=null;var S=He;He=1;var T=$e;$e|=4,xh.current=null,sB(r,l),uE(l,r),A8(Pp),Tc=!!Op,Pp=Op=null,r.current=l,oB(l),L$(),$e=T,He=S,_n.transition=m}else r.current=l;if(uu&&(uu=!1,ns=r,du=p),m=r.pendingLanes,m===0&&(ts=null),$$(l.stateNode),nn(r,at()),o!==null)for(u=r.onRecoverableError,l=0;l<o.length;l++)p=o[l],u(p.value,{componentStack:p.stack,digest:p.digest});if(cu)throw cu=!1,r=bh,bh=null,r;return du&1&&r.tag!==0&&ni(),m=r.pendingLanes,m&1?r===Ih?xa++:(xa=0,Ih=r):xa=0,Xr(),null}function ni(){if(ns!==null){var r=lw(du),o=_n.transition,l=He;try{if(_n.transition=null,He=16>r?16:r,ns===null)var u=!1;else{if(r=ns,ns=null,du=0,$e&6)throw Error(n(331));var p=$e;for($e|=4,se=r.current;se!==null;){var m=se,S=m.child;if(se.flags&16){var T=m.deletions;if(T!==null){for(var b=0;b<T.length;b++){var j=T[b];for(se=j;se!==null;){var G=se;switch(G.tag){case 0:case 11:case 15:wa(8,G,m)}var Y=G.child;if(Y!==null)Y.return=G,se=Y;else for(;se!==null;){G=se;var V=G.sibling,ne=G.return;if(oE(G),G===j){se=null;break}if(V!==null){V.return=ne,se=V;break}se=ne}}}var ie=m.alternate;if(ie!==null){var le=ie.child;if(le!==null){ie.child=null;do{var lt=le.sibling;le.sibling=null,le=lt}while(le!==null)}}se=m}}if(m.subtreeFlags&2064&&S!==null)S.return=m,se=S;else e:for(;se!==null;){if(m=se,m.flags&2048)switch(m.tag){case 0:case 11:case 15:wa(9,m,m.return)}var P=m.sibling;if(P!==null){P.return=m.return,se=P;break e}se=m.return}}var I=r.current;for(se=I;se!==null;){S=se;var N=S.child;if(S.subtreeFlags&2064&&N!==null)N.return=S,se=N;else e:for(S=I;se!==null;){if(T=se,T.flags&2048)try{switch(T.tag){case 0:case 11:case 15:iu(9,T)}}catch(ce){rt(T,T.return,ce)}if(T===S){se=null;break e}var Q=T.sibling;if(Q!==null){Q.return=T.return,se=Q;break e}se=T.return}}if($e=p,Xr(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Sc,r)}catch{}u=!0}return u}finally{He=l,_n.transition=o}}return!1}function _E(r,o,l){o=Jo(l,o),o=B_(r,o,1),r=Zr(r,o,1),o=Ht(),r!==null&&(Gi(r,1,o),nn(r,o))}function rt(r,o,l){if(r.tag===3)_E(r,r,l);else for(;o!==null;){if(o.tag===3){_E(o,r,l);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ts===null||!ts.has(u))){r=Jo(l,r),r=F_(o,r,1),o=Zr(o,r,1),r=Ht(),o!==null&&(Gi(o,1,r),nn(o,r));break}}o=o.return}}function dB(r,o,l){var u=r.pingCache;u!==null&&u.delete(o),o=Ht(),r.pingedLanes|=r.suspendedLanes&l,xt===r&&(At&l)===l&&(pt===4||pt===3&&(At&130023424)===At&&500>at()-Th?qs(r,0):kh|=l),nn(r,o)}function EE(r,o){o===0&&(r.mode&1?(o=_c,_c<<=1,!(_c&130023424)&&(_c=4194304)):o=1);var l=Ht();r=vr(r,o),r!==null&&(Gi(r,o,l),nn(r,l))}function fB(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),EE(r,l)}function pB(r,o){var l=0;switch(r.tag){case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(o),EE(r,l)}var xE;xE=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||Jt.current)en=!0;else{if(!(r.lanes&l)&&!(o.flags&128))return en=!1,eB(r,o,l);en=!!(r.flags&131072)}else en=!1,Ze&&o.flags&1048576&&n_(o,Hc,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;su(r,o),r=o.pendingProps;var p=Wo(o,Nt.current);Qo(o,l),p=nh(null,o,u,r,p,l);var m=rh();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Zt(u)?(m=!0,Fc(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Kp(o),p.updater=nu,o.stateNode=p,p._reactInternals=o,ch(o,u,r,l),o=ph(null,o,u,!0,m,l)):(o.tag=0,Ze&&m&&Bp(o),Ut(null,o,p,l),o=o.child),o;case 16:u=o.elementType;e:{switch(su(r,o),r=o.pendingProps,p=u._init,u=p(u._payload),o.type=u,p=o.tag=mB(u),r=Ln(u,r),p){case 0:o=fh(null,o,u,r,l);break e;case 1:o=K_(null,o,u,r,l);break e;case 11:o=W_(null,o,u,r,l);break e;case 14:o=q_(null,o,u,Ln(u.type,r),l);break e}throw Error(n(306,u,""))}return o;case 0:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Ln(u,p),fh(r,o,u,p,l);case 1:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Ln(u,p),K_(r,o,u,p,l);case 3:e:{if(Q_(o),r===null)throw Error(n(387));u=o.pendingProps,m=o.memoizedState,p=m.element,d_(r,o),Kc(o,u,null,l);var S=o.memoizedState;if(u=S.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=Jo(Error(n(423)),o),o=X_(r,o,u,l,p);break e}else if(u!==p){p=Jo(Error(n(424)),o),o=X_(r,o,u,l,p);break e}else for(un=Yr(o.stateNode.containerInfo.firstChild),cn=o,Ze=!0,Mn=null,l=c_(o,null,u,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Go(),u===p){o=wr(r,o,l);break e}Ut(r,o,u,l)}o=o.child}return o;case 5:return h_(o),r===null&&Up(o),u=o.type,p=o.pendingProps,m=r!==null?r.memoizedProps:null,S=p.children,Np(u,p)?S=null:m!==null&&Np(u,m)&&(o.flags|=32),Y_(r,o),Ut(r,o,S,l),o.child;case 6:return r===null&&Up(o),null;case 13:return J_(r,o,l);case 4:return Qp(o,o.stateNode.containerInfo),u=o.pendingProps,r===null?o.child=Yo(o,null,u,l):Ut(r,o,u,l),o.child;case 11:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Ln(u,p),W_(r,o,u,p,l);case 7:return Ut(r,o,o.pendingProps,l),o.child;case 8:return Ut(r,o,o.pendingProps.children,l),o.child;case 12:return Ut(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(u=o.type._context,p=o.pendingProps,m=o.memoizedProps,S=p.value,Qe(Vc,u._currentValue),u._currentValue=S,m!==null)if(Nn(m.value,S)){if(m.children===p.children&&!Jt.current){o=wr(r,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var T=m.dependencies;if(T!==null){S=m.child;for(var b=T.firstContext;b!==null;){if(b.context===u){if(m.tag===1){b=Sr(-1,l&-l),b.tag=2;var j=m.updateQueue;if(j!==null){j=j.shared;var G=j.pending;G===null?b.next=b:(b.next=G.next,G.next=b),j.pending=b}}m.lanes|=l,b=m.alternate,b!==null&&(b.lanes|=l),Gp(m.return,l,o),T.lanes|=l;break}b=b.next}}else if(m.tag===10)S=m.type===o.type?null:m.child;else if(m.tag===18){if(S=m.return,S===null)throw Error(n(341));S.lanes|=l,T=S.alternate,T!==null&&(T.lanes|=l),Gp(S,l,o),S=m.sibling}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===o){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}Ut(r,o,p.children,l),o=o.child}return o;case 9:return p=o.type,u=o.pendingProps.children,Qo(o,l),p=Sn(p),u=u(p),o.flags|=1,Ut(r,o,u,l),o.child;case 14:return u=o.type,p=Ln(u,o.pendingProps),p=Ln(u.type,p),q_(r,o,u,p,l);case 15:return V_(r,o,o.type,o.pendingProps,l);case 17:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:Ln(u,p),su(r,o),o.tag=1,Zt(u)?(r=!0,Fc(o)):r=!1,Qo(o,l),D_(o,u,p),ch(o,u,p,l),ph(null,o,u,!0,r,l);case 19:return eE(r,o,l);case 22:return G_(r,o,l)}throw Error(n(156,o.tag))};function kE(r,o){return rw(r,o)}function hB(r,o,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(r,o,l,u){return new hB(r,o,l,u)}function Nh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function mB(r){if(typeof r=="function")return Nh(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ae)return 11;if(r===ze)return 14}return 2}function os(r,o){var l=r.alternate;return l===null?(l=En(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function mu(r,o,l,u,p,m){var S=2;if(u=r,typeof r=="function")Nh(r)&&(S=1);else if(typeof r=="string")S=5;else e:switch(r){case L:return Gs(l.children,p,m,o);case U:S=8,p|=8;break;case te:return r=En(12,l,o,p|2),r.elementType=te,r.lanes=m,r;case me:return r=En(13,l,o,p),r.elementType=me,r.lanes=m,r;case Te:return r=En(19,l,o,p),r.elementType=Te,r.lanes=m,r;case ve:return gu(l,p,m,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:S=10;break e;case oe:S=9;break e;case ae:S=11;break e;case ze:S=14;break e;case J:S=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=En(S,l,o,p),o.elementType=r,o.type=u,o.lanes=m,o}function Gs(r,o,l,u){return r=En(7,r,u,o),r.lanes=l,r}function gu(r,o,l,u){return r=En(22,r,u,o),r.elementType=ve,r.lanes=l,r.stateNode={isHidden:!1},r}function Mh(r,o,l){return r=En(6,r,null,o),r.lanes=l,r}function Lh(r,o,l){return o=En(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function gB(r,o,l,u,p){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lp(0),this.expirationTimes=lp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lp(0),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function jh(r,o,l,u,p,m,S,T,b){return r=new gB(r,o,l,T,b),o===1?(o=1,m===!0&&(o|=8)):o=0,m=En(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kp(m),r}function yB(r,o,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:u==null?null:""+u,children:r,containerInfo:o,implementation:l}}function TE(r){if(!r)return Qr;r=r._reactInternals;e:{if(Ls(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Zt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Zt(l))return Zw(r,l,o)}return o}function bE(r,o,l,u,p,m,S,T,b){return r=jh(l,u,!0,r,p,m,S,T,b),r.context=TE(null),l=r.current,u=Ht(),p=rs(l),m=Sr(u,p),m.callback=o??null,Zr(l,m,p),r.current.lanes=p,Gi(r,p,u),nn(r,u),r}function yu(r,o,l,u){var p=o.current,m=Ht(),S=rs(p);return l=TE(l),o.context===null?o.context=l:o.pendingContext=l,o=Sr(m,S),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=Zr(p,o,S),r!==null&&($n(r,p,S,m),Yc(r,p,S)),S}function vu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function IE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function Dh(r,o){IE(r,o),(r=r.alternate)&&IE(r,o)}function vB(){return null}var CE=typeof reportError=="function"?reportError:function(r){console.error(r)};function $h(r){this._internalRoot=r}Su.prototype.render=$h.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));yu(r,o,null,null)},Su.prototype.unmount=$h.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Ws(function(){yu(null,r,null,null)}),o[hr]=null}};function Su(r){this._internalRoot=r}Su.prototype.unstable_scheduleHydration=function(r){if(r){var o=dw();r={blockedOn:null,target:r,priority:o};for(var l=0;l<qr.length&&o!==0&&o<qr[l].priority;l++);qr.splice(l,0,r),l===0&&hw(r)}};function Bh(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function wu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function RE(){}function SB(r,o,l,u,p){if(p){if(typeof u=="function"){var m=u;u=function(){var j=vu(S);m.call(j)}}var S=bE(o,u,r,0,null,!1,!1,"",RE);return r._reactRootContainer=S,r[hr]=S.current,aa(r.nodeType===8?r.parentNode:r),Ws(),S}for(;p=r.lastChild;)r.removeChild(p);if(typeof u=="function"){var T=u;u=function(){var j=vu(b);T.call(j)}}var b=jh(r,0,!1,null,null,!1,!1,"",RE);return r._reactRootContainer=b,r[hr]=b.current,aa(r.nodeType===8?r.parentNode:r),Ws(function(){yu(o,b,l,u)}),b}function _u(r,o,l,u,p){var m=l._reactRootContainer;if(m){var S=m;if(typeof p=="function"){var T=p;p=function(){var b=vu(S);T.call(b)}}yu(o,S,r,p)}else S=SB(l,o,r,p,u);return vu(S)}cw=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Vi(o.pendingLanes);l!==0&&(cp(o,l|1),nn(o,at()),!($e&6)&&(ti=at()+500,Xr()))}break;case 13:Ws(function(){var u=vr(r,1);if(u!==null){var p=Ht();$n(u,r,1,p)}}),Dh(r,1)}},up=function(r){if(r.tag===13){var o=vr(r,134217728);if(o!==null){var l=Ht();$n(o,r,134217728,l)}Dh(r,134217728)}},uw=function(r){if(r.tag===13){var o=rs(r),l=vr(r,o);if(l!==null){var u=Ht();$n(l,r,o,u)}Dh(r,o)}},dw=function(){return He},fw=function(r,o){var l=He;try{return He=r,o()}finally{He=l}},np=function(r,o,l){switch(o){case"input":if(Ps(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var u=l[o];if(u!==r&&u.form===r.form){var p=$c(u);if(!p)throw Error(n(90));pc(u),Ps(u,p)}}}break;case"textarea":je(r,l);break;case"select":o=l.value,o!=null&&_t(r,!!l.multiple,o,!1)}},QS=Ah,XS=Ws;var wB={usingClientEntryPoint:!1,Events:[ua,Uo,$c,YS,KS,Ah]},ka={findFiberByHostInstance:js,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_B={bundleType:ka.bundleType,version:ka.version,rendererPackageName:ka.rendererPackageName,rendererConfig:ka.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:H.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=tw(r),r===null?null:r.stateNode},findFiberByHostInstance:ka.findFiberByHostInstance||vB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{Sc=Eu.inject(_B),Qn=Eu}catch{}}return Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wB,Wt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bh(o))throw Error(n(200));return yB(r,o,null,l)},Wt.createRoot=function(r,o){if(!Bh(r))throw Error(n(299));var l=!1,u="",p=CE;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=jh(r,1,!1,null,null,l,!1,u,p),r[hr]=o.current,aa(r.nodeType===8?r.parentNode:r),new $h(o)},Wt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=tw(o),r=r===null?null:r.stateNode,r},Wt.flushSync=function(r){return Ws(r)},Wt.hydrate=function(r,o,l){if(!wu(o))throw Error(n(200));return _u(null,r,o,!0,l)},Wt.hydrateRoot=function(r,o,l){if(!Bh(r))throw Error(n(405));var u=l!=null&&l.hydratedSources||null,p=!1,m="",S=CE;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),o=bE(o,null,r,1,l??null,p,!1,m,S),r[hr]=o.current,aa(r),u)for(r=0;r<u.length;r++)l=u[r],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new Su(o)},Wt.render=function(r,o,l){if(!wu(o))throw Error(n(200));return _u(null,r,o,!1,l)},Wt.unmountComponentAtNode=function(r){if(!wu(r))throw Error(n(40));return r._reactRootContainer?(Ws(function(){_u(null,null,r,!1,function(){r._reactRootContainer=null,r[hr]=null})}),!0):!1},Wt.unstable_batchedUpdates=Ah,Wt.unstable_renderSubtreeIntoContainer=function(r,o,l,u){if(!wu(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return _u(r,o,l,!1,u)},Wt.version="18.3.1-next-f1338f8080-20240426",Wt}var Gh;function Yh(){if(Gh)return bu.exports;Gh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bu.exports=jE(),bu.exports}var Kh;function DE(){if(Kh)return Ta;Kh=1;var e=Yh();return Ta.createRoot=e.createRoot,Ta.hydrateRoot=e.hydrateRoot,Ta}var $E=DE();const Er=e=>{const t=crypto.randomUUID();return e?t.substring(0,e):t},Bn={userId:"edmap-user-id",profileEmoji:"edmap-profileEmoji",defaultName:"edmap-random-name"},BE=()=>{localStorage.removeItem("edmap-access-token"),localStorage.removeItem("edmap-refresh-token")},FE=async()=>(zE(),await dr()),zE=()=>{localStorage.removeItem(Bn.userId)},UE=()=>{const e=new URL(window.location.href);e.searchParams.delete("code"),window.history.replaceState({index:0,scrollX:0,scrollY:document.scrollY},"",e.toString())},Qh=async()=>(BE(),UE(),await FE());function Xh(e,t){return function(){return e.apply(t,arguments)}}const{toString:HE}=Object.prototype,{getPrototypeOf:Ru}=Object,ba=(e=>t=>{const n=HE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>ba(t)===e),Ia=e=>t=>typeof t===e,{isArray:Ks}=Array,si=Ia("undefined");function WE(e){return e!==null&&!si(e)&&e.constructor!==null&&!si(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jh=xn("ArrayBuffer");function qE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jh(e.buffer),t}const VE=Ia("string"),rn=Ia("function"),Zh=Ia("number"),Ca=e=>e!==null&&typeof e=="object",GE=e=>e===!0||e===!1,Ra=e=>{if(ba(e)!=="object")return!1;const t=Ru(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YE=xn("Date"),KE=xn("File"),QE=xn("Blob"),XE=xn("FileList"),JE=e=>Ca(e)&&rn(e.pipe),ZE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=ba(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},ex=xn("URLSearchParams"),[tx,nx,rx,sx]=["ReadableStream","Request","Response","Headers"].map(xn),ox=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Ks(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function em(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tm=e=>!si(e)&&e!==as;function Au(){const{caseless:e}=tm(this)&&this||{},t={},n=(s,i)=>{const a=e&&em(t,i)||i;Ra(t[a])&&Ra(s)?t[a]=Au(t[a],s):Ra(s)?t[a]=Au({},s):Ks(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&oi(arguments[s],n);return t}const ix=(e,t,n,{allOwnKeys:s}={})=>(oi(t,(i,a)=>{n&&rn(i)?e[a]=Xh(i,n):e[a]=i},{allOwnKeys:s}),e),ax=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lx=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cx=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Ru(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ux=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},dx=e=>{if(!e)return null;if(Ks(e))return e;let t=e.length;if(!Zh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ru(Uint8Array)),px=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},hx=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},mx=xn("HTMLFormElement"),gx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),nm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yx=xn("RegExp"),rm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};oi(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},vx=e=>{rm(e,(t,n)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(rn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sx=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Ks(e)?s(e):s(String(e).split(t)),n},wx=()=>{},_x=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ou="abcdefghijklmnopqrstuvwxyz",sm="0123456789",om={DIGIT:sm,ALPHA:Ou,ALPHA_DIGIT:Ou+Ou.toUpperCase()+sm},Ex=(e=16,t=om.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function xx(e){return!!(e&&rn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kx=e=>{const t=new Array(10),n=(s,i)=>{if(Ca(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const a=Ks(s)?[]:{};return oi(s,(c,d)=>{const f=n(c,i+1);!si(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},Tx=xn("AsyncFunction"),bx=e=>e&&(Ca(e)||rn(e))&&rn(e.then)&&rn(e.catch),im=((e,t)=>e?setImmediate:t?((n,s)=>(as.addEventListener("message",({source:i,data:a})=>{i===as&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),as.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(as.postMessage)),Ix=typeof queueMicrotask<"u"?queueMicrotask.bind(as):typeof process<"u"&&process.nextTick||im,F={isArray:Ks,isArrayBuffer:Jh,isBuffer:WE,isFormData:ZE,isArrayBufferView:qE,isString:VE,isNumber:Zh,isBoolean:GE,isObject:Ca,isPlainObject:Ra,isReadableStream:tx,isRequest:nx,isResponse:rx,isHeaders:sx,isUndefined:si,isDate:YE,isFile:KE,isBlob:QE,isRegExp:yx,isFunction:rn,isStream:JE,isURLSearchParams:ex,isTypedArray:fx,isFileList:XE,forEach:oi,merge:Au,extend:ix,trim:ox,stripBOM:ax,inherits:lx,toFlatObject:cx,kindOf:ba,kindOfTest:xn,endsWith:ux,toArray:dx,forEachEntry:px,matchAll:hx,isHTMLForm:mx,hasOwnProperty:nm,hasOwnProp:nm,reduceDescriptors:rm,freezeMethods:vx,toObjectSet:Sx,toCamelCase:gx,noop:wx,toFiniteNumber:_x,findKey:em,global:as,isContextDefined:tm,ALPHABET:om,generateString:Ex,isSpecCompliantForm:xx,toJSONObject:kx,isAsyncFn:Tx,isThenable:bx,setImmediate:im,asap:Ix};function Ee(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}F.inherits(Ee,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:F.toJSONObject(this.config),code:this.code,status:this.status}}});const am=Ee.prototype,lm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lm[e]={value:e}}),Object.defineProperties(Ee,lm),Object.defineProperty(am,"isAxiosError",{value:!0}),Ee.from=(e,t,n,s,i,a)=>{const c=Object.create(am);return F.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Ee.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const Cx=null;function Pu(e){return F.isPlainObject(e)||F.isArray(e)}function cm(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function um(e,t,n){return e?e.concat(t).map(function(i,a){return i=cm(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Rx(e){return F.isArray(e)&&!e.some(Pu)}const Ax=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function Aa(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!F.isUndefined(k[x])});const s=n.metaTokens,i=n.visitor||y,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(F.isDate(_))return _.toISOString();if(!f&&F.isBlob(_))throw new Ee("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(_)||F.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function y(_,x,k){let O=_;if(_&&!k&&typeof _=="object"){if(F.endsWith(x,"{}"))x=s?x:x.slice(0,-2),_=JSON.stringify(_);else if(F.isArray(_)&&Rx(_)||(F.isFileList(_)||F.endsWith(x,"[]"))&&(O=F.toArray(_)))return x=cm(x),O.forEach(function($,H){!(F.isUndefined($)||$===null)&&t.append(c===!0?um([x],H,a):c===null?x:x+"[]",h($))}),!1}return Pu(_)?!0:(t.append(um(k,x,a),h(_)),!1)}const g=[],w=Object.assign(Ax,{defaultVisitor:y,convertValue:h,isVisitable:Pu});function E(_,x){if(!F.isUndefined(_)){if(g.indexOf(_)!==-1)throw Error("Circular reference detected in "+x.join("."));g.push(_),F.forEach(_,function(O,R){(!(F.isUndefined(O)||O===null)&&i.call(t,O,F.isString(R)?R.trim():R,x,w))===!0&&E(O,x?x.concat(R):[R])}),g.pop()}}if(!F.isObject(e))throw new TypeError("data must be an object");return E(e),t}function dm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Nu(e,t){this._pairs=[],e&&Aa(e,this,t)}const fm=Nu.prototype;fm.append=function(t,n){this._pairs.push([t,n])},fm.toString=function(t){const n=t?function(s){return t.call(this,s,dm)}:dm;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ox(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pm(e,t,n){if(!t)return e;const s=n&&n.encode||Ox;F.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=F.isURLSearchParams(t)?t.toString():new Nu(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}let hm=class{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(s){s!==null&&t(s)})}};const mm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Px={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Nu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mu=typeof window<"u"&&typeof document<"u",Lu=typeof navigator=="object"&&navigator||void 0,Nx=Mu&&(!Lu||["ReactNative","NativeScript","NS"].indexOf(Lu.product)<0),Mx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lx=Mu&&window.location.href||"http://localhost",Ot={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mu,hasStandardBrowserEnv:Nx,hasStandardBrowserWebWorkerEnv:Mx,navigator:Lu,origin:Lx},Symbol.toStringTag,{value:"Module"})),...Px};function jx(e,t){return Aa(e,new Ot.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,a){return Ot.isNode&&F.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Dx(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $x(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function gm(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&F.isArray(i)?i.length:c,f?(F.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!F.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&F.isArray(i[c])&&(i[c]=$x(i[c])),!d)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,(s,i)=>{t(Dx(s),i,n,0)}),n}return null}function Bx(e,t,n){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const ii={transitional:mm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=F.isObject(t);if(a&&F.isHTMLForm(t)&&(t=new FormData(t)),F.isFormData(t))return i?JSON.stringify(gm(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t)||F.isReadableStream(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return jx(t,this.formSerializer).toString();if((d=F.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Aa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Bx(t)):t}],transformResponse:[function(t){const n=this.transitional||ii.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(F.isResponse(t)||F.isReadableStream(t))return t;if(t&&F.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?Ee.from(d,Ee.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ot.classes.FormData,Blob:Ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],e=>{ii.headers[e]={}});const Fx=F.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"]),zx=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&Fx[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},ym=Symbol("internals");function ai(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:F.isArray(e)?e.map(Oa):String(e)}function Ux(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Hx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ju(e,t,n,s,i){if(F.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!F.isString(t)){if(F.isString(s))return t.indexOf(s)!==-1;if(F.isRegExp(s))return s.test(t)}}function Wx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function qx(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}let qt=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const y=ai(f);if(!y)throw new Error("header name must be a non-empty string");const g=F.findKey(i,y);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||f]=Oa(d))}const c=(d,f)=>F.forEach(d,(h,y)=>a(h,y,f));if(F.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(F.isString(t)&&(t=t.trim())&&!Hx(t))c(zx(t),n);else if(F.isHeaders(t))for(const[d,f]of t.entries())a(f,d,s);else t!=null&&a(n,t,s);return this}get(t,n){if(t=ai(t),t){const s=F.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return Ux(i);if(F.isFunction(n))return n.call(this,i,s);if(F.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ai(t),t){const s=F.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ju(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=ai(c),c){const d=F.findKey(s,c);d&&(!n||ju(s,s[d],d,n))&&(delete s[d],i=!0)}}return F.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||ju(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return F.forEach(this,(i,a)=>{const c=F.findKey(s,a);if(c){n[c]=Oa(i),delete n[a];return}const d=t?Wx(a):String(a).trim();d!==a&&delete n[a],n[d]=Oa(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return F.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&F.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[ym]=this[ym]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=ai(c);s[d]||(qx(i,c),s[d]=!0)}return F.isArray(t)?t.forEach(a):a(t),this}};qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(qt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),F.freezeMethods(qt);function Du(e,t){const n=this||ii,s=t||n,i=qt.from(s.headers);let a=s.data;return F.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function vm(e){return!!(e&&e.__CANCEL__)}function Qs(e,t,n){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(Qs,Ee,{__CANCEL__:!0});function Sm(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ee("Request failed with status code "+n.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Vx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gx(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),y=s[a];c||(c=h),n[i]=f,s[i]=h;let g=a,w=0;for(;g!==i;)w+=n[g++],g=g%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const E=y&&h-y;return E?Math.round(w*1e3/E):void 0}}function Yx(e,t){let n=0,s=1e3/t,i,a;const c=(h,y=Date.now())=>{n=y,i=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const y=Date.now(),g=y-n;g>=s?c(h,y):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-g)))},()=>i&&c(i)]}const Pa=(e,t,n=3)=>{let s=0;const i=Gx(50,250);return Yx(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),y=c<=d;s=c;const g={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&y?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},n)},wm=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},_m=e=>(...t)=>F.asap(()=>e(...t)),Kx=Ot.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ot.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ot.origin),Ot.navigator&&/(msie|trident)/i.test(Ot.navigator.userAgent)):()=>!0,Qx=Ot.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),F.isString(s)&&c.push("path="+s),F.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Em(e,t){return e&&!Xx(t)?Jx(e,t):t}const xm=e=>e instanceof qt?{...e}:e;function ls(e,t){t=t||{};const n={};function s(h,y,g,w){return F.isPlainObject(h)&&F.isPlainObject(y)?F.merge.call({caseless:w},h,y):F.isPlainObject(y)?F.merge({},y):F.isArray(y)?y.slice():y}function i(h,y,g,w){if(F.isUndefined(y)){if(!F.isUndefined(h))return s(void 0,h,g,w)}else return s(h,y,g,w)}function a(h,y){if(!F.isUndefined(y))return s(void 0,y)}function c(h,y){if(F.isUndefined(y)){if(!F.isUndefined(h))return s(void 0,h)}else return s(void 0,y)}function d(h,y,g){if(g in t)return s(h,y);if(g in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,y,g)=>i(xm(h),xm(y),g,!0)};return F.forEach(Object.keys(Object.assign({},e,t)),function(y){const g=f[y]||i,w=g(e[y],t[y],y);F.isUndefined(w)&&g!==d||(n[y]=w)}),n}const km=e=>{const t=ls({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=qt.from(c),t.url=pm(Em(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(F.isFormData(n)){if(Ot.hasStandardBrowserEnv||Ot.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...y]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...y].join("; "))}}if(Ot.hasStandardBrowserEnv&&(s&&F.isFunction(s)&&(s=s(t)),s||s!==!1&&Kx(t.url))){const h=i&&a&&Qx.read(a);h&&c.set(i,h)}return t},Zx=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=km(e);let a=i.data;const c=qt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,y,g,w,E,_;function x(){E&&E(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(y),i.signal&&i.signal.removeEventListener("abort",y)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function O(){if(!k)return;const $=qt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),z={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:$,config:e,request:k};Sm(function(L){n(L),x()},function(L){s(L),x()},z),k=null}"onloadend"in k?k.onloadend=O:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(O)},k.onabort=function(){k&&(s(new Ee("Request aborted",Ee.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new Ee("Network Error",Ee.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let H=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const z=i.transitional||mm;i.timeoutErrorMessage&&(H=i.timeoutErrorMessage),s(new Ee(H,z.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&F.forEach(c.toJSON(),function(H,z){k.setRequestHeader(z,H)}),F.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),d&&d!=="json"&&(k.responseType=i.responseType),h&&([w,_]=Pa(h,!0),k.addEventListener("progress",w)),f&&k.upload&&([g,E]=Pa(f),k.upload.addEventListener("progress",g),k.upload.addEventListener("loadend",E)),(i.cancelToken||i.signal)&&(y=$=>{k&&(s(!$||$.type?new Qs(null,e,k):$),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(y),i.signal&&(i.signal.aborted?y():i.signal.addEventListener("abort",y)));const R=Vx(i.url);if(R&&Ot.protocols.indexOf(R)===-1){s(new Ee("Unsupported protocol "+R+":",Ee.ERR_BAD_REQUEST,e));return}k.send(a||null)})},ek=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const y=h instanceof Error?h:this.reason;s.abort(y instanceof Ee?y:new Qs(y instanceof Error?y.message:y))}};let c=t&&setTimeout(()=>{c=null,a(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>F.asap(d),f}},tk=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},nk=async function*(e,t){for await(const n of rk(e))yield*tk(n,t)},rk=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Tm=(e,t,n,s)=>{const i=nk(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:y}=await i.next();if(h){d(),f.close();return}let g=y.byteLength;if(n){let w=a+=g;n(w)}f.enqueue(new Uint8Array(y))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},Na=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bm=Na&&typeof ReadableStream=="function",sk=Na&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Im=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ok=bm&&Im(()=>{let e=!1;const t=new Request(Ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cm=64*1024,$u=bm&&Im(()=>F.isReadableStream(new Response("").body)),Ma={stream:$u&&(e=>e.body)};Na&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ma[t]&&(Ma[t]=F.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Ee(`Response type '${t}' is not supported`,Ee.ERR_NOT_SUPPORT,s)})})})(new Response);const ik=async e=>{if(e==null)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e))return(await new Request(Ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(F.isArrayBufferView(e)||F.isArrayBuffer(e))return e.byteLength;if(F.isURLSearchParams(e)&&(e=e+""),F.isString(e))return(await sk(e)).byteLength},ak=async(e,t)=>{const n=F.toFiniteNumber(e.getContentLength());return n??ik(t)},Bu={http:Cx,xhr:Zx,fetch:Na&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:y,withCredentials:g="same-origin",fetchOptions:w}=km(e);h=h?(h+"").toLowerCase():"text";let E=ek([i,a&&a.toAbortSignal()],c),_;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let k;try{if(f&&ok&&n!=="get"&&n!=="head"&&(k=await ak(y,s))!==0){let z=new Request(t,{method:"POST",body:s,duplex:"half"}),M;if(F.isFormData(s)&&(M=z.headers.get("content-type"))&&y.setContentType(M),z.body){const[L,U]=wm(k,Pa(_m(f)));s=Tm(z.body,Cm,L,U)}}F.isString(g)||(g=g?"include":"omit");const O="credentials"in Request.prototype;_=new Request(t,{...w,signal:E,method:n.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:O?g:void 0});let R=await fetch(_);const $=$u&&(h==="stream"||h==="response");if($u&&(d||$&&x)){const z={};["status","statusText","headers"].forEach(te=>{z[te]=R[te]});const M=F.toFiniteNumber(R.headers.get("content-length")),[L,U]=d&&wm(M,Pa(_m(d),!0))||[];R=new Response(Tm(R.body,Cm,L,()=>{U&&U(),x&&x()}),z)}h=h||"text";let H=await Ma[F.findKey(Ma,h)||"text"](R,e);return!$&&x&&x(),await new Promise((z,M)=>{Sm(z,M,{data:H,headers:qt.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:_})})}catch(O){throw x&&x(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,_),{cause:O.cause||O}):Ee.from(O,O&&O.code,e,_)}})};F.forEach(Bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rm=e=>`- ${e}`,lk=e=>F.isFunction(e)||e===null||e===!1,Am={getAdapter:e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!lk(n)&&(s=Bu[(c=String(n)).toLowerCase()],s===void 0))throw new Ee(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(Rm).join(`
`):" "+Rm(a[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Bu};function Fu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qs(null,e)}function Om(e){return Fu(e),e.headers=qt.from(e.headers),e.data=Du.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Am.getAdapter(e.adapter||ii.adapter)(e).then(function(s){return Fu(e),s.data=Du.call(e,e.transformResponse,s),s.headers=qt.from(s.headers),s},function(s){return vm(s)||(Fu(e),s&&s.response&&(s.response.data=Du.call(e,e.transformResponse,s.response),s.response.headers=qt.from(s.response.headers))),Promise.reject(s)})}const Pm="1.7.9",La={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{La[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Nm={};La.transitional=function(t,n,s){function i(a,c){return"[Axios v"+Pm+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new Ee(i(c," has been removed"+(n?" in "+n:"")),Ee.ERR_DEPRECATED);return n&&!Nm[c]&&(Nm[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},La.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function ck(e,t,n){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new Ee("option "+a+" must be "+f,Ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ee("Unknown option "+a,Ee.ERR_BAD_OPTION)}}const ja={assertOptions:ck,validators:La},Fn=ja.validators;let cs=class{constructor(t){this.defaults=t,this.interceptors={request:new hm,response:new hm}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ls(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&ja.assertOptions(s,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)},!1),i!=null&&(F.isFunction(i)?n.paramsSerializer={serialize:i}:ja.assertOptions(i,{encode:Fn.function,serialize:Fn.function},!0)),ja.assertOptions(n,{baseUrl:Fn.spelling("baseURL"),withXsrfToken:Fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&F.merge(a.common,a[n.method]);a&&F.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=qt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(f=f&&x.synchronous,d.unshift(x.fulfilled,x.rejected))});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let y,g=0,w;if(!f){const _=[Om.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),w=_.length,y=Promise.resolve(n);g<w;)y=y.then(_[g++],_[g++]);return y}w=d.length;let E=n;for(g=0;g<w;){const _=d[g++],x=d[g++];try{E=_(E)}catch(k){x.call(this,k);break}}try{y=Om.call(this,E)}catch(_){return Promise.reject(_)}for(g=0,w=h.length;g<w;)y=y.then(h[g++],h[g++]);return y}getUri(t){t=ls(this.defaults,t);const n=Em(t.baseURL,t.url);return pm(n,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){cs.prototype[t]=function(n,s){return this.request(ls(s||{},{method:t,url:n,data:(s||{}).data}))}}),F.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(ls(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}cs.prototype[t]=n(),cs.prototype[t+"Form"]=n(!0)});let uk=class AE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new Qs(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new AE(function(i){t=i}),cancel:t}}};function dk(e){return function(n){return e.apply(null,n)}}function fk(e){return F.isObject(e)&&e.isAxiosError===!0}const zu={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(zu).forEach(([e,t])=>{zu[t]=e});function Mm(e){const t=new cs(e),n=Xh(cs.prototype.request,t);return F.extend(n,cs.prototype,t,{allOwnKeys:!0}),F.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Mm(ls(e,i))},n}const st=Mm(ii);st.Axios=cs,st.CanceledError=Qs,st.CancelToken=uk,st.isCancel=vm,st.VERSION=Pm,st.toFormData=Aa,st.AxiosError=Ee,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=dk,st.isAxiosError=fk,st.mergeConfig=ls,st.AxiosHeaders=qt,st.formToJSON=e=>gm(F.isHTMLForm(e)?new FormData(e):e),st.getAdapter=Am.getAdapter,st.HttpStatusCode=zu,st.default=st;const Uu="https://api.edmap.space",mt=st.create();mt.defaults.baseURL=Uu,mt.interceptors.request.use(async e=>{const t=localStorage.getItem("edmap-access-token");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const li={},Lm=async e=>(await Qh(),window.location.reload(),Promise.reject(e)),jm=async(e,t)=>{const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("edmap-access-token",n),localStorage.setItem("edmap-refresh-token",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,mt(t)};mt.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response.status===401,s=t._retry;if(!n||s)return Promise.reject(e);t._retry=!0;const i=localStorage.getItem("edmap-refresh-token");if(!i)return Lm(e);try{if(!li.time||Date.now()-li.time>1e3*3){const c=st.post(`${Uu}/auth/revalidate-token`,{refreshToken:i},{headers:{Authorization:`Bearer ${i}`}});li.time=Date.now(),li.request=c;const d=await c;return jm(d,t)}const a=await li.request;if(!a)throw new Error;return jm(a,t)}catch(a){return Lm(a)}});class pk{constructor(){Dt(this,"reportAction",(t,n)=>{this.reportActiveUser(),this.actions+=1,this.performPost(t,n)});Dt(this,"reportEdgeClick",t=>{const{mapId:n,questId:s}=this.getBaseAnalyticsProps();this.reportAction("/journey-edge-click",{mapId:n,questId:s,userId:Dl(),edgeId:t})});Dt(this,"reportTestAnswers",t=>{const{mapId:n,questId:s}=this.getBaseAnalyticsProps(),i=Dl(),a=t.map(c=>({mapId:n,questId:s,questionId:c.questionId,answerId:c.answerId||"",userId:i}));this.reportAction("/test-selected-answer",a)});Dt(this,"reportWidgetView",()=>{if(this.isWidgetViewed)return;this.isWidgetViewed=!0;const{mapId:t,questId:n}=this.getBaseAnalyticsProps();return this.performPost("/widget-view",{mapId:t,questId:n})});Dt(this,"reportActiveUser",()=>{if(this.isUserActive)return;this.isUserActive=!0,this.reportWidgetView();const{mapId:t,questId:n}=this.getBaseAnalyticsProps();return this.performPost("/active-user",{mapId:t,questId:n})});Dt(this,"reportActions",(t,n)=>{this.actions!==0&&(this.performPost("/actions-agriggated",{mapId:t,questId:n,userId:Dl(),actionCount:this.actions}),this.actions=0)});Dt(this,"reportQuestCompletion",(t,n)=>{this.performPost("/quest-competed",{mapId:t,questId:n})});Dt(this,"reportNewUserCreated",()=>{this.performPost("/user-created",this.getBaseAnalyticsProps())});Dt(this,"reportUserRegistration",()=>{this.performPost("/user-registrated",{...this.getBaseAnalyticsProps(),userId:Dl()})});Dt(this,"reportQuestEnded",(t,n)=>{this.reportQuestCompletion(t,n)});Dt(this,"drainPendingAnalytics",()=>{const{mapId:t,questId:n}=this.getBaseAnalyticsProps();this.reportActions(t,n)});Dt(this,"performPost",(t,n)=>{try{const s=this.formPayload(n);return navigator.sendBeacon(`${this.baseUrl}${t}`,s)}catch{}});Dt(this,"dropUserActivation",()=>{this.isUserActive=!1,this.isWidgetViewed=!1});Dt(this,"formPayload",t=>{const n=JSON.stringify(t);return new Blob([n],{type:"application/json"})});Dt(this,"getBaseAnalyticsProps",()=>{const[t,n]=localStorage.getItem("analytics").split("@");return{mapId:t,questId:n}});this.actions=0,this.isUserActive=!1,this.isWidgetViewed=!1,this.baseUrl=`${Uu}/analytics`}}const xr=new pk,xe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,us="8.50.0",Ne=globalThis;function Da(e,t,n){const s=Ne,i=s.__SENTRY__=s.__SENTRY__||{},a=i[us]=i[us]||{};return a[e]||(a[e]=t())}const kr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hk="Sentry Logger ",Hu=["debug","info","warn","error","log","assert","trace"],$a={};function Tr(e){if(!("console"in Ne))return e();const t=Ne.console,n={},s=Object.keys($a);s.forEach(i=>{const a=$a[i];n[i]=t[i],t[i]=a});try{return e()}finally{s.forEach(i=>{t[i]=n[i]})}}function mk(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return kr?Hu.forEach(n=>{t[n]=(...s)=>{e&&Tr(()=>{Ne.console[n](`${hk}[${n}]:`,...s)})}}):Hu.forEach(n=>{t[n]=()=>{}}),t}const X=Da("logger",mk),Dm=50,ds="?",$m=/\(error: (.*)\)/,Bm=/captureMessage|captureException/;function Fm(...e){const t=e.sort((n,s)=>n[0]-s[0]).map(n=>n[1]);return(n,s=0,i=0)=>{const a=[],c=n.split(`
`);for(let d=s;d<c.length;d++){const f=c[d];if(f.length>1024)continue;const h=$m.test(f)?f.replace($m,"$1"):f;if(!h.match(/\S*Error: /)){for(const y of t){const g=y(h);if(g){a.push(g);break}}if(a.length>=Dm+i)break}}return yk(a.slice(i))}}function gk(e){return Array.isArray(e)?Fm(...e):e}function yk(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ba(t).function||"")&&t.pop(),t.reverse(),Bm.test(Ba(t).function||"")&&(t.pop(),Bm.test(Ba(t).function||"")&&t.pop()),t.slice(0,Dm).map(n=>({...n,filename:n.filename||Ba(t).filename,function:n.function||ds}))}function Ba(e){return e[e.length-1]||{}}const Wu="<anonymous>";function tr(e){try{return!e||typeof e!="function"?Wu:e.name||Wu}catch{return Wu}}function zm(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(s=>{s.stacktrace.frames&&n.push(...s.stacktrace.frames)}),n}catch{return}}}const Fa={},Um={};function br(e,t){Fa[e]=Fa[e]||[],Fa[e].push(t)}function Ir(e,t){if(!Um[e]){Um[e]=!0;try{t()}catch(n){kr&&X.error(`Error while instrumenting ${e}`,n)}}}function pn(e,t){const n=e&&Fa[e];if(n)for(const s of n)try{s(t)}catch(i){kr&&X.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${tr(s)}
Error:`,i)}}let qu=null;function Hm(e){const t="error";br(t,e),Ir(t,vk)}function vk(){qu=Ne.onerror,Ne.onerror=function(e,t,n,s,i){return pn("error",{column:s,error:i,line:n,msg:e,url:t}),qu?qu.apply(this,arguments):!1},Ne.onerror.__SENTRY_INSTRUMENTED__=!0}let Vu=null;function Wm(e){const t="unhandledrejection";br(t,e),Ir(t,Sk)}function Sk(){Vu=Ne.onunhandledrejection,Ne.onunhandledrejection=function(e){return pn("unhandledrejection",e),Vu?Vu.apply(this,arguments):!0},Ne.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function fs(){return Gu(Ne),Ne}function Gu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||us,t[us]=t[us]||{}}const qm=Object.prototype.toString;function Yu(e){switch(qm.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return rr(e,Error)}}function Xs(e,t){return qm.call(e)===`[object ${t}]`}function Vm(e){return Xs(e,"ErrorEvent")}function Gm(e){return Xs(e,"DOMError")}function wk(e){return Xs(e,"DOMException")}function nr(e){return Xs(e,"String")}function Ku(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Qu(e){return e===null||Ku(e)||typeof e!="object"&&typeof e!="function"}function Js(e){return Xs(e,"Object")}function za(e){return typeof Event<"u"&&rr(e,Event)}function _k(e){return typeof Element<"u"&&rr(e,Element)}function Ek(e){return Xs(e,"RegExp")}function Ua(e){return!!(e&&e.then&&typeof e.then=="function")}function xk(e){return Js(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function rr(e,t){try{return e instanceof t}catch{return!1}}function Ym(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Zs=Ne,kk=80;function sr(e,t={}){if(!e)return"<unknown>";try{let n=e;const s=5,i=[];let a=0,c=0;const d=" > ",f=d.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||kk;for(;n&&a++<s&&(h=Tk(n,y),!(h==="html"||a>1&&c+i.length*f+h.length>=g));)i.push(h),c+=h.length,n=n.parentNode;return i.reverse().join(d)}catch{return"<unknown>"}}function Tk(e,t){const n=e,s=[];if(!n||!n.tagName)return"";if(Zs.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}s.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(i&&i.length)i.forEach(c=>{s.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&s.push(`#${n.id}`);const c=n.className;if(c&&nr(c)){const d=c.split(/\s+/);for(const f of d)s.push(`.${f}`)}}const a=["aria-label","type","name","title","alt"];for(const c of a){const d=n.getAttribute(c);d&&s.push(`[${c}="${d}"]`)}return s.join("")}function Km(){try{return Zs.document.location.href}catch{return""}}function bk(e){return Zs.document&&Zs.document.querySelector?Zs.document.querySelector(e):null}function Qm(e){if(!Zs.HTMLElement)return null;let t=e;const n=5;for(let s=0;s<n;s++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function eo(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Xm(e,t){if(!Array.isArray(e))return"";const n=[];for(let s=0;s<e.length;s++){const i=e[s];try{Ym(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ik(e,t,n=!1){return nr(e)?Ek(t)?t.test(e):nr(t)?n?e===t:e.includes(t):!1:!1}function Cr(e,t=[],n=!1){return t.some(s=>Ik(e,s,n))}function Vt(e,t,n){if(!(t in e))return;const s=e[t],i=n(s);typeof i=="function"&&Jm(i,s);try{e[t]=i}catch{kr&&X.log(`Failed to replace method "${t}" in object`,e)}}function hn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{kr&&X.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Jm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,hn(e,"__sentry_original__",t)}catch{}}function Xu(e){return e.__sentry_original__}function Zm(e){if(Yu(e))return{message:e.message,name:e.name,stack:e.stack,...tg(e)};if(za(e)){const t={type:e.type,target:eg(e.target),currentTarget:eg(e.currentTarget),...tg(e)};return typeof CustomEvent<"u"&&rr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function eg(e){try{return _k(e)?sr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function tg(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ck(e,t=40){const n=Object.keys(Zm(e));n.sort();const s=n[0];if(!s)return"[object has no keys]";if(s.length>=t)return eo(s,t);for(let i=n.length;i>0;i--){const a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:eo(a,t)}return""}function ut(e){return Ju(e,new Map)}function Ju(e,t){if(Rk(e)){const n=t.get(e);if(n!==void 0)return n;const s={};t.set(e,s);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(s[i]=Ju(e[i],t));return s}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const s=[];return t.set(e,s),e.forEach(i=>{s.push(Ju(i,t))}),s}return e}function Rk(e){if(!Js(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const ng=1e3;function ci(){return Date.now()/ng}function Ak(){const{performance:e}=Ne;if(!e||!e.now)return ci;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ng}const $t=Ak(),Bt=(()=>{const{performance:e}=Ne;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),s=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,a=i<t,c=e.timing&&e.timing.navigationStart,f=typeof c=="number"?Math.abs(c+n-s):t,h=f<t;return a||h?i<=f?e.timeOrigin:c:s})();function sn(){const e=Ne,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const s=new Uint8Array(1);return t.getRandomValues(s),s[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,s=>(s^(n()&15)>>s/4).toString(16))}function rg(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Rr(e){const{message:t,event_id:n}=e;if(t)return t;const s=rg(e);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function Zu(e,t,n){const s=e.exception=e.exception||{},i=s.values=s.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function to(e,t){const n=rg(e);if(!n)return;const s={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...s,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function sg(e){if(Ok(e))return!0;try{hn(e,"__sentry_captured__",!0)}catch{}return!1}function Ok(e){try{return e.__sentry_captured__}catch{}}var or;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(or||(or={}));function ir(e){return new mn(t=>{t(e)})}function Ha(e){return new mn((t,n)=>{n(e)})}class mn{constructor(t){mn.prototype.__init.call(this),mn.prototype.__init2.call(this),mn.prototype.__init3.call(this),mn.prototype.__init4.call(this),this._state=or.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new mn((s,i)=>{this._handlers.push([!1,a=>{if(!t)s(a);else try{s(t(a))}catch(c){i(c)}},a=>{if(!n)i(a);else try{s(n(a))}catch(c){i(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new mn((n,s)=>{let i,a;return this.then(c=>{a=!1,i=c,t&&t()},c=>{a=!0,i=c,t&&t()}).then(()=>{if(a){s(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(or.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(or.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===or.PENDING){if(Ua(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===or.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===or.RESOLVED&&n[1](this._value),this._state===or.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Pk(e){const t=$t(),n={sid:sn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Mk(n)};return e&&no(n,e),n}function no(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||$t(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:sn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Nk(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),no(e,n)}function Mk(e){return ut({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function Ar(){return sn()}function Or(){return sn().substring(16)}function Wa(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const s={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=Wa(s[i],t[i],n-1));return s}const ed="_sentrySpan";function ui(e,t){t?hn(e,ed,t):delete e[ed]}function qa(e){return e[ed]}const Lk=100;class td{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ar(),spanId:Or()}}clone(){const t=new td;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ui(t,qa(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&no(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[s,i]=n instanceof ps?[n.getScopeData(),n.getRequestSession()]:Js(n)?[t,t.requestSession]:[],{tags:a,extra:c,user:d,contexts:f,level:h,fingerprint:y=[],propagationContext:g}=s||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...c},this._contexts={...this._contexts,...f},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),y.length&&(this._fingerprint=y),g&&(this._propagationContext=g),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ui(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ar()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:Lk;if(s<=0)return this;const i={timestamp:ci(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>s?a.slice(-s):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qa(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Wa(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Or(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const s=n&&n.event_id?n.event_id:sn();if(!this._client)return X.warn("No client configured on scope - will not capture exception!"),s;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:s},this),s}captureMessage(t,n,s){const i=s&&s.event_id?s.event_id:sn();if(!this._client)return X.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...s,event_id:i},this),i}captureEvent(t,n){const s=n&&n.event_id?n.event_id:sn();return this._client?(this._client.captureEvent(t,{...n,event_id:s},this),s):(X.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ps=td;function jk(){return Da("defaultCurrentScope",()=>new ps)}function Dk(){return Da("defaultIsolationScope",()=>new ps)}class $k{constructor(t,n){let s;t?s=t:s=new ps;let i;n?i=n:i=new ps,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){const n=this._pushScope();let s;try{s=t(n)}catch(i){throw this._popScope(),i}return Ua(s)?s.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ro(){const e=fs(),t=Gu(e);return t.stack=t.stack||new $k(jk(),Dk())}function Bk(e){return ro().withScope(e)}function Fk(e,t){const n=ro();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function og(e){return ro().withScope(()=>e(ro().getIsolationScope()))}function zk(){return{withIsolationScope:og,withScope:Bk,withSetScope:Fk,withSetIsolationScope:(e,t)=>og(t),getCurrentScope:()=>ro().getScope(),getIsolationScope:()=>ro().getIsolationScope()}}function so(e){const t=Gu(e);return t.acs?t.acs:zk()}function qe(){const e=fs();return so(e).getCurrentScope()}function kn(){const e=fs();return so(e).getIsolationScope()}function Uk(){return Da("globalScope",()=>new ps)}function nd(...e){const t=fs(),n=so(t);if(e.length===2){const[s,i]=e;return s?n.withSetScope(s,i):n.withScope(i)}return n.withScope(e[0])}function Ae(){return qe().getClient()}function Hk(e){const t=e.getPropagationContext(),{traceId:n,spanId:s,parentSpanId:i}=t;return ut({trace_id:n,span_id:s,parent_span_id:i})}const Wk="_sentryMetrics";function rd(e){const t=e[Wk];if(!t)return;const n={};for(const[,[s,i]]of t)(n[s]||(n[s]=[])).push(ut(i));return n}const zn="sentry.source",ig="sentry.sample_rate",hs="sentry.op",gt="sentry.origin",sd="sentry.idle_span_finish_reason",Va="sentry.measurement_unit",Ga="sentry.measurement_value",ag="sentry.custom_span_name",qk="sentry.profile_id",od="sentry.exclusive_time",Vk=0,lg=1,yt=2;function Gk(e){if(e<400&&e>=100)return{code:lg};if(e>=400&&e<500)switch(e){case 401:return{code:yt,message:"unauthenticated"};case 403:return{code:yt,message:"permission_denied"};case 404:return{code:yt,message:"not_found"};case 409:return{code:yt,message:"already_exists"};case 413:return{code:yt,message:"failed_precondition"};case 429:return{code:yt,message:"resource_exhausted"};case 499:return{code:yt,message:"cancelled"};default:return{code:yt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:yt,message:"unimplemented"};case 503:return{code:yt,message:"unavailable"};case 504:return{code:yt,message:"deadline_exceeded"};default:return{code:yt,message:"internal_error"}}return{code:yt,message:"unknown_error"}}function cg(e,t){e.setAttribute("http.response.status_code",t);const n=Gk(t);n.message!=="unknown_error"&&e.setStatus(n)}const id="sentry-",Yk=/^sentry-/,Kk=8192;function ug(e){const t=Xk(e);if(!t)return;const n=Object.entries(t).reduce((s,[i,a])=>{if(i.match(Yk)){const c=i.slice(id.length);s[c]=a}return s},{});if(Object.keys(n).length>0)return n}function Qk(e){if(!e)return;const t=Object.entries(e).reduce((n,[s,i])=>(i&&(n[`${id}${s}`]=i),n),{});return Jk(t)}function Xk(e){if(!(!e||!nr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const s=dg(n);return Object.entries(s).forEach(([i,a])=>{t[i]=a}),t},{}):dg(e)}function dg(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,s])=>(n&&s&&(t[n]=s),t),{})}function Jk(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,s],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(s)}`,c=i===0?a:`${t},${a}`;return c.length>Kk?(kr&&X.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),t):c},"")}const fg=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Zk(e){if(!e)return;const t=e.match(fg);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function eT(e,t){const n=Zk(e),s=ug(t);if(!n||!n.traceId)return{traceId:Ar(),spanId:Or()};const{traceId:i,parentSpanId:a,parentSampled:c}=n,d=Or();return{traceId:i,parentSpanId:a,spanId:d,sampled:c,dsc:s||{}}}function pg(e=Ar(),t=Or(),n){let s="";return n!==void 0&&(s=n?"-1":"-0"),`${e}-${t}${s}`}const hg=0,mg=1;let gg=!1;function tT(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:a,status:c,origin:d}=Be(e);return ut({parent_span_id:a,span_id:t,trace_id:n,data:s,op:i,status:c,origin:d})}function nT(e){const{spanId:t,traceId:n,isRemote:s}=e.spanContext(),i=s?t:Be(e).parent_span_id,a=s?Or():t;return ut({parent_span_id:i,span_id:a,trace_id:n})}function rT(e){const{traceId:t,spanId:n}=e.spanContext(),s=gs(e);return pg(t,n,s)}function ms(e){return typeof e=="number"?yg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?yg(e.getTime()):$t()}function yg(e){return e>9999999999?e/1e3:e}function Be(e){if(oT(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(sT(e)){const{attributes:s,startTime:i,name:a,endTime:c,parentSpanId:d,status:f}=e;return ut({span_id:t,trace_id:n,data:s,description:a,parent_span_id:d,start_timestamp:ms(i),timestamp:ms(c)||void 0,status:vg(f),op:s[hs],origin:s[gt],_metrics_summary:rd(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function sT(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function oT(e){return typeof e.getSpanJSON=="function"}function gs(e){const{traceFlags:t}=e.spanContext();return t===mg}function vg(e){if(!(!e||e.code===Vk))return e.code===lg?"ok":e.message||"unknown_error"}const ys="_sentryChildSpans",ad="_sentryRootSpan";function Sg(e,t){const n=e[ad]||e;hn(t,ad,n),e[ys]?e[ys].add(t):hn(e,ys,new Set([t]))}function iT(e,t){e[ys]&&e[ys].delete(t)}function Ya(e){const t=new Set;function n(s){if(!t.has(s)&&gs(s)){t.add(s);const i=s[ys]?Array.from(s[ys]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function bt(e){return e[ad]||e}function vt(){const e=fs(),t=so(e);return t.getActiveSpan?t.getActiveSpan():qa(qe())}function wg(){gg||(Tr(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),gg=!0)}let _g=!1;function aT(){_g||(_g=!0,Hm(ld),Wm(ld))}function ld(){const e=vt(),t=e&&bt(e);if(t){const n="internal_error";xe&&X.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:yt,message:n})}}ld.tag="sentry_tracingErrorCallback";const Eg="_sentryScope",xg="_sentryIsolationScope";function lT(e,t,n){e&&(hn(e,xg,n),hn(e,Eg,t))}function kg(e){return{scope:e[Eg],isolationScope:e[xg]}}function Pr(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ae(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class oo{constructor(t={}){this._traceId=t.traceId||Ar(),this._spanId=t.spanId||Or()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:hg}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const cd="production",Tg="_frozenDsc";function bg(e,t){hn(e,Tg,t)}function Ig(e,t){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},i=ut({environment:n.environment||cd,release:n.release,public_key:s,trace_id:e});return t.emit("createDsc",i),i}function Cg(e,t){const n=t.getPropagationContext();return n.dsc||Ig(n.traceId,e)}function vs(e){const t=Ae();if(!t)return{};const n=bt(e),s=n[Tg];if(s)return s;const i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),c=a&&ug(a);if(c)return c;const d=Ig(e.spanContext().traceId,t),f=Be(n),h=f.data||{},y=h[ig];y!=null&&(d.sample_rate=`${y}`);const g=h[zn],w=f.description;return g!=="url"&&w&&(d.transaction=w),Pr()&&(d.sampled=String(gs(n))),t.emit("createDsc",d,n),d}function cT(e){if(!xe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:s}=Be(e),{spanId:i}=e.spanContext(),a=gs(e),c=bt(e),d=c===e,f=`[Tracing] Starting ${a?"sampled":"unsampled"} ${d?"root ":""}span`,h=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(s&&h.push(`parent ID: ${s}`),!d){const{op:y,description:g}=Be(c);h.push(`root ID: ${c.spanContext().spanId}`),y&&h.push(`root op: ${y}`),g&&h.push(`root description: ${g}`)}X.log(`${f}
  ${h.join(`
  `)}`)}function uT(e){if(!xe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Be(e),{spanId:s}=e.spanContext(),a=bt(e)===e,c=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${s}`;X.log(c)}function Ka(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){xe&&X.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function dT(e,t){if(!Pr(e))return[!1];const n=kn().getScopeData().sdkProcessingMetadata.normalizedRequest,s={...t,normalizedRequest:t.normalizedRequest||n};let i;typeof e.tracesSampler=="function"?i=e.tracesSampler(s):s.parentSampled!==void 0?i=s.parentSampled:typeof e.tracesSampleRate<"u"?i=e.tracesSampleRate:i=1;const a=Ka(i);return a===void 0?(xe&&X.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()<a?[!0,a]:(xe&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[!1,a]):(xe&&X.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a])}const fT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pT(e){return e==="http"||e==="https"}function di(e,t=!1){const{host:n,path:s,pass:i,port:a,projectId:c,protocol:d,publicKey:f}=e;return`${d}://${f}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${s&&`${s}/`}${c}`}function hT(e){const t=fT.exec(e);if(!t){Tr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,s,i="",a="",c="",d=""]=t.slice(1);let f="",h=d;const y=h.split("/");if(y.length>1&&(f=y.slice(0,-1).join("/"),h=y.pop()),h){const g=h.match(/^\d+/);g&&(h=g[0])}return Rg({host:a,pass:i,path:f,projectId:h,port:c,protocol:n,publicKey:s})}function Rg(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mT(e){if(!kr)return!0;const{port:t,projectId:n,protocol:s}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(X.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?pT(s)?t&&isNaN(parseInt(t,10))?(X.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(X.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):(X.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function gT(e){const t=typeof e=="string"?hT(e):Rg(e);if(!(!t||!mT(t)))return t}function yT(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function s(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[n,s]}function Tn(e,t=100,n=1/0){try{return ud("",e,t,n)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function Ag(e,t=3,n=100*1024){const s=Tn(e,t);return _T(s)>n?Ag(e,t-1,n):s}function ud(e,t,n=1/0,s=1/0,i=yT()){const[a,c]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=vT(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return d.replace("object ","");if(a(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const E=h.toJSON();return ud("",E,f-1,s,i)}catch{}const y=Array.isArray(t)?[]:{};let g=0;const w=Zm(t);for(const E in w){if(!Object.prototype.hasOwnProperty.call(w,E))continue;if(g>=s){y[E]="[MaxProperties ~]";break}const _=w[E];y[E]=ud(E,_,f-1,s,i),g++}return c(t),y}function vT(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Ym(t))return"[VueViewModel]";if(xk(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${tr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ST(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ST(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function wT(e){return~-encodeURI(e).split(/%..|./).length}function _T(e){return wT(JSON.stringify(e))}function Ss(e,t=[]){return[e,t]}function ET(e,t){const[n,s]=e;return[n,[...s,t]]}function Og(e,t){const n=e[1];for(const s of n){const i=s[0].type;if(t(s,i))return!0}return!1}function dd(e){return Ne.__SENTRY__&&Ne.__SENTRY__.encodePolyfill?Ne.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function xT(e){const[t,n]=e;let s=JSON.stringify(t);function i(a){typeof s=="string"?s=typeof a=="string"?s+a:[dd(s),a]:s.push(typeof a=="string"?dd(a):a)}for(const a of n){const[c,d]=a;if(i(`
${JSON.stringify(c)}
`),typeof d=="string"||d instanceof Uint8Array)i(d);else{let f;try{f=JSON.stringify(d)}catch{f=JSON.stringify(Tn(d))}i(f)}}return typeof s=="string"?s:kT(s)}function kT(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let s=0;for(const i of e)n.set(i,s),s+=i.length;return n}function TT(e){return[{type:"span"},e]}function bT(e){const t=typeof e.data=="string"?dd(e.data):e.data;return[ut({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const IT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Pg(e){return IT[e]}function fd(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ng(e,t,n,s){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:di(s)},...i&&{trace:ut({...i})}}}function CT(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function RT(e,t,n,s){const i=fd(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!s&&t&&{dsn:di(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ss(a,[c])}function AT(e,t,n,s){const i=fd(n),a=e.type&&e.type!=="replay_event"?e.type:"event";CT(e,n&&n.sdk);const c=Ng(e,i,s,t);return delete e.sdkProcessingMetadata,Ss(c,[[{type:a},e]])}function OT(e,t){function n(y){return!!y.trace_id&&!!y.public_key}const s=vs(e[0]),i=t&&t.getDsn(),a=t&&t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...n(s)&&{trace:s},...!!a&&i&&{dsn:di(i)}},d=t&&t.getOptions().beforeSendSpan,f=d?y=>{const g=d(Be(y));return g||wg(),g}:y=>Be(y),h=[];for(const y of e){const g=f(y);g&&h.push(TT(g))}return Ss(c,h)}function PT(e,t,n,s=vt()){const i=s&&bt(s);i&&(xe&&X.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Ga]:t,[Va]:n}))}function Mg(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const s=n.attributes||{},i=s[Va],a=s[Ga];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const Lg=1e3;class pd{constructor(t={}){this._traceId=t.traceId||Ar(),this._spanId=t.spanId||Or(),this._startTime=t.startTimestamp||$t(),this._attributes={},this.setAttributes({[gt]:"manual",[hs]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:s}=this;return{spanId:t,traceId:n,traceFlags:s?mg:hg}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ms(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(zn,"custom"),this}end(t){this._endTime||(this._endTime=ms(t),uT(this),this._onSpanEnded())}getSpanJSON(){return ut({data:this._attributes,description:this._name,op:this._attributes[hs],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:vg(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gt],_metrics_summary:rd(this),profile_id:this._attributes[qk],exclusive_time:this._attributes[od],measurements:Mg(this._events),is_segment:this._isStandaloneSpan&&bt(this)===this||void 0,segment_id:this._isStandaloneSpan?bt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,s){xe&&X.log("[Tracing] Adding an event to span:",t);const i=jg(n)?n:s||$t(),a=jg(n)?{}:n||{},c={name:t,time:ms(i),attributes:a};return this._events.push(c),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ae();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===bt(this)))return;if(this._isStandaloneSpan){this._sampled?MT(OT([this],t)):(xe&&X.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const s=this._convertSpanToTransaction();s&&(kg(this).scope||qe()).captureEvent(s)}_convertSpanToTransaction(){if(!Dg(Be(this)))return;this._name||(xe&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=kg(this),i=(t||qe()).getClient()||Ae();if(this._sampled!==!0){xe&&X.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const c=Ya(this).filter(g=>g!==this&&!NT(g)).map(g=>Be(g)).filter(Dg),d=this._attributes[zn];delete this._attributes[ag],c.forEach(g=>{g.data&&delete g.data[ag]});const f={contexts:{trace:tT(this)},spans:c.length>Lg?c.sort((g,w)=>g.start_timestamp-w.start_timestamp).slice(0,Lg):c,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...ut({dynamicSamplingContext:vs(this)})},_metrics_summary:rd(this),...d&&{transaction_info:{source:d}}},h=Mg(this._events);return h&&Object.keys(h).length&&(xe&&X.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),f.measurements=h),f}}function jg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Dg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function NT(e){return e instanceof pd&&e.isStandaloneSpan()}function MT(e){const t=Ae();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const $g="__SENTRY_SUPPRESS_TRACING__";function fi(e){const t=Fg();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=jT(e),{forceTransaction:s,parentSpan:i}=e;return(e.scope?c=>nd(e.scope,c):i!==void 0?c=>Bg(i,c):c=>c())(()=>{const c=qe(),d=$T(c);return e.onlyIfParent&&!d?new oo:LT({parentSpan:d,spanArguments:n,forceTransaction:s,scope:c})})}function Bg(e,t){const n=Fg();return n.withActiveSpan?n.withActiveSpan(e,t):nd(s=>(ui(s,e||void 0),t(s)))}function LT({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!Pr())return new oo;const i=kn();let a;if(e&&!n)a=DT(e,s,t),Sg(e,a);else if(e){const c=vs(e),{traceId:d,spanId:f}=e.spanContext(),h=gs(e);a=zg({traceId:d,parentSpanId:f,...t},s,h),bg(a,c)}else{const{traceId:c,dsc:d,parentSpanId:f,sampled:h}={...i.getPropagationContext(),...s.getPropagationContext()};a=zg({traceId:c,parentSpanId:f,...t},s,h),d&&bg(a,d)}return cT(a),lT(a,s,i),a}function jT(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const s={...n};return s.startTimestamp=ms(e.startTime),delete s.startTime,s}return n}function Fg(){const e=fs();return so(e)}function zg(e,t,n){const s=Ae(),i=s&&s.getOptions()||{},{name:a="",attributes:c}=e,[d,f]=t.getScopeData().sdkProcessingMetadata[$g]?[!1]:dT(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),h=new pd({...e,attributes:{[zn]:"custom",...e.attributes},sampled:d});return f!==void 0&&h.setAttribute(ig,f),s&&s.emit("spanStart",h),h}function DT(e,t,n){const{spanId:s,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[$g]?!1:gs(e),c=a?new pd({...n,parentSpanId:s,traceId:i,sampled:a}):new oo({traceId:i});Sg(e,c);const d=Ae();return d&&(d.emit("spanStart",c),n.endTimestamp&&d.emit("spanEnd",c)),c}function $T(e){const t=qa(e);if(!t)return;const n=Ae();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?bt(t):t}const Qa={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},BT="heartbeatFailed",FT="idleTimeout",zT="finalTimeout",UT="externalFinish";function Ug(e,t={}){const n=new Map;let s=!1,i,a=UT,c=!t.disableAutoFinish;const d=[],{idleTimeout:f=Qa.idleTimeout,finalTimeout:h=Qa.finalTimeout,childSpanTimeout:y=Qa.childSpanTimeout,beforeSpanEnd:g}=t,w=Ae();if(!w||!Pr())return new oo;const E=qe(),_=vt(),x=HT(e);x.end=new Proxy(x.end,{apply(M,L,U){g&&g(x);const[te,...K]=U,oe=te||$t(),ae=ms(oe),me=Ya(x).filter(W=>W!==x);if(!me.length)return z(ae),Reflect.apply(M,L,[ae,...K]);const Te=me.map(W=>Be(W).timestamp).filter(W=>!!W),ze=Te.length?Math.max(...Te):void 0,J=Be(x).start_timestamp,ve=Math.min(J?J+h/1e3:1/0,Math.max(J||-1/0,Math.min(ae,ze||1/0)));return z(ve),Reflect.apply(M,L,[ve,...K])}});function k(){i&&(clearTimeout(i),i=void 0)}function O(M){k(),i=setTimeout(()=>{!s&&n.size===0&&c&&(a=FT,x.end(M))},f)}function R(M){i=setTimeout(()=>{!s&&c&&(a=BT,x.end(M))},y)}function $(M){k(),n.set(M,!0);const L=$t();R(L+y/1e3)}function H(M){if(n.has(M)&&n.delete(M),n.size===0){const L=$t();O(L+f/1e3)}}function z(M){s=!0,n.clear(),d.forEach(ae=>ae()),ui(E,_);const L=Be(x),{start_timestamp:U}=L;if(!U)return;(L.data||{})[sd]||x.setAttribute(sd,a),X.log(`[Tracing] Idle span "${L.op}" finished`);const K=Ya(x).filter(ae=>ae!==x);let oe=0;K.forEach(ae=>{ae.isRecording()&&(ae.setStatus({code:yt,message:"cancelled"}),ae.end(M),xe&&X.log("[Tracing] Cancelling span since span ended early",JSON.stringify(ae,void 0,2)));const me=Be(ae),{timestamp:Te=0,start_timestamp:ze=0}=me,J=ze<=M,ve=(h+f)/1e3,W=Te-ze<=ve;if(xe){const re=JSON.stringify(ae,void 0,2);J?W||X.log("[Tracing] Discarding span since it finished after idle span final timeout",re):X.log("[Tracing] Discarding span since it happened after idle span was finished",re)}(!W||!J)&&(iT(x,ae),oe++)}),oe>0&&x.setAttribute("sentry.idle_span_discarded_spans",oe)}return d.push(w.on("spanStart",M=>{if(s||M===x||Be(M).timestamp)return;Ya(x).includes(M)&&$(M.spanContext().spanId)})),d.push(w.on("spanEnd",M=>{s||H(M.spanContext().spanId)})),d.push(w.on("idleSpanEnableAutoFinish",M=>{M===x&&(c=!0,O(),n.size&&R())})),t.disableAutoFinish||O(),setTimeout(()=>{s||(x.setStatus({code:yt,message:"deadline_exceeded"}),a=zT,x.end())},h),x}function HT(e){const t=fi(e);return ui(qe(),t),xe&&X.log("[Tracing] Started span is an idle span"),t}function hd(e,t,n,s=0){return new mn((i,a)=>{const c=e[s];if(t===null||typeof c!="function")i(t);else{const d=c({...t},n);xe&&c.id&&d===null&&X.log(`Event processor "${c.id}" dropped event`),Ua(d)?d.then(f=>hd(e,f,n,s+1).then(i)).then(null,a):hd(e,d,n,s+1).then(i).then(null,a)}})}let Xa,Hg,Ja;function WT(e){const t=Ne._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ja&&n.length===Hg||(Hg=n.length,Ja=n.reduce((s,i)=>{Xa||(Xa={});const a=Xa[i];if(a)s[a[0]]=a[1];else{const c=e(i);for(let d=c.length-1;d>=0;d--){const f=c[d],h=f&&f.filename,y=t[i];if(h&&y){s[h]=y,Xa[i]=[h,y];break}}}return s},{})),Ja}function qT(e,t){const{fingerprint:n,span:s,breadcrumbs:i,sdkProcessingMetadata:a}=t;VT(e,t),s&&KT(e,s),QT(e,n),GT(e,i),YT(e,a)}function Wg(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,sdkProcessingMetadata:d,breadcrumbs:f,fingerprint:h,eventProcessors:y,attachments:g,propagationContext:w,transactionName:E,span:_}=t;Za(e,"extra",n),Za(e,"tags",s),Za(e,"user",i),Za(e,"contexts",a),e.sdkProcessingMetadata=Wa(e.sdkProcessingMetadata,d,2),c&&(e.level=c),E&&(e.transactionName=E),_&&(e.span=_),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...w}}function Za(e,t,n){e[t]=Wa(e[t],n,1)}function VT(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,transactionName:d}=t,f=ut(n);f&&Object.keys(f).length&&(e.extra={...f,...e.extra});const h=ut(s);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=ut(i);y&&Object.keys(y).length&&(e.user={...y,...e.user});const g=ut(a);g&&Object.keys(g).length&&(e.contexts={...g,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function GT(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function YT(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function KT(e,t){e.contexts={trace:nT(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:vs(t),...e.sdkProcessingMetadata};const n=bt(t),s=Be(n).description;s&&!e.transaction&&e.type==="transaction"&&(e.transaction=s)}function QT(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function qg(e,t,n,s,i,a){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,f={...t,event_id:t.event_id||n.event_id||sn(),timestamp:t.timestamp||ci()},h=n.integrations||e.integrations.map(k=>k.name);XT(f,e),eb(f,h),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&JT(f,e.stackParser);const y=nb(s,n.captureContext);n.mechanism&&to(f,n.mechanism);const g=i?i.getEventProcessors():[],w=Uk().getScopeData();if(a){const k=a.getScopeData();Wg(w,k)}if(y){const k=y.getScopeData();Wg(w,k)}const E=[...n.attachments||[],...w.attachments];E.length&&(n.attachments=E),qT(f,w);const _=[...g,...w.eventProcessors];return hd(_,f,n).then(k=>(k&&ZT(k),typeof c=="number"&&c>0?tb(k,c,d):k))}function XT(e,t){const{environment:n,release:s,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||cd,!e.release&&s&&(e.release=s),!e.dist&&i&&(e.dist=i),e.message&&(e.message=eo(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=eo(c.value,a));const d=e.request;d&&d.url&&(d.url=eo(d.url,a))}function JT(e,t){const n=WT(t);try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{n&&i.filename&&(i.debug_id=n[i.filename])})})}catch{}}function ZT(e){const t={};try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,i])=>{n.push({type:"sourcemap",code_file:s,debug_id:i})})}function eb(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function tb(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Tn(i.data,t,n)}}))},...e.user&&{user:Tn(e.user,t,n)},...e.contexts&&{contexts:Tn(e.contexts,t,n)},...e.extra&&{extra:Tn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=Tn(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map(i=>({...i,...i.data&&{data:Tn(i.data,t,n)}}))),e.contexts&&e.contexts.flags&&s.contexts&&(s.contexts.flags=Tn(e.contexts.flags,3,n)),s}function nb(e,t){if(!t)return e;const n=e?e.clone():new ps;return n.update(t),n}function OB(e){}function bn(e,t){return qe().captureException(e,void 0)}function Vg(e,t){return qe().captureEvent(e,t)}function Gg(e,t){kn().setContext(e,t)}function rb(){const e=Ae();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function sb(e){kn().addEventProcessor(e)}function Yg(e){const t=Ae(),n=kn(),s=qe(),{release:i,environment:a=cd}=t&&t.getOptions()||{},{userAgent:c}=Ne.navigator||{},d=Pk({release:i,environment:a,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&f.status==="ok"&&no(f,{status:"exited"}),Kg(),n.setSession(d),s.setSession(d),d}function Kg(){const e=kn(),t=qe(),n=t.getSession()||e.getSession();n&&Nk(n),Qg(),e.setSession(),t.setSession()}function Qg(){const e=kn(),t=qe(),n=Ae(),s=t.getSession()||e.getSession();s&&n&&n.captureSession(s)}function Xg(e=!1){if(e){Kg();return}Qg()}const ob="7";function ib(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ab(e){return`${ib(e)}${e.projectId}/envelope/`}function lb(e,t){const n={sentry_version:ob};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cb(e,t,n){return t||`${ab(e)}?${lb(e,n)}`}const Jg=[];function ub(e){const t={};return e.forEach(n=>{const{name:s}=n,i=t[s];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[s]=n)}),Object.values(t)}function db(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let s;if(Array.isArray(n))s=[...t,...n];else if(typeof n=="function"){const c=n(t);s=Array.isArray(c)?c:[c]}else s=t;const i=ub(s),a=i.findIndex(c=>c.name==="Debug");if(a>-1){const[c]=i.splice(a,1);i.push(c)}return i}function fb(e,t){const n={};return t.forEach(s=>{s&&ey(e,s,n)}),n}function Zg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function ey(e,t,n){if(n[t.name]){xe&&X.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Jg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Jg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const s=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>s(i,a,e))}if(typeof t.processEvent=="function"){const s=t.processEvent.bind(t),i=Object.assign((a,c)=>s(a,c,e),{id:t.name});e.addEventProcessor(i)}xe&&X.log(`Integration installed: ${t.name}`)}function PB(e){return e}function pb(e,t,n){const s=[{type:"client_report"},{timestamp:ci(),discarded_events:e}];return Ss(t?{dsn:t}:{},[s])}class Un extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const ty="Not capturing exception because it's already been captured.";class hb{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=gT(t.dsn):xe&&X.warn("No DSN provided, client will not send events."),this._dsn){const i=cb(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:i})}const s=["enableTracing","tracesSampleRate","tracesSampler"].find(i=>i in t&&t[i]==null);s&&Tr(()=>{console.warn(`[Sentry] Deprecation warning: \`${s}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,s){const i=sn();if(sg(t))return xe&&X.log(ty),i;const a={event_id:i,...n};return this._process(this.eventFromException(t,a).then(c=>this._captureEvent(c,a,s))),a.event_id}captureMessage(t,n,s,i){const a={event_id:sn(),...s},c=Ku(t)?t:String(t),d=Qu(t)?this.eventFromMessage(c,n,a):this.eventFromException(t,a);return this._process(d.then(f=>this._captureEvent(f,a,i))),a.event_id}captureEvent(t,n,s){const i=sn();if(n&&n.originalException&&sg(n.originalException))return xe&&X.log(ty),i;const a={event_id:i,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,d||s)),a.event_id}captureSession(t){typeof t.release!="string"?xe&&X.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),no(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(s=>n.flush(t).then(i=>s&&i))):ir(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ey(this,t,this._integrations),n||Zg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let s=AT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])s=ET(s,bT(a));const i=this.sendEnvelope(s);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=RT(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,s){if(this._options.sendClientReports){const i=typeof s=="number"?s:1,a=`${t}:${n}`;xe&&X.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(t,n){const s=this._hooks[t]=this._hooks[t]||[];return s.push(n),()=>{const i=s.indexOf(n);i>-1&&s.splice(i,1)}}emit(t,...n){const s=this._hooks[t];s&&s.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(xe&&X.error("Error while sending envelope:",n),n)):(xe&&X.error("Transport disabled"),ir({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=fb(this,t),Zg(this,t)}_updateSessionFromEvent(t,n){let s=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const f of a){const h=f.mechanism;if(h&&h.handled===!1){s=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&s)&&(no(t,{...s&&{status:"crashed"},errors:t.errors||Number(i||s)}),this.captureSession(t))}_isClientDoneProcessing(t){return new mn(n=>{let s=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(s+=i,t&&s>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,s=qe(),i=kn()){const a=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),qg(a,t,n,s,this,i).then(d=>{if(d===null)return d;d.contexts={trace:Hk(s),...d.contexts};const f=Cg(this,s);return d.sdkProcessingMetadata={dynamicSamplingContext:f,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},s){return this._processEvent(t,n,s).then(i=>i.event_id,i=>{if(xe){const a=i;a.logLevel==="log"?X.log(a.message):X.warn(a)}})}_processEvent(t,n,s){const i=this.getOptions(),{sampleRate:a}=i,c=ry(t),d=ny(t),f=t.type||"error",h=`before send for type \`${f}\``,y=typeof a>"u"?void 0:Ka(a);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),Ha(new Un(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const g=f==="replay_event"?"replay":f,E=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,s,E).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",g,t),new Un("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const k=gb(this,i,_,n);return mb(k,h)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",g,t),c){const R=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw new Un(`${h} returned \`null\`, will not send event.`,"log")}const x=s&&s.getSession();if(!c&&x&&this._updateSessionFromEvent(x,_),c){const O=_.sdkProcessingMetadata&&_.sdkProcessingMetadata.spanCountBeforeProcessing||0,R=_.spans?_.spans.length:0,$=O-R;$>0&&this.recordDroppedEvent("before_send","span",$)}const k=_.transaction_info;if(c&&k&&_.transaction!==t.transaction){const O="custom";_.transaction_info={...k,source:O}}return this.sendEvent(_,n),_}).then(null,_=>{throw _ instanceof Un?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new Un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${_}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,s])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:s}})}_flushOutcomes(){xe&&X.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){xe&&X.log("No outcomes to send");return}if(!this._dsn){xe&&X.log("No dsn provided, will not send outcomes");return}xe&&X.log("Sending outcomes:",t);const n=pb(t,this._options.tunnel&&di(this._dsn));this.sendEnvelope(n)}}function mb(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ua(e))return e.then(s=>{if(!Js(s)&&s!==null)throw new Un(n);return s},s=>{throw new Un(`${t} rejected with ${s}`)});if(!Js(e)&&e!==null)throw new Un(n);return e}function gb(e,t,n,s){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:c}=t;if(ny(n)&&i)return i(n,s);if(ry(n)){if(n.spans&&c){const d=[];for(const f of n.spans){const h=c(f);h?d.push(h):(wg(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(a){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return a(n,s)}}return n}function ny(e){return e.type===void 0}function ry(e){return e.type==="transaction"}function yb(e,t){t.debug===!0&&(xe?X.enable():Tr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),qe().update(t.initialScope);const s=new e(t);return vb(s),s.init(),s}function vb(e){qe().setClient(e)}function Sb(e){const t=[];function n(){return e===void 0||t.length<e}function s(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function i(c){if(!n())return Ha(new Un("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>s(d)).then(null,()=>s(d).then(null,()=>{})),d}function a(c){return new mn((d,f)=>{let h=t.length;if(!h)return d(!0);const y=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(g=>{ir(g).then(()=>{--h||(clearTimeout(y),d(!0))},f)})})}return{$:t,add:i,drain:a}}const wb=60*1e3;function _b(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const s=Date.parse(`${e}`);return isNaN(s)?wb:s-t}function Eb(e,t){return e[t]||e.all||0}function sy(e,t,n=Date.now()){return Eb(e,t)>n}function oy(e,{statusCode:t,headers:n},s=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(a)for(const d of a.trim().split(",")){const[f,h,,,y]=d.split(":",5),g=parseInt(f,10),w=(isNaN(g)?60:g)*1e3;if(!h)i.all=s+w;else for(const E of h.split(";"))E==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(i[E]=s+w):i[E]=s+w}else c?i.all=s+_b(c,s):t===429&&(i.all=s+60*1e3);return i}const xb=64;function kb(e,t,n=Sb(e.bufferSize||xb)){let s={};const i=c=>n.drain(c);function a(c){const d=[];if(Og(c,(g,w)=>{const E=Pg(w);if(sy(s,E)){const _=iy(g,w);e.recordDroppedEvent("ratelimit_backoff",E,_)}else d.push(g)}),d.length===0)return ir({});const f=Ss(c[0],d),h=g=>{Og(f,(w,E)=>{const _=iy(w,E);e.recordDroppedEvent(g,Pg(E),_)})},y=()=>t({body:xT(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&xe&&X.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),s=oy(s,g),g),g=>{throw h("network_error"),g});return n.add(y).then(g=>g,g=>{if(g instanceof Un)return xe&&X.error("Skipped sending event because buffer is full."),h("queue_overflow"),ir({});throw g})}return{send:a,flush:i}}function iy(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Tb(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return Ib(e,n)||bb(e,s)}function bb(e,t){return t?ay(e)===ay(t):!1}function Ib(e,t){return t?e.includes(t.host):!1}function ay(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function ly(e,t,n=[t],s="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${s}:@sentry/${a}`,version:us})),version:us}),e._metadata=i}function cy(e={}){const t=Ae();if(!rb()||!t)return{};const n=fs(),s=so(n);if(s.getTraceData)return s.getTraceData(e);const i=qe(),a=e.span||vt(),c=a?rT(a):Cb(i),d=a?vs(a):Cg(t,i),f=Qk(d);return fg.test(c)?{"sentry-trace":c,baggage:f}:(X.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Cb(e){const{traceId:t,sampled:n,spanId:s}=e.getPropagationContext();return pg(t,s,n)}const Rb=100;function Nr(e,t){const n=Ae(),s=kn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Rb}=n.getOptions();if(a<=0)return;const d={timestamp:ci(),...e},f=i?Tr(()=>i(d,t)):d;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),s.addBreadcrumb(f,a))}let uy;const Ab="FunctionToString",dy=new WeakMap,Ob=()=>({name:Ab,setupOnce(){uy=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Xu(this),n=dy.has(Ae())&&t!==void 0?t:this;return uy.apply(n,e)}}catch{}},setup(e){dy.set(e,!0)}}),Pb=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Nb="InboundFilters",Mb=(e={})=>({name:Nb,processEvent(t,n,s){const i=s.getOptions(),a=Lb(e,i);return jb(t,a)?null:t}});function Lb(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Pb],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function jb(e,t){return t.ignoreInternal&&Ub(e)?(xe&&X.warn(`Event dropped due to being internal Sentry Error.
Event: ${Rr(e)}`),!0):Db(e,t.ignoreErrors)?(xe&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Rr(e)}`),!0):Wb(e)?(xe&&X.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Rr(e)}`),!0):$b(e,t.ignoreTransactions)?(xe&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Rr(e)}`),!0):Bb(e,t.denyUrls)?(xe&&X.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Rr(e)}.
Url: ${el(e)}`),!0):Fb(e,t.allowUrls)?!1:(xe&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Rr(e)}.
Url: ${el(e)}`),!0)}function Db(e,t){return e.type||!t||!t.length?!1:zb(e).some(n=>Cr(n,t))}function $b(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Cr(n,t):!1}function Bb(e,t){if(!t||!t.length)return!1;const n=el(e);return n?Cr(n,t):!1}function Fb(e,t){if(!t||!t.length)return!0;const n=el(e);return n?Cr(n,t):!0}function zb(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Ub(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Hb(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function el(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Hb(t):null}catch{return xe&&X.error(`Cannot extract url for event ${Rr(e)}`),null}}function Wb(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function qb(e,t,n=250,s,i,a,c){if(!a.exception||!a.exception.values||!c||!rr(c.originalException,Error))return;const d=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;d&&(a.exception.values=Vb(md(e,t,i,c.originalException,s,a.exception.values,d,0),n))}function md(e,t,n,s,i,a,c,d){if(a.length>=n+1)return a;let f=[...a];if(rr(s[i],Error)){fy(c,d);const h=e(t,s[i]),y=f.length;py(h,i,y,d),f=md(e,t,n,s[i],i,[h,...f],h,y)}return Array.isArray(s.errors)&&s.errors.forEach((h,y)=>{if(rr(h,Error)){fy(c,d);const g=e(t,h),w=f.length;py(g,`errors[${y}]`,w,d),f=md(e,t,n,h,i,[g,...f],g,w)}}),f}function fy(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function py(e,t,n,s){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:s}}function Vb(e,t){return e.map(n=>(n.value&&(n.value=eo(n.value,t)),n))}function ws(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",s=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:s,relative:t[5]+n+s}}function Gb(e){const t="console";br(t,e),Ir(t,Yb)}function Yb(){"console"in Ne&&Hu.forEach(function(e){e in Ne.console&&Vt(Ne.console,e,function(t){return $a[e]=t,function(...n){pn("console",{args:n,level:e});const i=$a[e];i&&i.apply(Ne.console,n)}})})}function hy(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Kb="Dedupe",Qb=()=>{let e;return{name:Kb,processEvent(t){if(t.type)return t;try{if(Xb(t,e))return xe&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Xb(e,t){return t?!!(Jb(e,t)||Zb(e,t)):!1}function Jb(e,t){const n=e.message,s=t.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!gy(e,t)||!my(e,t))}function Zb(e,t){const n=yy(t),s=yy(e);return!(!n||!s||n.type!==s.type||n.value!==s.value||!gy(e,t)||!my(e,t))}function my(e,t){let n=zm(e),s=zm(t);if(!n&&!s)return!0;if(n&&!s||!n&&s||(n=n,s=s,s.length!==n.length))return!1;for(let i=0;i<s.length;i++){const a=s[i],c=n[i];if(a.filename!==c.filename||a.lineno!==c.lineno||a.colno!==c.colno||a.function!==c.function)return!1}return!0}function gy(e,t){let n=e.fingerprint,s=t.fingerprint;if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;n=n,s=s;try{return n.join("")===s.join("")}catch{return!1}}function yy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function eI(e,t,n,s,i="auto.http.browser"){if(!e.fetchData)return;const a=Pr()&&t(e.fetchData.url);if(e.endTimestamp&&a){const w=e.fetchData.__span;if(!w)return;const E=s[w];E&&(rI(E,e),delete s[w]);return}const{method:c,url:d}=e.fetchData,f=nI(d),h=f?ws(f).host:void 0,y=!!vt(),g=a&&y?fi({name:`${c} ${d}`,attributes:{url:d,type:"fetch","http.method":c,"http.url":f,"server.address":h,[gt]:i,[hs]:"http.client"}}):new oo;if(e.fetchData.__span=g.spanContext().spanId,s[g.spanContext().spanId]=g,n(e.fetchData.url)){const w=e.args[0],E=e.args[1]||{},_=tI(w,E,Pr()&&y?g:void 0);_&&(e.args[1]=E,E.headers=_)}return g}function tI(e,t,n){const s=cy({span:n}),i=s["sentry-trace"],a=s.baggage;if(!i)return;const c=t.headers||(sI(e)?e.headers:void 0);if(c)if(oI(c)){const d=new Headers(c);if(d.set("sentry-trace",i),a){const f=d.get("baggage");if(f){const h=tl(f);d.set("baggage",h?`${h},${a}`:a)}else d.set("baggage",a)}return d}else if(Array.isArray(c)){const d=[...c.filter(f=>!(Array.isArray(f)&&f[0]==="sentry-trace")).map(f=>{if(Array.isArray(f)&&f[0]==="baggage"&&typeof f[1]=="string"){const[h,y,...g]=f;return[h,tl(y),...g]}else return f}),["sentry-trace",i]];return a&&d.push(["baggage",a]),d}else{const d="baggage"in c?c.baggage:void 0;let f=[];return Array.isArray(d)?f=d.map(h=>typeof h=="string"?tl(h):h).filter(h=>h===""):d&&f.push(tl(d)),a&&f.push(a),{...c,"sentry-trace":i,baggage:f.length>0?f.join(","):void 0}}else return{...s}}function nI(e){try{return new URL(e).href}catch{return}}function rI(e,t){if(t.response){cg(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const s=parseInt(n);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:yt,message:"internal_error"});e.end()}function tl(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(id)).join(",")}function sI(e){return typeof Request<"u"&&rr(e,Request)}function oI(e){return typeof Headers<"u"&&rr(e,Headers)}function vy(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const gd=Ne;function Sy(){if(!("fetch"in gd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function yd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function iI(){if(typeof EdgeRuntime=="string")return!0;if(!Sy())return!1;if(yd(gd.fetch))return!0;let e=!1;const t=gd.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=yd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){kr&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function wy(e,t){const n="fetch";br(n,e),Ir(n,()=>_y(void 0,t))}function aI(e){const t="fetch-body-resolved";br(t,e),Ir(t,()=>_y(cI))}function _y(e,t=!1){t&&!iI()||Vt(Ne,"fetch",function(n){return function(...s){const i=new Error,{method:a,url:c}=uI(s),d={args:s,fetchData:{method:a,url:c},startTimestamp:$t()*1e3,virtualError:i};return e||pn("fetch",{...d}),n.apply(Ne,s).then(async f=>(e?e(f):pn("fetch",{...d,endTimestamp:$t()*1e3,response:f}),f),f=>{throw pn("fetch",{...d,endTimestamp:$t()*1e3,error:f}),Yu(f)&&f.stack===void 0&&(f.stack=i.stack,hn(f,"framesToPop",1)),f})}})}async function lI(e,t){if(e&&e.body){const n=e.body,s=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let c;try{c=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:d}=await s.read();clearTimeout(c),d&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(c)}}clearTimeout(i),s.releaseLock(),n.cancel().then(null,()=>{})}}function cI(e){let t;try{t=e.clone()}catch{return}lI(t,()=>{pn("fetch-body-resolved",{endTimestamp:$t()*1e3,response:e})})}function vd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ey(e){return typeof e=="string"?e:e?vd(e,"url")?e.url:e.toString?e.toString():"":""}function uI(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,s]=e;return{url:Ey(n),method:vd(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:Ey(t),method:vd(t,"method")?String(t.method).toUpperCase():"GET"}}function dI(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function fI(){return"npm"}function pI(){return!dI()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function xy(){return typeof window<"u"&&(!pI()||hI())}function hI(){const e=Ne.process;return!!e&&e.type==="renderer"}const nl=Ne;function mI(){const e=nl.chrome,t=e&&e.app&&e.app.runtime,n="history"in nl&&!!nl.history.pushState&&!!nl.history.replaceState;return!t&&n}function gI(e,t){return e??t()}function rl(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const we=Ne;let Sd=0;function ky(){return Sd>0}function yI(){Sd++,setTimeout(()=>{Sd--})}function io(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Xu(e))return e}catch{return e}const s=function(...i){try{const a=i.map(c=>io(c,t));return e.apply(this,a)}catch(a){throw yI(),nd(c=>{c.addEventProcessor(d=>(t.mechanism&&(Zu(d,void 0),to(d,t.mechanism)),d.extra={...d.extra,arguments:i},d)),bn(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=e[i])}catch{}Jm(s,e),hn(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}const Hn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function wd(e,t){const n=Ed(e,t),s={type:EI(t),value:xI(t)};return n.length&&(s.stacktrace={frames:n}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function vI(e,t,n,s){const i=Ae(),a=i&&i.getOptions().normalizeDepth,c=CI(t),d={__serialized__:Ag(t,a)};if(c)return{exception:{values:[wd(e,c)]},extra:d};const f={exception:{values:[{type:za(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:bI(t,{isUnhandledRejection:s})}]},extra:d};if(n){const h=Ed(e,n);h.length&&(f.exception.values[0].stacktrace={frames:h})}return f}function _d(e,t){return{exception:{values:[wd(e,t)]}}}function Ed(e,t){const n=t.stacktrace||t.stack||"",s=wI(t),i=_I(t);try{return e(n,s,i)}catch{}return[]}const SI=/Minified React error #\d+;/i;function wI(e){return e&&SI.test(e.message)?1:0}function _I(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Ty(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function EI(e){const t=e&&e.name;return!t&&Ty(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function xI(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Ty(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function kI(e,t,n,s){const i=n&&n.syntheticException||void 0,a=xd(e,t,i,s);return to(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),ir(a)}function TI(e,t,n="info",s,i){const a=s&&s.syntheticException||void 0,c=kd(e,t,a,i);return c.level=n,s&&s.event_id&&(c.event_id=s.event_id),ir(c)}function xd(e,t,n,s,i){let a;if(Vm(t)&&t.error)return _d(e,t.error);if(Gm(t)||wk(t)){const c=t;if("stack"in t)a=_d(e,t);else{const d=c.name||(Gm(c)?"DOMError":"DOMException"),f=c.message?`${d}: ${c.message}`:d;a=kd(e,f,n,s),Zu(a,f)}return"code"in c&&(a.tags={...a.tags,"DOMException.code":`${c.code}`}),a}return Yu(t)?_d(e,t):Js(t)||za(t)?(a=vI(e,t,n,i),to(a,{synthetic:!0}),a):(a=kd(e,t,n,s),Zu(a,`${t}`),to(a,{synthetic:!0}),a)}function kd(e,t,n,s){const i={};if(s&&n){const a=Ed(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),to(i,{synthetic:!0})}if(Ku(t)){const{__sentry_template_string__:a,__sentry_template_values__:c}=t;return i.logentry={message:a,params:c},i}return i.message=t,i}function bI(e,{isUnhandledRejection:t}){const n=Ck(e),s=t?"promise rejection":"exception";return Vm(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:za(e)?`Event \`${II(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${n}`}function II(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function CI(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function RI(e,{metadata:t,tunnel:n,dsn:s}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!s&&{dsn:di(s)}},a=AI(e);return Ss(i,[a])}function AI(e){return[{type:"user_report"},e]}class OI extends hb{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},s=we.SENTRY_SDK_SOURCE||fI();ly(n,"browser",["browser"],s),super(n),n.sendClientReports&&we.document&&we.document.addEventListener("visibilitychange",()=>{we.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return kI(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",s){return TI(this._options.stackParser,t,n,s,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Hn&&X.warn("SDK not enabled, will not capture user feedback.");return}const n=RI(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,s)}}const Td=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PI=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ao=(e,t,n,s)=>{let i,a;return c=>{t.value>=0&&(c||s)&&(a=t.value-(i||0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=PI(t.value,n),e(t)))}},fe=Ne,NI=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,pi=(e=!0)=>{const t=fe.performance&&fe.performance.getEntriesByType&&fe.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},hi=()=>{const e=pi();return e&&e.activationStart||0},lo=(e,t)=>{const n=pi();let s="navigate";return n&&(fe.document&&fe.document.prerendering||hi()>0?s="prerender":fe.document&&fe.document.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:NI(),navigationType:s}},_s=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const s=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return s.observe(Object.assign({type:e,buffered:!0},n||{})),s}}catch{}},co=e=>{const t=n=>{(n.type==="pagehide"||fe.document&&fe.document.visibilityState==="hidden")&&e(n)};fe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},sl=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let mi=-1;const MI=()=>fe.document.visibilityState==="hidden"&&!fe.document.prerendering?0:1/0,ol=e=>{fe.document.visibilityState==="hidden"&&mi>-1&&(mi=e.type==="visibilitychange"?e.timeStamp:0,jI())},LI=()=>{addEventListener("visibilitychange",ol,!0),addEventListener("prerenderingchange",ol,!0)},jI=()=>{removeEventListener("visibilitychange",ol,!0),removeEventListener("prerenderingchange",ol,!0)},il=()=>(fe.document&&mi<0&&(mi=MI(),LI()),{get firstHiddenTime(){return mi}}),gi=e=>{fe.document&&fe.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},DI=[1800,3e3],$I=(e,t={})=>{gi(()=>{const n=il(),s=lo("FCP");let i;const c=_s("paint",d=>{d.forEach(f=>{f.name==="first-contentful-paint"&&(c.disconnect(),f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-hi(),0),s.entries.push(f),i(!0)))})});c&&(i=ao(e,s,DI,t.reportAllChanges))})},BI=[.1,.25],FI=(e,t={})=>{$I(sl(()=>{const n=lo("CLS",0);let s,i=0,a=[];const c=f=>{f.forEach(h=>{if(!h.hadRecentInput){const y=a[0],g=a[a.length-1];i&&y&&g&&h.startTime-g.startTime<1e3&&h.startTime-y.startTime<5e3?(i+=h.value,a.push(h)):(i=h.value,a=[h])}}),i>n.value&&(n.value=i,n.entries=a,s())},d=_s("layout-shift",c);d&&(s=ao(e,n,BI,t.reportAllChanges),co(()=>{c(d.takeRecords()),s(!0)}),setTimeout(s,0))}))},zI=[100,300],UI=(e,t={})=>{gi(()=>{const n=il(),s=lo("FID");let i;const a=f=>{f.startTime<n.firstHiddenTime&&(s.value=f.processingStart-f.startTime,s.entries.push(f),i(!0))},c=f=>{f.forEach(a)},d=_s("first-input",c);i=ao(e,s,zI,t.reportAllChanges),d&&co(sl(()=>{c(d.takeRecords()),d.disconnect()}))})};let by=0,bd=1/0,al=0;const HI=e=>{e.forEach(t=>{t.interactionId&&(bd=Math.min(bd,t.interactionId),al=Math.max(al,t.interactionId),by=al?(al-bd)/7+1:0)})};let Id;const WI=()=>Id?by:performance.interactionCount||0,qI=()=>{"interactionCount"in performance||Id||(Id=_s("event",HI,{type:"event",buffered:!0,durationThreshold:0}))},ar=[],Cd=new Map,VI=40;let GI=0;const YI=()=>WI()-GI,KI=()=>{const e=Math.min(ar.length-1,Math.floor(YI()/50));return ar[e]},Rd=10,QI=[],XI=e=>{if(QI.forEach(s=>s(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=ar[ar.length-1],n=Cd.get(e.interactionId);if(n||ar.length<Rd||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const s={id:e.interactionId,latency:e.duration,entries:[e]};Cd.set(s.id,s),ar.push(s)}ar.sort((s,i)=>i.latency-s.latency),ar.length>Rd&&ar.splice(Rd).forEach(s=>Cd.delete(s.id))}},Iy=e=>{const t=fe.requestIdleCallback||fe.setTimeout;let n=-1;return e=sl(e),fe.document&&fe.document.visibilityState==="hidden"?e():(n=t(e),co(e)),n},JI=[200,500],ZI=(e,t={})=>{"PerformanceEventTiming"in fe&&"interactionId"in PerformanceEventTiming.prototype&&gi(()=>{qI();const n=lo("INP");let s;const i=c=>{Iy(()=>{c.forEach(XI);const d=KI();d&&d.latency!==n.value&&(n.value=d.latency,n.entries=d.entries,s())})},a=_s("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:VI});s=ao(e,n,JI,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),co(()=>{i(a.takeRecords()),s(!0)}))})},eC=[2500,4e3],Cy={},tC=(e,t={})=>{gi(()=>{const n=il(),s=lo("LCP");let i;const a=d=>{t.reportAllChanges||(d=d.slice(-1)),d.forEach(f=>{f.startTime<n.firstHiddenTime&&(s.value=Math.max(f.startTime-hi(),0),s.entries=[f],i())})},c=_s("largest-contentful-paint",a);if(c){i=ao(e,s,eC,t.reportAllChanges);const d=sl(()=>{Cy[s.id]||(a(c.takeRecords()),c.disconnect(),Cy[s.id]=!0,i(!0))});["keydown","click"].forEach(f=>{fe.document&&addEventListener(f,()=>Iy(d),{once:!0,capture:!0})}),co(d)}})},nC=[800,1800],Ad=e=>{fe.document&&fe.document.prerendering?gi(()=>Ad(e)):fe.document&&fe.document.readyState!=="complete"?addEventListener("load",()=>Ad(e),!0):setTimeout(e,0)},rC=(e,t={})=>{const n=lo("TTFB"),s=ao(e,n,nC,t.reportAllChanges);Ad(()=>{const i=pi();i&&(n.value=Math.max(i.responseStart-hi(),0),n.entries=[i],s(!0))})},yi={},ll={};let Ry,Ay,Oy,Py,Ny;function Od(e,t=!1){return vi("cls",e,oC,Ry,t)}function My(e,t=!1){return vi("lcp",e,aC,Oy,t)}function Ly(e){return vi("fid",e,iC,Ay)}function sC(e){return vi("ttfb",e,lC,Py)}function jy(e){return vi("inp",e,cC,Ny)}function uo(e,t){return Dy(e,t),ll[e]||(uC(e),ll[e]=!0),$y(e,t)}function fo(e,t){const n=yi[e];if(!(!n||!n.length))for(const s of n)try{s(t)}catch(i){Td&&X.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${tr(s)}
Error:`,i)}}function oC(){return FI(e=>{fo("cls",{metric:e}),Ry=e},{reportAllChanges:!0})}function iC(){return UI(e=>{fo("fid",{metric:e}),Ay=e})}function aC(){return tC(e=>{fo("lcp",{metric:e}),Oy=e},{reportAllChanges:!0})}function lC(){return rC(e=>{fo("ttfb",{metric:e}),Py=e})}function cC(){return ZI(e=>{fo("inp",{metric:e}),Ny=e})}function vi(e,t,n,s,i=!1){Dy(e,t);let a;return ll[e]||(a=n(),ll[e]=!0),s&&t({metric:s}),$y(e,t,i?a:void 0)}function uC(e){const t={};e==="event"&&(t.durationThreshold=0),_s(e,n=>{fo(e,{entries:n})},t)}function Dy(e,t){yi[e]=yi[e]||[],yi[e].push(t)}function $y(e,t,n){return()=>{n&&n();const s=yi[e];if(!s)return;const i=s.indexOf(t);i!==-1&&s.splice(i,1)}}function dC(e){return"duration"in e}function Pd(e){return typeof e=="number"&&isFinite(e)}function lr(e,t,n,{...s}){const i=Be(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Bg(e,()=>{const a=fi({startTime:t,...s});return a&&a.end(n),a})}function By(e){const t=Ae();if(!t)return;const{name:n,transaction:s,attributes:i,startTime:a}=e,{release:c,environment:d}=t.getOptions(),f=t.getIntegrationByName("Replay"),h=f&&f.getReplayId(),y=qe(),g=y.getUser(),w=g!==void 0?g.email||g.id||g.ip_address:void 0;let E;try{E=y.getScopeData().contexts.profile.profile_id}catch{}const _={release:c,environment:d,user:w||void 0,profile_id:E||void 0,replay_id:h||void 0,transaction:s,"user_agent.original":fe.navigator&&fe.navigator.userAgent,...i};return fi({name:n,attributes:_,startTime:a,experimental:{standalone:!0}})}function Nd(){return fe&&fe.addEventListener&&fe.performance}function ot(e){return e/1e3}function fC(){let e=0,t,n;if(!hC())return;let s=!1;function i(){s||(s=!0,n&&pC(e,t,n),a())}const a=Od(({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(e=c.value,t=d)},!0);co(()=>{i()}),setTimeout(()=>{const c=Ae();if(!c)return;const d=c.on("startNavigationSpan",()=>{i(),d&&d()}),f=vt(),h=f&&bt(f),y=h&&Be(h);y&&y.op==="pageload"&&(n=h.spanContext().spanId)},0)}function pC(e,t,n){Td&&X.log(`Sending CLS span (${e})`);const s=ot((Bt||0)+(t&&t.startTime||0)),i=qe().getScopeData().transactionName,a=t?sr(t.sources[0]&&t.sources[0].node):"Layout shift",c=ut({[gt]:"auto.http.browser.cls",[hs]:"ui.webvital.cls",[od]:t&&t.duration||0,"sentry.pageload.span_id":n}),d=By({name:a,transaction:i,attributes:c,startTime:s});d&&(d.addEvent("cls",{[Va]:"",[Ga]:e}),d.end(s))}function hC(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const mC=2147483647;let Fy=0,It={},Gt,Si;function gC({recordClsStandaloneSpans:e}){const t=Nd();if(t&&Bt){t.mark&&fe.performance.mark("sentry-tracing-init");const n=EC(),s=_C(),i=xC(),a=e?fC():wC();return()=>{n(),s(),i(),a&&a()}}return()=>{}}function yC(){uo("longtask",({entries:e})=>{const t=vt();if(!t)return;const{op:n,start_timestamp:s}=Be(t);for(const i of e){const a=ot(Bt+i.startTime),c=ot(i.duration);n==="navigation"&&s&&a<s||lr(t,a,a+c,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[gt]:"auto.ui.browser.metrics"}})}})}function vC(){new PerformanceObserver(t=>{const n=vt();if(n)for(const s of t.getEntries()){if(!s.scripts[0])continue;const i=ot(Bt+s.startTime),{start_timestamp:a,op:c}=Be(n);if(c==="navigation"&&a&&i<a)continue;const d=ot(s.duration),f={[gt]:"auto.ui.browser.metrics"},h=s.scripts[0],{invoker:y,invokerType:g,sourceURL:w,sourceFunctionName:E,sourceCharPosition:_}=h;f["browser.script.invoker"]=y,f["browser.script.invoker_type"]=g,w&&(f["code.filepath"]=w),E&&(f["code.function"]=E),_!==-1&&(f["browser.script.source_char_position"]=_),lr(n,i,i+d,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function SC(){uo("event",({entries:e})=>{const t=vt();if(t){for(const n of e)if(n.name==="click"){const s=ot(Bt+n.startTime),i=ot(n.duration),a={name:sr(n.target),op:`ui.interaction.${n.name}`,startTime:s,attributes:{[gt]:"auto.ui.browser.metrics"}},c=Qm(n.target);c&&(a.attributes["ui.component_name"]=c),lr(t,s,s+i,a)}}})}function wC(){return Od(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.cls={value:e.value,unit:""},Si=t)},!0)}function _C(){return My(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.lcp={value:e.value,unit:"millisecond"},Gt=t)},!0)}function EC(){return Ly(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ot(Bt),s=ot(t.startTime);It.fid={value:e.value,unit:"millisecond"},It["mark.fid"]={value:n+s,unit:"second"}})}function xC(){return sC(({metric:e})=>{e.entries[e.entries.length-1]&&(It.ttfb={value:e.value,unit:"millisecond"})})}function kC(e,t){const n=Nd();if(!n||!n.getEntries||!Bt)return;const s=ot(Bt),i=n.getEntries(),{op:a,start_timestamp:c}=Be(e);if(i.slice(Fy).forEach(d=>{const f=ot(d.startTime),h=ot(Math.max(0,d.duration));if(!(a==="navigation"&&c&&s+f<c))switch(d.entryType){case"navigation":{bC(e,d,s);break}case"mark":case"paint":case"measure":{TC(e,d,f,h,s);const y=il(),g=d.startTime<y.firstHiddenTime;d.name==="first-paint"&&g&&(It.fp={value:d.startTime,unit:"millisecond"}),d.name==="first-contentful-paint"&&g&&(It.fcp={value:d.startTime,unit:"millisecond"});break}case"resource":{RC(e,d,d.name,f,h,s);break}}}),Fy=Math.max(i.length-1,0),AC(e),a==="pageload"){PC(It);const d=It["mark.fid"];d&&It.fid&&(lr(e,d.value,d.value+ot(It.fid.value),{name:"first input delay",op:"ui.action",attributes:{[gt]:"auto.ui.browser.metrics"}}),delete It["mark.fid"]),(!("fcp"in It)||!t.recordClsOnPageloadSpan)&&delete It.cls,Object.entries(It).forEach(([f,h])=>{PT(f,h.value,h.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",hi()),OC(e)}Gt=void 0,Si=void 0,It={}}function TC(e,t,n,s,i){const a=pi(!1),c=ot(a?a.requestStart:0),d=i+Math.max(n,c),f=i+n,h=f+s,y={[gt]:"auto.resource.browser.metrics"};return d!==f&&(y["sentry.browser.measure_happened_before_request"]=!0,y["sentry.browser.measure_start_time"]=d),lr(e,d,h,{name:t.name,op:t.entryType,attributes:y}),d}function bC(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(s=>{cl(e,t,s,n)}),cl(e,t,"secureConnection",n,"TLS/SSL"),cl(e,t,"fetch",n,"cache"),cl(e,t,"domainLookup",n,"DNS"),CC(e,t,n)}function cl(e,t,n,s,i=n){const a=IC(n),c=t[a],d=t[`${n}Start`];!d||!c||lr(e,s+ot(d),s+ot(c),{op:`browser.${i}`,name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}})}function IC(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function CC(e,t,n){const s=n+ot(t.requestStart),i=n+ot(t.responseEnd),a=n+ot(t.responseStart);t.responseEnd&&(lr(e,s,i,{op:"browser.request",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}),lr(e,a,i,{op:"browser.response",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}))}function RC(e,t,n,s,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=ws(n),d={[gt]:"auto.resource.browser.metrics"};Md(d,t,"transferSize","http.response_transfer_size"),Md(d,t,"encodedBodySize","http.response_content_length"),Md(d,t,"decodedBodySize","http.decoded_response_content_length");const f=t.deliveryType;f!=null&&(d["http.response_delivery_type"]=f);const h=t.renderBlockingStatus;h&&(d["resource.render_blocking_status"]=h),c.protocol&&(d["url.scheme"]=c.protocol.split(":").pop()),c.host&&(d["server.address"]=c.host),d["url.same_origin"]=n.includes(fe.location.origin);const y=a+s,g=y+i;lr(e,y,g,{name:n.replace(fe.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function AC(e){const t=fe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Pd(n.rtt)&&(It["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Pd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Pd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function OC(e){Gt&&(Gt.element&&e.setAttribute("lcp.element",sr(Gt.element)),Gt.id&&e.setAttribute("lcp.id",Gt.id),Gt.url&&e.setAttribute("lcp.url",Gt.url.trim().slice(0,200)),Gt.loadTime!=null&&e.setAttribute("lcp.loadTime",Gt.loadTime),Gt.renderTime!=null&&e.setAttribute("lcp.renderTime",Gt.renderTime),e.setAttribute("lcp.size",Gt.size)),Si&&Si.sources&&Si.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,sr(t.node)))}function Md(e,t,n,s){const i=t[n];i!=null&&i<mC&&(e[s]=i)}function PC(e){const t=pi(!1);if(!t)return;const{responseStart:n,requestStart:s}=t;s<=n&&(e["ttfb.requestTime"]={value:n-s,unit:"millisecond"})}const NC=1e3;let zy,Ld,jd;function Uy(e){const t="dom";br(t,e),Ir(t,MC)}function MC(){if(!fe.document)return;const e=pn.bind(null,"dom"),t=Hy(e,!0);fe.document.addEventListener("click",t,!1),fe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=fe[n],a=i&&i.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Vt(a,"addEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=y[d]=y[d]||{refCount:0};if(!g.handler){const w=Hy(e);g.handler=w,c.call(this,d,w,h)}g.refCount++}catch{}return c.call(this,d,f,h)}}),Vt(a,"removeEventListener",function(c){return function(d,f,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},g=y[d];g&&(g.refCount--,g.refCount<=0&&(c.call(this,d,g.handler,h),g.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,f,h)}}))})}function LC(e){if(e.type!==Ld)return!1;try{if(!e.target||e.target._sentryId!==jd)return!1}catch{}return!0}function jC(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Hy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const s=DC(n);if(jC(n.type,s))return;hn(n,"_sentryCaptured",!0),s&&!s._sentryId&&hn(s,"_sentryId",sn());const i=n.type==="keypress"?"input":n.type;LC(n)||(e({event:n,name:i,global:t}),Ld=n.type,jd=s?s._sentryId:void 0),clearTimeout(zy),zy=fe.setTimeout(()=>{jd=void 0,Ld=void 0},NC)}}function DC(e){try{return e.target}catch{return null}}let ul;function dl(e){const t="history";br(t,e),Ir(t,$C)}function $C(){if(!mI())return;const e=fe.onpopstate;fe.onpopstate=function(...n){const s=fe.location.href,i=ul;if(ul=s,pn("history",{from:i,to:s}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...s){const i=s.length>2?s[2]:void 0;if(i){const a=ul,c=String(i);ul=c,pn("history",{from:a,to:c})}return n.apply(this,s)}}Vt(fe.history,"pushState",t),Vt(fe.history,"replaceState",t)}const fl={};function Wy(e){const t=fl[e];if(t)return t;let n=fe[e];if(yd(n))return fl[e]=n.bind(fe);const s=fe.document;if(s&&typeof s.createElement=="function")try{const i=s.createElement("iframe");i.hidden=!0,s.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(n=a[e]),s.head.removeChild(i)}catch(i){Td&&X.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(fl[e]=n.bind(fe))}function qy(e){fl[e]=void 0}function po(...e){return Wy("setTimeout")(...e)}const Es="__sentry_xhr_v3__";function Vy(e){const t="xhr";br(t,e),Ir(t,BC)}function BC(){if(!fe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,s){const i=new Error,a=$t()*1e3,c=nr(s[0])?s[0].toUpperCase():void 0,d=FC(s[1]);if(!c||!d)return t.apply(n,s);n[Es]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const h=n[Es];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const y={endTimestamp:$t()*1e3,startTimestamp:a,xhr:n,virtualError:i};pn("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,y,g){return f(),h.apply(y,g)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,y,g){const[w,E]=g,_=y[Es];return _&&nr(w)&&nr(E)&&(_.request_headers[w.toLowerCase()]=E),h.apply(y,g)}}),t.apply(n,s)}}),e.send=new Proxy(e.send,{apply(t,n,s){const i=n[Es];if(!i)return t.apply(n,s);s[0]!==void 0&&(i.body=s[0]);const a={startTimestamp:$t()*1e3,xhr:n};return pn("xhr",a),t.apply(n,s)}})}function FC(e){if(nr(e))return e;try{return e.toString()}catch{}}const Dd=[],pl=new Map;function zC(){if(Nd()&&Bt){const t=UC();return()=>{t()}}return()=>{}}const Gy={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function UC(){return jy(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(_=>_.duration===e.value&&Gy[_.name]);if(!t)return;const{interactionId:n}=t,s=Gy[t.name],i=ot(Bt+t.startTime),a=ot(e.value),c=vt(),d=c?bt(c):void 0,h=(n!=null?pl.get(n):void 0)||d,y=h?Be(h).description:qe().getScopeData().transactionName,g=sr(t.target),w=ut({[gt]:"auto.http.browser.inp",[hs]:`ui.interaction.${s}`,[od]:t.duration}),E=By({name:g,transaction:y,attributes:w,startTime:i});E&&(E.addEvent("inp",{[Va]:"millisecond",[Ga]:e.value}),E.end(i+a))})}function HC(e){const t=({entries:n})=>{const s=vt(),i=s&&bt(s);n.forEach(a=>{if(!dC(a)||!i)return;const c=a.interactionId;if(c!=null&&!pl.has(c)){if(Dd.length>10){const d=Dd.shift();pl.delete(d)}Dd.push(c),pl.set(c,i)}})};uo("event",t),uo("first-input",t)}function WC(e,t=Wy("fetch")){let n=0,s=0;function i(a){const c=a.body.length;n+=c,s++;const d={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&s<15,...e.fetchOptions};if(!t)return qy("fetch"),Ha("No fetch implementation available");try{return t(e.url,d).then(f=>(n-=c,s--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return qy("fetch"),n-=c,s--,Ha(f)}}return kb(e,i)}const qC=30,VC=50;function $d(e,t,n,s){const i={filename:e,function:t==="<anonymous>"?ds:t,in_app:!0};return n!==void 0&&(i.lineno=n),s!==void 0&&(i.colno=s),i}const GC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,YC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,KC=/\((\S*)(?::(\d+))(?::(\d+))\)/,QC=[qC,e=>{const t=GC.exec(e);if(t){const[,s,i,a]=t;return $d(s,ds,+i,+a)}const n=YC.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=KC.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[i,a]=Yy(n[1]||ds,n[2]);return $d(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],XC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,JC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ZC=Fm(...[QC,[VC,e=>{const t=XC.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=JC.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let s=t[3],i=t[1]||ds;return[i,s]=Yy(i,s),$d(s,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Yy=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return n||s?[e.indexOf("@")!==-1?e.split("@")[0]:ds,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},hl=1024,e2="Breadcrumbs",t2=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:e2,setup(n){t.console&&Gb(s2(n)),t.dom&&Uy(r2(n,t.dom)),t.xhr&&Vy(o2(n)),t.fetch&&wy(i2(n)),t.history&&dl(a2(n)),t.sentry&&n.on("beforeSendEvent",n2(n))}}};function n2(e){return function(n){Ae()===e&&Nr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Rr(n)},{event:n})}}function r2(e,t){return function(s){if(Ae()!==e)return;let i,a,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>hl&&(Hn&&X.warn(`\`dom.maxStringLength\` cannot exceed ${hl}, but a value of ${d} was configured. Sentry will use ${hl} instead.`),d=hl),typeof c=="string"&&(c=[c]);try{const h=s.event,y=l2(h)?h.target:h;i=sr(y,{keyAttrs:c,maxStringLength:d}),a=Qm(y)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${s.name}`,message:i};a&&(f.data={"ui.component_name":a}),Nr(f,{event:s.event,name:s.name,global:s.global})}}function s2(e){return function(n){if(Ae()!==e)return;const s={category:"console",data:{arguments:n.args,logger:"console"},level:hy(n.level),message:Xm(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)s.message=`Assertion failed: ${Xm(n.args.slice(1)," ")||"console.assert"}`,s.data.arguments=n.args.slice(1);else return;Nr(s,{input:n.args,level:n.level})}}function o2(e){return function(n){if(Ae()!==e)return;const{startTimestamp:s,endTimestamp:i}=n,a=n.xhr[Es];if(!s||!i||!a)return;const{method:c,url:d,status_code:f,body:h}=a,y={method:c,url:d,status_code:f},g={xhr:n.xhr,input:h,startTimestamp:s,endTimestamp:i},w=vy(f);Nr({category:"xhr",data:y,type:"http",level:w},g)}}function i2(e){return function(n){if(Ae()!==e)return;const{startTimestamp:s,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,c={data:n.error,input:n.args,startTimestamp:s,endTimestamp:i};Nr({category:"fetch",data:a,level:"error",type:"http"},c)}else{const a=n.response,c={...n.fetchData,status_code:a&&a.status},d={input:n.args,response:a,startTimestamp:s,endTimestamp:i},f=vy(c.status_code);Nr({category:"fetch",data:c,type:"http",level:f},d)}}}function a2(e){return function(n){if(Ae()!==e)return;let s=n.from,i=n.to;const a=ws(we.location.href);let c=s?ws(s):void 0;const d=ws(i);(!c||!c.path)&&(c=a),a.protocol===d.protocol&&a.host===d.host&&(i=d.relative),a.protocol===c.protocol&&a.host===c.host&&(s=c.relative),Nr({category:"navigation",data:{from:s,to:i}})}}function l2(e){return!!e&&!!e.target}const c2=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],u2="BrowserApiErrors",d2=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:u2,setupOnce(){t.setTimeout&&Vt(we,"setTimeout",Ky),t.setInterval&&Vt(we,"setInterval",Ky),t.requestAnimationFrame&&Vt(we,"requestAnimationFrame",f2),t.XMLHttpRequest&&"XMLHttpRequest"in we&&Vt(XMLHttpRequest.prototype,"send",p2);const n=t.eventTarget;n&&(Array.isArray(n)?n:c2).forEach(h2)}}};function Ky(e){return function(...t){const n=t[0];return t[0]=io(n,{mechanism:{data:{function:tr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function f2(e){return function(t){return e.apply(this,[io(t,{mechanism:{data:{function:"requestAnimationFrame",handler:tr(e)},handled:!1,type:"instrument"}})])}}function p2(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Vt(n,i,function(a){const c={mechanism:{data:{function:i,handler:tr(a)},handled:!1,type:"instrument"}},d=Xu(a);return d&&(c.mechanism.data.handler=tr(d)),io(a,c)})}),e.apply(this,t)}}function h2(e){const n=we[e],s=n&&n.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(Vt(s,"addEventListener",function(i){return function(a,c,d){try{m2(c)&&(c.handleEvent=io(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:tr(c),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[a,io(c,{mechanism:{data:{function:"addEventListener",handler:tr(c),target:e},handled:!1,type:"instrument"}}),d])}}),Vt(s,"removeEventListener",function(i){return function(a,c,d){try{const f=c.__sentry_wrapped__;f&&i.call(this,a,f,d)}catch{}return i.call(this,a,c,d)}}))}function m2(e){return typeof e.handleEvent=="function"}const g2=()=>({name:"BrowserSession",setupOnce(){if(typeof we.document>"u"){Hn&&X.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Yg({ignoreDuration:!0}),Xg(),dl(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yg({ignoreDuration:!0}),Xg())})}}),y2="GlobalHandlers",v2=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:y2,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(S2(n),Qy("onerror")),t.onunhandledrejection&&(w2(n),Qy("onunhandledrejection"))}}};function S2(e){Hm(t=>{const{stackParser:n,attachStacktrace:s}=Xy();if(Ae()!==e||ky())return;const{msg:i,url:a,line:c,column:d,error:f}=t,h=x2(xd(n,f||i,void 0,s,!1),a,c,d);h.level="error",Vg(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})})}function w2(e){Wm(t=>{const{stackParser:n,attachStacktrace:s}=Xy();if(Ae()!==e||ky())return;const i=_2(t),a=Qu(i)?E2(i):xd(n,i,void 0,s,!0);a.level="error",Vg(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _2(e){if(Qu(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function E2(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function x2(e,t,n,s){const i=e.exception=e.exception||{},a=i.values=i.values||[],c=a[0]=a[0]||{},d=c.stacktrace=c.stacktrace||{},f=d.frames=d.frames||[],h=s,y=n,g=nr(t)&&t.length>0?t:Km();return f.length===0&&f.push({colno:h,filename:g,function:ds,in_app:!0,lineno:y}),e}function Qy(e){Hn&&X.log(`Global Handler attached: ${e}`)}function Xy(){const e=Ae();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const k2=()=>({name:"HttpContext",preprocessEvent(e){if(!we.navigator&&!we.location&&!we.document)return;const t=e.request&&e.request.url||we.location&&we.location.href,{referrer:n}=we.document||{},{userAgent:s}=we.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...s&&{"User-Agent":s}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),T2="cause",b2=5,I2="LinkedErrors",C2=(e={})=>{const t=e.limit||b2,n=e.key||T2;return{name:I2,preprocessEvent(s,i,a){const c=a.getOptions();qb(wd,c.stackParser,c.maxValueLength,n,t,s,i)}}};function R2(e){const t=[Mb(),Ob(),d2(),t2(),v2(),C2(),Qb(),k2()];return e.autoSessionTracking!==!1&&t.push(g2()),t}function A2(e={}){const t={defaultIntegrations:R2(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:we.SENTRY_RELEASE&&we.SENTRY_RELEASE.id?we.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function O2(){const e=typeof we.window<"u"&&we;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],s=n&&n.runtime&&n.runtime.id,i=we.location&&we.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!s&&we===we.top&&a.some(f=>i.startsWith(`${f}//`)),d=typeof e.nw<"u";return!!s&&!c&&!d}function P2(e={}){const t=A2(e);if(!t.skipBrowserExtensionCheck&&O2()){Tr(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Hn&&(Sy()||X.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:gk(t.stackParser||ZC),integrations:db(t),transport:t.transport||WC};return yb(OI,n)}const Ve=Ne,Bd="sentryReplaySession",N2="replay_event",Fd="Unable to send Replay",M2=3e5,L2=9e5,j2=5e3,D2=5500,$2=6e4,B2=5e3,F2=3,Jy=15e4,ml=5e3,z2=3e3,U2=300,zd=2e7,H2=4999,W2=15e3,Zy=36e5;function Ud(e,t){return e??t()}function wi(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}var dt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(dt||(dt={}));function q2(e){return e.nodeType===e.ELEMENT_NODE}function _i(e){const t=wi([e,"optionalAccess",n=>n.host]);return wi([t,"optionalAccess",n=>n.shadowRoot])===e}function Ei(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function V2(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function G2(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function gl(e){try{const t=e.rules||e.cssRules;return t?V2(Array.from(t,e0).join("")):null}catch{return null}}function Y2(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style,i=s[n],a=s.getPropertyPriority(i);t+=`${i}:${s.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function e0(e){let t;if(Q2(e))try{t=gl(e.styleSheet)||G2(e)}catch{}else if(X2(e)){let n=e.cssText;const s=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=Y2(e)),s&&(n=K2(n)),s||i)return n}return t||e.cssText}function K2(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Q2(e){return"styleSheet"in e}function X2(e){return"selectorText"in e}class t0{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=wi([this,"access",s=>s.getMeta,"call",s=>s(t),"optionalAccess",s=>s.id]);return Ud(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const s=n.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,n)}replace(t,n){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function J2(){return new t0}function yl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function xi({isMasked:e,element:t,value:n,maskInputFn:s}){let i=n||"";return e?(s&&(i=s(i,t)),"*".repeat(i.length)):i}function ho(e){return e.toLowerCase()}function Hd(e){return e.toUpperCase()}const n0="__rrweb_original__";function Z2(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let s=0;s<e.width;s+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,c=n0 in a?a[n0]:a;if(new Uint32Array(c.call(t,s,i,Math.min(n,e.width-s),Math.min(n,e.height-i)).data.buffer).some(f=>f!==0))return!1}return!0}function Wd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ho(t):null}function vl(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function r0(e,t){let n;try{n=new URL(e,Ud(t,()=>window.location.href))}catch{return null}const s=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(s);return Ud(wi([i,"optionalAccess",a=>a[1]]),()=>null)}const s0={};function o0(e){const t=s0[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return s0[e]=s.bind(window)}function qd(...e){return o0("setTimeout")(...e)}function i0(...e){return o0("clearTimeout")(...e)}function a0(e){try{return e.contentDocument}catch{}}let eR=1;const tR=new RegExp("[^a-z0-9-_:]"),ki=-2;function Vd(){return eR++}function nR(e){if(e instanceof HTMLFormElement)return"form";const t=ho(e.tagName);return tR.test(t)?"div":t}function rR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let mo,l0;const sR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oR=/^(?:[a-z+]+:)?\/\//i,iR=/^www\..*/i,aR=/^(data:)([^,]*),(.*)/i;function Sl(e,t){return(e||"").replace(sR,(n,s,i,a,c,d)=>{const f=i||c||d,h=s||a||"";if(!f)return n;if(oR.test(f)||iR.test(f))return`url(${h}${f}${h})`;if(aR.test(f))return`url(${h}${f}${h})`;if(f[0]==="/")return`url(${h}${rR(t)+f}${h})`;const y=t.split("/"),g=f.split("/");y.pop();for(const w of g)w!=="."&&(w===".."?y.pop():y.push(w));return`url(${h}${y.join("/")}${h})`})}const lR=/^[^ \t\n\r\u000c]+/,cR=/^[, \t\n\r\u000c]+/;function uR(e,t){if(t.trim()==="")return t;let n=0;function s(a){let c;const d=a.exec(t.substring(n));return d?(c=d[0],n+=c.length,c):""}const i=[];for(;s(cR),!(n>=t.length);){let a=s(lR);if(a.slice(-1)===",")a=go(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=go(e,a);let d=!1;for(;;){const f=t.charAt(n);if(f===""){i.push((a+c).trim());break}else if(d)f===")"&&(d=!1);else if(f===","){n+=1,i.push((a+c).trim());break}else f==="("&&(d=!0);c+=f,n+=1}}}return i.join(", ")}const c0=new WeakMap;function go(e,t){return!t||t.trim()===""?t:wl(e,t)}function dR(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function wl(e,t){let n=c0.get(e);if(n||(n=e.createElement("a"),c0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function u0(e,t,n,s,i,a){return s&&(n==="src"||n==="href"&&!(t==="use"&&s[0]==="#")||n==="xlink:href"&&s[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?go(e,s):n==="srcset"?uR(e,s):n==="style"?Sl(s,wl(e)):t==="object"&&n==="data"?go(e,s):typeof a=="function"?a(n,s,i):s)}function d0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function fR(e,t,n,s){try{if(s&&e.matches(s))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function pR(e,t){for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!1}function xs(e,t,n=1/0,s=0){return!e||e.nodeType!==e.ELEMENT_NODE||s>n?-1:t(e)?s:xs(e.parentNode,t,n,s+1)}function yo(e,t){return n=>{const s=n;if(s===null)return!1;try{if(e){if(typeof e=="string"){if(s.matches(`.${e}`))return!0}else if(pR(s,e))return!0}return!!(t&&s.matches(t))}catch{return!1}}}function vo(e,t,n,s,i,a){try{const c=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(c===null)return!1;if(c.tagName==="INPUT"){const h=c.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(h))return!0}let d=-1,f=-1;if(a){if(f=xs(c,yo(s,i)),f<0)return!0;d=xs(c,yo(t,n),f>=0?f:1/0)}else{if(d=xs(c,yo(t,n)),d<0)return!1;f=xs(c,yo(s,i),d>=0?d:1/0)}return d>=0?f>=0?d<=f:!0:f>=0?!1:!!a}catch{}return!!a}function hR(e,t,n){const s=e.contentWindow;if(!s)return;let i=!1,a;try{a=s.document.readyState}catch{return}if(a!=="complete"){const d=qd(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{i0(d),i=!0,t()});return}const c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return qd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function mR(e,t,n){let s=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=qd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{i0(a),s=!0,t()})}function gR(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskAttributeFn:f,maskTextClass:h,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:w,inlineStylesheet:E,maskInputOptions:_={},maskTextFn:x,maskInputFn:k,dataURLOptions:O={},inlineImages:R,recordCanvas:$,keepIframeSrcFn:H,newlyAddedElement:z=!1}=t,M=yR(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:dt.Document,childNodes:[],compatMode:e.compatMode}:{type:dt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:dt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return SR(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:c,inlineStylesheet:E,maskAttributeFn:f,maskInputOptions:_,maskInputFn:k,dataURLOptions:O,inlineImages:R,recordCanvas:$,keepIframeSrcFn:H,newlyAddedElement:z,rootId:M,maskAllText:d,maskTextClass:h,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:w});case e.TEXT_NODE:return vR(e,{doc:n,maskAllText:d,maskTextClass:h,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:w,maskTextFn:x,maskInputOptions:_,maskInputFn:k,rootId:M});case e.CDATA_SECTION_NODE:return{type:dt.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:dt.Comment,textContent:e.textContent||"",rootId:M};default:return!1}}function yR(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function vR(e,t){const{maskAllText:n,maskTextClass:s,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:c,maskTextFn:d,maskInputOptions:f,maskInputFn:h,rootId:y}=t,g=e.parentNode&&e.parentNode.tagName;let w=e.textContent;const E=g==="STYLE"?!0:void 0,_=g==="SCRIPT"?!0:void 0,x=g==="TEXTAREA"?!0:void 0;if(E&&w){try{e.nextSibling||e.previousSibling||wi([e,"access",O=>O.parentNode,"access",O=>O.sheet,"optionalAccess",O=>O.cssRules])&&(w=gl(e.parentNode.sheet))}catch(O){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${O}`,e)}w=Sl(w,wl(t.doc))}_&&(w="SCRIPT_PLACEHOLDER");const k=vo(e,s,a,i,c,n);if(!E&&!_&&!x&&w&&k&&(w=d?d(w,e.parentElement):w.replace(/[\S]/g,"*")),x&&w&&(f.textarea||k)&&(w=h?h(w,e.parentNode):w.replace(/[\S]/g,"*")),g==="OPTION"&&w){const O=yl({type:null,tagName:g,maskInputOptions:f});w=xi({isMasked:vo(e,s,a,i,c,O),element:e,value:w,maskInputFn:h})}return{type:dt.Text,textContent:w||"",isStyle:E,rootId:y}}function SR(e,t){const{doc:n,blockClass:s,blockSelector:i,unblockSelector:a,inlineStylesheet:c,maskInputOptions:d={},maskAttributeFn:f,maskInputFn:h,dataURLOptions:y={},inlineImages:g,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:_=!1,rootId:x,maskAllText:k,maskTextClass:O,unmaskTextClass:R,maskTextSelector:$,unmaskTextSelector:H}=t,z=fR(e,s,i,a),M=nR(e);let L={};const U=e.attributes.length;for(let K=0;K<U;K++){const oe=e.attributes[K];oe.name&&!d0(M,oe.name,oe.value)&&(L[oe.name]=u0(n,M,ho(oe.name),oe.value,e,f))}if(M==="link"&&c){const K=Array.from(n.styleSheets).find(ae=>ae.href===e.href);let oe=null;K&&(oe=gl(K)),oe&&(L.rel=null,L.href=null,L.crossorigin=null,L._cssText=Sl(oe,K.href))}if(M==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const K=gl(e.sheet);K&&(L._cssText=Sl(K,wl(n)))}if(M==="input"||M==="textarea"||M==="select"||M==="option"){const K=e,oe=Wd(K),ae=vl(K,Hd(M),oe),me=K.checked;if(oe!=="submit"&&oe!=="button"&&ae){const Te=vo(K,O,$,R,H,yl({type:oe,tagName:Hd(M),maskInputOptions:d}));L.value=xi({isMasked:Te,element:K,value:ae,maskInputFn:h})}me&&(L.checked=me)}if(M==="option"&&(e.selected&&!d.select?L.selected=!0:delete L.selected),M==="canvas"&&w){if(e.__context==="2d")Z2(e)||(L.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){const K=e.toDataURL(y.type,y.quality),oe=n.createElement("canvas");oe.width=e.width,oe.height=e.height;const ae=oe.toDataURL(y.type,y.quality);K!==ae&&(L.rr_dataURL=K)}}if(M==="img"&&g){mo||(mo=n.createElement("canvas"),l0=mo.getContext("2d"));const K=e,oe=K.currentSrc||K.getAttribute("src")||"<unknown-src>",ae=K.crossOrigin,me=()=>{K.removeEventListener("load",me);try{mo.width=K.naturalWidth,mo.height=K.naturalHeight,l0.drawImage(K,0,0),L.rr_dataURL=mo.toDataURL(y.type,y.quality)}catch(Te){if(K.crossOrigin!=="anonymous"){K.crossOrigin="anonymous",K.complete&&K.naturalWidth!==0?me():K.addEventListener("load",me);return}else console.warn(`Cannot inline img src=${oe}! Error: ${Te}`)}K.crossOrigin==="anonymous"&&(ae?L.crossOrigin=ae:K.removeAttribute("crossorigin"))};K.complete&&K.naturalWidth!==0?me():K.addEventListener("load",me)}if((M==="audio"||M==="video")&&(L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(L.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(L.rr_scrollTop=e.scrollTop)),z){const{width:K,height:oe}=e.getBoundingClientRect();L={class:L.class,rr_width:`${K}px`,rr_height:`${oe}px`}}M==="iframe"&&!E(L.src)&&(!z&&!a0(e)&&(L.rr_src=L.src),delete L.src);let te;try{customElements.get(M)&&(te=!0)}catch{}return{type:dt.Element,tagName:M,attributes:L,childNodes:[],isSVG:dR(e)||void 0,needBlock:z,rootId:x,isCustom:te}}function Ge(e){return e==null?"":e.toLowerCase()}function wR(e,t){if(t.comment&&e.type===dt.Comment)return!0;if(e.type===dt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&r0(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function So(e,t){const{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:y,unmaskTextSelector:g,skipChild:w=!1,inlineStylesheet:E=!0,maskInputOptions:_={},maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOMOptions:R,dataURLOptions:$={},inlineImages:H=!1,recordCanvas:z=!1,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U=5e3,onStylesheetLoad:te,stylesheetLoadTimeout:K=5e3,keepIframeSrcFn:oe=()=>!1,newlyAddedElement:ae=!1}=t;let{preserveWhiteSpace:me=!0}=t;const Te=gR(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:y,unmaskTextSelector:g,inlineStylesheet:E,maskInputOptions:_,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,dataURLOptions:$,inlineImages:H,recordCanvas:z,keepIframeSrcFn:oe,newlyAddedElement:ae});if(!Te)return console.warn(e,"not serialized"),null;let ze;s.hasNode(e)?ze=s.getId(e):wR(Te,R)||!me&&Te.type===dt.Text&&!Te.isStyle&&!Te.textContent.replace(/^\s+|\s+$/gm,"").length?ze=ki:ze=Vd();const J=Object.assign(Te,{id:ze});if(s.add(e,J),ze===ki)return null;M&&M(e);let ve=!w;if(J.type===dt.Element){ve=ve&&!J.needBlock,delete J.needBlock;const W=e.shadowRoot;W&&Ei(W)&&(J.isShadowHost=!0)}if((J.type===dt.Document||J.type===dt.Element)&&ve){R.headWhitespace&&J.type===dt.Element&&J.tagName==="head"&&(me=!1);const W={doc:n,mirror:s,blockClass:i,blockSelector:a,maskAllText:d,unblockSelector:c,maskTextClass:f,unmaskTextClass:h,maskTextSelector:y,unmaskTextSelector:g,skipChild:w,inlineStylesheet:E,maskInputOptions:_,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOMOptions:R,dataURLOptions:$,inlineImages:H,recordCanvas:z,preserveWhiteSpace:me,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe};for(const re of Array.from(e.childNodes)){const Z=So(re,W);Z&&J.childNodes.push(Z)}if(q2(e)&&e.shadowRoot)for(const re of Array.from(e.shadowRoot.childNodes)){const Z=So(re,W);Z&&(Ei(e.shadowRoot)&&(Z.isShadow=!0),J.childNodes.push(Z))}}return e.parentNode&&_i(e.parentNode)&&Ei(e.parentNode)&&(J.isShadow=!0),J.type===dt.Element&&J.tagName==="iframe"&&hR(e,()=>{const W=a0(e);if(W&&L){const re=So(W,{doc:W,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:y,unmaskTextSelector:g,skipChild:!1,inlineStylesheet:E,maskInputOptions:_,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOMOptions:R,dataURLOptions:$,inlineImages:H,recordCanvas:z,preserveWhiteSpace:me,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe});re&&L(e,re)}},U),J.type===dt.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&r0(J.attributes.href)==="css")&&mR(e,()=>{if(te){const W=So(e,{doc:n,mirror:s,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:y,unmaskTextSelector:g,skipChild:!1,inlineStylesheet:E,maskInputOptions:_,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOMOptions:R,dataURLOptions:$,inlineImages:H,recordCanvas:z,preserveWhiteSpace:me,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe});W&&te(e,W)}},K),J}function _R(e,t){const{mirror:n=new t0,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:h=null,unmaskTextSelector:y=null,inlineStylesheet:g=!0,inlineImages:w=!1,recordCanvas:E=!1,maskAllInputs:_=!1,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOM:R=!1,dataURLOptions:$,preserveWhiteSpace:H,onSerialize:z,onIframeLoad:M,iframeLoadTimeout:L,onStylesheetLoad:U,stylesheetLoadTimeout:te,keepIframeSrcFn:K=()=>!1}=t||{};return So(e,{doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:y,skipChild:!1,inlineStylesheet:g,maskInputOptions:_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:_===!1?{}:_,maskAttributeFn:x,maskTextFn:k,maskInputFn:O,slimDOMOptions:R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R,dataURLOptions:$,inlineImages:w,recordCanvas:E,preserveWhiteSpace:H,onSerialize:z,onIframeLoad:M,iframeLoadTimeout:L,onStylesheetLoad:U,stylesheetLoadTimeout:te,keepIframeSrcFn:K,newlyAddedElement:!1})}function Mr(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function Ft(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const wo=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let f0={map:{},getId(){return console.error(wo),-1},getNode(){return console.error(wo),null},removeNodeFromMap(){console.error(wo)},has(){return console.error(wo),!1},reset(){console.error(wo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(f0=new Proxy(f0,{get(e,t,n){return t==="map"&&console.error(wo),Reflect.get(e,t,n)}}));function Ti(e,t,n={}){let s=null,i=0;return function(...a){const c=Date.now();!i&&n.leading===!1&&(i=c);const d=t-(c-i),f=this;d<=0||d>t?(s&&(CR(s),s=null),i=c,e.apply(f,a)):!s&&n.trailing!==!1&&(s=El(()=>{i=n.leading===!1?0:Date.now(),s=null,e.apply(f,a)},d))}}function p0(e,t,n,s,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?n:{set(c){El(()=>{n.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>p0(e,t,a||{},!0)}function Gd(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],i=n(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}}let _l=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_l=()=>new Date().getTime());function h0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Mr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Mr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function m0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function g0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function y0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function on(e,t,n,s,i){if(!e)return!1;const a=y0(e);if(!a)return!1;const c=yo(t,n);if(!i){const h=s&&a.matches(s);return c(a)&&!h}const d=xs(a,c);let f=-1;return d<0?!1:(s&&(f=xs(a,yo(null,s))),d>-1&&f<0?!0:d<f)}function ER(e,t){return t.getId(e)!==-1}function Yd(e,t){return t.getId(e)===ki}function v0(e,t){if(_i(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?v0(e.parentNode,t):!0:!0}function Kd(e){return!!e.changedTouches}function xR(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function S0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function w0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qd(e){return!!Mr([e,"optionalAccess",t=>t.shadowRoot])}class kR{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return gI(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let s;return n===void 0?s=this.id++:s=n,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function _0(e){let t=null;return Mr([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function TR(e){let t=e,n;for(;n=_0(t);)t=n;return t}function bR(e){const t=e.ownerDocument;if(!t)return!1;const n=TR(e);return t.contains(n)}function E0(e){const t=e.ownerDocument;return t?t.contains(e)||bR(e):!1}const x0={};function Xd(e){const t=x0[e];if(t)return t;const n=window.document;let s=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(s=a[e]),n.head.removeChild(i)}catch{}return x0[e]=s.bind(window)}function IR(...e){return Xd("requestAnimationFrame")(...e)}function El(...e){return Xd("setTimeout")(...e)}function CR(...e){return Xd("clearTimeout")(...e)}var be=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(be||{}),ye=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ye||{}),zt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(zt||{}),cr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(cr||{}),k0;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(k0||(k0={}));var T0;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(T0||(T0={}));function Jd(e){try{return e.contentDocument}catch{}}function RR(e){try{return e.contentWindow}catch{}}function AR(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}function b0(e){return"__ln"in e}class OR{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let s=0;s<t;s++)n=AR([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&b0(t.previousSibling)){const s=t.previousSibling.__ln.next;n.next=s,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,s&&(s.previous=n)}else if(t.nextSibling&&b0(t.nextSibling)&&t.nextSibling.__ln.previous){const s=t.nextSibling.__ln.previous;n.previous=s,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,s&&(s.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const I0=(e,t)=>`${e}@${t}`;class PR{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,s=new OR,i=f=>{let h=f,y=ki;for(;y===ki;)h=h&&h.nextSibling,y=h&&this.mirror.getId(h);return y},a=f=>{if(!f.parentNode||!E0(f))return;const h=_i(f.parentNode)?this.mirror.getId(_0(f)):this.mirror.getId(f.parentNode),y=i(f);if(h===-1||y===-1)return s.addNode(f);const g=So(f,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:w=>{S0(w,this.mirror)&&!on(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(w),w0(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),Qd(f)&&this.shadowDomManager.addShadowRoot(f.shadowRoot,this.doc)},onIframeLoad:(w,E)=>{on(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(w,E),w.contentWindow&&this.canvasManager.addWindow(w.contentWindow),this.shadowDomManager.observeAttachShadow(w))},onStylesheetLoad:(w,E)=>{this.stylesheetManager.attachLinkElement(w,E)}});g&&(t.push({parentId:h,nextId:y,node:g}),n.add(g.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet)C0(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||a(f);for(const f of this.addedSet)!R0(this.droppedSet,f)&&!C0(this.removes,f,this.mirror)||R0(this.movedSet,f)?a(f):this.droppedSet.add(f);let c=null;for(;s.length;){let f=null;if(c){const h=this.mirror.getId(c.value.parentNode),y=i(c.value);h!==-1&&y!==-1&&(f=c)}if(!f){let h=s.tail;for(;h;){const y=h;if(h=h.previous,y){const g=this.mirror.getId(y.value.parentNode);if(i(y.value)===-1)continue;if(g!==-1){f=y;break}else{const E=y.value;if(E.parentNode&&E.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=E.parentNode.host;if(this.mirror.getId(_)!==-1){f=y;break}}}}}}if(!f){for(;s.head;)s.removeNode(s.head.value);break}c=f.previous,s.removeNode(f.value),a(f.value)}const d={texts:this.texts.map(f=>({id:this.mirror.getId(f.node),value:f.value})).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{const{attributes:h}=f;if(typeof h.style=="string"){const y=JSON.stringify(f.styleDiff),g=JSON.stringify(f._unchangedStyles);y.length<h.style.length&&(y+g).split("var(").length===h.style.split("var(").length&&(h.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:h}}).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(d))},this.processMutation=t=>{if(!Yd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:vo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,y0(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let s=t.attributeName,i=t.target.getAttribute(s);if(s==="value"){const c=Wd(n),d=n.tagName;i=vl(n,d,c);const f=yl({maskInputOptions:this.maskInputOptions,tagName:d,type:c}),h=vo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,f);i=xi({isMasked:h,element:n,value:i,maskInputFn:this.maskInputFn})}if(on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(i))if(!Jd(n))s="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),s==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!d0(n.tagName,s)&&(a.attributes[s]=u0(this.doc,ho(n.tagName),ho(s),i,n,this.maskAttributeFn),s==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(n.style)){const f=n.style.getPropertyValue(d),h=n.style.getPropertyPriority(d);f!==c.style.getPropertyValue(d)||h!==c.style.getPropertyPriority(d)?h===""?a.styleDiff[d]=f:a.styleDiff[d]=[f,h]:a._unchangedStyles[d]=[f,h]}for(const d of Array.from(c.style))n.style.getPropertyValue(d)===""&&(a.styleDiff[d]=!1)}break}case"childList":{if(on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const s=this.mirror.getId(n),i=_i(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);on(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Yd(n,this.mirror)||!ER(n,this.mirror)||(this.addedSet.has(n)?(Zd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&s===-1||v0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[I0(s,i)]?Zd(this.movedSet,n):this.removes.push({parentId:i,id:s,isShadow:_i(t.target)&&Ei(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Yd(t,this.mirror))return;this.movedSet.add(t);let s=null;n&&this.mirror.hasNode(n)&&(s=this.mirror.getId(n)),s&&s!==-1&&(this.movedMap[I0(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);on(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(s=>this.genAdds(s)),Qd(t)&&t.shadowRoot.childNodes.forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Zd(e,t){e.delete(t),t.childNodes.forEach(n=>Zd(e,n))}function C0(e,t,n){return e.length===0?!1:NR(e,t,n)}function NR(e,t,n){let s=t.parentNode;for(;s;){const i=n.getId(s);if(e.some(a=>a.id===i))return!0;s=s.parentNode}return!1}function R0(e,t){return e.size===0?!1:A0(e,t)}function A0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:A0(e,n):!1}let bi;function MR(e){bi=e}function LR(){bi=void 0}const Le=e=>bi?(...n)=>{try{return e(...n)}catch(s){if(bi&&bi(s)===!0)return()=>{};throw s}}:e;function In(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}const _o=[];function Ii(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function O0(e,t){const n=new PR;_o.push(n),n.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=In([window,"optionalAccess",c=>c.Zone,"optionalAccess",c=>c.__symbol__,"optionalCall",c=>c("MutationObserver")]);i&&window[i]&&(s=window[i]);const a=new s(Le(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function jR({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const f=Ti(Le(g=>{const w=Date.now()-d;e(c.map(E=>(E.timeOffset-=w,E)),g),c=[],d=null}),a),h=Le(Ti(Le(g=>{const w=Ii(g),{clientX:E,clientY:_}=Kd(g)?g.changedTouches[0]:g;d||(d=_l()),c.push({x:E,y:_,id:s.getId(w),timeOffset:_l()-d}),f(typeof DragEvent<"u"&&g instanceof DragEvent?ye.Drag:g instanceof MouseEvent?ye.MouseMove:ye.TouchMove)}),i,{trailing:!1})),y=[Ft("mousemove",h,n),Ft("touchmove",h,n),Ft("drag",h,n)];return Le(()=>{y.forEach(g=>g())})}function DR({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){if(c.mouseInteraction===!1)return()=>{};const d=c.mouseInteraction===!0||c.mouseInteraction===void 0?{}:c.mouseInteraction,f=[];let h=null;const y=g=>w=>{const E=Ii(w);if(on(E,s,i,a,!0))return;let _=null,x=g;if("pointerType"in w){switch(w.pointerType){case"mouse":_=cr.Mouse;break;case"touch":_=cr.Touch;break;case"pen":_=cr.Pen;break}_===cr.Touch?zt[g]===zt.MouseDown?x="TouchStart":zt[g]===zt.MouseUp&&(x="TouchEnd"):cr.Pen}else Kd(w)&&(_=cr.Touch);_!==null?(h=_,(x.startsWith("Touch")&&_===cr.Touch||x.startsWith("Mouse")&&_===cr.Mouse)&&(_=null)):zt[g]===zt.Click&&(_=h,h=null);const k=Kd(w)?w.changedTouches[0]:w;if(!k)return;const O=n.getId(E),{clientX:R,clientY:$}=k;Le(e)({type:zt[x],id:O,x:R,y:$,..._!==null&&{pointerType:_}})};return Object.keys(zt).filter(g=>Number.isNaN(Number(g))&&!g.endsWith("_Departed")&&d[g]!==!1).forEach(g=>{let w=ho(g);const E=y(g);if(window.PointerEvent)switch(zt[g]){case zt.MouseDown:case zt.MouseUp:w=w.replace("mouse","pointer");break;case zt.TouchStart:case zt.TouchEnd:return}f.push(Ft(w,E,t))}),Le(()=>{f.forEach(g=>g())})}function P0({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,sampling:c}){const d=Le(Ti(Le(f=>{const h=Ii(f);if(!h||on(h,s,i,a,!0))return;const y=n.getId(h);if(h===t&&t.defaultView){const g=h0(t.defaultView);e({id:y,x:g.left,y:g.top})}else e({id:y,x:h.scrollLeft,y:h.scrollTop})}),c.scroll||100));return Ft("scroll",d,t)}function $R({viewportResizeCb:e},{win:t}){let n=-1,s=-1;const i=Le(Ti(Le(()=>{const a=m0(),c=g0();(n!==a||s!==c)&&(e({width:Number(c),height:Number(a)}),n=a,s=c)}),200));return Ft("resize",i,t)}const BR=["INPUT","TEXTAREA","SELECT"],N0=new WeakMap;function FR({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,ignoreClass:c,ignoreSelector:d,maskInputOptions:f,maskInputFn:h,sampling:y,userTriggeredOnInput:g,maskTextClass:w,unmaskTextClass:E,maskTextSelector:_,unmaskTextSelector:x}){function k(L){let U=Ii(L);const te=L.isTrusted,K=U&&Hd(U.tagName);if(K==="OPTION"&&(U=U.parentElement),!U||!K||BR.indexOf(K)<0||on(U,s,i,a,!0))return;const oe=U;if(oe.classList.contains(c)||d&&oe.matches(d))return;const ae=Wd(U);let me=vl(oe,K,ae),Te=!1;const ze=yl({maskInputOptions:f,tagName:K,type:ae}),J=vo(U,w,_,E,x,ze);(ae==="radio"||ae==="checkbox")&&(Te=U.checked),me=xi({isMasked:J,element:U,value:me,maskInputFn:h}),O(U,g?{text:me,isChecked:Te,userTriggered:te}:{text:me,isChecked:Te});const ve=U.name;ae==="radio"&&ve&&Te&&t.querySelectorAll(`input[type="radio"][name="${ve}"]`).forEach(W=>{if(W!==U){const re=xi({isMasked:J,element:W,value:vl(W,K,ae),maskInputFn:h});O(W,g?{text:re,isChecked:!Te,userTriggered:!1}:{text:re,isChecked:!Te})}})}function O(L,U){const te=N0.get(L);if(!te||te.text!==U.text||te.isChecked!==U.isChecked){N0.set(L,U);const K=n.getId(L);Le(e)({...U,id:K})}}const $=(y.input==="last"?["change"]:["input","change"]).map(L=>Ft(L,Le(k),t)),H=t.defaultView;if(!H)return()=>{$.forEach(L=>L())};const z=H.Object.getOwnPropertyDescriptor(H.HTMLInputElement.prototype,"value"),M=[[H.HTMLInputElement.prototype,"value"],[H.HTMLInputElement.prototype,"checked"],[H.HTMLSelectElement.prototype,"value"],[H.HTMLTextAreaElement.prototype,"value"],[H.HTMLSelectElement.prototype,"selectedIndex"],[H.HTMLOptionElement.prototype,"selected"]];return z&&z.set&&$.push(...M.map(L=>p0(L[0],L[1],{set(){Le(k)({target:this,isTrusted:!1})}},!1,H))),Le(()=>{$.forEach(L=>L())})}function xl(e){const t=[];function n(s,i){if(kl("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||kl("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||kl("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||kl("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){const c=Array.from(s.parentRule.cssRules).indexOf(s);i.unshift(c)}else if(s.parentStyleSheet){const c=Array.from(s.parentStyleSheet.cssRules).indexOf(s);i.unshift(c)}return i}return n(e,t)}function Lr(e,t,n){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:s}):{}}function zR({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Le((y,g,w)=>{const[E,_]=w,{id:x,styleId:k}=Lr(g,t,n.styleMirror);return(x&&x!==-1||k&&k!==-1)&&e({id:x,styleId:k,adds:[{rule:E,index:_}]}),y.apply(g,w)})});const a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Le((y,g,w)=>{const[E]=w,{id:_,styleId:x}=Lr(g,t,n.styleMirror);return(_&&_!==-1||x&&x!==-1)&&e({id:_,styleId:x,removes:[{index:E}]}),y.apply(g,w)})});let c;s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:Le((y,g,w)=>{const[E]=w,{id:_,styleId:x}=Lr(g,t,n.styleMirror);return(_&&_!==-1||x&&x!==-1)&&e({id:_,styleId:x,replace:E}),y.apply(g,w)})}));let d;s.CSSStyleSheet.prototype.replaceSync&&(d=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:Le((y,g,w)=>{const[E]=w,{id:_,styleId:x}=Lr(g,t,n.styleMirror);return(_&&_!==-1||x&&x!==-1)&&e({id:_,styleId:x,replaceSync:E}),y.apply(g,w)})}));const f={};Tl("CSSGroupingRule")?f.CSSGroupingRule=s.CSSGroupingRule:(Tl("CSSMediaRule")&&(f.CSSMediaRule=s.CSSMediaRule),Tl("CSSConditionRule")&&(f.CSSConditionRule=s.CSSConditionRule),Tl("CSSSupportsRule")&&(f.CSSSupportsRule=s.CSSSupportsRule));const h={};return Object.entries(f).forEach(([y,g])=>{h[y]={insertRule:g.prototype.insertRule,deleteRule:g.prototype.deleteRule},g.prototype.insertRule=new Proxy(h[y].insertRule,{apply:Le((w,E,_)=>{const[x,k]=_,{id:O,styleId:R}=Lr(E.parentStyleSheet,t,n.styleMirror);return(O&&O!==-1||R&&R!==-1)&&e({id:O,styleId:R,adds:[{rule:x,index:[...xl(E),k||0]}]}),w.apply(E,_)})}),g.prototype.deleteRule=new Proxy(h[y].deleteRule,{apply:Le((w,E,_)=>{const[x]=_,{id:k,styleId:O}=Lr(E.parentStyleSheet,t,n.styleMirror);return(k&&k!==-1||O&&O!==-1)&&e({id:k,styleId:O,removes:[{index:[...xl(E),x]}]}),w.apply(E,_)})})}),Le(()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,c&&(s.CSSStyleSheet.prototype.replace=c),d&&(s.CSSStyleSheet.prototype.replaceSync=d),Object.entries(f).forEach(([y,g])=>{g.prototype.insertRule=h[y].insertRule,g.prototype.deleteRule=h[y].deleteRule})})}function M0({mirror:e,stylesheetManager:t},n){let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const i=n.nodeName==="#document"?In([n,"access",c=>c.defaultView,"optionalAccess",c=>c.Document]):In([n,"access",c=>c.ownerDocument,"optionalAccess",c=>c.defaultView,"optionalAccess",c=>c.ShadowRoot]),a=In([i,"optionalAccess",c=>c.prototype])?Object.getOwnPropertyDescriptor(In([i,"optionalAccess",c=>c.prototype]),"adoptedStyleSheets"):void 0;return s===null||s===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return In([a,"access",c=>c.get,"optionalAccess",c=>c.call,"call",c=>c(this)])},set(c){const d=In([a,"access",f=>f.set,"optionalAccess",f=>f.call,"call",f=>f(this,c)]);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return d}}),Le(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function UR({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Le((d,f,h)=>{const[y,g,w]=h;if(n.has(y))return a.apply(f,[y,g,w]);const{id:E,styleId:_}=Lr(In([f,"access",x=>x.parentRule,"optionalAccess",x=>x.parentStyleSheet]),t,s.styleMirror);return(E&&E!==-1||_&&_!==-1)&&e({id:E,styleId:_,set:{property:y,value:g,priority:w},index:xl(f.parentRule)}),d.apply(f,h)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Le((d,f,h)=>{const[y]=h;if(n.has(y))return c.apply(f,[y]);const{id:g,styleId:w}=Lr(In([f,"access",E=>E.parentRule,"optionalAccess",E=>E.parentStyleSheet]),t,s.styleMirror);return(g&&g!==-1||w&&w!==-1)&&e({id:g,styleId:w,remove:{property:y},index:xl(f.parentRule)}),d.apply(f,h)})}),Le(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function HR({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:s,mirror:i,sampling:a,doc:c}){const d=Le(h=>Ti(Le(y=>{const g=Ii(y);if(!g||on(g,t,n,s,!0))return;const{currentTime:w,volume:E,muted:_,playbackRate:x}=g;e({type:h,id:i.getId(g),currentTime:w,volume:E,muted:_,playbackRate:x})}),a.media||500)),f=[Ft("play",d(0),c),Ft("pause",d(1),c),Ft("seeked",d(2),c),Ft("volumechange",d(3),c),Ft("ratechange",d(4),c)];return Le(()=>{f.forEach(h=>h())})}function WR({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(f,h,y){const g=new a(f,h,y);return i.set(g,{family:f,buffer:typeof h!="string",descriptors:y,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),g};const c=Gd(t.fonts,"add",function(d){return function(f){return El(Le(()=>{const h=i.get(f);h&&(e(h),i.delete(f))}),0),d.apply(this,[f])}});return s.push(()=>{n.FontFace=a}),s.push(c),Le(()=>{s.forEach(d=>d())})}function qR(e){const{doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,selectionCb:c}=e;let d=!0;const f=Le(()=>{const h=t.getSelection();if(!h||d&&In([h,"optionalAccess",w=>w.isCollapsed]))return;d=h.isCollapsed||!1;const y=[],g=h.rangeCount||0;for(let w=0;w<g;w++){const E=h.getRangeAt(w),{startContainer:_,startOffset:x,endContainer:k,endOffset:O}=E;on(_,s,i,a,!0)||on(k,s,i,a,!0)||y.push({start:n.getId(_),startOffset:x,end:n.getId(k),endOffset:O})}c({ranges:y})});return f(),Ft("selectionchange",f)}function VR({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Gd(n.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch{}return i.apply(this,[a,c,d])}})}function GR(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;e.recordDOM&&(s=O0(e,e.doc));const i=jR(e),a=DR(e),c=P0(e),d=$R(e,{win:n}),f=FR(e),h=HR(e);let y=()=>{},g=()=>{},w=()=>{},E=()=>{};e.recordDOM&&(y=zR(e,{win:n}),g=M0(e,e.doc),w=UR(e,{win:n}),e.collectFonts&&(E=WR(e)));const _=qR(e),x=VR(e),k=[];for(const O of e.plugins)k.push(O.observer(O.callback,n,O.options));return Le(()=>{_o.forEach(O=>O.reset()),In([s,"optionalAccess",O=>O.disconnect,"call",O=>O()]),i(),a(),c(),d(),f(),h(),y(),g(),w(),E(),_(),x(),k.forEach(O=>O())})}function kl(e){return typeof window[e]<"u"}function Tl(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ef{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,s,i){const a=s||this.getIdToRemoteIdMap(t),c=i||this.getRemoteIdToIdMap(t);let d=a.get(n);return d||(d=this.generateIdFn(),a.set(n,d),c.set(d,n)),d}getIds(t,n){const s=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,s,i))}getRemoteId(t,n,s){const i=s||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,s))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function L0(e){let t,n=e[0],s=1;for(;s<e.length;){const i=e[s],a=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=a(n)):(i==="call"||i==="optionalCall")&&(n=a((...c)=>n.call(t,...c)),t=void 0)}return n}class YR{constructor(){this.crossOriginIframeMirror=new ef(Vd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class KR{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ef(Vd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ef(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),L0([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]);const s=Jd(t);s&&s.adoptedStyleSheets&&s.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(s.adoptedStyleSheets,this.mirror.getId(s))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:be.IncrementalSnapshot,data:{source:ye.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case be.Meta:case be.Load:case be.DomContentLoaded:return!1;case be.Plugin:return n;case be.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case be.IncrementalSnapshot:switch(n.data.source){case ye.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ye.Drag:case ye.TouchMove:case ye.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ye.ViewportResize:return!1;case ye.MediaInteraction:case ye.MouseInteraction:case ye.Scroll:case ye.CanvasMutation:case ye.Input:return this.replaceIds(n.data,t,["id"]),n;case ye.StyleSheetRule:case ye.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ye.Font:return n;case ye.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case ye.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),L0([n,"access",s=>s.data,"access",s=>s.styles,"optionalAccess",s=>s.forEach,"call",s=>s(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,s,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(s,n[a]):n[a]=t.getId(s,n[a]));return n}replaceIds(t,n,s){return this.replace(this.crossOriginIframeMirror,t,n,s)}replaceStyleIds(t,n,s){return this.replace(this.crossOriginIframeStyleMirror,t,n,s)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,n)})}patchRootIdOnNode(t,n){t.type!==dt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,n)})}}class QR{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class XR{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Ei(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const s=O0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(P0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),El(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(M0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Jd(t),s=RR(t);!n||!s||this.patchAttachShadow(s.Element,n)}patchAttachShadow(t,n){const s=this;this.restoreHandlers.push(Gd(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a);return this.shadowRoot&&E0(this)&&s.addShadowRoot(this.shadowRoot,n),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class j0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class JR{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new kR,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const s={id:n,styleIds:[]},i=[];for(const a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),i.push({styleId:c,rules:Array.from(a.rules||CSSRule,(d,f)=>({rule:e0(d),index:f}))})),s.styleIds.push(c)}i.length>0&&(s.styles=i),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class ZR{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const s=this.nodeMap.get(t);return s&&Array.from(s).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,IR(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let nt,bl;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=rl([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Cn=J2();function ur(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:f=null,maskAllText:h=!1,maskTextClass:y="rr-mask",unmaskTextClass:g=null,maskTextSelector:w=null,unmaskTextSelector:E=null,inlineStylesheet:_=!0,maskAllInputs:x,maskInputOptions:k,slimDOMOptions:O,maskAttributeFn:R,maskInputFn:$,maskTextFn:H,maxCanvasSize:z=null,packFn:M,sampling:L={},dataURLOptions:U={},mousemoveWait:te,recordDOM:K=!0,recordCanvas:oe=!1,recordCrossOriginIframes:ae=!1,recordAfter:me=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Te=!1,collectFonts:ze=!1,inlineImages:J=!1,plugins:ve,keepIframeSrcFn:W=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:Z,onMutation:A,getCanvasManager:q}=e;MR(Z);const Se=ae?window.parent===window:!0;let _e=!1;if(!Se)try{window.parent.document&&(_e=!1)}catch{_e=!0}if(Se&&!t)throw new Error("emit function is required");if(!Se&&!_e)return()=>{};te!==void 0&&L.mousemove===void 0&&(L.mousemove=te),Cn.reset();const Oe=x===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:k!==void 0?k:{},Pe=O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:O==="all",headMetaDescKeywords:O==="all"}:O||{};xR();let Ue,De=0;const We=Re=>{for(const _t of ve||[])_t.eventProcessor&&(Re=_t.eventProcessor(Re));return M&&!_e&&(Re=M(Re)),Re};nt=(Re,_t)=>{const Ce=Re;if(Ce.timestamp=_l(),rl([_o,"access",Ke=>Ke[0],"optionalAccess",Ke=>Ke.isFrozen,"call",Ke=>Ke()])&&Ce.type!==be.FullSnapshot&&!(Ce.type===be.IncrementalSnapshot&&Ce.data.source===ye.Mutation)&&_o.forEach(Ke=>Ke.unfreeze()),Se)rl([t,"optionalCall",Ke=>Ke(We(Ce),_t)]);else if(_e){const Ke={type:"rrweb",event:We(Ce),origin:window.location.origin,isCheckout:_t};window.parent.postMessage(Ke,"*")}if(Ce.type===be.FullSnapshot)Ue=Ce,De=0;else if(Ce.type===be.IncrementalSnapshot){if(Ce.data.source===ye.Mutation&&Ce.data.isAttachIframe)return;De++;const Ke=s&&De>=s,je=n&&Ue&&Ce.timestamp-Ue.timestamp>n;(Ke||je)&&Ms(!0)}};const wt=Re=>{nt({type:be.IncrementalSnapshot,data:{source:ye.Mutation,...Re}})},Os=Re=>nt({type:be.IncrementalSnapshot,data:{source:ye.Scroll,...Re}}),pc=Re=>nt({type:be.IncrementalSnapshot,data:{source:ye.CanvasMutation,...Re}}),Oo=Re=>nt({type:be.IncrementalSnapshot,data:{source:ye.AdoptedStyleSheet,...Re}}),On=new JR({mutationCb:wt,adoptedStyleSheetCb:Oo}),Yn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new YR:new KR({mirror:Cn,mutationCb:wt,stylesheetManager:On,recordCrossOriginIframes:ae,wrappedEmit:nt});for(const Re of ve||[])Re.getMirror&&Re.getMirror({nodeMirror:Cn,crossOriginIframeMirror:Yn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Yn.crossOriginIframeStyleMirror});const Po=new ZR,Ps=tA(q,{mirror:Cn,win:window,mutationCb:Re=>nt({type:be.IncrementalSnapshot,data:{source:ye.CanvasMutation,...Re}}),recordCanvas:oe,blockClass:i,blockSelector:a,unblockSelector:c,maxCanvasSize:z,sampling:L.canvas,dataURLOptions:U,errorHandler:Z}),Ns=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new QR:new XR({mutationCb:wt,scrollCb:Os,bypassOptions:{onMutation:A,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:y,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:_,maskInputOptions:Oe,dataURLOptions:U,maskAttributeFn:R,maskTextFn:H,maskInputFn:$,recordCanvas:oe,inlineImages:J,sampling:L,slimDOMOptions:Pe,iframeManager:Yn,stylesheetManager:On,canvasManager:Ps,keepIframeSrcFn:W,processedNodeManager:Po},mirror:Cn}),Ms=(Re=!1)=>{if(!K)return;nt({type:be.Meta,data:{href:window.location.href,width:g0(),height:m0()}},Re),On.reset(),Ns.init(),_o.forEach(Ce=>Ce.lock());const _t=_R(document,{mirror:Cn,blockClass:i,blockSelector:a,unblockSelector:c,maskAllText:h,maskTextClass:y,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:_,maskAllInputs:Oe,maskAttributeFn:R,maskInputFn:$,maskTextFn:H,slimDOM:Pe,dataURLOptions:U,recordCanvas:oe,inlineImages:J,onSerialize:Ce=>{S0(Ce,Cn)&&Yn.addIframe(Ce),w0(Ce,Cn)&&On.trackLinkElement(Ce),Qd(Ce)&&Ns.addShadowRoot(Ce.shadowRoot,document)},onIframeLoad:(Ce,Ke)=>{Yn.attachIframe(Ce,Ke),Ce.contentWindow&&Ps.addWindow(Ce.contentWindow),Ns.observeAttachShadow(Ce)},onStylesheetLoad:(Ce,Ke)=>{On.attachLinkElement(Ce,Ke)},keepIframeSrcFn:W});if(!_t)return console.warn("Failed to snapshot the document");nt({type:be.FullSnapshot,data:{node:_t,initialOffset:h0(window)}}),_o.forEach(Ce=>Ce.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&On.adoptStyleSheets(document.adoptedStyleSheets,Cn.getId(document))};bl=Ms;try{const Re=[],_t=Ke=>Le(GR)({onMutation:A,mutationCb:wt,mousemoveCb:(je,Kn)=>nt({type:be.IncrementalSnapshot,data:{source:Kn,positions:je}}),mouseInteractionCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.MouseInteraction,...je}}),scrollCb:Os,viewportResizeCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.ViewportResize,...je}}),inputCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.Input,...je}}),mediaInteractionCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.MediaInteraction,...je}}),styleSheetRuleCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.StyleSheetRule,...je}}),styleDeclarationCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.StyleDeclaration,...je}}),canvasMutationCb:pc,fontCb:je=>nt({type:be.IncrementalSnapshot,data:{source:ye.Font,...je}}),selectionCb:je=>{nt({type:be.IncrementalSnapshot,data:{source:ye.Selection,...je}})},customElementCb:je=>{nt({type:be.IncrementalSnapshot,data:{source:ye.CustomElement,...je}})},blockClass:i,ignoreClass:d,ignoreSelector:f,maskAllText:h,maskTextClass:y,unmaskTextClass:g,maskTextSelector:w,unmaskTextSelector:E,maskInputOptions:Oe,inlineStylesheet:_,sampling:L,recordDOM:K,recordCanvas:oe,inlineImages:J,userTriggeredOnInput:Te,collectFonts:ze,doc:Ke,maskAttributeFn:R,maskInputFn:$,maskTextFn:H,keepIframeSrcFn:W,blockSelector:a,unblockSelector:c,slimDOMOptions:Pe,dataURLOptions:U,mirror:Cn,iframeManager:Yn,stylesheetManager:On,shadowDomManager:Ns,processedNodeManager:Po,canvasManager:Ps,ignoreCSSAttributes:re,plugins:rl([ve,"optionalAccess",je=>je.filter,"call",je=>je(Kn=>Kn.observer),"optionalAccess",je=>je.map,"call",je=>je(Kn=>({observer:Kn.observer,options:Kn.options,callback:hc=>nt({type:be.Plugin,data:{plugin:Kn.name,payload:hc}})}))])||[]},{});Yn.addLoadListener(Ke=>{try{Re.push(_t(Ke.contentDocument))}catch(je){console.warn(je)}});const Ce=()=>{Ms(),Re.push(_t(document))};return document.readyState==="interactive"||document.readyState==="complete"?Ce():(Re.push(Ft("DOMContentLoaded",()=>{nt({type:be.DomContentLoaded,data:{}}),me==="DOMContentLoaded"&&Ce()})),Re.push(Ft("load",()=>{nt({type:be.Load,data:{}}),me==="load"&&Ce()},window))),()=>{Re.forEach(Ke=>Ke()),Po.destroy(),bl=void 0,LR()}}catch(Re){console.warn(Re)}}function eA(e){if(!bl)throw new Error("please take full snapshot after start recording");bl(e)}ur.mirror=Cn,ur.takeFullSnapshot=eA;function tA(e,t){try{return e?e(t):new j0}catch{return console.warn("Unable to initialize CanvasManager"),new j0}}const nA=3,rA=5;function tf(e){return e>9999999999?e:e*1e3}function nf(e){return e>9999999999?e/1e3:e}function Ci(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:be.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Tn(t,10,1e3)}}),t.category==="console")))}const sA="button,a";function D0(e){return e.closest(sA)||e}function $0(e){const t=B0(e);return!t||!(t instanceof Element)?t:D0(t)}function B0(e){return oA(e)?e.target:e}function oA(e){return typeof e=="object"&&!!e&&"target"in e}let jr;function iA(e){return jr||(jr=[],aA()),jr.push(e),()=>{const t=jr?jr.indexOf(e):-1;t>-1&&jr.splice(t,1)}}function aA(){Vt(Ve,"open",function(e){return function(...t){if(jr)try{jr.forEach(n=>n())}catch{}return e.apply(Ve,t)}})}const lA=new Set([ye.Mutation,ye.StyleSheetRule,ye.StyleDeclaration,ye.AdoptedStyleSheet,ye.CanvasMutation,ye.Selection,ye.MediaInteraction]);function cA(e,t,n){e.handleClick(t,n)}class uA{constructor(t,n,s=Ci){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=s}addListeners(){const t=iA(()=>{this._lastMutation=F0()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(fA(n,this._ignoreSelector)||!pA(t))return;const s={timestamp:nf(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===s.node&&Math.abs(i.timestamp-s.timestamp)<1)||(this._clicks.push(s),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=nf(t)}registerScroll(t=Date.now()){this._lastScroll=nf(t)}registerClick(t){const n=D0(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=F0();this._clicks.forEach(s=>{!s.mutationAfter&&this._lastMutation&&(s.mutationAfter=s.timestamp<=this._lastMutation?this._lastMutation-s.timestamp:void 0),!s.scrollAfter&&this._lastScroll&&(s.scrollAfter=s.timestamp<=this._lastScroll?this._lastScroll-s.timestamp:void 0),s.timestamp+this._timeout<=n&&t.push(s)});for(const s of t){const i=this._clicks.indexOf(s);i>-1&&(this._generateBreadcrumbs(s),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,s=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!s&&!i,{clickCount:c,clickBreadcrumb:d}=t;if(a){const f=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,h=f<this._timeout*1e3?"mutation":"timeout",y={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.slowClickDetected",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),timeAfterClickMs:f,endReason:h,clickCount:c||1}};this._addBreadcrumbEvent(n,y);return}if(c>1){const f={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.multiClick",data:{...d.data,url:Ve.location.href,route:n.getCurrentRoute(),clickCount:c,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=po(()=>this._checkClicks(),1e3)}}const dA=["A","BUTTON","INPUT"];function fA(e,t){return!!(!dA.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function pA(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function F0(){return Date.now()/1e3}function hA(e,t){try{if(!mA(t))return;const{source:n}=t.data;if(lA.has(n)&&e.registerMutation(t.timestamp),n===ye.Scroll&&e.registerScroll(t.timestamp),gA(t)){const{type:s,id:i}=t.data,a=ur.mirror.getNode(i);a instanceof HTMLElement&&s===zt.Click&&e.registerClick(a)}}catch{}}function mA(e){return e.type===nA}function gA(e){return e.data.source===ye.MouseInteraction}function Wn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Il;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Il||(Il={}));const yA=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function vA(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(yA.has(n)){let s=n;(n==="data-testid"||n==="data-test-id")&&(s="testId"),t[s]=e[n]}return t}const SA=e=>t=>{if(!e.isEnabled())return;const n=wA(t);if(!n)return;const s=t.name==="click",i=s?t.event:void 0;s&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&cA(e.clickDetector,n,$0(t.event)),Ci(e,n)};function z0(e,t){const n=ur.mirror.getId(e),s=n&&ur.mirror.getNode(n),i=s&&ur.mirror.getMeta(s),a=i&&EA(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(c=>c.type===Il.Text&&c.textContent).filter(Boolean).map(c=>c.trim()).join(""),attributes:vA(a.attributes)}}:{}}}function wA(e){const{target:t,message:n}=_A(e);return Wn({category:`ui.${e.name}`,...z0(t,n)})}function _A(e){const t=e.name==="click";let n,s=null;try{s=t?$0(e.event):B0(e.event),n=sr(s,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:s,message:n}}function EA(e){return e.type===Il.Element}function xA(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=kA(t);n&&Ci(e,n)}function kA(e){const{metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a,target:c}=e;if(!c||TA(c)||!a)return null;const d=t||s||i,f=a.length===1;if(!d&&f)return null;const h=sr(c,{maxStringLength:200})||"<unknown>",y=z0(c,h);return Wn({category:"ui.keyDown",message:h,data:{...y.data,metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a}})}function TA(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const bA={resource:OA,paint:RA,navigation:AA};function Cl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function IA(e){return e.map(CA).filter(Boolean)}function CA(e){const t=bA[e.entryType];return t?t(e):null}function Eo(e){return((Bt||Ve.performance.timeOrigin)+e)/1e3}function RA(e){const{duration:t,entryType:n,name:s,startTime:i}=e,a=Eo(i);return{type:n,name:s,start:a,end:a+t,data:void 0}}function AA(e){const{entryType:t,name:n,decodedBodySize:s,duration:i,domComplete:a,encodedBodySize:c,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,domInteractive:h,loadEventStart:y,loadEventEnd:g,redirectCount:w,startTime:E,transferSize:_,type:x}=e;return i===0?null:{type:`${t}.${x}`,start:Eo(E),end:Eo(a),name:n,data:{size:_,decodedBodySize:s,encodedBodySize:c,duration:i,domInteractive:h,domContentLoadedEventStart:d,domContentLoadedEventEnd:f,loadEventStart:y,loadEventEnd:g,domComplete:a,redirectCount:w}}}function OA(e){const{entryType:t,initiatorType:n,name:s,responseEnd:i,startTime:a,decodedBodySize:c,encodedBodySize:d,responseStatus:f,transferSize:h}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Eo(a),end:Eo(i),name:s,data:{size:h,statusCode:f,decodedBodySize:c,encodedBodySize:d}}}function PA(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Rl(e,"largest-contentful-paint",n)}function NA(e){return e.sources!==void 0}function MA(e){const t=[],n=[];for(const s of e.entries)if(NA(s)){const i=[];for(const a of s.sources)if(a.node){n.push(a.node);const c=ur.mirror.getId(a.node);c&&i.push(c)}t.push({value:s.value,nodeIds:i.length?i:void 0})}return Rl(e,"cumulative-layout-shift",n,t)}function LA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Rl(e,"first-input-delay",n)}function jA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Rl(e,"interaction-to-next-paint",n)}function Rl(e,t,n,s){const i=e.value,a=e.rating,c=Eo(i);return{type:"web-vital",name:t,start:c,end:c,data:{value:i,size:i,rating:a,nodeIds:n?n.map(d=>ur.mirror.getId(d)):void 0,attributions:s}}}function DA(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const s=[];return["navigation","paint","resource"].forEach(i=>{s.push(uo(i,n))}),s.push(My(Cl(PA,e)),Od(Cl(MA,e)),Ly(Cl(LA,e)),jy(Cl(jA,e))),()=>{s.forEach(i=>i())}}const pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$A='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function BA(){const e=new Blob([$A]);return URL.createObjectURL(e)}const U0=["info","warn","error","log"],Al="[Replay] ";function rf(e,t="info"){Nr({category:"console",data:{logger:"replay"},level:t,message:`${Al}${e}`},{level:t})}function FA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:s=>{e=s.captureExceptions,t=s.traceInternals}};return pe?(U0.forEach(s=>{n[s]=(...i)=>{X[s](Al,...i),t&&rf(i.join(""),hy(s))}}),n.exception=(s,...i)=>{i.length&&n.error&&n.error(...i),X.error(Al,s),e?bn(s):t&&rf(s,"error")},n.infoTick=(...s)=>{X.info(Al,...s),t&&setTimeout(()=>rf(s[0]),0)}):U0.forEach(s=>{n[s]=()=>{}}),n}const he=FA();class sf extends Error{constructor(){super(`Event buffer exceeded maximum size of ${zd}.`)}}class H0{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>zd)throw new sf;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?tf(t):null}}class zA{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:s})=>{s.success?t():n()},{once:!0}),this._worker.addEventListener("error",s=>{n(s)},{once:!0})}),this._ensureReadyPromise)}destroy(){pe&&he.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const s=this._getAndIncrementId();return new Promise((i,a)=>{const c=({data:d})=>{const f=d;if(f.method===t&&f.id===s){if(this._worker.removeEventListener("message",c),!f.success){pe&&he.error("Error in compression worker: ",f.response),a(new Error("Error in compression worker"));return}i(f.response)}};this._worker.addEventListener("message",c),this._worker.postMessage({id:s,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class UA{constructor(t){this._worker=new zA(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=tf(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const s=JSON.stringify(t);return this._totalSize+=s.length,this._totalSize>zd?Promise.reject(new sf):this._sendEventToWorker(s)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{pe&&he.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class HA{constructor(t){this._fallback=new H0,this._compression=new UA(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){pe&&he.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:s}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=s,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){pe&&he.exception(a,"Failed to add events when switching buffers.")}}}function WA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=qA(t);if(n)return n}return pe&&he.info("Using simple buffer"),new H0}function qA(e){try{const t=e||VA();if(!t)return;pe&&he.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new HA(n)}catch(t){pe&&he.exception(t,"Failed to create compression worker")}}function VA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?BA():""}function of(){try{return"sessionStorage"in Ve&&!!Ve.sessionStorage}catch{return!1}}function GA(e){YA(),e.session=void 0}function YA(){if(of())try{Ve.sessionStorage.removeItem(Bd)}catch{}}function W0(e){return e===void 0?!1:Math.random()<e}function q0(e){const t=Date.now(),n=e.id||sn(),s=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,c=e.sampled,d=e.previousSessionId;return{id:n,started:s,lastActivity:i,segmentId:a,sampled:c,previousSessionId:d}}function af(e){if(of())try{Ve.sessionStorage.setItem(Bd,JSON.stringify(e))}catch{}}function KA(e,t){return W0(e)?"session":t?"buffer":!1}function V0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:s}={}){const i=KA(e,t),a=q0({sampled:i,previousSessionId:s});return n&&af(a),a}function QA(){if(!of())return null;try{const e=Ve.sessionStorage.getItem(Bd);if(!e)return null;const t=JSON.parse(e);return pe&&he.infoTick("Loading existing session"),q0(t)}catch{return null}}function lf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function G0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:s=Date.now()}){return lf(e.started,t,s)||lf(e.lastActivity,n,s)}function Y0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!G0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function cf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},s){const i=s.stickySession&&QA();return i?Y0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(pe&&he.infoTick("Session in sessionStorage is expired, creating new one..."),V0(s,{previousSessionId:i.id})):i:(pe&&he.infoTick("Creating new session"),V0(s,{previousSessionId:n}))}function XA(e){return e.type===be.Custom}function uf(e,t,n){return Q0(e,t)?(K0(e,t,n),!0):!1}function JA(e,t,n){return Q0(e,t)?K0(e,t,n):Promise.resolve(null)}async function K0(e,t,n){const{eventBuffer:s}=e;if(!s||s.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&s.clear(),n&&(s.hasCheckout=!0,s.waitForCheckout=!1);const a=e.getOptions(),c=ZA(t,a.beforeAddRecordingEvent);return c?await s.addEvent(c):void 0}catch(a){const c=a&&a instanceof sf,d=c?"addEventSizeExceeded":"addEvent";if(c&&i)return s.clear(),s.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:d});const f=Ae();f&&f.recordDroppedEvent("internal_sdk_error","replay")}}function Q0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tf(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(pe&&he.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function ZA(e,t){try{if(typeof t=="function"&&XA(e))return t(e)}catch(n){return pe&&he.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function df(e){return!e.type}function ff(e){return e.type==="transaction"}function eO(e){return e.type==="replay_event"}function X0(e){return e.type==="feedback"}function tO(e){return(t,n)=>{if(!e.isEnabled()||!df(t)&&!ff(t))return;const s=n&&n.statusCode;if(!(!s||s<200||s>=300)){if(ff(t)){nO(e,t);return}rO(e,t)}}}function nO(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function rO(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:s}=e.getOptions();typeof s=="function"&&!s(t)||po(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function sO(e){return t=>{!e.isEnabled()||!df(t)||oO(e,t)}}function oO(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const s=Wn({category:"replay.hydrate-error",data:{url:Km()}});Ci(e,s)}}function iO(e){const t=Ae();t&&t.on("beforeAddBreadcrumb",n=>aO(e,n))}function aO(e,t){if(!e.isEnabled()||!J0(t))return;const n=lO(t);n&&Ci(e,n)}function lO(e){return!J0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?cO(e):Wn(e)}function cO(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Wn(e);let n=!1;const s=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>ml?(n=!0,`${i.slice(0,ml)}…`):i;if(typeof i=="object")try{const a=Tn(i,7);return JSON.stringify(a).length>ml?(n=!0,`${JSON.stringify(a,null,2).slice(0,ml)}…`):a}catch{}return i});return Wn({...e,data:{...e.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function J0(e){return!!e.category}function uO(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function Z0(){const e=qe().getPropagationContext().dsc;e&&delete e.replay_id;const t=vt();if(t){const n=vs(t);delete n.replay_id}}function dO(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:be.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function fO(e,t){return e.recordingMode!=="buffer"||t.message===Fd||!t.exception||t.type?!1:W0(e.getOptions().errorSampleRate)}function pO(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:eO(t)?(delete t.breadcrumbs,t):!df(t)&&!ff(t)&&!X0(t)?t:e.checkAndHandleExpiredSession()?X0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),dO(e,t),t):uO(t,n)&&!e.getOptions()._experiments.captureExceptions?(pe&&he.log("Ignoring error from rrweb internals",t),null):((fO(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Z0(),t),{id:"Replay"})}function Ol(e,t){return t.map(({type:n,start:s,end:i,name:a,data:c})=>{const d=e.throttledAddEvent({type:be.Custom,timestamp:s,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:s,endTimestamp:i,data:c}}});return typeof d=="string"?Promise.resolve(null):d})}function hO(e){const{from:t,to:n}=e,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:t}}}function mO(e){return t=>{if(!e.isEnabled())return;const n=hO(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Ol(e,[n]),!1)))}}function gO(e,t){return pe&&e.getOptions()._experiments.traceInternals?!1:Tb(t,Ae())}function e1(e,t){e.isEnabled()&&t!==null&&(gO(e,t.name)||e.addUpdate(()=>(Ol(e,[t]),!0)))}function Pl(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=s1(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function t1(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function n1(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[s1(e)];if(!e)return[void 0]}catch(t){return pe&&he.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return pe&&he.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Nl(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},s=n.warnings||[];return n.warnings=[...s,t],e._meta=n,e}function r1(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:s,url:i,method:a,statusCode:c,request:d,response:f}=t;return{type:e,start:n/1e3,end:s/1e3,name:i,data:ut({method:a,statusCode:c,request:d,response:f})}}function Ri(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Dr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const s={headers:e,size:t},{body:i,warnings:a}=yO(n);return s.body=i,a&&a.length>0&&(s._meta={warnings:a}),s}function pf(e,t){return Object.entries(e).reduce((n,[s,i])=>{const a=s.toLowerCase();return t.includes(a)&&e[s]&&(n[a]=i),n},{})}function s1(e){return new URLSearchParams(e).toString()}function yO(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Jy,n=vO(e);if(t){const s=e.slice(0,Jy);return n?{body:s,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${s}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function vO(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ml(e,t){const n=SO(e);return Cr(n,t)}function SO(e,t=Ve.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ve.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const s=n.href;return!e.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s}async function wO(e,t,n){try{const s=await EO(e,t,n),i=r1("resource.fetch",s);e1(n.replay,i)}catch(s){pe&&he.exception(s,"Failed to capture fetch breadcrumb")}}function _O(e,t){const{input:n,response:s}=t,i=n?o1(n):void 0,a=Pl(i),c=s?t1(s.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),c!==void 0&&(e.data.response_body_size=c)}async function EO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s}=t,{url:c,method:d,status_code:f=0,request_body_size:h,response_body_size:y}=e.data,g=Ml(c,n.networkDetailAllowUrls)&&!Ml(c,n.networkDetailDenyUrls),w=g?xO(n,t.input,h):Ri(h),E=await kO(g,n,t.response,y);return{startTimestamp:i,endTimestamp:a,url:c,method:d,statusCode:f,request:w,response:E}}function xO({networkCaptureBodies:e,networkRequestHeaders:t},n,s){const i=n?IO(n,t):{};if(!e)return Dr(i,s,void 0);const a=o1(n),[c,d]=n1(a),f=Dr(i,s,c);return d?Nl(f,d):f}async function kO(e,{networkCaptureBodies:t,networkResponseHeaders:n},s,i){if(!e&&i!==void 0)return Ri(i);const a=s?i1(s.headers,n):{};if(!s||!t&&i!==void 0)return Dr(a,i,void 0);const[c,d]=await bO(s),f=TO(c,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return d?Nl(f,d):f}function TO(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:s,headers:i}){try{const a=e&&e.length&&n===void 0?Pl(e):n;return s?t?Dr(i,a,e):Dr(i,a,void 0):Ri(a)}catch(a){return pe&&he.exception(a,"Failed to serialize response body"),Dr(i,n,void 0)}}async function bO(e){const t=CO(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await RO(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(pe&&he.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(pe&&he.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function o1(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function i1(e,t){const n={};return t.forEach(s=>{e.get(s)&&(n[s]=e.get(s))}),n}function IO(e,t){return e.length===1&&typeof e[0]!="string"?a1(e[0],t):e.length===2?a1(e[1],t):{}}function a1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?i1(n,t):Array.isArray(n)?{}:pf(n,t):{}}function CO(e){try{return e.clone()}catch(t){pe&&he.exception(t,"Failed to clone response body")}}function RO(e){return new Promise((t,n)=>{const s=po(()=>n(new Error("Timeout while trying to read response body")),500);AO(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(s))})}async function AO(e){return await e.text()}async function OO(e,t,n){try{const s=NO(e,t,n),i=r1("resource.xhr",s);e1(n.replay,i)}catch(s){pe&&he.exception(s,"Failed to capture xhr breadcrumb")}}function PO(e,t){const{xhr:n,input:s}=t;if(!n)return;const i=Pl(s),a=n.getResponseHeader("content-length")?t1(n.getResponseHeader("content-length")):DO(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function NO(e,t,n){const s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s,input:c,xhr:d}=t,{url:f,method:h,status_code:y=0,request_body_size:g,response_body_size:w}=e.data;if(!f)return null;if(!d||!Ml(f,n.networkDetailAllowUrls)||Ml(f,n.networkDetailDenyUrls)){const M=Ri(g),L=Ri(w);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:y,request:M,response:L}}const E=d[Es],_=E?pf(E.request_headers,n.networkRequestHeaders):{},x=pf(MO(d),n.networkResponseHeaders),[k,O]=n.networkCaptureBodies?n1(c):[void 0],[R,$]=n.networkCaptureBodies?LO(d):[void 0],H=Dr(_,g,k),z=Dr(x,w,R);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:y,request:O?Nl(H,O):H,response:$?Nl(z,$):z}}function MO(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,s)=>{const[i,a]=s.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}function LO(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return jO(e.response,e.responseType)}catch(n){t.push(n)}return pe&&he.warn("Failed to get xhr response body",...t),[void 0]}function jO(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return pe&&he.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return pe&&he.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function DO(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Pl(n)}catch{return}}function $O(e){const t=Ae();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c}=e.getOptions(),d={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:c};t&&t.on("beforeAddBreadcrumb",(f,h)=>BO(d,f,h))}catch{}}function BO(e,t,n){if(t.data)try{FO(t)&&UO(n)&&(PO(t,n),OO(t,n,e)),zO(t)&&HO(n)&&(_O(t,n),wO(t,n,e))}catch(s){pe&&he.exception(s,"Error when enriching network breadcrumb")}}function FO(e){return e.category==="xhr"}function zO(e){return e.category==="fetch"}function UO(e){return e&&e.xhr}function HO(e){return e&&e.response}function WO(e){const t=Ae();Uy(SA(e)),dl(mO(e)),iO(e),$O(e);const n=pO(e);sb(n),t&&(t.on("beforeSendEvent",sO(e)),t.on("afterSendEvent",tO(e)),t.on("createDsc",s=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=i)}),t.on("spanStart",s=>{e.lastActiveSpan=s}),t.on("spanEnd",s=>{e.lastActiveSpan=s}),t.on("beforeSendFeedback",(s,i)=>{const a=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&a&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=a)}))}async function qO(e){try{return Promise.all(Ol(e,[VO(Ve.performance.memory)]))}catch{return[]}}function VO(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}}}}function GO(e,t,n){let s,i,a;const c=n&&n.maxWait?Math.max(n.maxWait,t):0;function d(){return f(),s=e(),s}function f(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function h(){return i!==void 0||a!==void 0?d():s}function y(){return i&&clearTimeout(i),i=po(d,t),c&&a===void 0&&(a=po(d,c)),s}return y.cancel=f,y.flush=h,y}const ks=Ne.navigator;function YO(){return/iPhone|iPad|iPod/i.test(ks&&ks.userAgent||"")||/Macintosh/i.test(ks&&ks.userAgent||"")&&ks&&ks.maxTouchPoints&&ks.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function KO(e){let t=!1;return(n,s)=>{if(!e.checkAndHandleExpiredSession()){pe&&he.warn("Received replay event after session expired.");return}const i=s||!t;t=!0,e.clickDetector&&hA(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!uf(e,n,i))return!0;if(!i)return!1;const a=e.session;if(XO(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer){const c=e.eventBuffer.getEarliestTimestamp();c&&(pe&&he.info(`Updating session start time to earliest event in buffer to ${new Date(c)}`),a.started=c,e.getOptions().stickySession&&af(a))}return a&&a.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function QO(e){const t=e.getOptions();return{type:be.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function XO(e,t){!t||!e.session||e.session.segmentId!==0||uf(e,QO(e),!1)}function JO(e,t,n,s){return Ss(Ng(e,fd(e),s,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function ZO({recordingData:e,headers:t}){let n;const s=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${s}${e}`;else{const a=new TextEncoder().encode(s);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function eP({client:e,scope:t,replayId:n,event:s}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",s,a);const c=await qg(e.getOptions(),s,a,t,e,kn());if(!c)return null;c.platform=c.platform||"javascript";const d=e.getSdkMetadata(),{name:f,version:h}=d&&d.sdk||{};return c.sdk={...c.sdk,name:f||"sentry.javascript.unknown",version:h||"0.0.0"},c}async function tP({recordingData:e,replayId:t,segmentId:n,eventContext:s,timestamp:i,session:a}){const c=ZO({recordingData:e,headers:{segment_id:n}}),{urls:d,errorIds:f,traceIds:h,initialTimestamp:y}=s,g=Ae(),w=qe(),E=g&&g.getTransport(),_=g&&g.getDsn();if(!g||!E||!_||!a.sampled)return ir({});const x={type:N2,replay_start_timestamp:y/1e3,timestamp:i/1e3,error_ids:f,trace_ids:h,urls:d,replay_id:t,segment_id:n,replay_type:a.sampled},k=await eP({scope:w,client:g,replayId:t,event:x});if(!k)return g.recordDroppedEvent("event_processor","replay",x),pe&&he.info("An event processor returned `null`, will not send event."),ir({});delete k.sdkProcessingMetadata;const O=JO(k,c,_,g.getOptions().tunnel);let R;try{R=await E.send(O)}catch(H){const z=new Error(Fd);try{z.cause=H}catch{}throw z}if(typeof R.statusCode=="number"&&(R.statusCode<200||R.statusCode>=300))throw new l1(R.statusCode);const $=oy({},R);if(sy($,"replay"))throw new hf($);return R}class l1 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class hf extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function c1(e,t={count:0,interval:B2}){const{recordingData:n,onError:s}=e;if(n.length)try{return await tP(e),!0}catch(i){if(i instanceof l1||i instanceof hf)throw i;if(Gg("Replays",{_retryCount:t.count}),s&&s(i),t.count>=F2){const a=new Error(`${Fd} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,c)=>{po(async()=>{try{await c1(e,t),a(!0)}catch(d){c(d)}},t.interval)})}}const u1="__THROTTLED",nP="__SKIPPED";function rP(e,t,n){const s=new Map,i=d=>{const f=d-n;s.forEach((h,y)=>{y<f&&s.delete(y)})},a=()=>[...s.values()].reduce((d,f)=>d+f,0);let c=!1;return(...d)=>{const f=Math.floor(Date.now()/1e3);if(i(f),a()>=t){const y=c;return c=!0,y?nP:u1}c=!1;const h=s.get(f)||0;return s.set(f,h+1),e(...d)}}class $r{constructor({options:t,recordingOptions:n}){$r.prototype.__init.call(this),$r.prototype.__init2.call(this),$r.prototype.__init3.call(this),$r.prototype.__init4.call(this),$r.prototype.__init5.call(this),$r.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:M2,sessionIdleExpire:L2},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=GO(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=rP((c,d)=>JA(this,c,d),300,5);const{slowClickTimeout:s,slowClickIgnoreSelectors:i}=this.getOptions(),a=s?{threshold:Math.min(z2,s),timeout:s,scrollTimeout:U2,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new uA(this,a)),pe){const c=t._experiments;he.setConfig({captureExceptions:!!c.captureExceptions,traceInternals:!!c.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){pe&&he.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:s}=this._options,i=n<=0&&s<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){pe&&he.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",pe&&he.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){pe&&he.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){pe&&he.info("Buffering is in progress, call `flush()` to save the replay");return}pe&&he.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=cf({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){pe&&he.info("Buffering is in progress, call `flush()` to save the replay");return}pe&&he.infoTick("Starting replay in buffer mode");const t=cf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ur({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:$2}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:KO(this),...YO(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{pe&&he.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Z0(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,GA(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),pe&&he.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),pe&&he.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();pe&&he.info("Converting buffer to session"),await this.flushImmediate();const s=this.stopRecording();!t||!s||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&lf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ve.location.pathname}${Ve.location.hash}${Ve.location.search}`,n=`${Ve.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const s=this._throttledAddEvent(t,n);if(s===u1){const i=Wn({category:"replay.throttled"});this.addUpdate(()=>!uf(this,{type:rA,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return s}getCurrentRoute(){const t=this.lastActiveSpan||vt(),n=t&&bt(t),i=(n&&Be(n).data||{})[zn];if(!(!n||!i||!["route","custom"].includes(i)))return Be(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=WA({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,s=cf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=s}_checkSession(){if(!this.session)return!1;const t=this.session;return Y0(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ve.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ve.addEventListener("blur",this._handleWindowBlur),Ve.addEventListener("focus",this._handleWindowFocus),Ve.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(WO(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=DA(this)}_removeListeners(){try{Ve.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ve.removeEventListener("blur",this._handleWindowBlur),Ve.removeEventListener("focus",this._handleWindowFocus),Ve.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Ve.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Wn({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Wn({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{xA(this,t)}}_doChangeToBackgroundTasks(t){!this.session||G0(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){pe&&he.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:be.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=IA(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(s=>s.start>=n)}return Promise.all(Ol(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const s=n.getEarliestTimestamp();s&&s<this._context.initialTimestamp&&(this._context.initialTimestamp=s)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){pe&&he.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await qO(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await c1({replayId:t,recordingData:a,segmentId:i,eventContext:s,session:this.session,timestamp:n,onError:c=>this.handleException(c)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const s=Ae();if(s){const i=n instanceof hf?"ratelimit_backoff":"send_error";s.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){pe&&he.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,c=i>this._options.maxReplayDuration+5e3;if(a||c){pe&&he.info(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const d=this.eventBuffer;d&&this.session.segmentId===0&&!d.hasCheckout&&pe&&he.info("Flushing initial segment without checkout.");const f=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(h){this.handleException(h)}finally{this._flushLock=void 0,f&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&af(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=s&&n>s;if(n>i||a){const c=Wn({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(c)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Ai(e,t){return[...e,...t].join(",")}function sP({mask:e,unmask:t,block:n,unblock:s,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],c=Ai(e,[".sentry-mask","[data-sentry-mask]"]),d=Ai(t,[]);return{maskTextSelector:c,unmaskTextSelector:d,blockSelector:Ai(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:Ai(s,[]),ignoreSelector:Ai(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function oP({el:e,key:t,maskAttributes:n,maskAllText:s,privacyOptions:i,value:a}){return!s||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const d1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',iP=["content-length","content-type","accept"];let f1=!1;const aP=e=>new Ll(e);class Ll{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=j2,flushMaxDelay:n=D2,minReplayDuration:s=H2,maxReplayDuration:i=Zy,stickySession:a=!0,useCompression:c=!0,workerUrl:d,_experiments:f={},maskAllText:h=!0,maskAllInputs:y=!0,blockAllMedia:g=!0,mutationBreadcrumbLimit:w=750,mutationLimit:E=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:x=[],networkDetailAllowUrls:k=[],networkDetailDenyUrls:O=[],networkCaptureBodies:R=!0,networkRequestHeaders:$=[],networkResponseHeaders:H=[],mask:z=[],maskAttributes:M=["title","placeholder"],unmask:L=[],block:U=[],unblock:te=[],ignore:K=[],maskFn:oe,beforeAddRecordingEvent:ae,beforeErrorSampling:me,onError:Te}={}){this.name=Ll.id;const ze=sP({mask:z,unmask:L,block:U,unblock:te,ignore:K});if(this._recordingOptions={maskAllInputs:y,maskAllText:h,maskInputOptions:{password:!0},maskTextFn:oe,maskInputFn:oe,maskAttributeFn:(J,ve,W)=>oP({maskAttributes:M,maskAllText:h,privacyOptions:ze,key:J,value:ve,el:W}),...ze,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:J=>{try{J.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(s,W2),maxReplayDuration:Math.min(i,Zy),stickySession:a,useCompression:c,workerUrl:d,blockAllMedia:g,maskAllInputs:y,maskAllText:h,mutationBreadcrumbLimit:w,mutationLimit:E,slowClickTimeout:_,slowClickIgnoreSelectors:x,networkDetailAllowUrls:k,networkDetailDenyUrls:O,networkCaptureBodies:R,networkRequestHeaders:p1($),networkResponseHeaders:p1(H),beforeAddRecordingEvent:ae,beforeErrorSampling:me,onError:Te,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${d1}`:d1),this._isInitialized&&xy())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return f1}set _isInitialized(t){f1=t}afterAllSetup(t){!xy()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=lP(this._initialOptions,t);this._replay=new $r({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Ll.__initStatic();function lP(e,t){const n=t.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...ut(e)},i=Ka(n.replaysSessionSampleRate),a=Ka(n.replaysOnErrorSampleRate);return i==null&&a==null&&Tr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(s.sessionSampleRate=i),a!=null&&(s.errorSampleRate=a),s}function p1(e){return[...iP,...e.map(t=>t.toLowerCase())]}const h1=new WeakMap,mf=new Map,jl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function cP(e,t){const{traceFetch:n,traceXHR:s,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:c,tracePropagationTargets:d}={traceFetch:jl.traceFetch,traceXHR:jl.traceXHR,trackFetchStreamPerformance:jl.trackFetchStreamPerformance,...t},f=typeof a=="function"?a:g=>!0,h=g=>pP(g,d),y={};n&&(e.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(w=>{if(w.op==="http.client"){const E=mf.get(w.span_id);E&&(w.timestamp=E/1e3,mf.delete(w.span_id))}}),g)),i&&aI(g=>{if(g.response){const w=h1.get(g.response);w&&g.endTimestamp&&mf.set(w,g.endTimestamp)}}),wy(g=>{const w=eI(g,f,h,y);if(g.response&&g.fetchData.__span&&h1.set(g.response,g.fetchData.__span),w){const E=g1(g.fetchData.url),_=E?ws(E).host:void 0;w.setAttributes({"http.url":E,"server.address":_})}c&&w&&m1(w)})),s&&Vy(g=>{const w=hP(g,f,h,y);c&&w&&m1(w)})}function uP(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function m1(e){const{url:t}=Be(e).data||{};if(!t||typeof t!="string")return;const n=uo("resource",({entries:s})=>{s.forEach(i=>{uP(i)&&i.name.endsWith(t)&&(fP(i).forEach(c=>e.setAttribute(...c)),setTimeout(n))})})}function dP(e){let t="unknown",n="unknown",s="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=s==="h"?"http":s,n=e.split(s)[1];break}s+=i}return s===e&&(t=s),{name:t,version:n}}function qn(e=0){return((Bt||performance.timeOrigin)+e)/1e3}function fP(e){const{name:t,version:n}=dP(e.nextHopProtocol),s=[];return s.push(["network.protocol.version",n],["network.protocol.name",t]),Bt?[...s,["http.request.redirect_start",qn(e.redirectStart)],["http.request.fetch_start",qn(e.fetchStart)],["http.request.domain_lookup_start",qn(e.domainLookupStart)],["http.request.domain_lookup_end",qn(e.domainLookupEnd)],["http.request.connect_start",qn(e.connectStart)],["http.request.secure_connection_start",qn(e.secureConnectionStart)],["http.request.connection_end",qn(e.connectEnd)],["http.request.request_start",qn(e.requestStart)],["http.request.response_start",qn(e.responseStart)],["http.request.response_end",qn(e.responseEnd)]]:s}function pP(e,t){const n=we.location&&we.location.href;if(n){let s,i;try{s=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=s.origin===i;return t?Cr(s.toString(),t)||a&&Cr(s.pathname,t):a}else{const s=!!e.match(/^\/(?!\/)/);return t?Cr(e,t):s}}function hP(e,t,n,s){const i=e.xhr,a=i&&i[Es];if(!i||i.__sentry_own_request__||!a)return;const c=Pr()&&t(a.url);if(e.endTimestamp&&c){const g=i.__sentry_xhr_span_id__;if(!g)return;const w=s[g];w&&a.status_code!==void 0&&(cg(w,a.status_code),w.end(),delete s[g]);return}const d=g1(a.url),f=d?ws(d).host:void 0,h=!!vt(),y=c&&h?fi({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":d,url:a.url,"server.address":f,[gt]:"auto.http.browser",[hs]:"http.client"}}):new oo;return i.__sentry_xhr_span_id__=y.spanContext().spanId,s[i.__sentry_xhr_span_id__]=y,n(a.url)&&mP(i,Pr()&&h?y:void 0),y}function mP(e,t){const{"sentry-trace":n,baggage:s}=cy({span:t});n&&gP(e,n,s)}function gP(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function g1(e){try{return new URL(e,we.location.origin).href}catch{return}}function yP(){we&&we.document?we.document.addEventListener("visibilitychange",()=>{const e=vt();if(!e)return;const t=bt(e);if(we.document.hidden&&t){const n="cancelled",{op:s,status:i}=Be(t);Hn&&X.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${s}`),i||t.setStatus({code:yt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Hn&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const vP="BrowserTracing",SP={...Qa,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...jl},wP=(e={})=>{aT();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:s,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a},beforeStartSpan:c,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:y,traceFetch:g,traceXHR:w,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:_,enableHTTPTimings:x,instrumentPageLoad:k,instrumentNavigation:O}={...SP,...e},R=gC({recordClsStandaloneSpans:a||!1});t&&zC(),s&&Ne.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?vC():n&&yC(),i&&SC();const $={name:void 0,source:void 0};function H(z,M){const L=M.op==="pageload",U=c?c(M):M,te=U.attributes||{};M.name!==U.name&&(te[zn]="custom",U.attributes=te),$.name=U.name,$.source=te[zn];const K=Ug(U,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:L,beforeSpanEnd:ae=>{R(),kC(ae,{recordClsOnPageloadSpan:!a})}});function oe(){["interactive","complete"].includes(we.document.readyState)&&z.emit("idleSpanEnableAutoFinish",K)}return L&&we.document&&(we.document.addEventListener("readystatechange",()=>{oe()}),oe()),K}return{name:vP,afterAllSetup(z){let M,L=we.location&&we.location.href;function U(){M&&!Be(M).timestamp&&(Hn&&X.log(`[Tracing] Finishing current active span with op: ${Be(M).op}`),M.end())}z.on("startNavigationSpan",te=>{Ae()===z&&(U(),M=H(z,{op:"navigation",...te}))}),z.on("startPageLoadSpan",(te,K={})=>{if(Ae()!==z)return;U();const oe=K.sentryTrace||y1("sentry-trace"),ae=K.baggage||y1("baggage"),me=eT(oe,ae);qe().setPropagationContext(me),M=H(z,{op:"pageload",...te})}),z.on("spanEnd",te=>{const K=Be(te).op;if(te!==bt(te)||K!=="navigation"&&K!=="pageload")return;const oe=qe(),ae=oe.getPropagationContext();oe.setPropagationContext({...ae,sampled:ae.sampled!==void 0?ae.sampled:gs(te),dsc:ae.dsc||vs(te)})}),we.location&&(k&&_P(z,{name:we.location.pathname,startTime:Bt?Bt/1e3:void 0,attributes:{[zn]:"url",[gt]:"auto.pageload.browser"}}),O&&dl(({to:te,from:K})=>{if(K===void 0&&L&&L.indexOf(te)!==-1){L=void 0;return}K!==te&&(L=void 0,EP(z,{name:we.location.pathname,attributes:{[zn]:"url",[gt]:"auto.navigation.browser"}}))})),y&&yP(),i&&xP(d,f,h,$),t&&HC(),cP(z,{traceFetch:g,traceXHR:w,trackFetchStreamPerformance:E,tracePropagationTargets:z.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:x})}}};function _P(e,t,n){e.emit("startPageLoadSpan",t,n),qe().setTransactionName(t.name);const s=vt();return(s&&Be(s).op)==="pageload"?s:void 0}function EP(e,t){kn().setPropagationContext({traceId:Ar()}),qe().setPropagationContext({traceId:Ar()}),e.emit("startNavigationSpan",t),qe().setTransactionName(t.name);const n=vt();return(n&&Be(n).op)==="navigation"?n:void 0}function y1(e){const t=bk(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function xP(e,t,n,s){let i;const a=()=>{const c="ui.action.click",d=vt(),f=d&&bt(d);if(f){const h=Be(f).op;if(["navigation","pageload"].includes(h)){Hn&&X.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(sd,"interactionInterrupted"),i.end(),i=void 0),!s.name){Hn&&X.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Ug({name:s.name,op:c,attributes:{[zn]:s.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};we.document&&addEventListener("click",a,{once:!1,capture:!0})}function kP(e){const t={...e};return ly(t,"react"),Gg("react",{version:C.version}),P2(t)}const TP=async e=>{try{return await CP(e),xr.reportNewUserCreated(),e}catch(t){throw console.error("User haven't been registered"),t}},v1=e=>TP(e).then(()=>{gf(e)}).catch(t=>{bP()}),dr=async()=>{const e=xo();if(e)return e;const t=Er(13);return await v1(t),gf(t),t},Dl=()=>{const e=xo();if(e)return e;const t=Er(13);return gf(t),v1(t),t},gf=e=>localStorage.setItem(Bn.userId,e),xo=()=>localStorage.getItem(Bn.userId),bP=()=>{localStorage.removeItem(Bn.userId)},IP=async()=>xo()??"dafult-user",CP=async e=>{var s,i;const n=(((s=window.__widgetEdmap)==null?void 0:s.mode)||"default")==="admin"?"/registration/auto-disposable?seconds=32400":"/registration/auto";try{const a=await mt.post(n,{id:e});return(i=a==null?void 0:a.data)==null?void 0:i.id}catch(a){throw console.error("Error registering new user:",a),a}},RP=async()=>{var i,a;const e=(i=window==null?void 0:window.__widgetEdmap)==null?void 0:i.mapId;if(!e)return;const t=`/registration/telegram/${e}`,n=await dr(),s=window.location.href;try{const c=await mt.post(t,{redirectUrl:s,userId:n});(c==null?void 0:c.status)===201&&(window.location.href=(a=c==null?void 0:c.data)==null?void 0:a.link)}catch(c){bn(c),console.error("Error registering new user through telegram",c)}},AP=async e=>{const t="/auth/telegram";try{const n=await mt.post(t,{code:e});(n==null?void 0:n.status)===201&&S1(n==null?void 0:n.data)}catch(n){bn(n),console.error("Failed to authorize through Telegram",n)}},OP=async()=>{var a;const e=(a=window==null?void 0:window.__widgetEdmap)==null?void 0:a.mapId,t=xo(),n=encodeURIComponent(window.location.href);if(!e)return;const s=new URLSearchParams;s.append("mapId",e),s.append("userId",t),s.append("redirectUrl",n);const i=`/auth/google?${s.toString()}`;try{const c=await mt.get(i);window.location.href=c.data.redirectUrl}catch(c){bn(c),console.error("Error registering new user through gmail",c)}},PP=async()=>{const e=new URLSearchParams(window.location.search),t=e.get("accessToken"),n=e.get("refreshToken"),s=e.get("userId");!t||!n||!s||S1({accessToken:t,refreshToken:n,userId:s})},S1=e=>{xr.reportUserRegistration(),localStorage.setItem(Bn.userId,e==null?void 0:e.userId),localStorage.setItem("edmap-access-token",e==null?void 0:e.accessToken),localStorage.setItem("edmap-refresh-token",e==null?void 0:e.refreshToken)},NP=e=>{if(!e)return"edmap-session-prob";const t=Er(13),n=`edmap-session-${e}`;return localStorage.setItem(n,`${t}@${Date.now()}`),t},w1=e=>{const t=`edmap-session-${e}`;localStorage.removeItem(t)},MP=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||null},Ts=e=>{const t=LP(e),[n,s]=t.split("@");return n},LP=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||NP(e)},jP=async(e,t)=>{t&&await AP(t);const n=new URLSearchParams(window.location.search),s=n.get("accessToken"),i=n.get("refreshToken"),a=n.get("userId");s&&i&&a&&await PP();const c=await IP();return E1(e,c)},_1=()=>typeof window>"u"?!1:!!localStorage.getItem("edmap-access-token"),DP=async(e,t)=>{const n=`/quest/${e}/${encodeURIComponent(t)}`;try{const s=await mt.get(n);return s.data?s.data:null}catch{return null}},$P=async e=>{const t=`/quest/widget/${e}`;try{const n=await mt.get(t);return n.data?n.data:null}catch(n){bn(n),console.error("Error fetching quest:",n)}},BP=async e=>{const t="/result-quest-answer/test";try{return await mt.post(t,{id:Er(13),sessionId:Ts(e.id),questId:e.id,mapId:e.mapId,userId:await dr()})}catch(n){throw console.error("Failed to send result test answers:",n),n}},E1=async(e,t)=>{const n=`/user-result/${e}/${t}`;try{return(await mt.get(n)).data}catch(s){bn(s),console.error("Failed to get user results:",s)}},FP=async(e,t,n)=>{const s=`/leaderboard/${e}`;try{return await mt.get(s,{params:{take:t,skip:n}})}catch(i){bn(i),console.error("Failed to fetch leaderboard:",i)}},x1=e=>{let t;const n=new Set,s=(h,y)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const w=t;t=y??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(E=>E(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},zP=e=>e?x1(e):x1,UP=e=>e;function HP(e,t=UP){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const k1=e=>{const t=zP(e),n=s=>HP(t,s);return Object.assign(n,t),n},Yt=e=>e?k1(e):k1,Me=Yt((e,t)=>({quest:{},stepCount:0,currentStep:0,currentTryPoints:0,isFinished:null,mapLeaderboard:[],isError:!1,resetQuest:()=>e({currentTryPoints:0,isFinished:!1}),increaseCurrentStep:()=>e({currentStep:t().currentStep+1}),setQuest:n=>e({quest:n}),setIsFinished:n=>e({isFinished:n}),setMapLeaderboard:n=>e({mapLeaderboard:n}),setCurrentTryPoints:n=>e({currentTryPoints:n}),setIsError:n=>e({isError:n})})),yf="eddpzuabl",T1="edl168snjk",WP="edwbmletw",b1="edr10i0h72",vf="edn16xylqg",qP="edb19h1gx0",I1="edt1n7onvl",VP="edw16bh3dw",GP="edw1j9fzy2";function YP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var KP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sf=YP(function(e){return KP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),QP=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},C1=QP,XP=e=>e.toUpperCase()===e,JP=e=>t=>e.indexOf(t)===-1,R1=(e,t)=>{const n={};return Object.keys(e).filter(JP(t)).forEach(s=>{n[s]=e[s]}),n};function ZP(e,t,n){const s=R1(t,n);if(!e){const i=typeof Sf=="function"?{default:Sf}:Sf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var eN=(e,t)=>{};function tN(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!XP(d[0])):n.propsAsIs,y=ZP(h,a,["as","class"]);y.ref=c,y.className=n.atomic?C1(n.class,y.className||f):C1(y.className||f,n.class);const{vars:g}=n;if(g){const w={};for(const x in g){const k=g[x],O=k[0],R=k[1]||"",$=typeof O=="function"?O(a):O;eN($,n.name),w[`--${x}`]=`${$}${R}`}const E=y.style||{},_=Object.keys(E);_.length>0&&_.forEach(x=>{w[x]=E[x]}),y.style=w}return e.__wyw_meta&&e!==d?(y.as=d,Tt.createElement(e,y)):Tt.createElement(d,y)},i=Tt.forwardRef?Tt.forwardRef(s):a=>{const c=R1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var D=tN;const nN=D("div")({name:"Container",class:"edc2mc3o7",propsAsIs:!1}),rN=D("div")({name:"ContentWrapper",class:"edc1mezuql",propsAsIs:!1}),A1=D("div")({name:"InfoBlock",class:"edi282h0s",propsAsIs:!1}),O1=D("p")({name:"InfoBlockTitle",class:"edi1hvj2ef",propsAsIs:!1}),P1=D("p")({name:"InfoBlockSubtitle",class:"edil1zahd",propsAsIs:!1}),N1=D("div")({name:"ButtonsWrapper",class:"edb19bodzu",propsAsIs:!1}),sN=D("div")({name:"SignInBlock",class:"eds1kockd",propsAsIs:!1}),oN=D("div")({name:"MenuSection",class:"edm1mglzga",propsAsIs:!1}),iN=D("div")({name:"Container",class:"edc1j8vq8z",propsAsIs:!1}),aN=D("ul")({name:"Nav",class:"edn1cd6joy",propsAsIs:!1}),lN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs)",cN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs-font-hover)",uN=D("li")({name:"NavItem",class:"edn1fabm11",propsAsIs:!1,vars:{"n1fabm11-0":[lN()],"n1fabm11-1":[cN()]}}),Ct=Yt(e=>({points:0,results:{},pointsAreReceived:!1,resetUser:()=>e({pointsAreReceived:!1}),setUserPoints:t=>e(n=>({points:n.points+t})),setUserResults:t=>e({results:t}),setPointsAreReceived:t=>e({pointsAreReceived:t}),refreshUserResults:async t=>{const n=await dr(),s=await E1(t,n);e({results:s})}})),dN=({data:e,activeIndex:t,setActiveIndex:n})=>{var a;const s=Ct(c=>c.results),i=(a=s==null?void 0:s.prizes)==null?void 0:a.length;return v.jsx(iN,{children:v.jsx(aN,{children:e.map((c,d)=>v.jsxs(uN,{onClick:()=>n(d),isActive:d===t,children:[c,d===0&&v.jsx("span",{children:i})]},c))})})},fN=D("div")({name:"Container",class:"edc17us64y",propsAsIs:!1}),M1=D("div")({name:"Header",class:"edh141t6pe",propsAsIs:!1}),L1=D("div")({name:"PrizeBackground",class:"edp1oopuya",propsAsIs:!1}),j1=D("div")({name:"Title",class:"edtlw5k9f",propsAsIs:!1}),pN=D("div")({name:"ButtonWrapper",class:"edbggxr7n",propsAsIs:!1}),hN=D("div")({name:"IconButtonWrapper",class:"edi16rf10j",propsAsIs:!1}),mN=D("div")({name:"ProgressWrapper",class:"edp121tjyk",propsAsIs:!1}),gN=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},C.createElement("path",{fill:"currentColor",d:"M13 10v9h-2v-9zm0-5v2h-2V5z"}));function yN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wf=yN(function(e){return vN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),SN=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(d=>{if(d.startsWith("atm_")){const[,f]=d.split("_");n[f]=d}else s.push(d)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...s),i.join(" ")},D1=SN,wN=e=>e.toUpperCase()===e,_N=e=>t=>e.indexOf(t)===-1,$1=(e,t)=>{const n={};return Object.keys(e).filter(_N(t)).forEach(s=>{n[s]=e[s]}),n};function EN(e,t,n){const s=$1(t,n);if(!e){const i=typeof wf=="function"?{default:wf}:wf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var xN=(e,t)=>{};function kN(e){let t="";return n=>{const s=(a,c)=>{const{as:d=e,class:f=t}=a,h=n.propsAsIs===void 0?!(typeof d=="string"&&d.indexOf("-")===-1&&!wN(d[0])):n.propsAsIs,y=EN(h,a,["as","class"]);y.ref=c,y.className=n.atomic?D1(n.class,y.className||f):D1(y.className||f,n.class);const{vars:g}=n;if(g){const w={};for(const x in g){const k=g[x],O=k[0],R=k[1]||"",$=typeof O=="function"?O(a):O;xN($,n.name),w[`--${x}`]=`${$}${R}`}const E=y.style||{},_=Object.keys(E);_.length>0&&_.forEach(x=>{w[x]=E[x]}),y.style=w}return e.__wyw_meta&&e!==d?(y.as=d,Tt.createElement(e,y)):Tt.createElement(d,y)},i=Tt.forwardRef?Tt.forwardRef(s):a=>{const c=$1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var ee=kN;const B1=ee("button")({name:"ColoredButton",class:"edc1h8okqi",propsAsIs:!1}),_f=ee(B1)({name:"Button",class:"edbym73sg",propsAsIs:!0}),F1=({icon:e,title:t,...n})=>v.jsx(TN,{...n,children:e||t}),TN=ee(_f)({name:"CustomButton",class:"edc1r5q1nu",propsAsIs:!0}),Vn=({title:e,isAccent:t,isSuccess:n,link:s,target:i="_blank",linkProps:a,...c})=>s?v.jsx("a",{target:i,href:s,rel:i==="_blank"&&"noopener noreferrer",...a,children:v.jsx(z1,{isAccent:t,...c,children:e})}):v.jsx(z1,{isAccent:t,...c,children:e}),bN=()=>e=>e.isAccent?"var(--main-btn-accent-bg)":"var(--main-btn-bg)",IN=()=>e=>e.isAccent?"900":"400",CN=()=>e=>e.isAccent?"var(--edmap-text-on-main)":"var(--accent)",RN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-hover)":"var(--main-btn-bg-hover)",AN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-active)":"var(--main-btn-bg-active)",z1=ee("button")({name:"Button",class:"edb16ruis3",propsAsIs:!1,vars:{"b16ruis3-0":[bN()],"b16ruis3-1":[IN()],"b16ruis3-2":[CN()],"b16ruis3-3":[RN()],"b16ruis3-4":[AN()]}}),$l=({progressValue:e,overallValue:t})=>{const n=e<=t?(100/t*e).toFixed(0):100;return v.jsx(PN,{progressBarWidth:n})},ON=()=>e=>`${e.progressBarWidth}%`,PN=ee("div")({name:"Bar",class:"edb1pz075f",propsAsIs:!1,vars:{"b1pz075f-0":[ON()]}}),bs=({progressValue:e,overallValue:t,text:n})=>v.jsxs(NN,{children:[v.jsx("span",{children:e}),v.jsxs("span",{children:["/",t," "]}),n&&v.jsx(MN,{children:n})]}),NN=ee("div")({name:"Container",class:"edc1sl84gi",propsAsIs:!1}),MN=ee("span")({name:"PointsText",class:"edpccfrec",propsAsIs:!1}),LN=()=>v.jsx("svg",{viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-rating-stars-1",children:[v.jsx("path",{d:"M15.78,14.07l1.46,4.14a.82.82,0,0,0,.74.56L22.2,19a.87.87,0,0,1,.48,1.54l-3.31,2.74a.9.9,0,0,0-.29.91l1.15,4.26a.84.84,0,0,1-1.26,1L15.46,26.9a.78.78,0,0,0-.92,0L11,29.35a.84.84,0,0,1-1.26-1l1.15-4.26a.9.9,0,0,0-.29-.91L7.32,20.49A.87.87,0,0,1,7.8,19L12,18.77a.82.82,0,0,0,.74-.56l1.46-4.14A.82.82,0,0,1,15.78,14.07Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M7.08.92,8.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L9.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72L6.84,10.55a.57.57,0,0,0-.68,0L3.52,12.39a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2A.65.65,0,0,1,1.1,4.59l3.16-.13A.63.63,0,0,0,4.82,4L5.92.92A.61.61,0,0,1,7.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("path",{d:"M24.08.92,25.18,4a.63.63,0,0,0,.56.43l3.16.13a.65.65,0,0,1,.36,1.16L26.78,7.8a.65.65,0,0,0-.22.68l.86,3.19a.63.63,0,0,1-.94.72l-2.64-1.84a.57.57,0,0,0-.68,0l-2.64,1.84a.63.63,0,0,1-.94-.72l.86-3.19a.65.65,0,0,0-.22-.68l-2.48-2a.65.65,0,0,1,.36-1.16l3.16-.13A.63.63,0,0,0,21.82,4L22.92.92A.61.61,0,0,1,24.08.92Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})})})}),jN=()=>v.jsxs("svg",{viewBox:"-4 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Medal"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-medal-1",children:[v.jsx("polyline",{className:"cls-1",points:"21.5 0.5 10.5 0.5 0.5 0.5"}),v.jsx("line",{className:"cls-1",x1:"21.5",x2:"17",y1:"0.5",y2:"12.5"}),v.jsx("line",{className:"cls-1",x1:"0.5",x2:"5",y1:"0.5",y2:"12.5"}),v.jsx("circle",{className:"cls-1",cx:"11",cy:"20",r:"9.5"}),v.jsx("line",{className:"cls-1",x1:"8",x2:"9",y1:"0.5",y2:"10.5"}),v.jsx("line",{className:"cls-1",x1:"14",x2:"13",y1:"0.5",y2:"10.5"}),v.jsx("path",{className:"cls-1",d:"M11.49,15.35l.91,2.59a.52.52,0,0,0,.46.36l2.64.11a.54.54,0,0,1,.3,1l-2.07,1.71a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6l-2.19-1.54a.51.51,0,0,0-.58,0L8.52,24.91a.53.53,0,0,1-.79-.6l.72-2.66a.58.58,0,0,0-.18-.57L6.2,19.37a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36l.91-2.59A.52.52,0,0,1,11.49,15.35Z"})]})})})]}),DN=()=>v.jsxs("svg",{viewBox:"-0.5 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("style",{children:".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}"})}),v.jsx("title",{children:"Award Trophie"}),v.jsx("g",{"data-name":"Layer 2",id:"Layer_2",children:v.jsx("g",{id:"Interface-Light",children:v.jsxs("g",{id:"interface-light-award-trophie",children:[v.jsx("path",{className:"cls-1",d:"M9.5.5h-6c0,7.73,4.92,14,11,14s11-6.27,11-14h-6"}),v.jsx("rect",{className:"cls-1",height:"5",rx:"1",width:"13",x:"8",y:"24.5"}),v.jsx("line",{className:"cls-1",x1:"12.5",x2:"12.5",y1:"14.3",y2:"24.5"}),v.jsx("line",{className:"cls-1",x1:"16.5",x2:"16.5",y1:"14.3",y2:"24.5"}),v.jsx("path",{className:"cls-1",d:"M25.1,4.5a3.36,3.36,0,0,1,3.4,3c0,1.66-1.34,5-3,5"}),v.jsx("path",{className:"cls-1",d:"M3.5,12.5c-1.66,0-3-3.34-3-5a3.36,3.36,0,0,1,3.4-3"}),v.jsx("path",{className:"cls-1",d:"M15,.85l.91,2.59a.52.52,0,0,0,.46.36L19,3.91a.54.54,0,0,1,.3,1L17.23,6.58a.58.58,0,0,0-.18.57l.72,2.66a.53.53,0,0,1-.79.6L14.79,8.87a.51.51,0,0,0-.58,0L12,10.41a.53.53,0,0,1-.79-.6L12,7.15a.58.58,0,0,0-.18-.57L9.7,4.87a.54.54,0,0,1,.3-1l2.64-.11a.52.52,0,0,0,.46-.36L14,.85A.52.52,0,0,1,15,.85Z"})]})})})]}),$N={1:v.jsx(LN,{}),2:v.jsx(jN,{}),3:v.jsx(DN,{})},BN=ee("div")({name:"InnerIconContainer",class:"edim3awnl",propsAsIs:!1}),U1=({iconId:e,...t})=>v.jsx(BN,{...t,children:$N[e]}),Bl={es:{timer:{remainingTitle:"Límite de tiempo:"},popup:{skillsTitle:"experiencia",menuItems:["Premios","Misiones","Participantes","Configuración"],prizes:{buttonTitle:"Obtener premio",questionsTitle:"puntos"}},gameMenu:{restart:"Empezar de nuevo"},popupBar:{prizesTitle:"premios",skillsTitle:"exp"},widget:{skillsTitle:"experiencia",accentButtonTitle:"Confirmar respuesta",buttonTitle:"Omitir"},input:{placeholder:"Introduzca texto…"},testCard:{successTitle:"Has aprobado el test",buttonTitle:"Volver a intentar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione todas las respuestas que correspondan de la lista:"},journeyCard:{successTitle:"Has completado el juego",buttonTitle:"Volver a jugar",worstScoreTemplate:"Has obtenido <mark>{points} de {maxPoints}</mark> puntos. Tu mejor resultado es <mark>{bestPoints} de {maxPoints}</mark>.",bestScoreTemplate:"Has obtenido <mark>{bestPoints} de {maxPoints}</mark> puntos.",prizesTitle:"Premios que aún puedes conseguir",questsTitle:"Misiones que aún puedes completar",chooseAnswer:"Seleccione una respuesta:"},settings:{signInPopup:{title:"Para guardar tu progreso y obtener premios, necesitas registrar una cuenta.",subtitle:"¡Tu progreso se transferirá a ella!",buttonTitle:"Cerrar",accentButtonTitle:"Registrarse"},logout:"Cerrar sesión"},globalError:{title:"Algo salió mal 🤔",subtitle:"Mientras pensamos cómo solucionarlo, puedes intentar actualizar la misión"},socialsPopup:{title:"Registrarse con",subTitle:"Próximamente...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Omitir",accentButtonTitle:"Confirmar respuesta"},header:{title:"Semana gratuita de entrenamiento en el plan «Erich Fromm»",progressText:"experiencia",freeAccessBlock:{title:"1",subtitle:"semana",text:"gratis"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Imagen de encabezado"}},prizeList:{title:"Premios"},questList:{title:"Misiones",emptyQuestsWarning:"No hay misiones"},user:{defaultName:"Juan Pérez",avatar:{alt:"Foto de perfil"},ban:{forbiddenQuest:"Esta misión no está disponible temporalmente para usted",wait:"Por favor, espere"},randomNames:[{id:1,name:"Pelusa Traviesa"},{id:2,name:"Copito Alegre"},{id:3,name:"Trasto Gruñón"},{id:4,name:"Peludo Saltarín"},{id:5,name:"Chispa Pícara"},{id:6,name:"Canela Veloz"},{id:7,name:"Gordi Glotón"},{id:8,name:"Nube Temblorosa"},{id:9,name:"Lento Perezoso"},{id:10,name:"Capitán Migaja"},{id:11,name:"Señor Hámster"},{id:12,name:"Lola Risueña"},{id:13,name:"Bigotes Curiosos"},{id:14,name:"Jack Comilón"},{id:15,name:"Bufón Resoplón"},{id:16,name:"Rey Miau"},{id:17,name:"Ron Ron Peludo"},{id:18,name:"Boris Refunfuñón"},{id:19,name:"Zorro Astuto"},{id:20,name:"Pugron Sueñón"},{id:21,name:"Gruñón Fuerte"},{id:22,name:"Solecito Feliz"},{id:23,name:"Manchitas Ágil"},{id:24,name:"Quesito Veloz"},{id:25,name:"Peluchín Divertido"},{id:26,name:"Gominita Dulzona"},{id:27,name:"Trueno Travieso"},{id:28,name:"Barrigón Juguetón"},{id:29,name:"Tomás Espía"},{id:30,name:"Marisol Saltarina"},{id:31,name:"Erizo Astuto"},{id:32,name:"Chispero Enérgico"},{id:33,name:"Snoopy Parlanchín"},{id:34,name:"Desayuno Feliz"},{id:35,name:"Coco Risueño"},{id:36,name:"Pica Lástima"},{id:37,name:"Pelusón Suave"},{id:38,name:"Aurora Matutina"},{id:39,name:"Jerry Travieso"},{id:40,name:"Tigre Nube"},{id:41,name:"Panda Risueña"},{id:42,name:"Hugo Pensativo"},{id:43,name:"Pompa Burbuja"},{id:44,name:"Sedosa Delicia"},{id:45,name:"Dómini Donut"},{id:46,name:"Brisa Vivaz"},{id:47,name:"Garza Alegre"},{id:48,name:"Félix Narizudo"},{id:49,name:"Peludín Suave"},{id:50,name:"Pinto Manchado"}]}},de:{timer:{remainingTitle:"Zeitlimit:"},popup:{skillsTitle:"Erfahrung",menuItems:["Preise","Quests","Teilnehmer","Einstellungen"],prizes:{buttonTitle:"Preis erhalten",questionsTitle:"Punkte"}},gameMenu:{restart:"Neu starten"},popupBar:{prizesTitle:"Preise",skillsTitle:"Erfahrung"},widget:{skillsTitle:"Erfahrung",accentButtonTitle:"Antwort bestätigen",buttonTitle:"Überspringen"},input:{placeholder:"Geben Sie Text ein…"},testCard:{successTitle:"Test bestanden",buttonTitle:"Erneut versuchen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie alle zutreffenden Antworten aus der Liste aus:"},journeyCard:{successTitle:"Spiel abgeschlossen",buttonTitle:"Nochmals spielen",worstScoreTemplate:"Sie haben <mark>{points} von {maxPoints}</mark> Punkten erzielt. Ihr bester Wert ist <mark>{bestPoints} von {maxPoints}</mark>.",bestScoreTemplate:"Sie haben <mark>{bestPoints} von {maxPoints}</mark> Punkten erzielt.",prizesTitle:"Preise, die Sie noch erhalten können",questsTitle:"Quests, die Sie noch abschließen können",chooseAnswer:"Wählen Sie eine Antwort aus:"},settings:{signInPopup:{title:"Um Ihren Fortschritt zu speichern und Preise zu erhalten, müssen Sie ein Konto registrieren.",subtitle:"Ihr bisheriger Fortschritt wird darauf übertragen!",buttonTitle:"Schließen",accentButtonTitle:"Registrieren"},logout:"Abmelden"},globalError:{title:"Etwas ist schiefgelaufen 🤔",subtitle:"Während wir herausfinden, wie wir das Problem beheben können, können Sie versuchen, die Quest neu zu laden."},socialsPopup:{title:"Anmelden mit",subTitle:"Demnächst...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Überspringen",accentButtonTitle:"Antwort bestätigen"},header:{title:"Kostenlose Trainingswoche im Tarif „Erich Fromm“",progressText:"Erfahrung",freeAccessBlock:{title:"1",subtitle:"Woche",text:"kostenlos"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header-Bild"}},prizeList:{title:"Preise"},questList:{title:"Quests",emptyQuestsWarning:"Keine Quests verfügbar"},user:{defaultName:"Max Mustermann",avatar:{alt:"Profilbild"},ban:{forbiddenQuest:"Diese Quest ist vorübergehend nicht für Sie verfügbar",wait:"Bitte warten"},randomNames:[{id:1,name:"Luna"},{id:2,name:"Bella"},{id:3,name:"Charlie"},{id:4,name:"Max"},{id:5,name:"Mia"},{id:6,name:"Lucy"},{id:7,name:"Leo"},{id:8,name:"Lotte"},{id:9,name:"Lilo"},{id:10,name:"Balu"},{id:11,name:"Molly"},{id:12,name:"Sammy"},{id:13,name:"Flocke"},{id:14,name:"Finja"},{id:15,name:"Frida"},{id:16,name:"Henry"},{id:17,name:"Lenny"},{id:18,name:"Lia"},{id:19,name:"Fiona"},{id:20,name:"Emil"},{id:21,name:"Paula"},{id:22,name:"Oskar"},{id:23,name:"Rico"},{id:24,name:"Nala"},{id:25,name:"Loki"},{id:26,name:"Kira"},{id:27,name:"Benji"},{id:28,name:"Leia"},{id:29,name:"Teddy"},{id:30,name:"Sophie"},{id:31,name:"Arco"},{id:32,name:"Chico"},{id:33,name:"Lilly"},{id:34,name:"Emma"},{id:35,name:"Maja"},{id:36,name:"Nele"},{id:37,name:"Milo"},{id:38,name:"Rosie"},{id:39,name:"Toby"},{id:40,name:"Yuki"},{id:41,name:"Keks"},{id:42,name:"Bruno"},{id:43,name:"Fritz"},{id:44,name:"Gismo"},{id:45,name:"Nicky"},{id:46,name:"Ronja"},{id:47,name:"Trixi"},{id:48,name:"Zoe"},{id:49,name:"Hugo"},{id:50,name:"Pia"}]}},en:{timer:{remainingTitle:"Time limit:"},popup:{skillsTitle:"experience",menuItems:["Prizes","Quests","Participants","Settings"],prizes:{buttonTitle:"Get Prize",questionsTitle:"points"}},gameMenu:{restart:"Start over"},popupBar:{prizesTitle:"prizes",skillsTitle:"exp"},widget:{skillsTitle:"experience",accentButtonTitle:"Confirm Answer",buttonTitle:"Skip"},input:{placeholder:"Enter text…"},testCard:{successTitle:"You passed the test",buttonTitle:"Retake",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select all answers that apply from the list:"},journeyCard:{successTitle:"You completed the game",buttonTitle:"Play Again",worstScoreTemplate:"You scored <mark>{points} out of {maxPoints}</mark> points. Your best result is <mark>{bestPoints} out of {maxPoints}<mark/>",bestScoreTemplate:"You scored <mark>{bestPoints} out of {maxPoints}</mark> points",prizesTitle:"Prizes you can still earn",questsTitle:"Quests you can still complete",chooseAnswer:"Select an answer:"},settings:{signInPopup:{title:"To save your progress and earn prizes, you need to register an account.",subtitle:"Your progress will be transferred to it!",buttonTitle:"Close",accentButtonTitle:"Register"},logout:"Log Out"},globalError:{title:"Something went wrong 🤔",subtitle:"While we figure out how to fix it, you can try refreshing the quest"},socialsPopup:{title:"Sign up with",subTitle:"Coming soon...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Skip",accentButtonTitle:"Confirm Answer"},header:{title:'Free week of training on the "Erich Fromm" plan',progressText:"experience",freeAccessBlock:{title:"1",subtitle:"week",text:"free"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Prizes"},questList:{title:"Quests",emptyQuestsWarning:"There is no quest"},user:{defaultName:"Guest",avatar:{alt:"Profile picture"},ban:{forbiddenQuest:"This quest is temporarily unavailable to you",wait:"Please wait"},randomNames:[{id:1,name:"Whiskers"},{id:2,name:"Buddy"},{id:3,name:"Grumpy"},{id:4,name:"Oliver"},{id:5,name:"Cleo"},{id:6,name:"Bubbles"},{id:7,name:"Rex"},{id:8,name:"Shadow"},{id:9,name:"Max"},{id:10,name:"Charlie"},{id:11,name:"Nibbles"},{id:12,name:"Daisy"},{id:13,name:"Chip"},{id:14,name:"Jack"},{id:15,name:"Toby"},{id:16,name:"Simba"},{id:17,name:"Ginger"},{id:18,name:"Oscar"},{id:19,name:"Bandit"},{id:20,name:"Pugsley"},{id:21,name:"Spike"},{id:22,name:"Sunny"},{id:23,name:"Cutie"},{id:24,name:"Dash"},{id:25,name:"Snowball"},{id:26,name:"Sparkle"},{id:27,name:"Mischief"},{id:28,name:"Pumpkin"},{id:29,name:"Thomas"},{id:30,name:"Bella"},{id:31,name:"Bandit"},{id:32,name:"Zippy"},{id:33,name:"Snoopy"},{id:34,name:"Chappy"},{id:35,name:"Coco"},{id:36,name:"Pip"},{id:37,name:"Fuzzy"},{id:38,name:"Misty"},{id:39,name:"Jerry"},{id:40,name:"Tigger"},{id:41,name:"Panda"},{id:42,name:"Hugo"},{id:43,name:"Bubbles"},{id:44,name:"Silky"},{id:45,name:"Midnight"},{id:46,name:"Bonnie"},{id:47,name:"Herbie"},{id:48,name:"Fiona"},{id:49,name:"Dusty"},{id:50,name:"Speckles"}]}},ru:{timer:{remainingTitle:"Ограничение времени:"},popup:{skillsTitle:"опыта",menuItems:["Призы","Квесты","Участники","Настройки"],prizes:{buttonTitle:"Получить приз",questionsTitle:"баллов"}},gameMenu:{restart:"Начать заново"},popupBar:{prizesTitle:"призов",skillsTitle:"опыта"},widget:{skillsTitle:"опыта",accentButtonTitle:"Подтвердить ответ",buttonTitle:"Пропустить"},input:{placeholder:"Введите текст…"},testCard:{successTitle:"Вы прошли тест",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите все подходящие ответы из списка:"},journeyCard:{successTitle:"Вы прошли игру",buttonTitle:"Пройти еще раз",worstScoreTemplate:"Вы набрали <mark>{points} из {maxPoints}</mark> баллов. Ваш лучший результат <mark>{bestPoints} из {maxPoints}</mark>",bestScoreTemplate:"Вы набрали <mark>{bestPoints} из {maxPoints} баллов</mark>",prizesTitle:"Призы, которые еще можно получить",questsTitle:"Квесты, которые можно пройти ещё",chooseAnswer:"Выберите ответ:"},settings:{signInPopup:{title:"Чтобы сохранить прогресс и получить призы, необходимо зарегистрировать аккаунт.",subtitle:"Полученный прогресс перенесется на него!",buttonTitle:"Закрыть",accentButtonTitle:"Зарегистрироваться"},logout:"Выйти"},globalError:{title:"Что-то пошло не так 🤔",subtitle:"Пока мы думаем, как всё починить, можете попробовать обновить квест"},socialsPopup:{title:"Зарегистрироваться с",subTitle:"Скоро...",telegram:{title:"Telegram"},google:{title:"Google"},discord:{title:"Discord"}},footer:{buttonTitle:"Пропустить",accentButtonTitle:"Подтвердить ответ"},header:{title:"Бесплатная неделя обучения по тарифу «Эрих Фром»",progressText:"опыта",freeAccessBlock:{title:"1",subtitle:"неделя",text:"бесплатно"},button:{link:"/"},image:{url:"/src/assets/header/robert.webp",alt:"Header image"}},prizeList:{title:"Призы"},questList:{title:"Квесты",emptyQuestsWarning:"Квестов нет"},user:{defaultName:"Иван Иванов",avatar:{alt:"Картинка профиля"},ban:{forbiddenQuest:"Этот квест временно не доступен для вас",wait:"Подождите"},randomNames:[{id:1,name:"Барсик Грозный"},{id:2,name:"Пушистый Соловей"},{id:3,name:"Тяпа Угрюмый"},{id:4,name:"Василий Хвостатый"},{id:5,name:"Кеша Коварный"},{id:6,name:"Бублик Шустрый"},{id:7,name:"Шарик Проглот"},{id:8,name:"Мурзик Трепещущий"},{id:9,name:"Жора Ленивый"},{id:10,name:"Капитан Блоха"},{id:11,name:"Лорд Хомяк"},{id:12,name:"Жужа Смешная"},{id:13,name:"Чип Усатый"},{id:14,name:"Джек Обжора"},{id:15,name:"Тихон Пыхтящий"},{id:16,name:"Мяу Царь"},{id:17,name:"Рыжик Пушистик"},{id:18,name:"Борис Фырчащий"},{id:19,name:"Зорро Хитрый"},{id:20,name:"Мопсик Храпун"},{id:21,name:"Хрюша Громкий"},{id:22,name:"Гаврюша Радостный"},{id:23,name:"Котлетка Ловкая"},{id:24,name:"Сырник Бегущий"},{id:25,name:"Умка Забавный"},{id:26,name:"Бусинка Мимимишная"},{id:27,name:"Крош Шалун"},{id:28,name:"Пузик Забавный"},{id:29,name:"Томас Шпионистый"},{id:30,name:"Маруся Скачущая"},{id:31,name:"Ёжик Хитрый"},{id:32,name:"Клёпа Задорный"},{id:33,name:"Снупи Болтун"},{id:34,name:"Чапа Завтрак"},{id:35,name:"Кокос Хохотун"},{id:36,name:"Лапка Ласточка"},{id:37,name:"Фунтик Плюшевый"},{id:38,name:"Мурка Утренняя"},{id:39,name:"Джерри Нахальный"},{id:40,name:"Тигрик Зефирный"},{id:41,name:"Панда Забавная"},{id:42,name:"Хома Задумчивый"},{id:43,name:"Рыбка Пузырь"},{id:44,name:"Ласка Шелковая"},{id:45,name:"Мурзик Пончик"},{id:46,name:"Бонька Резвый"},{id:47,name:"Цапля Весёлая"},{id:48,name:"Филя Носатый"},{id:49,name:"Тузик Мохнатый"},{id:50,name:"Зяблик Пятнистый"}]}}},Fl=Object.keys(Bl)[0],Ye=Yt(e=>({translations:Bl[Fl],localeName:Fl,setLocale:t=>{let n=Bl[t];n||(n=Bl[Fl],t=Fl),e(()=>({translations:n,localeName:t}))}})),Ef=({prizeData:e,userPoints:t,openSignInInvite:n,openInfoModal:s,index:i})=>{const a=Ye(f=>f.translations.popup.prizes),c=localStorage.getItem("edmap-access-token"),d=()=>{c?s(i,"prize"):n(e)};return v.jsxs(fN,{children:[v.jsxs(M1,{children:[v.jsx(L1,{children:v.jsx(U1,{iconId:e==null?void 0:e.iconId})}),v.jsx(j1,{children:e==null?void 0:e.name})]}),v.jsxs(pN,{children:[e!=null&&e.isRecieved?v.jsx(Vn,{"data-testid":`edmap-widget__prize-btn-${i+1}`,title:a.buttonTitle,isAccent:!0,style:{minWidth:"159px"},onClick:d}):v.jsx(v.Fragment,{children:v.jsxs(mN,{children:[v.jsx(bs,{text:a.questionsTitle,progressValue:t,overallValue:e==null?void 0:e.awardPoints}),v.jsx($l,{progressValue:t,overallValue:e==null?void 0:e.awardPoints})]})}),v.jsx(hN,{children:v.jsx(F1,{icon:v.jsx(gN,{}),onClick:()=>s(i,"info")})})]})]})},FN=D("div")({name:"GiftsContainer",class:"edg1do84z2",propsAsIs:!1}),zN=({openSignInInvite:e,openInfoModal:t})=>{var s;const n=Ct(i=>i.results);return v.jsx(FN,{children:(s=n==null?void 0:n.prizes)==null?void 0:s.map((i,a)=>v.jsx(Ef,{index:a,prizeData:i,userPoints:n==null?void 0:n.allPoints,openSignInInvite:e,openInfoModal:t},i==null?void 0:i.id))})},UN=D("div")({name:"UserInfoWrapper",class:"eduxnm4b4",propsAsIs:!1}),HN=D("div")({name:"ImageWrapper",class:"edi1fh8glv",propsAsIs:!1}),WN=D("div")({name:"InfoWrapper",class:"edi1e8ga1u",propsAsIs:!1}),qN=D("div")({name:"MainInfo",class:"edm1qs3iet",propsAsIs:!1}),VN=D("div")({name:"TitleWrapper",class:"edtbtnkwj",propsAsIs:!1}),GN=D("div")({name:"PoweredContainer",class:"edp1rvtj15",propsAsIs:!1}),YN=D("div")({name:"ProgressTextWrapper",class:"edpseoz31",propsAsIs:!1}),KN=D("h3")({name:"Title",class:"edt1jzrydq",propsAsIs:!1}),QN=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:26,fill:"none",...e},C.createElement("path",{fill:"#C3C3C3",stroke:"#363636",strokeWidth:2,d:"m20.66 18.577-.5.29-8.66 5-.5.287-.5-.288-8.66-5-.5-.289V7.423l.5-.29 8.66-5 .5-.287.5.288 8.66 5 .5.289z"})),XN=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:24,fill:"none",...e},C.createElement("path",{fill:"#FCBC21",stroke:"#ED7527",strokeWidth:2,d:"M9 2a4 4 0 0 1 4 0l5.66 3.268c1.238.714 2 2.035 2 3.464v6.536c0 1.429-.762 2.75-2 3.464L13 22a4 4 0 0 1-4 0l-5.66-3.268a4 4 0 0 1-2-3.464V8.732c0-1.429.762-2.75 2-3.464z"})),xf=({level:e})=>v.jsxs(e3,{children:[v.jsx(ZN,{children:v.jsx(QN,{})}),v.jsx(JN,{children:v.jsx(XN,{})}),v.jsx("span",{children:e})]}),JN=ee("div")({name:"SmoothContainer",class:"edsvd1acj",propsAsIs:!1}),ZN=ee("div")({name:"RoughContainer",class:"edr1a0zzy8",propsAsIs:!1}),e3=ee("div")({name:"Container",class:"edc1fcmc7w",propsAsIs:!1}),t3=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("🦄🐺🐗🪼🐝🦅🐋")].map(e=>e.segment),n3=e=>[...e].map(t=>t.codePointAt(0)).join("-"),zl=Object.fromEntries(t3.map(e=>[n3(e),e])),r3=()=>{const e=localStorage.getItem(Bn.profileEmoji);if(e&&zl[e])return zl[e];const t=s3();return localStorage.setItem(Bn.profileEmoji,t),zl[t]},s3=()=>{const e=Object.keys(zl),t=o3(e.length);return e[t]},o3=e=>Math.floor(Math.random()*e),H1=D("div")({name:"Container",class:"edci91fsv",propsAsIs:!1}),kf=({src:e,...t})=>{const n=Ye(i=>i.translations.user.avatar.alt);if(e)return v.jsx(H1,{children:v.jsx("img",{...t,src:e,alt:n})});const s=r3();return v.jsx(H1,{children:s})},Tf=e=>e?e<10?1:Math.floor(e/10):1,i3=D("a")({name:"Container",class:"edc1ryazt0",propsAsIs:!1}),a3=D("span")({name:"Text",class:"edtk7p3bu",propsAsIs:!1}),l3=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:85,height:12,fill:"none",...e},C.createElement("path",{fill:"currentColor",d:"M4.992 0h10.144q1.04 0 1.936.4a4.9 4.9 0 0 1 1.584 1.056q.688.672 1.072 1.584.4.896.4 1.936v1.6H2.8q0 .511.176.96.192.432.496.768.32.32.752.512t.928.192h9.808q.336 0 .592-.064.255-.08.448-.192.208-.112.368-.256t.304-.32h3.264a5 5 0 0 1-.688 1.456 5.008 5.008 0 0 1-2.48 1.904 4.9 4.9 0 0 1-1.632.272H4.992a5 5 0 0 1-1.952-.384 5.1 5.1 0 0 1-1.584-1.072A5.1 5.1 0 0 1 .384 8.768 4.9 4.9 0 0 1 0 6.832V4.976q0-1.04.384-1.936a5.1 5.1 0 0 1 1.072-1.584Q2.128.784 3.04.4A4.8 4.8 0 0 1 4.992 0m.16 2.8q-.495 0-.928.192a2.3 2.3 0 0 0-.752.528q-.304.32-.496.768a2.5 2.5 0 0 0-.176.944h14.528a2.5 2.5 0 0 0-.176-.944 2.2 2.2 0 0 0-.496-.768 2.298 2.298 0 0 0-1.696-.72zM20.938.304H36.09q1.04 0 1.935.4A4.9 4.9 0 0 1 39.61 1.76q.672.672 1.056 1.584.4.896.4 1.936v1.248q0 1.024-.4 1.936a4.9 4.9 0 0 1-1.056 1.584 5.1 5.1 0 0 1-1.584 1.072 4.9 4.9 0 0 1-1.935.384H20.937zm2.8 2.8v5.6H36.09q.431 0 .831-.16.4-.176.688-.464.305-.304.48-.688.177-.4.177-.832V5.248q-.001-.432-.176-.816a2.1 2.1 0 0 0-.48-.688 1.9 1.9 0 0 0-.688-.464 2.05 2.05 0 0 0-.832-.176zM41.078 11.504l3.184-11.2h3.488l3.392 8.144L54.55.304h3.488l3.168 11.2h-3.04l-2.704-8.656-3.776 8.656h-1.088l-3.776-9.248-2.704 9.248zM65.037.304h5.471l2.225 11.2h-2.8l-.945-4.928h-2.431l-.945 4.928h-2.8zm3.328 2.768H67.18l-.352 2.16h1.888zM81.064.304q.656 0 1.232.256.592.24 1.024.672t.672 1.024q.255.576.256 1.232 0 .656-.256 1.232-.24.56-.672.976t-1.024.656q-.576.224-1.232.224h-3.936v4.928h-2.8V.304zm-.832 2.8h-3.104v2.128h3.104q.56 0 .88-.288.336-.288.336-.784 0-.48-.336-.768-.32-.288-.88-.288"})),W1={en:"en",ru:"ru",de:"de",es:"es",default:"en"},c3=e=>{const t=W1[e];return t||W1.default},q1=()=>{const e=Ye(s=>s.localeName),t=c3(e),n=new URLSearchParams;return n.set("utm_source",window.location.hostname),n.set("utm_medium",window.location.href),v.jsxs(i3,{href:`https://edmap.space/${t}?${n}`,target:"_blank",children:[v.jsx(a3,{children:"Powered by"}),v.jsx(l3,{})]})},u3=()=>typeof window<"u"&&window.location.hostname==="edmap.space",d3=()=>{var d,f,h,y,g;const[e,t]=C.useState(""),n=Ct(w=>w.results),s=(d=n==null?void 0:n.User)==null?void 0:d.username,i=Ye(w=>w.translations.user.randomNames),a=Ye(w=>w.translations.popup),c=u3();return C.useEffect(()=>{const w=_=>{var k;const x=Math.floor(Math.random()*_.length);return(k=_[x])==null?void 0:k.name};(_=>{const x=localStorage.getItem("edmap-access-token"),k=localStorage.getItem(Bn.defaultName);if(!k&&!x){const O=w(_);localStorage.setItem(Bn.defaultName,O),t(O)}else x?(localStorage.removeItem(Bn.defaultName),t(s)):t(k)})(i)},[s,i]),v.jsxs(UN,{children:[v.jsx(HN,{children:v.jsx(kf,{src:(h=(f=n==null?void 0:n.User)==null?void 0:f.avatar)==null?void 0:h.src})}),v.jsxs(WN,{children:[v.jsxs(qN,{children:[v.jsxs(VN,{children:[v.jsx(KN,{children:s??e}),v.jsx(xf,{level:Tf(n==null?void 0:n.allPoints)})]}),v.jsx(YN,{children:v.jsx(bs,{progressValue:n==null?void 0:n.allPoints,overallValue:(y=n==null?void 0:n.map)==null?void 0:y.points,text:a.skillsTitle})}),v.jsx($l,{progressValue:n==null?void 0:n.allPoints,overallValue:(g=n==null?void 0:n.map)==null?void 0:g.points})]}),!c&&v.jsx(GN,{children:v.jsx(q1,{})})]})]})},f3=D("ul")({name:"Container",class:"edc18eiqam",propsAsIs:!1}),p3=D("li")({name:"Item",class:"edi8drxbn",propsAsIs:!1}),h3=D("a")({name:"ItemLink",class:"edi1ovdisv",propsAsIs:!1}),m3=D("p")({name:"QuestName",class:"edqiwgwie",propsAsIs:!1}),g3=D("div")({name:"IconWrapper",class:"edi5p8aot",propsAsIs:!1}),V1=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e},C.createElement("path",{fill:"currentColor",d:"M16 15h-2V3.414L1.707 15.707.293 14.293 12.586 2H1V0h15z"})),bf=({quests:e})=>v.jsx(f3,{children:e==null?void 0:e.map(t=>{var n;return v.jsx(p3,{children:v.jsxs(h3,{href:t==null?void 0:t.url,children:[v.jsx(m3,{children:t==null?void 0:t.name}),v.jsxs(g3,{children:[v.jsx(bs,{progressValue:((n=t==null?void 0:t.resultQuestAnswer)==null?void 0:n.points)??0,overallValue:t==null?void 0:t.maxPoints}),v.jsx(V1,{})]})]})},t==null?void 0:t.id)})}),y3=D("div")({name:"Container",class:"edc1cuvton",propsAsIs:!1}),v3=D("div")({name:"Wrapper",class:"edw1bhqzg6",propsAsIs:!1}),If=({setIsRegInfoVisible:e,setIsSocialModalVisible:t,openSignInModal:n})=>{const s=Ye(a=>a.translations.settings.signInPopup),i=()=>{t(!0),n()};return v.jsxs(v3,{children:[v.jsxs(A1,{children:[v.jsx(O1,{children:s.title}),v.jsx(P1,{children:s.subtitle})]}),v.jsxs(N1,{children:[v.jsx(Vn,{title:s.buttonTitle,onClick:()=>e(!1)}),v.jsx(Vn,{title:s.accentButtonTitle,isAccent:!0,onClick:i})]})]})},G1=async(e=[],t="high")=>{const n=e.map(i=>new Promise(a=>{const c=new Image;c.src=i,c.fetchPriority=t,c.onload=()=>a(),c.onerror=()=>a()}));return await Promise.all(n)},Ul=200,Hl=Yt((e,t)=>({isHidden:!1,ref:{current:null},setRef:n=>e({ref:n}),startFadeTransition:async(n=[])=>{const s=t().ref;if(!s||!s.current){const y=Promise.resolve();return[y,()=>y]}e({isHidden:!0});const a=(y=>{const g=y.current;if(!g)return()=>{};const w=g.getBoundingClientRect().height;return g.style.height=`${w}px`,()=>{setTimeout(()=>{g.style.height="auto";const E=g.getBoundingClientRect().height;g.style.height=`${w}px`,setTimeout(()=>{g.style.height=`${E}px`,setTimeout(()=>{g.style.height="auto"},Ul+25)},25)},25)}})(s),c=new Promise(y=>{setTimeout(()=>{y()},Ul)}),d=async()=>{await c,a(),e({isHidden:!1})},f=async(y=[])=>{const g=G1(y);return d(),g};return await(async(y=[])=>{const[g,w]=await Promise.all([c,f(y)]);return w})(n)}})),Y1=(e=0)=>{setTimeout(()=>{const t=document.getElementById("edmap-widget__container");if(!t)return;const n=t.getBoundingClientRect();window.scrollTo({behavior:"smooth",top:n.top+window.scrollY-e})},Ul)},St={test:"Test",journey:"Journey"},fr=Yt(e=>({topOffset:0,marginRootTop:0,gapFromOffset:0,breakPoints:null,setGapFromOffset:t=>e({gapFromOffset:t}),setTopOffset:t=>e({topOffset:t}),setMarginRootTop:t=>e({marginRootTop:t}),setBreakPoints:t=>e({breakPoints:t})})),Wl={node:"node",inputAnswerNode:"input-answer-node",random:"random",if:"if",present:"present"},gn={journeyDefault:"journey-default",testDefault:"test-default",journeyText:"journey-text"},S3={[St.journey]:"/user-journey-answer",[St.test]:"/user-test-answer"},w3=e=>({currentNode:e.node,currentResources:Z1(e.currentResources)}),K1={[St.journey]:w3,[St.test]:e=>e},_3=e=>({quest:{currentStep:e.questionIndex+1},zustandState:e}),E3=e=>({quest:{},zustandState:e}),Q1={[St.journey]:E3,[St.test]:_3},x3={[gn.journeyDefault]:"/user-journey-answer",[gn.journeyText]:"/user-journey-answer/text",[gn.testDefault]:"/user-test-answer"},k3=async(e,t,n)=>({text:t.textAnswer,sessionId:Ts(e.id),userId:await dr(),nodeId:t.currentNode.id}),T3=async(e,t,n)=>({id:Er(13),journeyEdgeId:n.journeyEdgeId,sessionId:Ts(e.id),userId:await dr()}),b3=async(e,t,n)=>{const s=await dr(),i=Ts(e.id);return(t.selectedAnswers.length>0?t.selectedAnswers:[{id:null}]).map(c=>({id:`${Er(13)}`,answerId:c.answerId,questId:c.questId,questionId:t.currentQuestion.id,userId:s,sessionId:i}))},I3={[gn.journeyDefault]:T3,[gn.testDefault]:b3,[gn.journeyText]:k3},C3=e=>e.currentNode.type===Wl.present,R3=e=>e.currentQuestion===null,A3={[St.journey]:C3,[St.test]:R3},O3=(e,t)=>A3[e.quest.questType](t),X1=(e,t,n)=>{if(e.questType===St.test)return gn.testDefault;if(e.questType===St.journey)return t.currentNode.type===Wl.inputAnswerNode?gn.journeyText:gn.journeyDefault},P3=async(e,t,n)=>{const s=X1(e,t),i=await I3[s](e,t,n),a=x3[s],{data:c}=await mt.post(a,i);return K1[e.questType](c)},Cf=async e=>{if(!e)return null;const t=Ts(e.id),n=`${S3[e.questType]}/${e.id}/${t}`,s=await mt.get(n);return K1[e.questType](s.data)},N3=e=>{const t=e.currentNode;if(!t)return[];const n=Rf(t.data.blocks);return[...t.sourceEdges.flatMap(i=>Rf(i.richText.blocks)),...n]},M3=e=>{const t=e.currentQuestion;return t?Rf(t.text.blocks):[]},J1={[St.journey]:N3,[St.test]:M3},L3=async e=>await mt.post("/result-quest-answer/journey",{id:Er(16),sessionId:Ts(e.id),questId:e.id,mapId:e.mapId,userId:await dr()}),Z1=e=>e.map(F3),j3=e=>{const t=Number.isInteger(e);return new Intl.NumberFormat(void 0,{minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)},D3=(e,t,n)=>xr.reportEdgeClick(n.journeyEdgeId),$3=(e,t,n)=>xr.reportTestAnswers(t.selectedAnswers),B3={[gn.journeyDefault]:D3,[gn.journeyText]:()=>{},[gn.testDefault]:$3},F3=e=>({...e,value:j3(e.value)}),Rf=e=>e.filter(n=>n.type==="image").map(n=>{var s,i;return(i=(s=n.data)==null?void 0:s.file)==null?void 0:i.url}),z3=async(e,t)=>{const n=`/journey-node/${e}/resources`;try{const{data:s}=await mt.get(n,{signal:t});return s}catch{return{imageUrls:[]}}},pr=Yt(e=>({currentNode:{data:{blocks:[]},sourceEdges:[]},currentResources:[],textAnswer:"",setTextAnswer:t=>e({textAnswer:t}),setCurrentNode:(t,n)=>{e({currentNode:t,currentResources:Z1(n)})},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await Cf(t);e(()=>({currentNode:n,currentResources:s}))},restart:(t,n)=>{e({currentNode:t,currentResources:n})}})),ql=Yt(e=>({currentQuestion:null,selectedAnswers:[],setQuestion:t=>e({currentQuestion:t}),addAnswer:async(t,n,s)=>{const i={id:`${Er(13)}`,answerId:n,questionId:s,questId:t,userId:await dr(),sessionId:Ts(t)};e(a=>({selectedAnswers:[...a.selectedAnswers,i]}))},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await Cf(t);e(()=>({currentNode:n,resources:s}))},removeAnswer:t=>e(n=>({selectedAnswers:n.selectedAnswers.filter(s=>s.answerId!==t)})),resetAnswers:()=>e({selectedAnswers:[]}),resetTest:()=>e({selectedAnswers:[]})})),Af={[St.test]:ql,[St.journey]:pr},ev=()=>{const e=Me(n=>n.quest),t=Af[e.questType];return C.useMemo(()=>({quest:e,currentZustandHook:t}))},ko=()=>{const{quest:e,currentZustandHook:t}=ev(),n=Me(a=>a.setIsFinished),s=Hl(a=>a.startFadeTransition),i=fr(a=>a.marginRootTop);return C.useMemo(()=>{const a=Af[e.questType],c={fetchPreviousProgress:async d=>{const f=await Cf(d),h=Q1[d.questType](f);await s(J1[d.questType](h.zustandState)),Me.setState(h.quest),Af[d.questType].setState(h.zustandState)},makeStep:async d=>{const f=a.getState();B3[X1(e,f)](e,f,d);const h=await P3(e,f,d),y=Q1[e.questType](h);Y1(i),await s(J1[e.questType](y.zustandState)),Me.setState(y.quest);const g=O3(Me.getState(),y.zustandState);n(g),a.setState(y.zustandState)},cleanQuestInit:async d=>{await c.fetchPreviousProgress(d),n(!1)},restartQuest:async()=>{w1(e.id),c.cleanQuestInit(e),Y1(i)}};return c},[e,t,i])},U3=()=>{const{resetQuest:e}=ko(),t=Ct(i=>i.refreshUserResults),n=Ye(i=>i.translations.settings),s=async()=>{var i;await Qh(),t((i=window.__widgetEdmap)==null?void 0:i.mapId),e()};return v.jsx(Vn,{onClick:s,title:n.logout,isAccent:!0})},H3=({openSignInModal:e,setIsSocialModalVisible:t})=>{const n=localStorage.getItem("edmap-access-token"),[s,i]=C.useState(!0);return v.jsx(y3,{children:n&&v.jsx(N1,{children:v.jsx(U3,{})})||s&&v.jsx(If,{openSignInModal:e,setIsSocialModalVisible:t,setIsRegInfoVisible:i})})},W3=D("div")({name:"PoweredContainer",class:"edp153jgy2",propsAsIs:!1}),q3=D("div")({name:"ProgressTextContainer",class:"edp88qvra",propsAsIs:!1}),V3=D("div")({name:"StepContainer",class:"eds3v2lpt",propsAsIs:!1}),tv=D("div")({name:"ButtonWrapper",class:"edb1h6cmje",propsAsIs:!1}),G3=D("div")({name:"Container",class:"edc1g9vmxh",propsAsIs:!1}),Y3=D("div")({name:"Background",class:"edb1dvqizg",propsAsIs:!1}),K3=D("div")({name:"Container",class:"edc24c84i",propsAsIs:!1}),Q3=D("div")({name:"InfoBlock",class:"edic7ywtw",propsAsIs:!1}),X3=D("p")({name:"InfoBlockTitle",class:"ediy16h9m",propsAsIs:!1}),J3=D("p")({name:"InfoBlockSubtitle",class:"edi1m54nr",propsAsIs:!1}),Z3=D(tv)({name:"CustomButtonWrapper",class:"edc10pc0jd",propsAsIs:!0}),eM=D("div")({name:"Container",class:"edc1mwrga6",propsAsIs:!1}),nv=D("h3")({name:"Title",class:"edt1l3a9ma",propsAsIs:!1}),tM=D("div")({name:"UnavailableButtons",class:"edutbpur",propsAsIs:!1}),nM=D("div")({name:"CloseButton",class:"edcnx305o",propsAsIs:!1}),rM=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 333334 333334",...e},C.createElement("path",{d:"M166667 0c92048 0 166667 74619 166667 166667s-74619 166667-166667 166667S0 258715 0 166667 74619 0 166667 0m80219 91205-29735 149919s-4158 10396-15594 5404l-68410-53854s76104-68409 79222-71320c3119-2911 2079-3534 2079-3534 207-3535-5614 0-5614 0l-100846 64043-42002-14140s-6446-2288-7069-7277c-624-4992 7277-7694 7277-7694l166970-65498s13722-6030 13722 3951m-87637 122889-27141 24745s-2122 1609-4443 601l5197-45965z"})),sM=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,clipRule:"evenodd",viewBox:"0 0 512 512",...e},C.createElement("path",{d:"M32.582 370.734C15.127 336.291 5.12 297.425 5.12 256c0-41.426 10.007-80.291 27.462-114.735C74.705 57.484 161.047 0 261.12 0c69.12 0 126.836 25.367 171.287 66.793l-73.31 73.309c-26.763-25.135-60.276-38.168-97.977-38.168-66.56 0-123.113 44.917-143.36 105.426-5.12 15.36-8.146 31.65-8.146 48.64 0 16.989 3.026 33.28 8.146 48.64l-.303.232h.303c20.247 60.51 76.8 105.426 143.36 105.426 34.443 0 63.534-9.31 86.341-24.67 27.23-18.152 45.382-45.148 51.433-77.032H261.12v-99.142h241.105c3.025 16.757 4.654 34.211 4.654 52.364 0 77.963-27.927 143.592-76.334 188.276-42.356 39.098-100.305 61.905-169.425 61.905-100.073 0-186.415-57.483-228.538-141.032z"})),oM=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 50 50",...e},C.createElement("path",{d:"M41.625 10.77c-3.98-3.204-10.277-3.747-10.547-3.766a.99.99 0 0 0-.988.586 7 7 0 0 0-.305.832c2.633.445 5.867 1.34 8.793 3.156a1 1 0 1 1-1.055 1.7C32.493 10.155 26.211 10 25 10c-1.21 0-7.496.156-12.523 3.277a1 1 0 0 1-1.055-1.7c2.926-1.811 6.16-2.71 8.793-3.151-.152-.496-.29-.809-.3-.836a.99.99 0 0 0-.993-.586c-.27.02-6.567.562-10.602 3.809C6.215 12.762 2 24.153 2 34c0 .176.047.344.133.496 2.906 5.11 10.84 6.445 12.648 6.504h.031a1 1 0 0 0 .81-.41l1.827-2.516c-4.933-1.273-7.453-3.437-7.597-3.566a1 1 0 0 1 1.324-1.5C11.234 33.063 15.875 37 25 37c9.14 0 13.781-3.953 13.828-3.992a1 1 0 0 1 1.41.094.996.996 0 0 1-.09 1.406c-.144.129-2.664 2.293-7.597 3.566l1.828 2.516a1 1 0 0 0 .809.41h.03c1.81-.059 9.743-1.395 12.65-6.504.085-.152.132-.32.132-.496 0-9.848-4.215-21.238-6.375-23.23M18.5 30c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4m13 0c-1.934 0-3.5-1.79-3.5-4s1.566-4 3.5-4 3.5 1.79 3.5 4-1.566 4-3.5 4"})),iM=[{name:"telegram",icon:v.jsx(rM,{}),onClick:RP},{name:"google",icon:v.jsx(sM,{}),onClick:OP},{name:"discord",icon:v.jsx(oM,{}),onClick:console.log}],aM=({icon:e,title:t,...n})=>v.jsxs(lM,{...n,children:[e,v.jsx(cM,{children:t})]}),lM=ee(_f)({name:"CustomButton",class:"edc1yr71r",propsAsIs:!0}),cM=ee("p")({name:"Title",class:"edtsdg8a8",propsAsIs:!1}),rv=e=>v.jsx(aM,{"data-testid":`edmap-widget__social-${e.name}-btn`,title:e.title,icon:e.icon,disabled:e.disabled,onClick:e.onClick},e.name),uM=(e,t)=>{var n;return{...e,title:(n=t[e.name])==null?void 0:n.title}},dM=(e,t)=>({...e,disabled:t}),fM=({closeModal:e})=>{var f;const t=Ye(h=>h.translations.socialsPopup),n=Ct(h=>h.results),s=(f=n==null?void 0:n.map)==null?void 0:f.registration,a=iM.map(h=>uM(h,t)).map(h=>dM(h,!s[h.name])),c=a.filter(h=>!h.disabled),d=a.filter(h=>h.disabled);return v.jsxs(eM,{"data-testid":"edmap-widget__social-popup",children:[c.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(nM,{onClick:e,children:"✕"}),v.jsx(nv,{children:t.title}),c.map(rv)]}),d.length>0&&v.jsxs(tM,{children:[v.jsx(nv,{children:t.subTitle}),d.map(rv)]})]})},sv=({isOpen:e,closeModal:t,isSocialModalVisible:n,setIsSocialModalVisible:s})=>{const i=C.useRef(null),a=Ye(y=>y.translations.signInPopup),[c,d]=C.useState(!1),f=y=>{i.current&&!i.current.contains(y.target)&&(t(),s(!1),d(!1))},h=()=>{s(!1),d(!1),t()};if(C.useEffect(()=>(d(!1),e?document.addEventListener("mousedown",f):document.removeEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[e]),!!e)return v.jsx(Y3,{children:v.jsx(K3,{ref:i,children:c||n?v.jsx(fM,{closeModal:h}):v.jsxs("div",{"data-testid":"edmap-widget__signin-popup",children:[v.jsxs(Q3,{children:[v.jsx(X3,{children:a.title}),v.jsx(J3,{children:a.subtitle})]}),v.jsxs(Z3,{children:[v.jsx(Vn,{title:a.buttonTitle,onClick:t}),v.jsx(Vn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:()=>d(!0)})]})]})})})};function Vl(){const[e,t]=C.useState(!1);return{isOpen:e,openModal:()=>t(!0),closeModal:()=>t(!1)}}const pM=D("div")({name:"Background",class:"edbwx2goj",propsAsIs:!1}),hM=D("div")({name:"Container",class:"edcc2hi8c",propsAsIs:!1}),mM=D("div")({name:"CloseButton",class:"edc1td8pnr",propsAsIs:!1}),To=ee("p")({name:"FittableText",class:"edf16hcfkz",propsAsIs:!1}),gM=ee(To)({name:"QuestionParagraph",class:"edqbe2o7o",propsAsIs:!0}),yM=ee(To)({name:"AnswerParagraph",class:"eda1u10kac",propsAsIs:!0}),vM=ee(To)({name:"JourneyWidgetText",class:"edj1c2nqbc",propsAsIs:!0}),ov=ee(To)({name:"EdgeText",class:"edew0t9wk",propsAsIs:!0}),SM=ee(ov)({name:"NodeDescription",class:"edn13pdjrz",propsAsIs:!0}),wM=ee(To)({name:"PrizeInfoParagraph",class:"edp1ot2zjf",propsAsIs:!0}),_M=ee(To)({name:"PrizeDescParagraph",class:"edp120urih",propsAsIs:!0}),EM=ee("div")({name:"RichTextWrap",class:"edr4pnqsv",propsAsIs:!1}),xM=ee("table")({name:"StyledTable",class:"edsnwt7pg",propsAsIs:!1}),kM=ee("div")({name:"Border",class:"edb1uwnm14",propsAsIs:!1}),TM=ee("img")({name:"StyledImage",class:"eds4xz4ib",propsAsIs:!1}),bM=ee("div")({name:"CenteringBlock",class:"edc1nwul5g",propsAsIs:!1}),IM=ee("img")({name:"NodeDescriptionImage",class:"ednk9d4jz",propsAsIs:!1}),CM=ee("span")({name:"ImageCaption",class:"ediz6of6y",propsAsIs:!1}),RM=ee("h1")({name:"Heading1",class:"edh1mrpu6g",propsAsIs:!1}),AM=ee("h2")({name:"Heading2",class:"edh4lzuk3",propsAsIs:!1}),OM=ee("h3")({name:"Heading3",class:"edhpo5zbv",propsAsIs:!1}),PM=ee("h4")({name:"Heading4",class:"edhm6a0je",propsAsIs:!1}),NM=ee("div")({name:"BlockWrapper",class:"edbaa4gm3",propsAsIs:!1}),MM=ee("div")({name:"Container",class:"edc1gv2nxr",propsAsIs:!1}),LM=ee("div")({name:"Header",class:"edh1ox5ey6",propsAsIs:!1}),jM=ee("div")({name:"CodeBackground",class:"edc1pst60x",propsAsIs:!1}),DM=ee("div")({name:"CodeBlock",class:"edc1m8ekz6",propsAsIs:!1}),$M=ee("pre")({name:"Scrollable",class:"eds1002l4s",propsAsIs:!1}),BM=ee("span")({name:"LangName",class:"edllrx5n5",propsAsIs:!1});function Gl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var FM=typeof global=="object"&&global&&global.Object===Object&&global,zM=typeof self=="object"&&self&&self.Object===Object&&self,iv=FM||zM||Function("return this")(),Of=function(){return iv.Date.now()},UM=/\s/;function HM(e){for(var t=e.length;t--&&UM.test(e.charAt(t)););return t}var WM=/^\s+/;function qM(e){return e&&e.slice(0,HM(e)+1).replace(WM,"")}var Yl=iv.Symbol,av=Object.prototype,VM=av.hasOwnProperty,GM=av.toString,Oi=Yl?Yl.toStringTag:void 0;function YM(e){var t=VM.call(e,Oi),n=e[Oi];try{e[Oi]=void 0;var s=!0}catch{}var i=GM.call(e);return s&&(t?e[Oi]=n:delete e[Oi]),i}var KM=Object.prototype,QM=KM.toString;function XM(e){return QM.call(e)}var JM="[object Null]",ZM="[object Undefined]",lv=Yl?Yl.toStringTag:void 0;function e4(e){return e==null?e===void 0?ZM:JM:lv&&lv in Object(e)?YM(e):XM(e)}function t4(e){return e!=null&&typeof e=="object"}var n4="[object Symbol]";function r4(e){return typeof e=="symbol"||t4(e)&&e4(e)==n4}var cv=NaN,s4=/^[-+]0x[0-9a-f]+$/i,o4=/^0b[01]+$/i,i4=/^0o[0-7]+$/i,a4=parseInt;function uv(e){if(typeof e=="number")return e;if(r4(e))return cv;if(Gl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Gl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qM(e);var n=o4.test(e);return n||i4.test(e)?a4(e.slice(2),n?2:8):s4.test(e)?cv:+e}var l4="Expected a function",c4=Math.max,u4=Math.min;function Kl(e,t,n){var s,i,a,c,d,f,h=0,y=!1,g=!1,w=!0;if(typeof e!="function")throw new TypeError(l4);t=uv(t)||0,Gl(n)&&(y=!!n.leading,g="maxWait"in n,a=g?c4(uv(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function E(M){var L=s,U=i;return s=i=void 0,h=M,c=e.apply(U,L),c}function _(M){return h=M,d=setTimeout(O,t),y?E(M):c}function x(M){var L=M-f,U=M-h,te=t-L;return g?u4(te,a-U):te}function k(M){var L=M-f,U=M-h;return f===void 0||L>=t||L<0||g&&U>=a}function O(){var M=Of();if(k(M))return R(M);d=setTimeout(O,x(M))}function R(M){return d=void 0,w&&s?E(M):(s=i=void 0,c)}function $(){d!==void 0&&clearTimeout(d),h=0,s=f=i=d=void 0}function H(){return d===void 0?c:R(Of())}function z(){var M=Of(),L=k(M);if(s=arguments,i=this,f=M,L){if(d===void 0)return _(f);if(g)return clearTimeout(d),d=setTimeout(O,t),E(f)}return d===void 0&&(d=setTimeout(O,t)),c}return z.cancel=$,z.flush=H,z}var d4="Expected a function";function f4(e,t,n){var s=!0,i=!0;if(typeof e!="function")throw new TypeError(d4);return Gl(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),Kl(e,t,{leading:s,maxWait:t,trailing:i})}var bo=function(){return bo=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},bo.apply(this,arguments)};function dv(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function fv(e){return!e||!e.ownerDocument?document:e.ownerDocument}var pv=function(e){var t={},n=Array.prototype.reduce.call(e,function(s,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var c=a[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()});switch(i.value){case"true":s[c]=!0;break;case"false":s[c]=!1;break;case void 0:s[c]=!0;break;default:s[c]=i.value}}return s},t);return n};function hv(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function mv(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function gv(e){return".".concat(e.split(" ").join("."))}var Pf=!!(typeof window<"u"&&window.document&&window.document.createElement),p4=Object.freeze({__proto__:null,addClasses:hv,canUseDOM:Pf,classNamesToQuery:gv,getElementDocument:fv,getElementWindow:dv,getOptions:pv,removeClasses:mv}),Io=null,yv=null;Pf&&window.addEventListener("resize",function(){yv!==window.devicePixelRatio&&(yv=window.devicePixelRatio,Io=null)});function vv(){if(Io===null){if(typeof document>"u")return Io=0,Io;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Io=n}return Io}var Br=dv,Nf=fv,h4=pv,Fr=hv,zr=mv,Kt=gv,Pi=function(){function e(t,n){n===void 0&&(n={});var s=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Br(s.el);s.scrollXTicking||(i.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(i.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,Fr(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){zr(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(Fr(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){zr(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(i){s.mouseX=i.clientX,s.mouseY=i.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!s.axis.x.track.el||!s.axis.y.track.el||!s.axis.x.scrollbar.el||!s.axis.y.scrollbar.el)){var a,c;s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(a=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(c=s.isWithinBounds(s.axis.y.track.rect)),(a||c)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(i,"x"):s.onTrackClick(i,"x")),c&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(i,"y"):s.onTrackClick(i,"y"))))}},this.drag=function(i){var a,c,d,f,h,y,g,w,E,_,x;if(!(!s.draggedAxis||!s.contentWrapperEl)){var k,O=s.axis[s.draggedAxis].track,R=(c=(a=O.rect)===null||a===void 0?void 0:a[s.axis[s.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,$=s.axis[s.draggedAxis].scrollbar,H=(f=(d=s.contentWrapperEl)===null||d===void 0?void 0:d[s.axis[s.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,z=parseInt((y=(h=s.elStyles)===null||h===void 0?void 0:h[s.axis[s.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),s.draggedAxis==="y"?k=i.pageY:k=i.pageX;var M=k-((w=(g=O.rect)===null||g===void 0?void 0:g[s.axis[s.draggedAxis].offsetAttr])!==null&&w!==void 0?w:0)-s.axis[s.draggedAxis].dragOffset;M=s.draggedAxis==="x"&&s.isRtl?((_=(E=O.rect)===null||E===void 0?void 0:E[s.axis[s.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-$.size-M:M;var L=M/(R-$.size),U=L*(H-z);s.draggedAxis==="x"&&s.isRtl&&(U=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-U:U),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=U}},this.onEndDrag=function(i){s.isDragging=!1;var a=Nf(s.el),c=Br(s.el);i.preventDefault(),i.stopPropagation(),zr(s.el,s.classNames.dragging),s.onStopScrolling(),a.removeEventListener("mousemove",s.drag,!0),a.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=c.setTimeout(function(){a.removeEventListener("click",s.preventClick,!0),a.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=bo(bo({},e.defaultOptions),n),this.classNames=bo(bo({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=f4(this._onMouseMove,64),this.onWindowResize=Kl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Kl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Kl(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,s=n==null?void 0:n.firstElementChild;if(!s)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),a=e.getOffset(s);n.scrollLeft=-999;var c=e.getOffset(s);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==c.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:vv()}catch{return vv()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),s=Nf(t),i=Br(t);return{top:n.top+(i.pageYOffset||s.documentElement.scrollTop),left:n.left+(i.pageXOffset||s.documentElement.scrollLeft)}},e.prototype.init=function(){Pf&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Kt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Kt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Kt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Kt(this.classNames.offset)),this.maskEl=this.el.querySelector(Kt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Kt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Kt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Kt(this.classNames.scrollbar)))||null,this.options.autoHide||(Fr(this.axis.x.scrollbar.el,this.classNames.visible),Fr(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,s=Br(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),s.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=s.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&s.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),s.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new s.MutationObserver(function(){s.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Br(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,s=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,h=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=s?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||h,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&h>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,w=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&h>a-w,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,s;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(s=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&s!==void 0?s:0,c=a/i,d;return d=Math.max(~~(c*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},e.prototype.positionScrollbar=function(t){var n,s,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[t].sizeAttr],10),h=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];h=t==="x"&&this.isRtl&&(!((s=e.getRtlHelpers())===null||s===void 0)&&s.isScrollOriginAtZero)?-h:h,t==="x"&&this.isRtl&&(h=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?h:-h);var y=h/(c-f),g=~~((d-a.size)*y);g=t==="x"&&this.isRtl?-g+(d-a.size):g,a.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,s=this.axis[t].scrollbar.el;!n||!s||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?s.style.display="block":s.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Fr(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(zr(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Fr(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Fr(n.scrollbar.el,this.classNames.hover):zr(n.scrollbar.el,this.classNames.hover)):(zr(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),zr(this.axis[t].track.el,this.classNames.hover),zr(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var s;n===void 0&&(n="y"),this.isDragging=!0;var i=Nf(this.el),a=Br(this.el),c=this.axis[n].scrollbar,d=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=d-(((s=c.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Fr(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var s=this,i,a,c,d;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var h=Br(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(a=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,w=parseInt((d=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-g:this.mouseX-g,x=_<0?-1:1,k=x===-1?E-w:E+w,O=40,R=function(){s.contentWrapperEl&&(x===-1?E>k&&(E-=O,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=E,h.requestAnimationFrame(R)):E<k&&(E+=O,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=E,h.requestAnimationFrame(R)))};R()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Br(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return s.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=h4,e.helpers=p4,e}(),an=function(){return an=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},an.apply(this,arguments)};function m4(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var Sv=C.forwardRef(function(e,t){var n=e.children,s=e.scrollableNodeProps,i=s===void 0?{}:s,a=m4(e,["children","scrollableNodeProps"]),c=C.useRef(),d=C.useRef(),f=C.useRef(),h={},y={};Object.keys(a).forEach(function(E){Object.prototype.hasOwnProperty.call(Pi.defaultOptions,E)?h[E]=a[E]:y[E]=a[E]});var g=an(an({},Pi.defaultOptions.classNames),h.classNames),w=an(an({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:h.tabIndex||Pi.defaultOptions.tabIndex,role:"region","aria-label":h.ariaLabel||Pi.defaultOptions.ariaLabel});return C.useEffect(function(){var E;return d.current=w.ref?w.ref.current:d.current,c.current&&(E=new Pi(c.current,an(an(an({},h),d.current&&{scrollableNode:d.current}),f.current&&{contentNode:f.current})),typeof t=="function"?t(E):t&&(t.current=E)),function(){E==null||E.unMount(),E=null,typeof t=="function"&&t(null)}},[]),C.createElement("div",an({"data-simplebar":"init",ref:c},y),C.createElement("div",{className:g.wrapper},C.createElement("div",{className:g.heightAutoObserverWrapperEl},C.createElement("div",{className:g.heightAutoObserverEl})),C.createElement("div",{className:g.mask},C.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:an(an({},w),{ref:d}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):C.createElement("div",an({},w),C.createElement("div",{className:g.contentEl},n)))),C.createElement("div",{className:g.placeholder})),C.createElement("div",{className:"".concat(g.track," ").concat(g.horizontal)},C.createElement("div",{className:g.scrollbar})),C.createElement("div",{className:"".concat(g.track," ").concat(g.vertical)},C.createElement("div",{className:g.scrollbar})))});Sv.displayName="SimpleBar";const g4=ee("button")({name:"Container",class:"edc1q8nrja",propsAsIs:!1}),y4=ee("span")({name:"Text",class:"edt1votrxj",propsAsIs:!1}),v4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",d:"M16 9a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zm2 10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3z"}),C.createElement("path",{fill:"currentColor",d:"M19 2a3 3 0 0 1 3 3v10a3 3 0 0 1-2 2.825V5a1 1 0 0 0-1-1H6.174C6.586 2.835 7.694 2 9 2z"})),S4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",d:"M20.414 7.01 9.88 17.405l-6.293-6.21L4.99 9.771l4.888 4.824 9.132-9.01z"})),w4=({textToCopy:e})=>{const[t,n]=C.useState(!1),s=C.useRef(null),i=()=>{if(clearTimeout(s.current),t){n(!1);return}navigator.clipboard.writeText(e),n(!0),s.current=setTimeout(()=>{n(!1)},2e3)};return v.jsxs(g4,{style:{background:t?"var(--code-block-copied-button-bg)":"var(--code-block-copy-button-bg)"},onClick:i,children:[t?v.jsx(S4,{}):v.jsx(v4,{}),v.jsx(y4,{children:t?"copied":"copy"})]})},_4=({data:e})=>{const{html:t,language:n,code:s}=e,a=s.split(/\r?\n/).length>1,c=a?{width:"100%",maxHeight:"456px"}:{width:"100%",height:"auto"};return v.jsxs(MM,{children:[v.jsxs(LM,{children:[v.jsx(BM,{children:n||"code"}),v.jsx(w4,{textToCopy:s})]}),v.jsx(jM,{style:c,children:v.jsx(Sv,{autoHide:!1,style:c,children:v.jsx(DM,{children:v.jsx($M,{style:{paddingRight:a?"20px":"10px"},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:t}})})})})})]})},E4=/\[(.*?)\]/g,wv=(e,t)=>e.replace(E4,(n,s)=>t[s]?`${t[s]}`:n),x4=e=>Object.keys(e).reduce((t,n)=>{const s=e[n],i=s.slice(1,s.length-1);return{...t,[i]:`[${n}]`}},{}),_v=e=>C.useMemo(()=>{const t=x4(e);return{convertStringToReplacement:c=>wv(c,e),convertStringToId:c=>wv(c,t),convertIdToReplacement:c=>{const d=e[c];return d||c},convertReplacementToId:c=>{const d=t[c];return d||c}}},[e]),k4={1:RM,2:AM,3:OM,4:PM,5:"h5",6:"h6"},T4=({data:e,isEdgeText:t,replacements:n})=>{const{text:s,level:i}=e,{convertStringToReplacement:a}=_v(n),c=k4[i];return v.jsx(c,{isEdgeText:t,children:a(s)})},b4=ee("li")({name:"ListItem",class:"edl18kdprd",propsAsIs:!1}),I4=ee("ol")({name:"OrderedList",class:"edoyxj7j5",propsAsIs:!1}),C4=ee("div")({name:"Row",class:"edr7e6b3z",propsAsIs:!1}),R4=ee("ul")({name:"UnorderedList",class:"eduyntbxa",propsAsIs:!1}),A4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",d:"M18 12a6 6 0 1 1-12 0 6 6 0 0 1 12 0"})),O4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8",clipRule:"evenodd"})),P4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",d:"m19 12-7 7-7-7 7-7zM7.828 12 12 16.172 16.172 12 12 7.828z"})),N4=ee("div")({name:"Container",class:"edc8c3d4h",propsAsIs:!1}),M4={0:v.jsx(A4,{}),1:v.jsx(O4,{}),2:v.jsx(P4,{})},L4=({style:e,text:t,level:n})=>{const i=e==="ordered"?t:M4[(n-1)%3];return v.jsx(N4,{children:i})},j4=({data:e,replacements:t,isAnswer:n,isPrizeInfo:s,isPrizeDesc:i,isEdgeText:a,isJourneyWidgetText:c,isNodeDescription:d})=>{const{convertStringToReplacement:f}=_v(t),{text:h}=e,y=f(h),g=Ev(y);let w;return n?w=yM:s?w=wM:i?w=_M:a?w=ov:c?w=vM:d?w=SM:w=gM,v.jsx(w,{dangerouslySetInnerHTML:{__html:g}})},Ev=e=>{const n=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html");return n.querySelectorAll("a").forEach(i=>{i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer")}),n.body.firstChild.innerHTML},D4=({data:e})=>{const{meta:t,items:n,style:s}=e,i=(a,c,d)=>{if(!a||a.length===0)return null;const f=s==="unordered"?R4:I4;return v.jsx(f,{counterType:t==null?void 0:t.counterType,children:a.map((h,y)=>{const g=d+(y+1)+".";return v.jsx(Tt.Fragment,{children:v.jsxs(b4,{style:{paddingLeft:c===1?"0px":"32px"},children:[v.jsxs(C4,{children:[v.jsx(L4,{style:s,level:c,text:g}),v.jsx("span",{dangerouslySetInnerHTML:{__html:Ev(h.content)}})]}),i(h.items,c+1,g)]})},y)})})};return v.jsx(v.Fragment,{children:i(n,1,"")})},$4=ee("blockquote")({name:"Container",class:"edc1pmqebe",propsAsIs:!1}),B4=ee("span")({name:"Content",class:"edcfeuydt",propsAsIs:!1}),F4=ee("div")({name:"CaptionBlock",class:"edcqx7kpx",propsAsIs:!1}),z4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,...e},C.createElement("path",{fill:"currentColor",d:"M19.866 12.887V19h-6.078v-4.563q0-2.959.565-5.212A14.2 14.2 0 0 1 16.182 5H20q-1.398 2-2.124 4.028-.726 2-.726 3.86zm-9.789 0V19H4v-4.563q0-2.959.565-5.212T6.42 5h3.792Q8.813 7 8.06 9.028q-.726 2.028-.726 3.86z"})),U4=({data:e})=>v.jsxs($4,{children:[v.jsx(z4,{}),v.jsx(B4,{children:e.quote}),v.jsxs(F4,{children:[v.jsx("p",{children:e.authorName}),v.jsx("p",{children:e.profession})]})]}),H4=({data:e})=>{const{content:t,withHeadings:n}=e;if(!Array.isArray(t)||t.length===0)return;const s=n?t[0]:null,i=n?t.slice(1):t;return v.jsxs(xM,{children:[s&&v.jsx("thead",{children:v.jsx("tr",{children:s.map((a,c)=>v.jsx("th",{children:a},c))})}),v.jsx("tbody",{children:i.map((a,c)=>v.jsx("tr",{children:a.map((d,f)=>v.jsx("td",{dangerouslySetInnerHTML:{__html:d||"—"}},f))},c))})]})},W4=({data:e,isNodeDescription:t})=>{const{file:{url:n},stretched:s,withBackground:i,withBorder:a,caption:c}=e;let d;t?d=IM:d=TM;const f=s?"auto":"400px",h=s?"100%":"fit-content";return v.jsxs(bM,{style:{alignItems:s?"center":"flex-start"},children:[v.jsx(kM,{style:{width:h},children:v.jsx(d,{src:n,alt:c??"test image",style:{width:h,height:f},fetchpriority:"high"})}),c&&v.jsx(CM,{children:c})]})},q4=({data:e})=>v.jsx("div",{dangerouslySetInnerHTML:{__html:e==null?void 0:e.html}}),V4=({data:e,replacements:t,...n})=>{const s=uS(e,t,n);return v.jsx(NM,{style:{gap:n.isJourneyWidgetText?"12px":"14px"},children:s})},G4=ee("a")({name:"Border",class:"edb1n9nuyu",propsAsIs:!1}),Y4=ee("div")({name:"FaviconContainer",class:"edf33eea4",propsAsIs:!1}),K4=ee("img")({name:"Favicon",class:"edf1siw68p",propsAsIs:!1}),Q4=ee("div")({name:"MetaBlock",class:"edm1u7odcx",propsAsIs:!1}),xv=ee("span")({name:"Text",class:"edt4nkw3z",propsAsIs:!1}),X4=ee(xv)({name:"BoldText",class:"edbz1s450",propsAsIs:!0}),J4=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},C.createElement("path",{fill:"currentColor",d:"M20 19h-2V7.414L5.707 19.707l-1.414-1.414L16.586 6H5V4h15z"}));function kv(e,t){return function(){return e.apply(t,arguments)}}const{toString:Z4}=Object.prototype,{getPrototypeOf:Mf}=Object,{iterator:Ql,toStringTag:Tv}=Symbol,Xl=(e=>t=>{const n=Z4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rn=e=>(e=e.toLowerCase(),t=>Xl(t)===e),Jl=e=>t=>typeof t===e,{isArray:Co}=Array,Ni=Jl("undefined");function Mi(e){return e!==null&&!Ni(e)&&e.constructor!==null&&!Ni(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bv=Rn("ArrayBuffer");function eL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bv(e.buffer),t}const tL=Jl("string"),Qt=Jl("function"),Iv=Jl("number"),Li=e=>e!==null&&typeof e=="object",nL=e=>e===!0||e===!1,Zl=e=>{if(Xl(e)!=="object")return!1;const t=Mf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Tv in e)&&!(Ql in e)},rL=e=>{if(!Li(e)||Mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sL=Rn("Date"),oL=Rn("File"),iL=Rn("Blob"),aL=Rn("FileList"),lL=e=>Li(e)&&Qt(e.pipe),cL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=Xl(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},uL=Rn("URLSearchParams"),[dL,fL,pL,hL]=["ReadableStream","Request","Response","Headers"].map(Rn),mL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Co(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(Mi(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),c=a.length;let d;for(s=0;s<c;s++)d=a[s],t.call(null,e[d],d,e)}}function Cv(e,t){if(Mi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const Is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rv=e=>!Ni(e)&&e!==Is;function Lf(){const{caseless:e}=Rv(this)&&this||{},t={},n=(s,i)=>{const a=e&&Cv(t,i)||i;Zl(t[a])&&Zl(s)?t[a]=Lf(t[a],s):Zl(s)?t[a]=Lf({},s):Co(s)?t[a]=s.slice():t[a]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&ji(arguments[s],n);return t}const gL=(e,t,n,{allOwnKeys:s}={})=>(ji(t,(i,a)=>{n&&Qt(i)?e[a]=kv(i,n):e[a]=i},{allOwnKeys:s}),e),yL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vL=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},SL=(e,t,n,s)=>{let i,a,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)c=i[a],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Mf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wL=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},_L=e=>{if(!e)return null;if(Co(e))return e;let t=e.length;if(!Iv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},EL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mf(Uint8Array)),xL=(e,t)=>{const s=(e&&e[Ql]).call(e);let i;for(;(i=s.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},kL=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},TL=Rn("HTMLFormElement"),bL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),IL=Rn("RegExp"),Ov=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ji(n,(i,a)=>{let c;(c=t(i,a,e))!==!1&&(s[a]=c||i)}),Object.defineProperties(e,s)},CL=e=>{Ov(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Qt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},RL=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Co(e)?s(e):s(String(e).split(t)),n},AL=()=>{},OL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function PL(e){return!!(e&&Qt(e.append)&&e[Tv]==="FormData"&&e[Ql])}const NL=e=>{const t=new Array(10),n=(s,i)=>{if(Li(s)){if(t.indexOf(s)>=0)return;if(Mi(s))return s;if(!("toJSON"in s)){t[i]=s;const a=Co(s)?[]:{};return ji(s,(c,d)=>{const f=n(c,i+1);!Ni(f)&&(a[d]=f)}),t[i]=void 0,a}}return s};return n(e,0)},ML=Rn("AsyncFunction"),LL=e=>e&&(Li(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Pv=((e,t)=>e?setImmediate:t?((n,s)=>(Is.addEventListener("message",({source:i,data:a})=>{i===Is&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),Is.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(Is.postMessage)),jL=typeof queueMicrotask<"u"?queueMicrotask.bind(Is):typeof process<"u"&&process.nextTick||Pv,B={isArray:Co,isArrayBuffer:bv,isBuffer:Mi,isFormData:cL,isArrayBufferView:eL,isString:tL,isNumber:Iv,isBoolean:nL,isObject:Li,isPlainObject:Zl,isEmptyObject:rL,isReadableStream:dL,isRequest:fL,isResponse:pL,isHeaders:hL,isUndefined:Ni,isDate:sL,isFile:oL,isBlob:iL,isRegExp:IL,isFunction:Qt,isStream:lL,isURLSearchParams:uL,isTypedArray:EL,isFileList:aL,forEach:ji,merge:Lf,extend:gL,trim:mL,stripBOM:yL,inherits:vL,toFlatObject:SL,kindOf:Xl,kindOfTest:Rn,endsWith:wL,toArray:_L,forEachEntry:xL,matchAll:kL,isHTMLForm:TL,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Ov,freezeMethods:CL,toObjectSet:RL,toCamelCase:bL,noop:AL,toFiniteNumber:OL,findKey:Cv,global:Is,isContextDefined:Rv,isSpecCompliantForm:PL,toJSONObject:NL,isAsyncFn:ML,isThenable:LL,setImmediate:Pv,asap:jL,isIterable:e=>e!=null&&Qt(e[Ql])};function ke(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}B.inherits(ke,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:B.toJSONObject(this.config),code:this.code,status:this.status}}});const Nv=ke.prototype,Mv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mv[e]={value:e}}),Object.defineProperties(ke,Mv),Object.defineProperty(Nv,"isAxiosError",{value:!0}),ke.from=(e,t,n,s,i,a)=>{const c=Object.create(Nv);return B.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),ke.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const DL=null;function jf(e){return B.isPlainObject(e)||B.isArray(e)}function Lv(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function jv(e,t,n){return e?e.concat(t).map(function(i,a){return i=Lv(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function $L(e){return B.isArray(e)&&!e.some(jf)}const BL=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function ec(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!B.isUndefined(k[x])});const s=n.metaTokens,i=n.visitor||y,a=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(i))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(B.isDate(_))return _.toISOString();if(B.isBoolean(_))return _.toString();if(!f&&B.isBlob(_))throw new ke("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(_)||B.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function y(_,x,k){let O=_;if(_&&!k&&typeof _=="object"){if(B.endsWith(x,"{}"))x=s?x:x.slice(0,-2),_=JSON.stringify(_);else if(B.isArray(_)&&$L(_)||(B.isFileList(_)||B.endsWith(x,"[]"))&&(O=B.toArray(_)))return x=Lv(x),O.forEach(function($,H){!(B.isUndefined($)||$===null)&&t.append(c===!0?jv([x],H,a):c===null?x:x+"[]",h($))}),!1}return jf(_)?!0:(t.append(jv(k,x,a),h(_)),!1)}const g=[],w=Object.assign(BL,{defaultVisitor:y,convertValue:h,isVisitable:jf});function E(_,x){if(!B.isUndefined(_)){if(g.indexOf(_)!==-1)throw Error("Circular reference detected in "+x.join("."));g.push(_),B.forEach(_,function(O,R){(!(B.isUndefined(O)||O===null)&&i.call(t,O,B.isString(R)?R.trim():R,x,w))===!0&&E(O,x?x.concat(R):[R])}),g.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Dv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Df(e,t){this._pairs=[],e&&ec(e,this,t)}const $v=Df.prototype;$v.append=function(t,n){this._pairs.push([t,n])},$v.toString=function(t){const n=t?function(s){return t.call(this,s,Dv)}:Dv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function FL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bv(e,t,n){if(!t)return e;const s=n&&n.encode||FL;B.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=B.isURLSearchParams(t)?t.toString():new Df(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Fv{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(s){s!==null&&t(s)})}}const zv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zL={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Df,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$f=typeof window<"u"&&typeof document<"u",Bf=typeof navigator=="object"&&navigator||void 0,UL=$f&&(!Bf||["ReactNative","NativeScript","NS"].indexOf(Bf.product)<0),HL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WL=$f&&window.location.href||"http://localhost",Pt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$f,hasStandardBrowserEnv:UL,hasStandardBrowserWebWorkerEnv:HL,navigator:Bf,origin:WL},Symbol.toStringTag,{value:"Module"})),...zL};function qL(e,t){return ec(e,new Pt.classes.URLSearchParams,{visitor:function(n,s,i,a){return Pt.isNode&&B.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function VL(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GL(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}function Uv(e){function t(n,s,i,a){let c=n[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=a>=n.length;return c=!c&&B.isArray(i)?i.length:c,f?(B.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!B.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],a)&&B.isArray(i[c])&&(i[c]=GL(i[c])),!d)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(s,i)=>{t(VL(s),i,n,0)}),n}return null}function YL(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Di={transitional:zv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,a=B.isObject(t);if(a&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return i?JSON.stringify(Uv(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return qL(t,this.formSerializer).toString();if((d=B.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ec(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),YL(t)):t}],transformResponse:[function(t){const n=this.transitional||Di.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?ke.from(d,ke.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});const KL=B.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"]),QL=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&KL[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Hv=Symbol("internals");function $i(e){return e&&String(e).trim().toLowerCase()}function tc(e){return e===!1||e==null?e:B.isArray(e)?e.map(tc):String(e)}function XL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const JL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ff(e,t,n,s,i){if(B.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!B.isString(t)){if(B.isString(s))return t.indexOf(s)!==-1;if(B.isRegExp(s))return s.test(t)}}function ZL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function ej(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,a,c){return this[s].call(this,t,i,a,c)},configurable:!0})})}class Xt{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function a(d,f,h){const y=$i(f);if(!y)throw new Error("header name must be a non-empty string");const g=B.findKey(i,y);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||f]=tc(d))}const c=(d,f)=>B.forEach(d,(h,y)=>a(h,y,f));if(B.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(B.isString(t)&&(t=t.trim())&&!JL(t))c(QL(t),n);else if(B.isObject(t)&&B.isIterable(t)){let d={},f,h;for(const y of t){if(!B.isArray(y))throw TypeError("Object iterator must return a key-value pair");d[h=y[0]]=(f=d[h])?B.isArray(f)?[...f,y[1]]:[f,y[1]]:y[1]}c(d,n)}else t!=null&&a(n,t,s);return this}get(t,n){if(t=$i(t),t){const s=B.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return XL(i);if(B.isFunction(n))return n.call(this,i,s);if(B.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$i(t),t){const s=B.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ff(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function a(c){if(c=$i(c),c){const d=B.findKey(s,c);d&&(!n||Ff(s,s[d],d,n))&&(delete s[d],i=!0)}}return B.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const a=n[s];(!t||Ff(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,s={};return B.forEach(this,(i,a)=>{const c=B.findKey(s,a);if(c){n[c]=tc(i),delete n[a];return}const d=t?ZL(a):String(a).trim();d!==a&&delete n[a],n[d]=tc(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&B.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Hv]=this[Hv]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=$i(c);s[d]||(ej(i,c),s[d]=!0)}return B.isArray(t)?t.forEach(a):a(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),B.freezeMethods(Xt);function zf(e,t){const n=this||Di,s=t||n,i=Xt.from(s.headers);let a=s.data;return B.forEach(e,function(d){a=d.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Wv(e){return!!(e&&e.__CANCEL__)}function Ro(e,t,n){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(Ro,ke,{__CANCEL__:!0});function qv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nj(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,a=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),y=s[a];c||(c=h),n[i]=f,s[i]=h;let g=a,w=0;for(;g!==i;)w+=n[g++],g=g%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),h-c<t)return;const E=y&&h-y;return E?Math.round(w*1e3/E):void 0}}function rj(e,t){let n=0,s=1e3/t,i,a;const c=(h,y=Date.now())=>{n=y,i=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const y=Date.now(),g=y-n;g>=s?c(h,y):(i=h,a||(a=setTimeout(()=>{a=null,c(i)},s-g)))},()=>i&&c(i)]}const nc=(e,t,n=3)=>{let s=0;const i=nj(50,250);return rj(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,f=c-s,h=i(f),y=c<=d;s=c;const g={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&y?(d-c)/h:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},n)},Vv=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Gv=e=>(...t)=>B.asap(()=>e(...t)),sj=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,oj=Pt.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const c=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),B.isString(s)&&c.push("path="+s),B.isString(i)&&c.push("domain="+i),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ij(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yv(e,t,n){let s=!ij(t);return e&&(s||n==!1)?aj(e,t):t}const Kv=e=>e instanceof Xt?{...e}:e;function Cs(e,t){t=t||{};const n={};function s(h,y,g,w){return B.isPlainObject(h)&&B.isPlainObject(y)?B.merge.call({caseless:w},h,y):B.isPlainObject(y)?B.merge({},y):B.isArray(y)?y.slice():y}function i(h,y,g,w){if(B.isUndefined(y)){if(!B.isUndefined(h))return s(void 0,h,g,w)}else return s(h,y,g,w)}function a(h,y){if(!B.isUndefined(y))return s(void 0,y)}function c(h,y){if(B.isUndefined(y)){if(!B.isUndefined(h))return s(void 0,h)}else return s(void 0,y)}function d(h,y,g){if(g in t)return s(h,y);if(g in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,y,g)=>i(Kv(h),Kv(y),g,!0)};return B.forEach(Object.keys({...e,...t}),function(y){const g=f[y]||i,w=g(e[y],t[y],y);B.isUndefined(w)&&g!==d||(n[y]=w)}),n}const Qv=e=>{const t=Cs({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Xt.from(c),t.url=Bv(Yv(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(B.isFormData(n)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...y]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...y].join("; "))}}if(Pt.hasStandardBrowserEnv&&(s&&B.isFunction(s)&&(s=s(t)),s||s!==!1&&sj(t.url))){const h=i&&a&&oj.read(a);h&&c.set(i,h)}return t},lj=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=Qv(e);let a=i.data;const c=Xt.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,y,g,w,E,_;function x(){E&&E(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(y),i.signal&&i.signal.removeEventListener("abort",y)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function O(){if(!k)return;const $=Xt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),z={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:$,config:e,request:k};qv(function(L){n(L),x()},function(L){s(L),x()},z),k=null}"onloadend"in k?k.onloadend=O:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(O)},k.onabort=function(){k&&(s(new ke("Request aborted",ke.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new ke("Network Error",ke.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let H=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const z=i.transitional||zv;i.timeoutErrorMessage&&(H=i.timeoutErrorMessage),s(new ke(H,z.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&B.forEach(c.toJSON(),function(H,z){k.setRequestHeader(z,H)}),B.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),d&&d!=="json"&&(k.responseType=i.responseType),h&&([w,_]=nc(h,!0),k.addEventListener("progress",w)),f&&k.upload&&([g,E]=nc(f),k.upload.addEventListener("progress",g),k.upload.addEventListener("loadend",E)),(i.cancelToken||i.signal)&&(y=$=>{k&&(s(!$||$.type?new Ro(null,e,k):$),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(y),i.signal&&(i.signal.aborted?y():i.signal.addEventListener("abort",y)));const R=tj(i.url);if(R&&Pt.protocols.indexOf(R)===-1){s(new ke("Unsupported protocol "+R+":",ke.ERR_BAD_REQUEST,e));return}k.send(a||null)})},cj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const a=function(h){if(!i){i=!0,d();const y=h instanceof Error?h:this.reason;s.abort(y instanceof ke?y:new Ro(y instanceof Error?y.message:y))}};let c=t&&setTimeout(()=>{c=null,a(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>B.asap(d),f}},uj=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},dj=async function*(e,t){for await(const n of fj(e))yield*uj(n,t)},fj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Xv=(e,t,n,s)=>{const i=dj(e,t);let a=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:y}=await i.next();if(h){d(),f.close();return}let g=y.byteLength;if(n){let w=a+=g;n(w)}f.enqueue(new Uint8Array(y))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},rc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jv=rc&&typeof ReadableStream=="function",pj=rc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hj=Jv&&Zv(()=>{let e=!1;const t=new Request(Pt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eS=64*1024,Uf=Jv&&Zv(()=>B.isReadableStream(new Response("").body)),sc={stream:Uf&&(e=>e.body)};rc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sc[t]&&(sc[t]=B.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ke(`Response type '${t}' is not supported`,ke.ERR_NOT_SUPPORT,s)})})})(new Response);const mj=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(Pt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await pj(e)).byteLength},gj=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??mj(t)},Hf={http:DL,xhr:lj,fetch:rc&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:y,withCredentials:g="same-origin",fetchOptions:w}=Qv(e);h=h?(h+"").toLowerCase():"text";let E=cj([i,a&&a.toAbortSignal()],c),_;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let k;try{if(f&&hj&&n!=="get"&&n!=="head"&&(k=await gj(y,s))!==0){let z=new Request(t,{method:"POST",body:s,duplex:"half"}),M;if(B.isFormData(s)&&(M=z.headers.get("content-type"))&&y.setContentType(M),z.body){const[L,U]=Vv(k,nc(Gv(f)));s=Xv(z.body,eS,L,U)}}B.isString(g)||(g=g?"include":"omit");const O="credentials"in Request.prototype;_=new Request(t,{...w,signal:E,method:n.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:O?g:void 0});let R=await fetch(_,w);const $=Uf&&(h==="stream"||h==="response");if(Uf&&(d||$&&x)){const z={};["status","statusText","headers"].forEach(te=>{z[te]=R[te]});const M=B.toFiniteNumber(R.headers.get("content-length")),[L,U]=d&&Vv(M,nc(Gv(d),!0))||[];R=new Response(Xv(R.body,eS,L,()=>{U&&U(),x&&x()}),z)}h=h||"text";let H=await sc[B.findKey(sc,h)||"text"](R,e);return!$&&x&&x(),await new Promise((z,M)=>{qv(z,M,{data:H,headers:Xt.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:_})})}catch(O){throw x&&x(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,_),{cause:O.cause||O}):ke.from(O,O&&O.code,e,_)}})};B.forEach(Hf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tS=e=>`- ${e}`,yj=e=>B.isFunction(e)||e===null||e===!1,nS={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){n=e[a];let c;if(s=n,!yj(n)&&(s=Hf[(c=String(n)).toLowerCase()],s===void 0))throw new ke(`Unknown adapter '${c}'`);if(s)break;i[c||"#"+a]=s}if(!s){const a=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?a.length>1?`since :
`+a.map(tS).join(`
`):" "+tS(a[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Hf};function Wf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ro(null,e)}function rS(e){return Wf(e),e.headers=Xt.from(e.headers),e.data=zf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nS.getAdapter(e.adapter||Di.adapter)(e).then(function(s){return Wf(e),s.data=zf.call(e,e.transformResponse,s),s.headers=Xt.from(s.headers),s},function(s){return Wv(s)||(Wf(e),s&&s.response&&(s.response.data=zf.call(e,e.transformResponse,s.response),s.response.headers=Xt.from(s.response.headers))),Promise.reject(s)})}const sS="1.11.0",oc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const oS={};oc.transitional=function(t,n,s){function i(a,c){return"[Axios v"+sS+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new ke(i(c," has been removed"+(n?" in "+n:"")),ke.ERR_DEPRECATED);return n&&!oS[c]&&(oS[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}},oc.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function vj(e,t,n){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],c=t[a];if(c){const d=e[a],f=d===void 0||c(d,a,e);if(f!==!0)throw new ke("option "+a+" must be "+f,ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ke("Unknown option "+a,ke.ERR_BAD_OPTION)}}const ic={assertOptions:vj,validators:oc},Gn=ic.validators;class Rs{constructor(t){this.defaults=t||{},this.interceptors={request:new Fv,response:new Fv}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cs(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&ic.assertOptions(s,{silentJSONParsing:Gn.transitional(Gn.boolean),forcedJSONParsing:Gn.transitional(Gn.boolean),clarifyTimeoutError:Gn.transitional(Gn.boolean)},!1),i!=null&&(B.isFunction(i)?n.paramsSerializer={serialize:i}:ic.assertOptions(i,{encode:Gn.function,serialize:Gn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ic.assertOptions(n,{baseUrl:Gn.spelling("baseURL"),withXsrfToken:Gn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=a&&B.merge(a.common,a[n.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),n.headers=Xt.concat(c,a);const d=[];let f=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(f=f&&x.synchronous,d.unshift(x.fulfilled,x.rejected))});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let y,g=0,w;if(!f){const _=[rS.bind(this),void 0];for(_.unshift(...d),_.push(...h),w=_.length,y=Promise.resolve(n);g<w;)y=y.then(_[g++],_[g++]);return y}w=d.length;let E=n;for(g=0;g<w;){const _=d[g++],x=d[g++];try{E=_(E)}catch(k){x.call(this,k);break}}try{y=rS.call(this,E)}catch(_){return Promise.reject(_)}for(g=0,w=h.length;g<w;)y=y.then(h[g++],h[g++]);return y}getUri(t){t=Cs(this.defaults,t);const n=Yv(t.baseURL,t.url,t.allowAbsoluteUrls);return Bv(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){Rs.prototype[t]=function(n,s){return this.request(Cs(s||{},{method:t,url:n,data:(s||{}).data}))}}),B.forEach(["post","put","patch"],function(t){function n(s){return function(a,c,d){return this.request(Cs(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}Rs.prototype[t]=n(),Rs.prototype[t+"Form"]=n(!0)});class qf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const s=this;this.promise.then(i=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](i);s._listeners=null}),this.promise.then=i=>{let a;const c=new Promise(d=>{s.subscribe(d),a=d}).then(i);return c.cancel=function(){s.unsubscribe(a)},c},t(function(a,c,d){s.reason||(s.reason=new Ro(a,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qf(function(i){t=i}),cancel:t}}}function Sj(e){return function(n){return e.apply(null,n)}}function wj(e){return B.isObject(e)&&e.isAxiosError===!0}const Vf={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(Vf).forEach(([e,t])=>{Vf[t]=e});function iS(e){const t=new Rs(e),n=kv(Rs.prototype.request,t);return B.extend(n,Rs.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return iS(Cs(e,i))},n}const it=iS(Di);it.Axios=Rs,it.CanceledError=Ro,it.CancelToken=qf,it.isCancel=Wv,it.VERSION=sS,it.toFormData=ec,it.AxiosError=ke,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=Sj,it.isAxiosError=wj,it.mergeConfig=Cs,it.AxiosHeaders=Xt,it.formToJSON=e=>Uv(B.isHTMLForm(e)?new FormData(e):e),it.getAdapter=nS.getAdapter,it.HttpStatusCode=Vf,it.default=it;const aS="https://api.edmap.space",ac=it.create();ac.defaults.baseURL=aS,ac.interceptors.request.use(async e=>{const t=localStorage.getItem("access");return e.headers.Accept="application/json",t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const Bi={};function lS(e){return localStorage.removeItem("access"),localStorage.removeItem("refresh"),localStorage.removeItem("userId"),window.location.href="/sign-in",Promise.reject(e)}function cS(e,t){const n=e.data.accessToken,s=e.data.refreshToken;return localStorage.setItem("access",n),localStorage.setItem("refresh",s),t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${n}`,ac(t)}ac.interceptors.response.use(e=>e,async e=>{const t=e.config;if(t.url.startsWith("/admin/login")||e.response.status!==401||t._retry)return Promise.reject(e);t._retry=!0;const n=localStorage.getItem("refresh");if(n)try{if(!Bi.time||Date.now()-Bi.time>1e3*3){const i=it.post(`${aS}/auth/revalidate-token`,{refreshToken:n},{headers:{Authorization:`Bearer ${n}`}});Bi.time=Date.now(),Bi.request=i;const a=await i;return cS(a,t)}const s=await Bi.request;if(!s)throw new Error;return cS(s,t)}catch(s){return lS(s)}else return lS(e)});const _j=e=>{if(!e)return"";try{const n=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;let i=new URL(n).hostname;return i=i.replace(/^www\./i,""),i.includes(".")||(i+=".com"),i}catch{let n=e.replace(/^https?:\/\//i,"").replace(/^www\./i,"");return n=n.split(/[\/?#]/)[0],n&&!n.includes(".")&&(n+=".com"),n||""}},Ej=({data:e})=>v.jsxs(G4,{href:e.url,target:"_blank",children:[v.jsx(Y4,{children:v.jsx(K4,{src:`https://www.google.com/s2/favicons?sz=64&domain_url=${encodeURIComponent(e.url)}`,alt:"favicon"})}),v.jsxs(Q4,{children:[v.jsx(xv,{children:_j(e.url)}),v.jsx(X4,{children:e.title})]}),v.jsx(J4,{})]}),xj=ee("div")({name:"Container",class:"edc85czkw",propsAsIs:!1}),kj=({data:e})=>v.jsxs(xj,{role:"alert",children:[v.jsx("p",{children:e.message}),v.jsx("p",{children:e.title})]}),Tj=e=>{const t=[];for(let n=0;n<e.length;n++){if(e[n].type!=="header"){t.push(e[n]);continue}const s={id:e[n].id,data:[e[n]],type:"mergedHeaderAndParagraph"};let i=!1;for(let a=n+1;a<e.length&&!i;a++){if(e[a].type!=="paragraph"){i=!0;continue}s.data.push(e[a]),n++}t.push(s)}return t},bj=e=>{if(e==="paragraph")return j4;if(e==="list")return D4;if(e==="quote")return U4;if(e==="header")return T4;if(e==="mergedHeaderAndParagraph")return V4;if(e==="code")return _4;if(e==="table")return H4;if(e==="image")return W4;if(e==="linkBlock")return Ej;if(e==="warning")return kj;if(e==="raw")return q4},uS=(e,t,n)=>{const s=[];return e.forEach(({id:i,data:a,type:c})=>{const d=bj(c),f=d?v.jsx(d,{data:a,replacements:t,...n},i):null;s.push(f)}),s},Ao=({blocksArray:e,replacements:t={},...n})=>{if(!e||!Array.isArray(e))return;const s=Tj(e),i=uS(s,t,n);return v.jsx(EM,{...n,children:i})},dS=({data:e,isInfoModalOpen:t,closeInfoModal:n,isPrizeModal:s})=>{var c,d;const i=C.useRef(null),a=f=>{i.current&&!i.current.contains(f.target)&&n()};if(C.useEffect(()=>(t?document.addEventListener("mousedown",a):document.removeEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}),[t]),!!t)return v.jsx(pM,{children:v.jsxs(hM,{ref:i,children:[v.jsx(mM,{onClick:n,children:"✕"}),s?v.jsx(Ao,{blocksArray:(c=e==null?void 0:e.awardRichText)==null?void 0:c.blocks,isPrizeDesc:!0}):v.jsx(Ao,{blocksArray:(d=e==null?void 0:e.descriptionRichText)==null?void 0:d.blocks,isPrizeInfo:!0})]})})},Ij=D("div")({name:"Container",class:"edc1uixbmy",propsAsIs:!1}),Cj=D("ul")({name:"List",class:"edl1h2mntg",propsAsIs:!1}),Rj=D("div")({name:"Wrapper",class:"edwkqefnd",propsAsIs:!1}),Aj=D("li")({name:"Participant",class:"edp1m90lkb",propsAsIs:!1}),Oj=D("li")({name:"ParticipantPosition",class:"edplp9wkn",propsAsIs:!1}),Pj=D("div")({name:"ParticipantWrapper",class:"edpi7ekwg",propsAsIs:!1}),Nj=D("div")({name:"PointsWrapper",class:"edp8vzmbe",propsAsIs:!1}),Mj=D("p")({name:"Points",class:"edpnrrx6w",propsAsIs:!1}),Lj=D("div")({name:"LoaderWrapper",class:"edli7avpg",propsAsIs:!1}),jj=()=>v.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M8.85595 3.09539C9.2085 1.97699 10.7925 1.97699 11.1451 3.09539L12.2384 6.56383C12.3958 7.06308 12.8591 7.40262 13.383 7.40262L16.9987 7.40263C18.1521 7.40263 18.6413 8.86985 17.7184 9.56103L14.7296 11.7993C14.3221 12.1045 14.1517 12.6335 14.3048 13.1189L15.4311 16.692C15.7814 17.8032 14.4999 18.7103 13.5668 18.0116L10.7202 15.8798C10.2937 15.5604 9.70737 15.5604 9.28082 15.8798L6.43425 18.0116C5.5012 18.7103 4.21968 17.8032 4.56997 16.692L5.6963 13.1189C5.8493 12.6335 5.67898 12.1045 5.27143 11.7993L2.28267 9.56103C1.35974 8.86985 1.84897 7.40263 3.00238 7.40263L6.61804 7.40262C7.14191 7.40262 7.60524 7.06308 7.76262 6.56383L8.85595 3.09539Z"})}),Dj=()=>v.jsxs("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("path",{d:"M17.4 18.6566C17.4 14.5697 14.0869 11.2566 9.99998 11.2566C5.91307 11.2566 2.59998 14.5697 2.59998 18.6566",stroke:"white",strokeLinecap:"round"}),v.jsx("path",{d:"M13.6 5.45669C13.6 7.44491 11.9882 9.05669 10 9.05669C8.0118 9.05669 6.40002 7.44491 6.40002 5.45669C6.40002 3.46846 8.0118 1.85669 10 1.85669C11.9882 1.85669 13.6 3.46846 13.6 5.45669Z",stroke:"white"})]}),$j=D("ul")({name:"Container",class:"edc65edga",propsAsIs:!1}),Bj=()=>e=>e.active?"var(--accent)":"var(--popup-menu-tabs)",Fj=()=>e=>(e.active,"var(--accent)"),zj=D("li")({name:"PaginationItem",class:"edp1cf5kvo",propsAsIs:!1,vars:{"p1cf5kvo-0":[Bj()],"p1cf5kvo-1":[Fj()]}}),Uj=D("div")({name:"Dots",class:"eddw2ykav",propsAsIs:!1}),fS=D("button")({name:"ChevronButton",class:"edcjgljwh",propsAsIs:!1}),pS=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:v.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"})}),Hj=({currentPage:e,handleSetCurrentPage:t,totalPages:n})=>{const s=(a,c)=>a<=7?Array.from({length:a},(d,f)=>f+1):c<=4?[1,2,3,4,5,"...",a]:c>=a-2?[1,"...",a-4,a-3,a-2,a-1,a]:[1,"...",c-1,c,c+1,"...",a];if(n<2)return;const i=s(n,e);return v.jsxs($j,{children:[v.jsx(fS,{onClick:()=>t(e-1),disabled:e<2,children:v.jsx(pS,{})}),i.map((a,c)=>v.jsx(zj,{active:a===e,children:a==="..."?v.jsx(Uj,{children:"..."}):v.jsx(F1,{title:a,onClick:()=>t(a)})},c)),v.jsx(fS,{onClick:()=>t(e+1),disabled:e>=n,children:v.jsx(pS,{})})]})},Wj=D("div")({name:"Container",class:"edc1o85nbd",propsAsIs:!1}),qj=D("h1")({name:"Title",class:"edtueka45",propsAsIs:!1}),hS=({title:e})=>v.jsxs(Wj,{children:[v.jsx("svg",{width:"60px",height:"60px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M22.8 12A10.8 10.8 0 1 1 10 1.393v1.014a9.8 9.8 0 1 0 4 0V1.393A10.812 10.812 0 0 1 22.8 12z"})}),e&&v.jsx(qj,{children:e})]}),Vj=()=>{const e=Me(_=>_.mapLeaderboard),t=Me(_=>_.setMapLeaderboard),[n,s]=C.useState(1),[i,a]=C.useState(0),[c,d]=C.useState(!1),f=Ye(_=>_.translations.user),h=10,y=(n-1)*h,g=Math.ceil(i/h),w=()=>{var x;const _=(x=window.__widgetEdmap)==null?void 0:x.mapId;_&&(d(!0),FP(_,h,y).then(k=>{a(k.data.totalCount),t(k.data.results)}).catch(k=>{console.error(k)}).finally(()=>d(!1)))},E=_=>{d(!0),s(_)};return C.useEffect(()=>{w()},[n]),c?v.jsx(Lj,{children:v.jsx(hS,{})}):v.jsxs(Ij,{children:[v.jsx(Cj,{children:e==null?void 0:e.map((_,x)=>{var O;const k=y+x+1;return v.jsxs(Rj,{children:[v.jsxs(Pj,{children:[v.jsx(Oj,{children:k}),v.jsx(Dj,{}),v.jsx(Aj,{children:((O=_==null?void 0:_.User)==null?void 0:O.username)??f.defaultName})]}),v.jsxs(Nj,{children:[v.jsx(jj,{}),v.jsx(Mj,{children:_==null?void 0:_.allPoints})]})]},_==null?void 0:_.id)})}),i&&v.jsx(Hj,{currentPage:n,handleSetCurrentPage:E,totalPages:g})]})},Gj=D("div")({name:"Background",class:"edb1d6ibuo",propsAsIs:!1}),Yj=D("div")({name:"Container",class:"edc9edd3f",propsAsIs:!1}),Kj=D("div")({name:"PrizeBlock",class:"edpzra8fb",propsAsIs:!1}),Qj=D("div")({name:"ButtonBlock",class:"edb17wiemr",propsAsIs:!1}),Xj=({selectedPrize:e,isOpen:t,closeModal:n,openRegistration:s})=>{const i=C.useRef(null),a=Ye(f=>f.translations.settings.signInPopup),c=f=>{i.current&&!i.current.contains(f.target)&&n()};C.useEffect(()=>(t?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}),[t]);const d=()=>{s(),n()};return t?v.jsx(Gj,{children:v.jsxs(Yj,{ref:i,children:[v.jsxs(A1,{children:[v.jsx(O1,{children:a.title}),v.jsx(P1,{children:a.subtitle})]}),v.jsx(Kj,{children:v.jsxs(M1,{children:[v.jsx(L1,{children:v.jsx(U1,{iconId:e==null?void 0:e.iconId})}),v.jsx(j1,{children:e==null?void 0:e.name})]})}),v.jsxs(Qj,{children:[v.jsx(Vn,{title:a.buttonTitle,onClick:n}),v.jsx(Vn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:d})]})]})}):null},An=Yt(e=>({isPanelModalOpen:!1,isRegistrationOpen:!1,setIsPanelOpen:t=>e({isPanelModalOpen:t}),setIsRegistrationOpen:t=>e({isRegistrationOpen:t})})),Jj=()=>{var ze;const e=An(J=>J.isPanelModalOpen),t=An(J=>J.setIsPanelOpen),n=An(J=>J.isRegistrationOpen),s=An(J=>J.setIsRegistrationOpen),[i,a]=C.useState(0),[c,d]=C.useState(null),[f,h]=C.useState(!1),[y,g]=C.useState(!0),w=Ct(J=>J.results),E=(ze=w==null?void 0:w.prizes)==null?void 0:ze[c],[_,x]=C.useState(E),{isOpen:k,closeModal:O,openModal:R}=Vl(),{isOpen:$,closeModal:H,openModal:z}=Vl(),M=(w==null?void 0:w.allPoints)||0,L=Ye(J=>J.translations.popup),U=M<10?1:Math.floor(M/10),te=C.useRef(null),K=_1();function oe(J,ve){d(J),ve==="prize"?(h(!0),R()):(h(!1),R())}const ae=J=>{x(J),z()},me=[v.jsx(zN,{openSignInInvite:ae,openInfoModal:oe}),v.jsx(bf,{quests:w==null?void 0:w.quests}),v.jsx(Vj,{}),v.jsx(H3,{openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})],Te=J=>{var re;!te.current||(((re=J.composedPath)==null?void 0:re.call(J))||[]).includes(te.current)||(a(0),t(!1))};if(C.useEffect(()=>(e?setTimeout(()=>document.addEventListener("click",Te)):document.removeEventListener("click",Te),()=>{document.removeEventListener("click",Te)}),[e]),!!e)return v.jsx(nN,{ref:te,isSignInModalOpen:n,id:"edmap-widget__popup",children:v.jsxs(rN,{children:[v.jsx(d3,{userLevel:U}),!K&&y&&v.jsx(sN,{children:v.jsx(If,{setIsRegInfoVisible:g,openSignInModal:()=>s(!0),setIsSocialModalVisible:()=>{}})}),v.jsx(dN,{data:L.menuItems,activeIndex:i,setActiveIndex:a}),v.jsx(oN,{children:me[i]}),v.jsx(sv,{isOpen:n,closeModal:()=>s(!1),setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(Xj,{selectedPrize:_,isOpen:$,closeModal:H,openRegistration:()=>s(!0)}),v.jsx(dS,{data:E,isInfoModalOpen:k,closeInfoModal:O,isPrizeModal:f})]})})},Zj=D("div")({name:"Container",class:"edc16l98jz",propsAsIs:!1}),e6=D("div")({name:"ImageWrapper",class:"edi13krnav",propsAsIs:!1}),t6=D("div")({name:"InfoWrapper",class:"edied2wr6",propsAsIs:!1}),n6=D("div")({name:"LevelWrapper",class:"edl11c2ni8",propsAsIs:!1}),r6=D("div")({name:"TextWrapper",class:"edt133co2j",propsAsIs:!1}),s6=D("img")({name:"Confetti",class:"edc1etko73",propsAsIs:!1}),o6=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",...e},C.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),i6=({...e})=>v.jsx(a6,{...e,children:v.jsx(o6,{})}),a6=ee("button")({name:"Button",class:"edb1b1pm51",propsAsIs:!1}),l6="https://widget.edmap.space/assets/confetti-edmap-widget.gif",c6=({points:e,setPointsAreReceived:t})=>{const[n,s]=C.useState(0),i=Ct(f=>f.pointsAreReceived),a=Me(f=>f.isFinished),c=C.useRef(e),d=C.useRef(null);return C.useEffect(()=>(a&&c.current!==e&&(s(f=>f+1),t(!0),d.current=setTimeout(()=>{t(!1)},8e3)),c.current=e,()=>clearTimeout(d)),[e,a]),i&&v.jsx(s6,{src:l6,alt:"Confetti"})},u6=()=>{var f,h,y,g,w,E,_;const e=An(x=>x.isPanelModalOpen),t=An(x=>x.setIsPanelOpen),n=Ct(x=>x.results),s=Ct(x=>x.setPointsAreReceived),i=Ye(x=>x.translations.popupBar),a=((h=(f=n==null?void 0:n.prizes)==null?void 0:f.filter(x=>x==null?void 0:x.awardRichText))==null?void 0:h.length)??0,c=(n==null?void 0:n.allPoints)||0,d=()=>{t(!0),s(!1)};return v.jsx(v.Fragment,{children:e?v.jsx(i6,{onClick:()=>t(!1),id:"edmap-widget__popup-bar-btn"}):v.jsxs(Zj,{onClick:d,id:"edmap-widget__popup-bar",children:[v.jsx(e6,{children:v.jsx(kf,{src:(g=(y=n==null?void 0:n.User)==null?void 0:y.avatar)==null?void 0:g.src,style:{borderRadius:"var(--extreme-border-radius)"}})}),v.jsxs(t6,{children:[v.jsxs(n6,{children:[v.jsx(xf,{level:Tf(c)}),v.jsxs(r6,{children:[v.jsx(bs,{text:i.prizesTitle,progressValue:a??0,overallValue:((w=n==null?void 0:n.prizes)==null?void 0:w.length)??0}),v.jsx(bs,{text:i.skillsTitle,progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((E=n==null?void 0:n.map)==null?void 0:E.points)??0})]})]}),v.jsx($l,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((_=n==null?void 0:n.map)==null?void 0:_.points)??0})]}),v.jsx(c6,{points:c,setPointsAreReceived:s})]})})};Yt((e,t)=>({isOpen:!1,toggle:()=>e(n=>({isOpen:!n.isOpen})),closeModal:()=>e({isOpen:!1}),openModal:()=>e({isOpen:!0})}));const lc=Yt(e=>({popupBarStyle:{},widgetContainerStyle:{},setPopupBarStyle:t=>e({popupBarStyle:t}),setWidgetContainerStyle:t=>e({widgetContainerStyle:t})})),d6=D("div")({name:"Container",class:"edc1vap6o9",propsAsIs:!1}),f6=()=>{const e=An(i=>i.isPanelModalOpen),t=lc(i=>i.popupBarStyle),n=Me(i=>i.quest);return(n==null?void 0:n.isMiniPanelVisible)||e?v.jsxs(d6,{style:t,children:[v.jsx(Jj,{}),(n==null?void 0:n.isMiniPanelVisible)&&v.jsx(u6,{})]}):null};var cc=Yh();const mS=e=>{if(!e)return{};if(e.startsWith("{"))try{e=e.slice(1,e.length-1)}catch(n){return bn(n),console.error("Parse Error: something wrong with custom style string"),{}}const t={};return e.split(";").forEach(n=>{const[s,i]=n.split(":").map(a=>a.trim());if(s&&i){const a=s.replace(/-([a-z])/g,c=>c[1].toUpperCase());t[a]=i}else console.warn(`Parse Warning: faild to parse custom property style for property: ${s||"not found"}`)}),t},p6=(e,t)=>{if(e==="admin"){const n=t.match(/quests\/([^/?]+)/);return(!n||!n[1])&&console.error("Parse Error: wrong url for quest search in admin panel"),n[1]}else return t},h6=D("div")({name:"Container",class:"edcsc8z9h",propsAsIs:!1}),m6=D("div")({name:"HidingContainer",class:"edhc15unp",propsAsIs:!1}),gS=D("div")({name:"QuestionBlock",class:"edq12kw8l3",propsAsIs:!1}),g6=D("div")({name:"HeaderScrollableSpace",class:"edh1iwfgmu",propsAsIs:!1}),y6=D("div")({name:"SidePadding",class:"edsz53tfr",propsAsIs:!1}),v6=D("div")({name:"Container",class:"edc8gkhop",propsAsIs:!1}),S6=D("div")({name:"TitleSection",class:"edtp3l3kp",propsAsIs:!1}),w6=D("div")({name:"Wrapper",class:"edw11bk3uj",propsAsIs:!1}),yS=D("div")({name:"Divider",class:"edd1nx5xv8",propsAsIs:!1}),_6=D("div")({name:"UserContainer",class:"edu5m07eq",propsAsIs:!1}),E6=D("h2")({name:"Title",class:"edt1xyelki",propsAsIs:!1}),x6=D("div")({name:"AvatarContainer",class:"eda1j00vs7",propsAsIs:!1}),k6=D("button")({name:"AvatarButton",class:"edab6hzvg",propsAsIs:!1}),T6=D("div")({name:"LevelContainer",class:"edl8lxqvm",propsAsIs:!1}),b6=D("div")({name:"ButtonContainer",class:"edb1m2edat",propsAsIs:!1}),I6=D("div")({name:"Container",class:"edcitwxpq",propsAsIs:!1}),C6=D("div")({name:"QuestTypeIcon",class:"edqdo840j",propsAsIs:!1}),R6=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},C.createElement("path",{fill:"currentColor",d:"m14.505 15.138.11.006a1 1 0 0 1 .66.354l3.114 3.748c.89 1.072 2.633.442 2.633-.95v-9.43a4.656 4.656 0 0 0-4.425-4.65l-.23-.005H7.634A4.656 4.656 0 0 0 2.98 8.866v8.953c0 1.344 1.64 2 2.567 1.025l3.224-3.396c.189-.198.451-.31.726-.31zm8.517 3.158c0 3.264-4.084 4.74-6.17 2.228l-2.815-3.386H9.925L6.998 20.22C4.828 22.504.98 20.97.98 17.819V8.866a6.657 6.657 0 0 1 6.653-6.655h8.734l.33.008a6.66 6.66 0 0 1 6.325 6.645z"}),C.createElement("path",{fill:"currentColor",d:"M9 7v2h2v2H9v2H7v-2H5V9h2V7zM15.05 10.59a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M17.434 12.973a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"})),A6=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},C.createElement("path",{fill:"currentColor",d:"m8.6 2.799-4.694 3.52-2.613-2.613 1.414-1.414 1.387 1.387L7.4 1.199zm13.4-.3v2H11v-2zM22 10.999v2H11v-2zM22 19.499v2H11v-2zM4.5 13.999a2 2 0 1 0 0-4 2 2 0 0 0 0 4M4.5 22.499a2 2 0 1 0 0-4 2 2 0 0 0 0 4"})),O6=()=>{const t=Me(n=>n.quest).questType==="Test"?v.jsx(A6,{}):v.jsx(R6,{});return v.jsx(I6,{children:v.jsx(C6,{children:t})})},P6=({icon:e,...t})=>v.jsx(_f,{...t,children:e}),N6=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 18 18",...e},C.createElement("path",{stroke:"#fff",strokeLinecap:"square",strokeWidth:2,d:"m2 2 14 14m0-14L2 16"})),M6=D("div")({name:"Container",class:"edchp8usr",propsAsIs:!1}),L6=D("span")({name:"Text",class:"edt141dyxo",propsAsIs:!1}),vS=({minutes:e,seconds:t})=>(e=Math.max(0,e),t=Math.max(0,t),v.jsxs(L6,{children:[e.toString().padStart(2,"0"),":",t.toString().padStart(2,"0")]})),j6=e=>{const t=MP(e);if(!t)return Date.now();const[n,s]=t.split("@");return Number(s)},D6=e=>Date.now()-e,$6=(e,t)=>{const n=j6(t);return B6(e,n)},B6=(e,t)=>{const n=Math.floor(D6(t)/1e3),s=e-n,i=s%60,a=Math.floor(s/60);return{seconds:i,minutes:a}},F6=D("div")({name:"Container",class:"edc1qu2wft",propsAsIs:!1}),z6=D("div")({name:"TextBlock",class:"edtoc84xr",propsAsIs:!1}),U6=D("p")({name:"RestrictionText",class:"edr6awsvd",propsAsIs:!1}),Gf=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e},C.createElement("path",{fill:"currentColor",d:"M20 12a8 8 0 1 0-16 0 8 8 0 0 0 16 0m2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}),C.createElement("path",{fill:"currentColor",d:"m13 11.106 1.732-1.732 1.415 1.414-3.733 3.732L11 13.5V6h2z"})),H6=({timeValues:e})=>{const{remainingTitle:t}=Ye(n=>n.translations.timer);return v.jsxs(F6,{children:[v.jsx(Gf,{}),v.jsxs(z6,{children:[v.jsx(U6,{children:t}),v.jsx(vS,{...e})]})]})},W6=D("div")({name:"Container",class:"edc16uhwme",propsAsIs:!1}),q6=({timeValues:e})=>v.jsxs(W6,{children:[v.jsx(Gf,{}),v.jsx(vS,{...e})]}),uc=Yt(e=>({isTimerOverlapped:!1,values:{minutes:0,seconds:0},setIsTimerOverlapped:t=>e({isTimerOverlapped:t}),setValues:t=>e({values:t})})),SS=({type:e})=>{const t=Me(h=>h.quest),n=uc(h=>h.values),s=uc(h=>h.setValues),i=Me(h=>h.setIsFinished),a=Me(h=>h.isFinished),c=Hl(h=>h.startFadeTransition),d=()=>$6(t.timeLimitSeconds,t.id),f=()=>c([]).then(()=>{i(!0),s(d())});return C.useEffect(()=>{if(a)return;const h=()=>{const g=d();if(g.minutes<=0&&g.seconds<=0){f(),s({minutes:0,seconds:0});return}s(g)},y=setInterval(h,1e3);return h(),()=>{clearInterval(y)}},[t.id,a]),e==="horizontal"?v.jsx(H6,{timeValues:n}):v.jsx(q6,{timeValues:n})},V6=()=>{const e=Me(n=>n.quest),t=uc(n=>n.isTimerOverlapped);return e.timeLimitSeconds===0||!t?null:v.jsxs(M6,{children:[v.jsx(yS,{}),v.jsx(SS,{type:"vertical"})]})},wS=Yt(e=>({height:0,width:null,setHeight:t=>e({height:t}),setWidth:t=>e({width:t}),headerShift:0,setHeaderShift:t=>e({headerShift:t})})),dc=Yt((e,t)=>({ref:null,height:null,width:null,initialHeight:0,top:0,setRef:()=>e({ref}),setTop:n=>e({top:n}),setHeight:n=>e({height:n}),setWidth:n=>e({width:n}),getHeight:()=>t().height,setInitialHeight:n=>e({initialHeight:n,height:n})})),G6=ee("div")({name:"Container",class:"edcsej1qu",propsAsIs:!1}),Y6=()=>({verticalDirection:e})=>e==="down"?"100%":"unset",K6=()=>({verticalDirection:e})=>e==="up"?"100%":"unset",Q6=()=>({horizontalDirection:e})=>e==="left"?"unset":"0",X6=()=>({horizontalDirection:e})=>e==="left"?"0":"unset",J6=ee("div")({name:"DropdownMenu",class:"edd146lpl0",propsAsIs:!1,vars:{"d146lpl0-0":[Y6()],"d146lpl0-1":[K6()],"d146lpl0-2":[Q6()],"d146lpl0-3":[X6()]}}),Z6=()=>({isChosen:e})=>e?"var(--dropdown-item-bg-active)":"transparent",e5=()=>({isChosen:e})=>e?"block":"none",t5=ee("div")({name:"MenuItem",class:"edmqt74d7",propsAsIs:!1,vars:{"mqt74d7-0":[Z6()],"mqt74d7-1":[e5()]}}),n5=(e,t)=>{const[n,s]=C.useState("right");return C.useLayoutEffect(()=>{if(!e.current||!t.current)return;const i=e.current.getBoundingClientRect(),a=t.current.getBoundingClientRect();return i.left-a.left+i.width>a.width?s("left"):s("right"),()=>{s("right")}},[e,t]),n},r5=({items:e,chosenItem:t,dropdownButton:n,handleChooseItem:s,isDropdownOpen:i,setIsDropdownOpen:a,viewportRef:c={current:window.document.body},...d})=>{const[f,h]=C.useState("down"),y=C.useRef(null),g=C.useRef(null),[w,E]=C.useState("right"),_=()=>{const R=y.current,$=g.current;if(!R||!$)return;const H=R.getBoundingClientRect(),z=$.offsetHeight,M=window.innerHeight-H.bottom,L=H.top;M<z&&L>z?h("up"):h("down");const U=c.current.getBoundingClientRect(),te=$.getBoundingClientRect();H.left-U.left+te.width>U.width?E("left"):E("right")},x=R=>{y.current&&!y.current.contains(R.target)&&a(!1)};C.useLayoutEffect(()=>{if(i)return _(),document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[i]);const k=R=>typeof R=="object"?R.name:R,O=R=>typeof R=="object"?(R==null?void 0:R.id)===t:R===t;return v.jsxs(G6,{...d,ref:y,children:[n,i&&e.length>0&&v.jsx(J6,{ref:g,verticalDirection:f,horizontalDirection:w,children:e.map(R=>v.jsx(t5,{isChosen:O(R),onClick:()=>{R!=null&&R.callback&&typeof(R==null?void 0:R.callback)=="function"?R==null||R.callback():s((R==null?void 0:R.id)??R)},children:k(R)},typeof R=="object"?R.id:R))})]})},s5=ee("button")({name:"ButtonContainer",class:"edb1lpjq8r",propsAsIs:!1}),o5=e=>{const[t,n]=C.useState(!1),s=C.useMemo(()=>e.items.map(a=>({...a,callback:()=>{a.callback(),n(!1)}})),[e.items]),i=C.useCallback(()=>{n(a=>!a)},[]);return v.jsx(r5,{...e,isDropdownOpen:t,setIsDropdownOpen:n,items:s,dropdownButton:v.jsx(s5,{onClick:i,children:e.dropdownButton})})},i5=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},C.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2m0 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2m0 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2"})),a5=D("div")({name:"MenuContainer",class:"edm1b26o2n",propsAsIs:!1}),l5=({parentRef:e})=>{const{restartQuest:t}=ko(),{restart:n}=Ye(i=>i.translations.gameMenu),s=C.useMemo(()=>[{id:"reset-session",name:n,callback:t}],[t,n]);return v.jsx(o5,{viewportRef:e,dropdownButton:v.jsx(a5,{children:v.jsx(i5,{})}),items:s})},c5=({isSticky:e,style:t,parentRef:n})=>{var R,$,H,z,M;const s=Ct(L=>L.results),i=Me(L=>L.quest),a=An(L=>L.isPanelModalOpen),c=An(L=>L.setIsPanelOpen),d=C.useRef(null),f=Ye(L=>L.translations.header),h=wS(L=>L.setHeight),y=dc(L=>L.width),g=fr(L=>L.topOffset),w=fr(L=>L.marginRootTop),E=()=>{c(!a)};C.useEffect(()=>{if(!(d.current instanceof HTMLElement))return;const U=window.getComputedStyle(d.current),te=parseFloat(U.height),K=parseFloat(U.paddingBottom);h(te-K/2)},[]);const _=L=>{L.preventDefault(),L.stopPropagation()},x=a?N6:V1,k=e?-g+w:-g,O=v.jsxs(v6,{id:"edmap-header",ref:d,style:{position:e?"fixed":"absolute",top:`${k}px`,...t,width:y??"100%"},children:[v.jsx(O6,{}),v.jsxs(S6,{children:[v.jsxs(w6,{children:[v.jsx(E6,{children:i==null?void 0:i.name}),v.jsx(bs,{progressValue:(s==null?void 0:s.allPoints)??0,overallValue:((R=s==null?void 0:s.map)==null?void 0:R.points)??0,text:f.progressText})]}),v.jsx($l,{progressValue:(s==null?void 0:s.allPoints)??0,overallValue:(($=s==null?void 0:s.map)==null?void 0:$.points)??0})]}),v.jsx(b6,{children:v.jsx(P6,{onMouseDown:_,onClick:E,icon:v.jsx(x,{})})}),v.jsx(yS,{}),v.jsxs(_6,{children:[v.jsx(l5,{parentRef:n}),v.jsxs(x6,{children:[v.jsx(kf,{style:{cursor:"pointer"},onMouseDown:_,onClick:E,src:(z=(H=s==null?void 0:s.User)==null?void 0:H.avatar)==null?void 0:z.src,alt:(M=f.image)==null?void 0:M.alt}),v.jsx(k6,{onClick:E,"aria-label":"avatar-button"}),v.jsx(T6,{children:v.jsx(xf,{level:Tf(s==null?void 0:s.allPoints)})})]})]}),v.jsx(V6,{})]});return e&&typeof document<"u"?cc.createPortal(O,document.body):O},_S=Yt(e=>({top:0,bottom:0,height:0,setTop:t=>e({top:t}),setBottom:t=>e({bottom:t}),setHeight:t=>e({height:t})})),u5=(e,t,n)=>t.textAnswer.length===0,d5={[St.test]:()=>!1,[St.journey]:u5},f5=()=>{const{currentZustandHook:e,quest:t}=ev(),[n,s]=C.useState(e.getState());return C.useEffect(()=>{const i=e.subscribe(a=>{s(a)});return()=>i()},[t,e]),C.useMemo(()=>d5[t.questType](t,n,null),[n,t])},p5=()=>{const e=Ye(s=>s.translations.footer),{makeStep:t}=ko(),n=f5();return v.jsx(Vn,{disabled:n,id:"edmap-widget__accept-btn","data-test":"button game",title:e.accentButtonTitle,isAccent:!0,onClick:t})},h5=()=>{const e=Me(g=>g.currentStep),t=Me(g=>{var w;return(w=g.quest)==null?void 0:w.details.stepCount}),n=Me(g=>g.isFinished),s=Me(g=>g.quest),i=C.useRef(null),a=_S(g=>g.setHeight),c=pr(g=>g.currentNode.type);if(C.useEffect(()=>{i.current&&a(i.current.clientHeight)},[i.current]),!(s!=null&&s.id))return;const{questType:d=""}=s,f=d===St.journey,h=f&&c===Wl.inputAnswerNode,y=d===St.test||h;return v.jsxs(G3,{ref:i,children:[v.jsx(W3,{children:v.jsx(q1,{})}),!n&&y&&v.jsxs(V3,{children:[f?null:v.jsx(q3,{children:v.jsx(bs,{progressValue:e,overallValue:t})}),v.jsx(tv,{children:v.jsx(p5,{})})]})]})},m5=(e,t=!1,n=0)=>{const s=C.useRef(null),i=C.useRef(null),a=C.useRef(null);return C.useEffect(()=>{const c=s.current;if(!c)return;const d=(h,y)=>{let g=null;if(t){const w=h.top,E=a.current!==null&&a.current<n,_=w-n>0;E&&_&&(g=!0),a.current=h.top}else y?g=!1:h.top<n&&(g=!0);g===null||i.current===g||e(g)},f=new IntersectionObserver(h=>{h.forEach(y=>{d(y.boundingClientRect,y.isIntersecting)})},{root:null,threshold:0});return f.observe(c),()=>{f.disconnect()}},[e,t,n,s]),s},ES=D("div")({name:"Container",class:"edc12456a3",propsAsIs:!1}),g5=D(ES)({name:"BottomSensorContainer",class:"edbig50hz",propsAsIs:!0}),y5=Tt.forwardRef(({setIsSensorTriggered:e,isBottomUpTriggered:t,rootOffset:n,topOffset:s,bottomOffset:i,className:a,color:c,isStickToBottom:d=!1,isPortal:f=!0},h)=>{const y=m5(e,t,n);C.useImperativeHandle(h,()=>y.current,[]);const g=C.useMemo(()=>({marginTop:s||"unset",marginBottom:i||"unset",backgroundColor:c??"red"}),[s,i,c]);let w=null;return d?w=v.jsx(g5,{className:a??"edmap-sensor",ref:y,style:g}):w=v.jsx(ES,{className:a??"edmap-sensor",ref:y,style:g}),f?cc.createPortal(w,document.body):w}),As=Tt.memo(y5),v5=D("div")({name:"Background",class:"edb1tdpu9l",propsAsIs:!1}),S5=D(B1)({name:"Button",class:"edb16l2gyb",propsAsIs:!0}),w5=D("p")({name:"Title",class:"edt15nnhmy",propsAsIs:!1}),_5=D("p")({name:"Subtitle",class:"eds1a894cv",propsAsIs:!1}),E5=D("div")({name:"Container",class:"edczp6bkd",propsAsIs:!1}),x5=D("div")({name:"TextContainer",class:"edt1807jed",propsAsIs:!1}),k5=({width:e=24,height:t=24,...n})=>v.jsx("svg",{width:e,height:t,viewBox:"0.5 -0.5 17 17",xmlns:"http://www.w3.org/2000/svg",fill:"none",...n,children:v.jsxs("g",{transform:"translate(1.000000, 2.000000)",fill:"currentColor",children:[v.jsx("path",{d:"M15.796,6.908 L14.234,5.21 C14.019,4.998 13.672,4.998 13.458,5.21 L11.894,6.908 C11.679,7.122 11.679,7.467 11.894,7.68 L13.188,7.68 C12.702,9.505 11.27,10.976 9.399,11.47 C7.231,12.042 4.913,11.191 3.632,9.351 L2.541,10.102 C3.807,11.921 5.884,12.966 8.039,12.966 C8.604,12.966 9.176,12.894 9.737,12.745 C12.188,12.099 14.04,10.112 14.55,7.68 L15.795,7.68 C16.01,7.467 16.01,7.122 15.796,6.908 Z"}),v.jsx("path",{d:"M4.475,6.021 C4.69,5.808 4.69,5.462 4.475,5.249 L3.018,5.249 C3.516,3.448 4.936,2.001 6.789,1.511 C8.959,0.938 11.275,1.791 12.555,3.632 L13.647,2.88 C12.049,0.585 9.161,-0.479 6.448,0.235 C4.016,0.878 2.175,2.84 1.648,5.249 L0.196,5.249 C-0.019,5.463 -0.019,5.809 0.196,6.021 L1.834,7.658 C2.048,7.87 2.396,7.87 2.61,7.658 L4.475,6.021 Z"})]})});class T5 extends Tt.Component{constructor(t){super(t),this.state={isError:!1}}static getDerivedStateFromError(){return{isError:!0}}componentDidCatch(t,n){bn(t)}handleRefresh(){window.location.reload()}render(){return this.state.isError?v.jsx(v5,{children:v.jsxs(E5,{children:[v.jsxs(x5,{children:[v.jsx(w5,{children:this.props.translations.title}),v.jsx(_5,{children:this.props.translations.subtitle})]}),v.jsx(S5,{onClick:()=>this.handleRefresh(),children:v.jsx(k5,{width:80,height:75})})]})}):this.props.children}}const xS=({children:e})=>{const t=Ye(n=>n.translations.globalError);return v.jsx(T5,{translations:t,children:e})},b5=({children:e})=>{const t=Me(n=>n.quest);return t!=null&&t.id?v.jsx(v.Fragment,{children:e}):v.jsx(hS,{})},I5=D("div")({name:"Container",class:"edctzb4h8",propsAsIs:!1}),C5=D("p")({name:"Title",class:"edtg41o65",propsAsIs:!1}),Yf=e=>{if(!e)return 60;const n=new Date(e).getTime()-Date.now();return n<0?0:Math.round(n/1e3)},R5=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60,i=String(n).padStart(2,"0"),a=String(s).padStart(2,"0");return t<1?`${i}:${a}`:`${String(t).padStart(2,"0")}:${i}:${a}`},A5=D("div")({name:"Container",class:"edc11azq9p",propsAsIs:!1}),kS=({expiresAt:e,onTimeEnds:t})=>{const[n,s]=C.useState(Yf(e)),i=Ye(a=>a.translations.user.ban);return C.useEffect(()=>{s(Yf(e))},[e]),C.useEffect(()=>{const a=setInterval(()=>{s(Yf(e))},1e3);return()=>{clearInterval(a)}},[e]),C.useEffect(()=>{n>0||t&&t()},[n]),v.jsxs(A5,{children:[v.jsx(Gf,{}),v.jsxs("span",{children:[i.wait," ",R5(n)]})]})},TS=async e=>{if(!xo())return!1;const{data:n}=await mt.get(`/banned-user/${xo()}/${e}`),{isBanned:s,expiresAt:i}=n;return{isBanned:s,expiresAt:i}},bS=()=>{const e=Me(d=>d.quest),[t,n]=C.useState(!0),[s,i]=C.useState({isBanned:!1,expiresAt:null}),a=C.useCallback(()=>{n(!0)},[]),c=C.useCallback(()=>{TS(e.id).then(({isBanned:d,expiresAt:f})=>{i({isBanned:d,expiresAt:f}),n(!d)})},[e.id]);return{isBanExpired:t,expiresAt:s.expiresAt,onTimeEnds:a,refreshBanStatus:c}},O5=({children:e})=>{const t=Ye(d=>d.translations.user.ban),n=Me(d=>{var f;return(f=d.quest)==null?void 0:f.id}),{isBanExpired:s,expiresAt:i,onTimeEnds:a,refreshBanStatus:c}=bS();return C.useEffect(()=>{c()},[n]),s?e:v.jsxs(I5,{children:[v.jsx(C5,{children:t.forbiddenQuest}),v.jsx(kS,{expiresAt:i,onTimeEnds:a})]})},P5=(e,t)=>{C.useEffect(()=>{if(!e.current)return;const n=()=>{t(e.current.clientWidth)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e.current])},N5=D("div")({name:"Background",class:"edbgw902r",propsAsIs:!1}),M5=D("div")({name:"Container",class:"edcv2zzw1",propsAsIs:!1}),L5=D("div")({name:"MessageBlock",class:"edm2b9k2r",propsAsIs:!1}),j5=D("div")({name:"Row",class:"edr4gsubj",propsAsIs:!1}),D5=D("div")({name:"Divider",class:"edd3sdabk",propsAsIs:!1}),$5=D("h1")({name:"Title",class:"edt1cvxfwm",propsAsIs:!1}),B5=D("div")({name:"QuestsContainer",class:"edq1tclzqz",propsAsIs:!1}),IS=D("div")({name:"Section",class:"eds1ce4iti",propsAsIs:!1}),CS=D("p")({name:"SectionTitle",class:"edsqdd2kx",propsAsIs:!1}),F5=D(j5)({name:"PrizesContainer",class:"edpiwm40a",propsAsIs:!0}),z5=(e,t=5)=>{const n=e==null?void 0:e.quests;return n?n.filter(a=>a.url!==window.location.pathname).filter(a=>!("resultQuestAnswer"in a)).slice(0,t):[]},U5=e=>{const t=e==null?void 0:e.prizes,n=e==null?void 0:e.allPoints;return t?t.filter(i=>i.awardPoints>n):[]},H5=async e=>{if(xr.reportQuestEnded(e.mapId,e.id),e.questType==="Test")return BP(e);if(e.questType==="Journey")return L3(e)},W5=(e,t)=>{const n=q5(e,t),s=V5(n),i=G5(n);return[s,i]},q5=(e,t)=>{var n;return(n=t==null?void 0:t.quests)==null?void 0:n.find(s=>s.id===e)},V5=e=>{var t;return((t=e==null?void 0:e.resultQuestAnswer)==null?void 0:t.points)||0},G5=e=>(e==null?void 0:e.maxPoints)||0,Y5=(e,t)=>e.replace(/{(\w+)}/g,(n,s)=>{var i;return((i=t[s])==null?void 0:i.toString())??`{${s}}`}),K5=(e,t,n,s)=>e<t?n:s,Q5=(e,t,n,s,i)=>{const[a,c]=W5(e,t),d=K5(n,a,s,i);return Y5(d,{points:n,bestPoints:a,maxPoints:c})},X5=D("p")({name:"HighlightingContainer",class:"edh1r5zzja",propsAsIs:!1}),J5=({worstScoreTemplate:e,bestScoreTemplate:t})=>{const n=Ct(c=>c.results),s=Me(c=>c.quest),i=Me(c=>c.currentTryPoints),a=Q5(s.id,n,i,e,t);return v.jsx(X5,{dangerouslySetInnerHTML:{__html:a}})},RS=({translations:e})=>{const[t,n]=C.useState(!0),{isBanExpired:s,expiresAt:i,onTimeEnds:a,refreshBanStatus:c}=bS(),d=Ct(U=>U.results),f=Ct(U=>U.refreshUserResults),h=Me(U=>U.setCurrentTryPoints),y=z5(d),g=U5(d),w=Me(U=>U.quest),E=e.successTitle,_=e.buttonTitle,x=e.prizesTitle,k=e.questsTitle,O=e.bestScoreTemplate,R=e.worstScoreTemplate,$=_1(),H=An(U=>U.setIsPanelOpen),z=An(U=>U.setIsRegistrationOpen),{restartQuest:M}=ko(),L=()=>{H(!0),z(!0)};return C.useEffect(()=>{H5(w).then(({data:U})=>{var te;return c(),h(U.points),f((te=window.__widgetEdmap)==null?void 0:te.mapId)}).finally(()=>{w1(w.id)})},[w]),C.useEffect(()=>{w!=null&&w.id&&TS(w.id).then()},[w==null?void 0:w.id]),v.jsx(N5,{id:"edmap-widget__success",children:v.jsxs(M5,{children:[v.jsxs(L5,{children:[v.jsx($5,{children:E}),w.isAwardPointsShowned&&v.jsx(J5,{worstScoreTemplate:R,bestScoreTemplate:O}),s?v.jsx(Vn,{id:"edmap-widget__success-btn",onClick:M,title:_,isAccent:!0}):v.jsx(kS,{expiresAt:i,onTimeEnds:a})]}),!$&&t&&v.jsx(If,{setIsRegInfoVisible:n,openSignInModal:L,setIsSocialModalVisible:()=>{}}),g.length>0&&y.length>0&&v.jsx(D5,{}),g.length>0?v.jsxs(IS,{children:[v.jsx(CS,{children:x}),v.jsx(F5,{children:g.map((U,te)=>v.jsx(Ef,{index:te,prizeData:U,userPoints:d==null?void 0:d.allPoints,openSignInModal:()=>{},openInfoModal:()=>{}},U==null?void 0:U.id))})]}):null,y.length>0?v.jsxs(IS,{children:[v.jsx(CS,{children:k}),v.jsx(B5,{children:v.jsx(bf,{quests:y})})]}):null]})})},Z5=ee("div")({name:"Gap",class:"edg5lnmft",propsAsIs:!1}),eD=ee("div")({name:"ResourceWrapper",class:"edr1u056rp",propsAsIs:!1}),AS=ee("p")({name:"Text",class:"edtjt97q3",propsAsIs:!1}),tD=ee("div")({name:"TooltipConent",class:"edt3zaxx",propsAsIs:!1}),nD=ee("div")({name:"Container",class:"edc6pydkm",propsAsIs:!1}),rD=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("💪🏃‍♂️🧠❤️🔥💰🪵⛏️🍖🔮👾⭐️😒😊🌈🐋🦄😎🤢🤮🤡👺💩🤥🐷👑⌛️🛢️🪙💎🗡️🧬🎁🎉🧸🪆🪩📊❗️💖❤️‍🔥💔")].map(e=>e.segment),sD=e=>[...e].map(t=>t.codePointAt(0)).join("-"),OS=Object.fromEntries(rD.map(e=>[sD(e),e])),PS=({iconId:e,text:t,...n})=>v.jsxs(nD,{...n,children:[v.jsx("span",{children:OS[e]}),t?v.jsx("span",{children:t}):null]}),oD=ee("div")({name:"TooltipContainer",class:"edtlfbks8",propsAsIs:!1}),iD=()=>({isStickLeft:e})=>e?"0":"102%",aD=()=>({isVisible:e})=>e?"visible":"hidden",lD=()=>({isVisible:e,isFading:t})=>e&&!t?"1":"0",cD=()=>({zIndex:e=100})=>e,uD=ee("div")({name:"TooltipContent",class:"edtlzs19l",propsAsIs:!1,vars:{"tlzs19l-0":[iD()],"tlzs19l-1":[aD()],"tlzs19l-2":[lD()],"tlzs19l-3":[cD()]}}),NS=e=>{let t;const n=new Set,s=(h,y)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const w=t;t=y??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(E=>E(t,w))}},i=()=>t,d={setState:s,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(s,i,d);return d},dD=e=>e?NS(e):NS,fD=e=>e;function pD(e,t=fD){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const MS=e=>{const t=dD(e),n=s=>pD(t,s);return Object.assign(n,t),n},LS=(e=>e?MS(e):MS)(e=>({activeTooltip:null,setActiveTooltip:t=>e({activeTooltip:t}),currentZIndex:101,getNextZIndex:()=>(e(t=>({currentZIndex:t.currentZIndex+1})),LS.getState().currentZIndex)})),jS=({tooltipContent:e,children:t,isStickLeft:n,...s})=>{const[i,a]=C.useState(!1),[c,d]=C.useState(!1),[f,h]=C.useState(null),[y,g]=C.useState(100),{setActiveTooltip:w,getNextZIndex:E}=LS(),_=C.useRef(null),x=()=>{d(!1),f&&(clearTimeout(f),h(null));const O=E();g(O),w(_.current),a(!0)},k=()=>{d(!0);const O=setTimeout(()=>{a(!1),h(null),d(!1)},300);h(O)};return v.jsxs(oD,{...s,onMouseEnter:x,onMouseLeave:k,children:[t,v.jsx(uD,{ref:_,className:"tooltip-content",isFading:c,isStickLeft:n,isVisible:i,onMouseEnter:x,onMouseLeave:k,style:{zIndex:y},children:e||""})]})},hD=({resource:e,animationClass:t,viewportRef:n})=>{const s=C.useRef(null),i=n5(s,n),a=i==="right"?"0":"unset",c=i==="right"?"unset":"-40px";return v.jsx(jS,{isStickLeft:!0,tooltipContent:v.jsx(tD,{ref:s,style:{left:a,right:c},children:v.jsx(AS,{children:e.name})}),children:v.jsxs(eD,{children:[v.jsx(PS,{style:{gap:"0"},iconId:e.iconId}),v.jsx(AS,{className:t,children:e.value})]})})},mD=({resources:e})=>{const[t,n]=C.useState(e),[s,i]=C.useState({}),a=C.useRef(null);C.useEffect(()=>{e.every(d=>t.find(f=>f.name===d.name))||(i({}),n(e))},[e]),C.useEffect(()=>{const d={};e.forEach((h,y)=>{const g=t[y],w=parseFloat(g==null?void 0:g.value.replace(/\s/g,""))||0,E=parseFloat(h==null?void 0:h.value.replace(/\s/g,""))||0;g?w<E?d[h.name]="increase":E<w?d[h.name]="decrease":d[h.name]="":d[h.name]="increase"}),i(d);const f=setTimeout(()=>{i({})},600);return n(e),()=>{clearTimeout(f),i({})}},[e]);const c=e.filter(({isVisible:d})=>d);return v.jsx(Z5,{ref:a,children:c.map((d,f)=>v.jsx(hD,{viewportRef:a,resource:d,animationClass:s[d.name]||""},f))})},gD=e=>e.reduce((t,n)=>({...t,[n.id]:`${OS[n.iconId]} ${n.name} ${n.value}`}),{}),DS=()=>{const e=pr(t=>t.currentResources);return C.useMemo(()=>gD(e),[e])},yD=e=>{const t=DS();return v.jsx(Ao,{...e,replacements:t})},vD=e=>Array.from(new Set(e)),SD=(e,t)=>{const n=e.sourceEdges.filter(s=>!t.has(s.targetId));return vD(n.map(s=>s.targetId))},wD=(e,t)=>e.filter(n=>!t.has(n)),_D=()=>{const e=pr(i=>i.currentNode),t=C.useRef(new Set),n=C.useRef(new Set),s=C.useRef(0);C.useEffect(()=>{let i;return s.current=setTimeout(()=>{if(!e)return;const a=SD(e,t.current),c=wD(a,n.current);c.forEach(f=>n.current.add(f)),i=new AbortController;const d=c.map(async f=>{const h=await z3(f,i.signal);return await G1(h.imageUrls,"low"),t.current.add(f),n.current.delete(f),h});Promise.all(d)},2e3),()=>{clearTimeout(s.current),i&&i.abort()}},[e])},$S=D("div")({name:"AnswersContainer",class:"eda1nbdv32",propsAsIs:!1}),ED=D("span")({name:"SelectBelowText",class:"eds1wn0vwj",propsAsIs:!1}),xD=D("div")({name:"Divider",class:"edd1ctwus6",propsAsIs:!1}),kD=D("button")({name:"QuestAnswerCardWrapper",class:"edqfq64oi",propsAsIs:!1}),TD=D("div")({name:"Container",class:"edcbf1r91",propsAsIs:!1}),bD=({resourceIds:e})=>{const t=pr(n=>n.currentResources);return v.jsx(TD,{children:e.map(n=>{const s=t.find(i=>i.id===n);return v.jsx(PS,{iconId:s.iconId},n)})})},ID=C.forwardRef(({blocksArray:e,handleClick:t,jourenyEdgeId:n,failedResources:s,replacements:i,...a},c)=>{const d=h=>{h.preventDefault(),h.stopPropagation(),t(n)},f=s.length===0;return v.jsx(jS,{isStickLeft:!0,style:{flex:"1 1 calc(50% - 6px)"},tooltipContent:f?null:v.jsx(bD,{resourceIds:s}),children:v.jsx(kD,{"data-test":"button game",ref:c,style:{opacity:f?1:.6},isActive:!1,disabled:!f,onClick:d,...a,children:v.jsx(Ao,{blocksArray:e,isJourneyWidgetText:!0,replacements:i})})})}),CD=ee("form")({name:"Form",class:"edf1c40yuf",propsAsIs:!1}),RD=ee("textarea")({name:"Container",class:"edc1gf2psj",propsAsIs:!1}),AD=(e,t)=>{C.useEffect(()=>{const n=e.current;if(!n)return;const s=()=>{n.style.height="auto",n.style.height=n.scrollHeight+"px"};return s(),n.addEventListener("input",s),()=>n.removeEventListener("input",s)},[e,t])},OD=e=>{const t=C.useRef(null),{placeholder:n}=Ye(s=>s.translations.input);return AD(t),v.jsx(CD,{children:v.jsx(RD,{id:"answer",ref:t,placeholder:n,...e})})},PD=(e,t)=>{const n=DS(),s=pr(a=>a.setTextAnswer),i=pr(a=>a.textAnswer);return C.useEffect(()=>{s("")},[e==null?void 0:e.id]),e.type===Wl.inputAnswerNode?v.jsx(OD,{value:i,onChange:a=>s(a.target.value)}):e.sourceEdges.map((a,c)=>v.jsx(ID,{isAccessable:a.isAccessable,jourenyEdgeId:a.id,failedResources:a.failedResources,replacements:n,handleClick:d=>t(d),blocksArray:a.richText.blocks,index:c},a.id))},ND=({node:e,handleAnswerClick:t})=>{const n=PD(e,t);return v.jsxs($S,{children:[v.jsx(xD,{}),n]})},MD=D("div")({name:"Container",class:"edc5xh5du",propsAsIs:!1}),LD=D("div")({name:"HideableContent",class:"edh89x7rh",propsAsIs:!1}),jD=D("div")({name:"Container",class:"edc170a6p7",propsAsIs:!1}),DD=D("div")({name:"TimerPadding",class:"edt1jyjufh",propsAsIs:!1}),$D=()=>{const t=Me(n=>n.quest).timeLimitSeconds===0;return v.jsx(jD,{children:t?null:v.jsx(DD,{children:v.jsx(SS,{type:"horizontal"})})})},BS=({children:e})=>{const t=Hl(i=>i.isHidden),n=Hl(i=>i.setRef),s=C.useRef(null);return C.useEffect(()=>{n(s)},[]),v.jsxs(MD,{children:[v.jsx($D,{}),v.jsx(LD,{ref:s,style:{opacity:t?0:1,transition:`all ${Ul}ms ease-out `},children:e})]})},BD=()=>{const{makeStep:e}=ko(),t=Me(a=>a.isFinished),n=pr(a=>a.currentNode),s=pr(a=>a.currentResources),i=Ye(a=>a.translations.journeyCard);return _D(),v.jsxs(BS,{children:[v.jsxs(gS,{children:[v.jsx(yD,{isNodeDescription:!0,blocksArray:n.data.blocks}),s.length>0&&v.jsx(mD,{resources:s})]}),t?v.jsx(RS,{translations:i}):v.jsx(ND,{node:n,handleAnswerClick:a=>e({journeyEdgeId:a})})]})},FD=D("div")({name:"AnswersWrapper",class:"eda1vi3dgi",propsAsIs:!1}),zD=ee("label")({name:"Label",class:"edlzct43p",propsAsIs:!1}),UD=ee("input")({name:"HiddenInput",class:"edhtu66xn",propsAsIs:!1}),HD=()=>e=>e.isChecked?"var(--checkbox-bg-active)":"var(--checkbox-bg-default)",WD=ee("div")({name:"CustomInput",class:"edchq6avi",propsAsIs:!1,vars:{"chq6avi-0":[HD()]}}),qD=({label:e,id:t,name:n,index:s,onChange:i,isInsideChecked:a=null})=>{const c=d=>{const f=d.target.checked;i==null||i(f)};return v.jsxs(zD,{htmlFor:t,"data-testid":`edmap-widget__test-answer-${s+1}`,children:[v.jsx(UD,{id:t,name:n,type:"checkbox",checked:a,value:!a,onChange:c}),v.jsx(WD,{isChecked:a,children:a?v.jsx("svg",{width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M1.5 7.56812L8.12121 14.1893L20.5 1.81055",stroke:"white",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"round"})}):null}),v.jsx(Ao,{isAnswer:!0,blocksArray:e})]})},VD=({label:e,name:t,id:n,index:s,onChange:i,isInsideChecked:a=null})=>{const[c,d]=C.useState(!1),f=h=>{d(h),i==null||i(h)};return v.jsx(qD,{name:t,label:e,id:n,index:s,onChange:f,isInsideChecked:a||c})},GD=()=>{var d;const e=Me(f=>{var h;return(h=f.quest)==null?void 0:h.id}),t=ql(f=>f.currentQuestion),n=Me(f=>f.isFinished),s=ql(f=>f.addAnswer),i=Ye(f=>f.translations.testCard),a=ql(f=>f.removeAnswer),c=(f,h,y)=>{y?s(e,f,h):a(f)};return v.jsx(BS,{children:n?v.jsx(RS,{translations:i}):v.jsxs(v.Fragment,{children:[v.jsx(gS,{children:v.jsx(Ao,{id:"edmap-widget__test-question",blocksArray:(d=t==null?void 0:t.text)==null?void 0:d.blocks})}),v.jsxs($S,{children:[v.jsx(ED,{children:i.chooseAnswer}),v.jsx(FD,{id:"edmap-widget__test-answers",children:t==null?void 0:t.answers.map((f,h)=>{var y;return v.jsx(VD,{index:h,label:(y=f==null?void 0:f.text)==null?void 0:y.blocks,id:f==null?void 0:f.id,onChange:g=>c(f==null?void 0:f.id,t==null?void 0:t.id,g)},f==null?void 0:f.id)})})]})]})})},YD=()=>{const e=Me(t=>t.quest);if(e!=null&&e.id)return e.questType==="Test"?v.jsx(GD,{test:e.test}):e.questType==="Journey"?v.jsx(BD,{data:e.journey}):null},KD=Tt.memo(YD),QD=({children:e})=>{const t=Me(n=>n.quest);return t!=null&&t.id?v.jsx("div",{children:e}):null},Kf=350,XD=1,JD=()=>{const e=Me(i=>i.quest),[t,n]=C.useState(!1);C.useEffect(()=>{if(!t)return;const i=setTimeout(()=>{xr.reportWidgetView()},XD*1e3);return()=>{clearTimeout(i)}},[t,e==null?void 0:e.id,e==null?void 0:e.mapId]),C.useEffect(()=>{xr.dropUserActivation()},[e==null?void 0:e.id,e==null?void 0:e.mapId]),C.useEffect(()=>{const i=()=>{xr.drainPendingAnalytics()};return window.addEventListener("pagehide",i),()=>{window.removeEventListener("pagehide",i)}},[]);const s=C.useCallback(i=>{i&&n(!i)},[]);return v.jsxs(v.Fragment,{children:[v.jsx(As,{topOffset:-Kf,setIsSensorTriggered:s,isBottomUpTriggered:!0,color:"blue",className:"view-counter-out",isPortal:!1}),v.jsx(As,{topOffset:-Kf,setIsSensorTriggered:n,color:"green",className:"view-counter-enter",isPortal:!1}),v.jsx(As,{bottomOffset:Kf,setIsSensorTriggered:n,isBottomUpTriggered:!0,color:"yellow",className:"view-counter-enter",isPortal:!1,isStickToBottom:!0}),v.jsx(As,{topOffset:0,setIsSensorTriggered:s,color:"green",className:"view-counter-out",isPortal:!1,isStickToBottom:!0})]})},ZD=()=>{const e=Me(t=>t.quest);return C.useLayoutEffect(()=>{e!=null&&e.id&&localStorage.setItem("analytics",`${e.mapId}@${e.id}`)},[e==null?void 0:e.id]),null},FS=()=>{const e=C.useRef(),t=lc(R=>R.widgetContainerStyle),[n,s]=C.useState(!1),[i,a]=C.useState(!1),c=wS(R=>R.height),d=fr(R=>R.marginRootTop),f=fr(R=>R.setTopOffset),h=dc(R=>R.setWidth),y=dc(R=>R.top),g=_S(R=>R.height),w=dc(R=>R.setTop),E=uc(R=>R.setIsTimerOverlapped),_=C.useRef(),x=C.useRef(),k=30;P5(e,h),C.useEffect(()=>{e.current&&w(e.current.getBoundingClientRect().top+window.scrollY)},[e]),C.useEffect(()=>{if(!i)return;const R=()=>{const $=x.current;if(!$)return;const z=$.getBoundingClientRect().top;f(Math.max(0,-z))};return window.addEventListener("scroll",R),R(),()=>{f(0),window.removeEventListener("scroll",R)}},[i,c]);const O=y-d;return v.jsx("edmap-view-root",{id:"edmap-view-root",children:v.jsxs(m6,{className:"sensor root",children:[v.jsx(As,{className:"widget-trigger-header-stick",setIsSensorTriggered:s,topOffset:`${-d}px`,ref:_,isPortal:!1}),v.jsx(As,{setIsSensorTriggered:E,topOffset:`${O+c-k}px`}),v.jsx(JD,{}),v.jsxs(h6,{ref:e,style:{...t},children:[v.jsx(xS,{children:v.jsxs(QD,{children:[v.jsxs(g6,{children:[v.jsx(c5,{isSticky:n,parentRef:e}),v.jsx(y6,{children:v.jsx(b5,{children:v.jsx(O5,{children:v.jsx(KD,{})})})})]}),v.jsx(h5,{})]})}),v.jsx(ZD,{})]}),v.jsx(As,{isPortal:!1,isStickToBottom:!0,color:"black",className:"bottom sensor",setIsSensorTriggered:a,bottomOffset:`${g+c+d}px`,isBottomUpTriggered:!1,ref:x})]})})},e$=D("div")({name:"WrapperForStyles",class:"edw1ckr4k2",propsAsIs:!1}),t$=D("div")({name:"Container",class:"edc1moeqqj",propsAsIs:!1}),n$=D("div")({name:"Container",class:"edcrg0ist",propsAsIs:!1}),r$=D("p")({name:"EmptyQuestsMessage",class:"ede1tl4sfq",propsAsIs:!1}),s$=D("div")({name:"Container",class:"edcjx2ut5",propsAsIs:!1}),o$=D("p")({name:"Title",class:"edt75yszp",propsAsIs:!1}),zS=({title:e,children:t})=>v.jsxs(s$,{children:[v.jsx(o$,{children:e}),t]}),i$=({quests:e})=>{const t=Ye(s=>s.translations.questList),n=!e||e.length===0;return v.jsx(zS,{title:t.title,children:v.jsx(n$,{children:n?v.jsx(r$,{children:t.emptyQuestsWarning}):v.jsx(bf,{quests:e})})})},a$=D("div")({name:"PrizesContainer",class:"edp1163kd8",propsAsIs:!1}),l$=({prizes:e,openSignInModal:t,openInfoModal:n})=>{const s=Ct(a=>a.results),i=Ye(a=>a.translations.prizeList);return!e||e.length===0?null:v.jsx(zS,{title:i.title,children:v.jsx(a$,{children:e.map((a,c)=>v.jsx(Ef,{prizeData:a,userPoints:(s==null?void 0:s.allPoints)||0,index:c,openSignInModal:t,openInfoModal:n},a.id))})})},c$=()=>{const[e,t]=C.useState(null),[n,s]=C.useState(!1),i=Ct(x=>x.results),a=(i==null?void 0:i.quests)||[],c=(i==null?void 0:i.prizes)||[],d=lc(x=>x.widgetContainerStyle),{isOpen:f,closeModal:h,openModal:y}=Vl(),{isOpen:g,closeModal:w,openModal:E}=Vl(),_=(x,k)=>{t(c[x]),k==="prize"?(s(!0),E()):(s(!1),E())};return v.jsx(e$,{style:d,children:v.jsx(t$,{children:v.jsxs(xS,{children:[v.jsx(i$,{quests:a}),v.jsx(l$,{prizes:c,setClickedPrize:t,openInfoModal:_,openSignInModal:y}),v.jsx(sv,{isOpen:f,closeModal:h,setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(dS,{data:e,isInfoModalOpen:g,closeInfoModal:w,isPrizeModal:n})]})})})},u$=[yf,vf,I1],US={color:{[T1]:["light"],[yf]:[],[WP]:["white","blue"]},rounded:{[b1]:["rounded"],[vf]:[]},text:{[qP]:["bold","text"],[I1]:[]},wordWrap:{[VP]:[],[GP]:["nowrap"]}},d$=Object.keys(US).map(e=>Object.entries(US[e]).sort(([t,n],[s,i])=>i.length-n.length)),f$=e=>{if(!e)return u$;const t=e.split("-");return d$.map(s=>s.find(([i,a])=>a.every(c=>t.includes(c)))).map(s=>s[0])},p$={"--main-color":["--edmap-main-color"],"--main-shadow-color":["--edmap-main-color-shadow"],"--main-dark-color":["--edmap-main-color-dark"],"--text-on-main":["--edmap-text-on-main"]},h$=e=>{const t={};return Object.keys(e).forEach(n=>{p$[n].forEach(s=>{t[s]=e[n]})}),t},m$=()=>{var t;const e=h$(((t=window==null?void 0:window.__widgetEdmap)==null?void 0:t.cssVariablesOverride)??{});Object.keys(e).forEach(n=>{document.body.style.setProperty(n,e[n],"important")})},g$=()=>{var n;const e=((n=window.__widgetEdmap)==null?void 0:n.headerOffset)||0,t=e!==null&&typeof e=="object";return t?v$(t,e):[{width:0,value:fc(e)}]},y$=e=>Object.keys(e).sort((n,s)=>s-n).map(n=>({width:Number(n),value:e[n]})),v$=(e,t)=>{if(!e)return fc(t);const n=Object.keys(t).reduce((s,i)=>{const a=fc(i),c=fc(t[i]);return{...s,[a]:c}},{});return y$(n)},fc=e=>Number.parseFloat(e)||0,S$=()=>{const[e,t]=C.useState(window.innerWidth);w$(e),C.useEffect(()=>{const n=()=>t(window.innerWidth);n(),window.addEventListener("resize",n)},[])},w$=e=>{const t=fr(i=>i.breakPoints),n=fr(i=>i.setMarginRootTop),s=fr(i=>i.marginRootTop);C.useEffect(()=>{if(!t)return;const i=t.find(a=>e>a.width);i&&i.value!==s&&n(i.value)},[t,e,e])},_$=[T1,yf,b1,vf],E$=[{id:"edmap-widget__container",Component:FS},{id:"edmap-widget-quest-picker__container",Component:c$}];console.log("Выполнен код вне корня");function x$({mode:e=null}){var R;const t=Me($=>$.setQuest),{cleanQuestInit:n}=ko(),s=Ct($=>$.setUserResults),i=Ct($=>$.setPointsAreReceived),a=Ye($=>$.setLocale),c=fr($=>$.setBreakPoints),{setPopupBarStyle:d,setWidgetContainerStyle:f}=lc(),[h,y]=C.useState([]);S$();const g=p6(e,window.location.pathname),E=new URLSearchParams(window.location.search).get("code"),_=async($,H,z)=>{let M=null;return H==="admin"?M=await $P(z):M=await DP($,z),M},x=()=>{const $=E$.filter(({id:H})=>document.getElementById(H));y($)},k=()=>{var $;document.body.classList.remove(..._$),document.body.classList.add(...f$(($=window==null?void 0:window.__widgetEdmap)==null?void 0:$.theme)),m$()},O=()=>{x(),k()};return C.useEffect(()=>{O()},[]),C.useEffect(()=>{window.__widgetEdmap&&(window.__widgetEdmap.mode=e)},[e]),C.useEffect(()=>{(async()=>{var z;const H=(z=window==null?void 0:window.__widgetEdmap)==null?void 0:z.mapId;if(H){i(!1);try{if(!h.some(({id:U})=>U==="edmap-widget__container")&&e!=="admin")return;const L=await _(H,e,g);if(!L)return;t(L),await n(L)}catch(M){bn(M),console.error("Error during initialization:",M)}}})()},[e,g,h]),C.useEffect(()=>{var H;const $=(H=window==null?void 0:window.__widgetEdmap)==null?void 0:H.mapId;$&&jP($,E).then(z=>{a(z.map.widgetUILanguage),s(z)})},[E,g]),C.useEffect(()=>{h.forEach(({id:$})=>{const H=document.getElementById($);H&&(H.dataset.popupBarStyle&&d(mS(H.dataset.popupBarStyle)),H.dataset.widgetContainerStyle&&f(mS(H.dataset.widgetContainerStyle)))})},[h]),C.useEffect(()=>{const $=g$();c($)},[]),e==="admin"?v.jsx(FS,{}):h.length===0||!((R=window==null?void 0:window.__widgetEdmap)!=null&&R.mapId)?null:v.jsxs(v.Fragment,{children:[h.map(({id:$,Component:H})=>{const z=document.getElementById($);return z?cc.createPortal(v.jsx(H,{},$+(window.location.pathname||"")),z):null}),e!=="admin"&&cc.createPortal(v.jsx(f6,{},window.location.pathname||""),document.body)]})}kP({dsn:"https://f54e3fc0fb41b6b943cd81aa16c927d3@o4508675319726080.ingest.de.sentry.io/4508676111138896",integrations:[wP(),aP()],tracesSampleRate:1,tracePropagationTargets:["localhost","https://api.edmap.space"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});const k$=e=>new Promise(t=>{setTimeout(t,e)}),HS=async e=>{let t=document.getElementById(e),n=0;for(console.log(`waiting for ${e} container to appear`);!t&&n<9;)await k$(200+200*1.5*n),t=document.getElementById(e),n++;if(!t){console.log(`container ${e} was not found`);return}console.log(`container ${e} was found`),T$()};let Qf=!1;const Fi=()=>{Qf||(Qf=!0,HS("edmap-widget__container"),HS("edmap-widget-quest-picker__container"),Qf=!1)},T$=()=>{if(typeof window>"u"){console.log("Widget loaded in node env");return}let e=document.querySelector("#invisible-edmap-container");const t=window.__edmapRoot;t&&Promise.resolve().then(()=>t.unmount()),e&&e.remove(),e=document.createElement("div"),e.setAttribute("id","invisible-edmap-container"),e.style.display="none",e.style.pointerEvents="none",document.body.appendChild(e);const n=$E.createRoot(e);window.__edmapRoot=n,window.dispatchEvent(new CustomEvent("edmap-widget-ready")),n.render(v.jsx(C.StrictMode,{children:v.jsx(x$,{})}))};function b$(e,t,n=!1){let s;function i(){const a=this,c=arguments,d=function(){s=null,n||e.apply(a,c)},f=n&&!s;clearTimeout(s),s=setTimeout(d,t),f&&e.apply(a,c)}return i.cancel=function(){clearTimeout(s),s=null},i}(function(){window.__widgetEdmap=window.__widgetEdmap||{};let e=0;const t=b$(n=>{e=n},300);window.addEventListener("edmap-routing-triggered",n=>{var i,a,c;if(document.getElementById("edmap-view-root")){console.log("routing ignored");return}const s=n.detail.type;if(s==="pushState"&&Fi(s,n.detail),s=="replaceState"){const d=(c=(a=(i=n.detail)==null?void 0:i.args)==null?void 0:a[0])==null?void 0:c.scrollY;if(!(typeof d=="number"&&!Number.isNaN(d)))return;e===d?Fi():t(d);return}if(s==="popstate"){Fi(),e=0;return}}),window.addEventListener(ht.unmounted,()=>{console.log("unmount triggered search for container"),Fi()}),Fi(),console.log("routing trigger loaded")})()})();
