var WF=Object.defineProperty;var qF=(mt,hn,Ks)=>hn in mt?WF(mt,hn,{enumerable:!0,configurable:!0,writable:!0,value:Ks}):mt[hn]=Ks;var Dt=(mt,hn,Ks)=>qF(mt,typeof hn!="symbol"?hn+"":hn,Ks);try{let mt=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},hn=new mt.Error().stack;hn&&(mt._sentryDebugIds=mt._sentryDebugIds||{},mt._sentryDebugIds[hn]="811c98bf-08bd-488c-87de-f944d23c2248",mt._sentryDebugIdIdentifier="sentry-dbid-811c98bf-08bd-488c-87de-f944d23c2248")}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:"9a84dd1ebba9f71aa72b5b2fb9bea9b388a49b62"}}const mt={mounted:"edmap-root-mounted",unmounted:"edmap-root-unmounted"};class hn extends HTMLElement{constructor(){super()}connectedCallback(){window.dispatchEvent(new CustomEvent(mt.mounted)),console.log(mt.mounted)}disconnectedCallback(){window.dispatchEvent(new CustomEvent(mt.unmounted)),console.log(mt.unmounted)}}customElements.get("edmap-view-root")||customElements.define("edmap-view-root",hn);function Ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eu={exports:{}},ri={},xu={exports:{}},be={};/**
 * @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 LE(){if(Fh)return be;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,ve){this.props=A,this.context=q,this.refs=x,this.updater=ve||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,ve){this.props=A,this.context=q,this.refs=x,this.updater=ve||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,ve){var we,Oe={},Pe=null,ze=null;if(q!=null)for(we in q.ref!==void 0&&(ze=q.ref),q.key!==void 0&&(Pe=""+q.key),q)z.call(q,we)&&!L.hasOwnProperty(we)&&(Oe[we]=q[we]);var De=arguments.length-2;if(De===1)Oe.children=ve;else if(1<De){for(var qe=Array(De),wt=0;wt<De;wt++)qe[wt]=arguments[wt+2];Oe.children=qe}if(A&&A.defaultProps)for(we in De=A.defaultProps,De)Oe[we]===void 0&&(Oe[we]=De[we]);return{$$typeof:e,type:A,key:Pe,ref:ze,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(ve){return q[ve]})}var ae=/\/+/g;function ye(A,q){return typeof A=="object"&&A!==null&&A.key!=null?oe(""+A.key):q.toString(36)}function Ie(A,q,ve,we,Oe){var Pe=typeof A;(Pe==="undefined"||Pe==="boolean")&&(A=null);var ze=!1;if(A===null)ze=!0;else switch(Pe){case"string":case"number":ze=!0;break;case"object":switch(A.$$typeof){case e:case t:ze=!0}}if(ze)return ze=A,Oe=Oe(ze),A=we===""?"."+ye(ze,0):we,H(Oe)?(ve="",A!=null&&(ve=A.replace(ae,"$&/")+"/"),Ie(Oe,q,ve,"",function(wt){return wt})):Oe!=null&&(K(Oe)&&(Oe=te(Oe,ve+(!Oe.key||ze&&ze.key===Oe.key?"":(""+Oe.key).replace(ae,"$&/")+"/")+A)),q.push(Oe)),1;if(ze=0,we=we===""?".":we+":",H(A))for(var De=0;De<A.length;De++){Pe=A[De];var qe=we+ye(Pe,De);ze+=Ie(Pe,q,ve,qe,Oe)}else if(qe=w(A),typeof qe=="function")for(A=qe.call(A),De=0;!(Pe=A.next()).done;)Pe=Pe.value,qe=we+ye(Pe,De++),ze+=Ie(Pe,q,ve,qe,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 ze}function He(A,q,ve){if(A==null)return A;var we=[],Oe=0;return Ie(A,we,"","",function(Pe){return q.call(ve,Pe,Oe++)}),we}function ce(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(ve){(A._status===0||A._status===-1)&&(A._status=1,A._result=ve)},function(ve){(A._status===0||A._status===-1)&&(A._status=2,A._result=ve)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var ke={current:null},W={transition:null},re={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:W,ReactCurrentOwner:M};function J(){throw Error("act(...) is not supported in production builds of React.")}return be.Children={map:He,forEach:function(A,q,ve){He(A,function(){q.apply(this,arguments)},ve)},count:function(A){var q=0;return He(A,function(){q++}),q},toArray:function(A){return He(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}},be.Component=k,be.Fragment=n,be.Profiler=i,be.PureComponent=R,be.StrictMode=s,be.Suspense=f,be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,be.act=J,be.cloneElement=function(A,q,ve){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var we=_({},A.props),Oe=A.key,Pe=A.ref,ze=A._owner;if(q!=null){if(q.ref!==void 0&&(Pe=q.ref,ze=M.current),q.key!==void 0&&(Oe=""+q.key),A.type&&A.type.defaultProps)var De=A.type.defaultProps;for(qe in q)z.call(q,qe)&&!L.hasOwnProperty(qe)&&(we[qe]=q[qe]===void 0&&De!==void 0?De[qe]:q[qe])}var qe=arguments.length-2;if(qe===1)we.children=ve;else if(1<qe){De=Array(qe);for(var wt=0;wt<qe;wt++)De[wt]=arguments[wt+2];we.children=De}return{$$typeof:e,type:A.type,key:Oe,ref:Pe,props:we,_owner:ze}},be.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},be.createElement=U,be.createFactory=function(A){var q=U.bind(null,A);return q.type=A,q},be.createRef=function(){return{current:null}},be.forwardRef=function(A){return{$$typeof:d,render:A}},be.isValidElement=K,be.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:ce}},be.memo=function(A,q){return{$$typeof:h,type:A,compare:q===void 0?null:q}},be.startTransition=function(A){var q=W.transition;W.transition={};try{A()}finally{W.transition=q}},be.unstable_act=J,be.useCallback=function(A,q){return ke.current.useCallback(A,q)},be.useContext=function(A){return ke.current.useContext(A)},be.useDebugValue=function(){},be.useDeferredValue=function(A){return ke.current.useDeferredValue(A)},be.useEffect=function(A,q){return ke.current.useEffect(A,q)},be.useId=function(){return ke.current.useId()},be.useImperativeHandle=function(A,q,ve){return ke.current.useImperativeHandle(A,q,ve)},be.useInsertionEffect=function(A,q){return ke.current.useInsertionEffect(A,q)},be.useLayoutEffect=function(A,q){return ke.current.useLayoutEffect(A,q)},be.useMemo=function(A,q){return ke.current.useMemo(A,q)},be.useReducer=function(A,q,ve){return ke.current.useReducer(A,q,ve)},be.useRef=function(A){return ke.current.useRef(A)},be.useState=function(A){return ke.current.useState(A)},be.useSyncExternalStore=function(A,q,ve){return ke.current.useSyncExternalStore(A,q,ve)},be.useTransition=function(){return ke.current.useTransition()},be.version="18.3.1",be}var Bh;function ku(){return Bh||(Bh=1,xu.exports=LE()),xu.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 zh;function jE(){if(zh)return ri;zh=1;var e=ku(),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 Uh;function DE(){return Uh||(Uh=1,Eu.exports=jE()),Eu.exports}var v=DE(),C=ku();const Tt=Ks(C);var ba={},Tu={exports:{}},qt={},bu={exports:{}},Iu={};/**
 * @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 Hh;function $E(){return Hh||(Hh=1,function(e){function t(W,re){var J=W.length;W.push(re);e:for(;0<J;){var A=J-1>>>1,q=W[A];if(0<i(q,re))W[A]=re,W[J]=q,J=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],J=W.pop();if(J!==re){W[0]=J;e:for(var A=0,q=W.length,ve=q>>>1;A<ve;){var we=2*(A+1)-1,Oe=W[we],Pe=we+1,ze=W[Pe];if(0>i(Oe,J))Pe<q&&0>i(ze,Oe)?(W[A]=ze,W[Pe]=J,A=Pe):(W[A]=Oe,W[we]=J,A=we);else if(Pe<q&&0>i(ze,J))W[A]=ze,W[Pe]=J,A=Pe;else break e}}return re}function i(W,re){var J=W.sortIndex-re.sortIndex;return J!==0?J: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,ce(z);else{var re=n(h);re!==null&&ke(H,re.startTime-W)}}function z(W,re){_=!1,x&&(x=!1,O(U),U=-1),E=!0;var J=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 ve=!0;else{var we=n(h);we!==null&&ke(H,we.startTime-re),ve=!1}return ve}finally{g=null,w=J,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?ye():(M=!1,L=null)}}else M=!1}var ye;if(typeof R=="function")ye=function(){R(ae)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,He=Ie.port2;Ie.port1.onmessage=ae,ye=function(){He.postMessage(null)}}else ye=function(){k(ae,0)};function ce(W){L=W,M||(M=!0,ye())}function ke(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,ce(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 J=w;w=re;try{return W()}finally{w=J}},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 J=w;w=W;try{return re()}finally{w=J}},e.unstable_scheduleCallback=function(W,re,J){var A=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?A+J:A):J=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=J+q,W={id:y++,callback:re,priorityLevel:W,startTime:J,expirationTime:q,sortIndex:-1},J>A?(W.sortIndex=J,t(h,W),n(f)===null&&W===n(h)&&(x?(O(U),U=-1):x=!0,ke(H,J-A))):(W.sortIndex=q,t(f,W),_||E||(_=!0,ce(z))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=w;return function(){var J=w;w=re;try{return W.apply(this,arguments)}finally{w=J}}}}(Iu)),Iu}var Wh;function FE(){return Wh||(Wh=1,bu.exports=$E()),bu.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 qh;function BE(){if(qh)return qt;qh=1;var e=ku(),t=FE();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"),ye=Symbol.for("react.suspense"),Ie=Symbol.for("react.suspense_list"),He=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ke=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 J=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 ve=!1;function we(r,o){if(!r||ve)return"";ve=!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(D){var u=D}Reflect.construct(r,[],o)}else{try{o.call()}catch(D){u=D}r.call(o.prototype)}else{try{throw Error()}catch(D){u=D}r()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var p=D.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{ve=!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=we(r.type,!1),r;case 11:return r=we(r.type.render,!1),r;case 1:return r=we(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 ye:return"Suspense";case Ie: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 He:return o=r.displayName||null,o!==null?o:Pe(r.type)||"Memo";case ce:o=r._payload,r=r._init;try{return Pe(r(o))}catch{}}return null}function ze(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 qe(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function wt(r){var o=qe(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 Ps(r){r._valueTracker||(r._valueTracker=wt(r))}function fc(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),u="";return r&&(u=qe(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 Mn(r,o){var l=o.checked;return J({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Kn(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 Ns(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")?Ls(r,o.type,l):o.hasOwnProperty("defaultValue")&&Ls(r,o.type,De(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ms(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 Ls(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 J({},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 Qn(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function pc(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 Qf(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?pc(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var hc,YS=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(hc=hc||document.createElement("div"),hc.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=hc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ui(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Hi={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},Y$=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(r){Y$.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Hi[o]=Hi[r]})});function KS(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Hi.hasOwnProperty(r)&&Hi[r]?(""+o).trim():o+"px"}function QS(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var u=l.indexOf("--")===0,p=KS(l,o[l],u);l==="float"&&(l="cssFloat"),u?r.setProperty(l,p):r[l]=p}}var K$=J({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 Xf(r,o){if(o){if(K$[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 Jf(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 Zf=null;function ep(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var tp=null,No=null,Mo=null;function XS(r){if(r=da(r)){if(typeof tp!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Dc(o),tp(r.stateNode,r.type,o))}}function JS(r){No?Mo?Mo.push(r):Mo=[r]:No=r}function ZS(){if(No){var r=No,o=Mo;if(Mo=No=null,XS(r),o)for(r=0;r<o.length;r++)XS(o[r])}}function ew(r,o){return r(o)}function tw(){}var np=!1;function nw(r,o,l){if(np)return r(o,l);np=!0;try{return ew(r,o,l)}finally{np=!1,(No!==null||Mo!==null)&&(tw(),ZS())}}function Wi(r,o){var l=r.stateNode;if(l===null)return null;var u=Dc(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 rp=!1;if(d)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){rp=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{rp=!1}function Q$(r,o,l,u,p,m,S,T,b){var D=Array.prototype.slice.call(arguments,3);try{o.apply(l,D)}catch(G){this.onError(G)}}var Vi=!1,mc=null,gc=!1,sp=null,X$={onError:function(r){Vi=!0,mc=r}};function J$(r,o,l,u,p,m,S,T,b){Vi=!1,mc=null,Q$.apply(X$,arguments)}function Z$(r,o,l,u,p,m,S,T,b){if(J$.apply(this,arguments),Vi){if(Vi){var D=mc;Vi=!1,mc=null}else throw Error(n(198));gc||(gc=!0,sp=D)}}function js(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 rw(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 sw(r){if(js(r)!==r)throw Error(n(188))}function e8(r){var o=r.alternate;if(!o){if(o=js(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 sw(p),r;if(m===u)return sw(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 ow(r){return r=e8(r),r!==null?iw(r):null}function iw(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=iw(r);if(o!==null)return o;r=r.sibling}return null}var aw=t.unstable_scheduleCallback,lw=t.unstable_cancelCallback,t8=t.unstable_shouldYield,n8=t.unstable_requestPaint,at=t.unstable_now,r8=t.unstable_getCurrentPriorityLevel,op=t.unstable_ImmediatePriority,cw=t.unstable_UserBlockingPriority,yc=t.unstable_NormalPriority,s8=t.unstable_LowPriority,uw=t.unstable_IdlePriority,vc=null,Xn=null;function o8(r){if(Xn&&typeof Xn.onCommitFiberRoot=="function")try{Xn.onCommitFiberRoot(vc,r,void 0,(r.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:l8,i8=Math.log,a8=Math.LN2;function l8(r){return r>>>=0,r===0?32:31-(i8(r)/a8|0)|0}var Sc=64,wc=4194304;function Gi(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 _c(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=Gi(T):(m&=S,m!==0&&(u=Gi(m)))}else S=l&~p,S!==0?u=Gi(S):m!==0&&(u=Gi(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-Ln(o),p=1<<l,u|=r[l],o&=~p;return u}function c8(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 u8(r,o){for(var l=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,m=r.pendingLanes;0<m;){var S=31-Ln(m),T=1<<S,b=p[S];b===-1?(!(T&l)||T&u)&&(p[S]=c8(T,o)):b<=o&&(r.expiredLanes|=T),m&=~T}}function ip(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function dw(){var r=Sc;return Sc<<=1,!(Sc&4194240)&&(Sc=64),r}function ap(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function Yi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Ln(o),r[o]=l}function d8(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-Ln(l),m=1<<p;o[p]=0,u[p]=-1,r[p]=-1,l&=~m}}function lp(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var u=31-Ln(l),p=1<<u;p&o|r[u]&o&&(r[u]|=o),l&=~p}}var Ue=0;function fw(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var pw,cp,hw,mw,gw,up=!1,Ec=[],Hr=null,Wr=null,qr=null,Ki=new Map,Qi=new Map,Vr=[],f8="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 yw(r,o){switch(r){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":Ki.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qi.delete(o.pointerId)}}function Xi(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=da(o),o!==null&&cp(o)),r):(r.eventSystemFlags|=u,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function p8(r,o,l,u,p){switch(o){case"focusin":return Hr=Xi(Hr,r,o,l,u,p),!0;case"dragenter":return Wr=Xi(Wr,r,o,l,u,p),!0;case"mouseover":return qr=Xi(qr,r,o,l,u,p),!0;case"pointerover":var m=p.pointerId;return Ki.set(m,Xi(Ki.get(m)||null,r,o,l,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Qi.set(m,Xi(Qi.get(m)||null,r,o,l,u,p)),!0}return!1}function vw(r){var o=Ds(r.target);if(o!==null){var l=js(o);if(l!==null){if(o=l.tag,o===13){if(o=rw(l),o!==null){r.blockedOn=o,gw(r.priority,function(){hw(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 xc(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=fp(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);Zf=u,l.target.dispatchEvent(u),Zf=null}else return o=da(l),o!==null&&cp(o),r.blockedOn=l,!1;o.shift()}return!0}function Sw(r,o,l){xc(r)&&l.delete(o)}function h8(){up=!1,Hr!==null&&xc(Hr)&&(Hr=null),Wr!==null&&xc(Wr)&&(Wr=null),qr!==null&&xc(qr)&&(qr=null),Ki.forEach(Sw),Qi.forEach(Sw)}function Ji(r,o){r.blockedOn===o&&(r.blockedOn=null,up||(up=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,h8)))}function Zi(r){function o(p){return Ji(p,r)}if(0<Ec.length){Ji(Ec[0],r);for(var l=1;l<Ec.length;l++){var u=Ec[l];u.blockedOn===r&&(u.blockedOn=null)}}for(Hr!==null&&Ji(Hr,r),Wr!==null&&Ji(Wr,r),qr!==null&&Ji(qr,r),Ki.forEach(o),Qi.forEach(o),l=0;l<Vr.length;l++)u=Vr[l],u.blockedOn===r&&(u.blockedOn=null);for(;0<Vr.length&&(l=Vr[0],l.blockedOn===null);)vw(l),l.blockedOn===null&&Vr.shift()}var Lo=H.ReactCurrentBatchConfig,kc=!0;function m8(r,o,l,u){var p=Ue,m=Lo.transition;Lo.transition=null;try{Ue=1,dp(r,o,l,u)}finally{Ue=p,Lo.transition=m}}function g8(r,o,l,u){var p=Ue,m=Lo.transition;Lo.transition=null;try{Ue=4,dp(r,o,l,u)}finally{Ue=p,Lo.transition=m}}function dp(r,o,l,u){if(kc){var p=fp(r,o,l,u);if(p===null)Rp(r,o,u,Tc,l),yw(r,u);else if(p8(p,r,o,l,u))u.stopPropagation();else if(yw(r,u),o&4&&-1<f8.indexOf(r)){for(;p!==null;){var m=da(p);if(m!==null&&pw(m),m=fp(r,o,l,u),m===null&&Rp(r,o,u,Tc,l),m===p)break;p=m}p!==null&&u.stopPropagation()}else Rp(r,o,u,null,l)}}var Tc=null;function fp(r,o,l,u){if(Tc=null,r=ep(u),r=Ds(r),r!==null)if(o=js(r),o===null)r=null;else if(l=o.tag,l===13){if(r=rw(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 Tc=r,null}function ww(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(r8()){case op:return 1;case cw:return 4;case yc:case s8:return 16;case uw:return 536870912;default:return 16}default:return 16}}var Gr=null,pp=null,bc=null;function _w(){if(bc)return bc;var r,o=pp,l=o.length,u,p="value"in Gr?Gr.value:Gr.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 bc=p.slice(r,1<u?1-u:void 0)}function Ic(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 Cc(){return!0}function Ew(){return!1}function un(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)?Cc:Ew,this.isPropagationStopped=Ew,this}return J(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=Cc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Cc)},persist:function(){},isPersistent:Cc}),o}var jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=un(jo),ea=J({},jo,{view:0,detail:0}),y8=un(ea),mp,gp,ta,Rc=J({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vp,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!==ta&&(ta&&r.type==="mousemove"?(mp=r.screenX-ta.screenX,gp=r.screenY-ta.screenY):gp=mp=0,ta=r),mp)},movementY:function(r){return"movementY"in r?r.movementY:gp}}),xw=un(Rc),v8=J({},Rc,{dataTransfer:0}),S8=un(v8),w8=J({},ea,{relatedTarget:0}),yp=un(w8),_8=J({},jo,{animationName:0,elapsedTime:0,pseudoElement:0}),E8=un(_8),x8=J({},jo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),k8=un(x8),T8=J({},jo,{data:0}),kw=un(T8),b8={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"},C8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R8(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=C8[r])?!!o[r]:!1}function vp(){return R8}var A8=J({},ea,{key:function(r){if(r.key){var o=b8[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Ic(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:vp,charCode:function(r){return r.type==="keypress"?Ic(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ic(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),O8=un(A8),P8=J({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tw=un(P8),N8=J({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vp}),M8=un(N8),L8=J({},jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),j8=un(L8),D8=J({},Rc,{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}),$8=un(D8),F8=[9,13,27,32],Sp=d&&"CompositionEvent"in window,na=null;d&&"documentMode"in document&&(na=document.documentMode);var B8=d&&"TextEvent"in window&&!na,bw=d&&(!Sp||na&&8<na&&11>=na),Iw=" ",Cw=!1;function Rw(r,o){switch(r){case"keyup":return F8.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Aw(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Do=!1;function z8(r,o){switch(r){case"compositionend":return Aw(o);case"keypress":return o.which!==32?null:(Cw=!0,Iw);case"textInput":return r=o.data,r===Iw&&Cw?null:r;default:return null}}function U8(r,o){if(Do)return r==="compositionend"||!Sp&&Rw(r,o)?(r=_w(),bc=pp=Gr=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 bw&&o.locale!=="ko"?null:o.data;default:return null}}var H8={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 Ow(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!H8[r.type]:o==="textarea"}function Pw(r,o,l,u){JS(u),o=Mc(o,"onChange"),0<o.length&&(l=new hp("onChange","change",null,l,u),r.push({event:l,listeners:o}))}var ra=null,sa=null;function W8(r){Qw(r,0)}function Ac(r){var o=Uo(r);if(fc(o))return r}function q8(r,o){if(r==="change")return o}var Nw=!1;if(d){var wp;if(d){var _p="oninput"in document;if(!_p){var Mw=document.createElement("div");Mw.setAttribute("oninput","return;"),_p=typeof Mw.oninput=="function"}wp=_p}else wp=!1;Nw=wp&&(!document.documentMode||9<document.documentMode)}function Lw(){ra&&(ra.detachEvent("onpropertychange",jw),sa=ra=null)}function jw(r){if(r.propertyName==="value"&&Ac(sa)){var o=[];Pw(o,sa,r,ep(r)),nw(W8,o)}}function V8(r,o,l){r==="focusin"?(Lw(),ra=o,sa=l,ra.attachEvent("onpropertychange",jw)):r==="focusout"&&Lw()}function G8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ac(sa)}function Y8(r,o){if(r==="click")return Ac(o)}function K8(r,o){if(r==="input"||r==="change")return Ac(o)}function Q8(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var jn=typeof Object.is=="function"?Object.is:Q8;function oa(r,o){if(jn(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)||!jn(r[p],o[p]))return!1}return!0}function Dw(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function $w(r,o){var l=Dw(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=Dw(l)}}function Fw(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Fw(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Bw(){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 Ep(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 X8(r){var o=Bw(),l=r.focusedElem,u=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Fw(l.ownerDocument.documentElement,l)){if(u!==null&&Ep(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=$w(l,m);var S=$w(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 J8=d&&"documentMode"in document&&11>=document.documentMode,$o=null,xp=null,ia=null,kp=!1;function zw(r,o,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;kp||$o==null||$o!==Oo(u)||(u=$o,"selectionStart"in u&&Ep(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}),ia&&oa(ia,u)||(ia=u,u=Mc(xp,"onSelect"),0<u.length&&(o=new hp("onSelect","select",null,o,l),r.push({event:o,listeners:u}),o.target=$o)))}function Oc(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Fo={animationend:Oc("Animation","AnimationEnd"),animationiteration:Oc("Animation","AnimationIteration"),animationstart:Oc("Animation","AnimationStart"),transitionend:Oc("Transition","TransitionEnd")},Tp={},Uw={};d&&(Uw=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function Pc(r){if(Tp[r])return Tp[r];if(!Fo[r])return r;var o=Fo[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Uw)return Tp[r]=o[l];return r}var Hw=Pc("animationend"),Ww=Pc("animationiteration"),qw=Pc("animationstart"),Vw=Pc("transitionend"),Gw=new Map,Yw="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 Yr(r,o){Gw.set(r,o),a(o,[r])}for(var bp=0;bp<Yw.length;bp++){var Ip=Yw[bp],Z8=Ip.toLowerCase(),eF=Ip[0].toUpperCase()+Ip.slice(1);Yr(Z8,"on"+eF)}Yr(Hw,"onAnimationEnd"),Yr(Ww,"onAnimationIteration"),Yr(qw,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(Vw,"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 aa="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(" "),tF=new Set("cancel close invalid load scroll toggle".split(" ").concat(aa));function Kw(r,o,l){var u=r.type||"unknown-event";r.currentTarget=l,Z$(u,o,void 0,r),r.currentTarget=null}function Qw(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,D=T.currentTarget;if(T=T.listener,b!==m&&p.isPropagationStopped())break e;Kw(p,T,D),m=b}else for(S=0;S<u.length;S++){if(T=u[S],b=T.instance,D=T.currentTarget,T=T.listener,b!==m&&p.isPropagationStopped())break e;Kw(p,T,D),m=b}}}if(gc)throw r=sp,gc=!1,sp=null,r}function Xe(r,o){var l=o[Lp];l===void 0&&(l=o[Lp]=new Set);var u=r+"__bubble";l.has(u)||(Xw(o,r,2,!1),l.add(u))}function Cp(r,o,l){var u=0;o&&(u|=4),Xw(l,r,u,o)}var Nc="_reactListening"+Math.random().toString(36).slice(2);function la(r){if(!r[Nc]){r[Nc]=!0,s.forEach(function(l){l!=="selectionchange"&&(tF.has(l)||Cp(l,!1,r),Cp(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Nc]||(o[Nc]=!0,Cp("selectionchange",!1,o))}}function Xw(r,o,l,u){switch(ww(o)){case 1:var p=m8;break;case 4:p=g8;break;default:p=dp}l=p.bind(null,o,l,r),p=void 0,!rp||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 Rp(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=Ds(T),S===null)return;if(b=S.tag,b===5||b===6){u=m=S;continue e}T=T.parentNode}}u=u.return}nw(function(){var D=m,G=ep(l),Y=[];e:{var V=Gw.get(r);if(V!==void 0){var ee=hp,se=r;switch(r){case"keypress":if(Ic(l)===0)break e;case"keydown":case"keyup":ee=O8;break;case"focusin":se="focus",ee=yp;break;case"focusout":se="blur",ee=yp;break;case"beforeblur":case"afterblur":ee=yp;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":ee=xw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=S8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=M8;break;case Hw:case Ww:case qw:ee=E8;break;case Vw:ee=j8;break;case"scroll":ee=y8;break;case"wheel":ee=$8;break;case"copy":case"cut":case"paste":ee=k8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Tw}var ie=(o&4)!==0,lt=!ie&&r==="scroll",P=ie?V!==null?V+"Capture":null:V;ie=[];for(var I=D,N;I!==null;){N=I;var Q=N.stateNode;if(N.tag===5&&Q!==null&&(N=Q,P!==null&&(Q=Wi(I,P),Q!=null&&ie.push(ca(I,Q,N)))),lt)break;I=I.return}0<ie.length&&(V=new ee(V,se,null,l,G),Y.push({event:V,listeners:ie}))}}if(!(o&7)){e:{if(V=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",V&&l!==Zf&&(se=l.relatedTarget||l.fromElement)&&(Ds(se)||se[mr]))break e;if((ee||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,ee?(se=l.relatedTarget||l.toElement,ee=D,se=se?Ds(se):null,se!==null&&(lt=js(se),se!==lt||se.tag!==5&&se.tag!==6)&&(se=null)):(ee=null,se=D),ee!==se)){if(ie=xw,Q="onMouseLeave",P="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(ie=Tw,Q="onPointerLeave",P="onPointerEnter",I="pointer"),lt=ee==null?V:Uo(ee),N=se==null?V:Uo(se),V=new ie(Q,I+"leave",ee,l,G),V.target=lt,V.relatedTarget=N,Q=null,Ds(G)===D&&(ie=new ie(P,I+"enter",se,l,G),ie.target=N,ie.relatedTarget=lt,Q=ie),lt=Q,ee&&se)t:{for(ie=ee,P=se,I=0,N=ie;N;N=Bo(N))I++;for(N=0,Q=P;Q;Q=Bo(Q))N++;for(;0<I-N;)ie=Bo(ie),I--;for(;0<N-I;)P=Bo(P),N--;for(;I--;){if(ie===P||P!==null&&ie===P.alternate)break t;ie=Bo(ie),P=Bo(P)}ie=null}else ie=null;ee!==null&&Jw(Y,V,ee,ie,!1),se!==null&&lt!==null&&Jw(Y,lt,se,ie,!0)}}e:{if(V=D?Uo(D):window,ee=V.nodeName&&V.nodeName.toLowerCase(),ee==="select"||ee==="input"&&V.type==="file")var le=q8;else if(Ow(V))if(Nw)le=K8;else{le=G8;var ue=V8}else(ee=V.nodeName)&&ee.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(le=Y8);if(le&&(le=le(r,D))){Pw(Y,le,l,G);break e}ue&&ue(r,V,D),r==="focusout"&&(ue=V._wrapperState)&&ue.controlled&&V.type==="number"&&Ls(V,"number",V.value)}switch(ue=D?Uo(D):window,r){case"focusin":(Ow(ue)||ue.contentEditable==="true")&&($o=ue,xp=D,ia=null);break;case"focusout":ia=xp=$o=null;break;case"mousedown":kp=!0;break;case"contextmenu":case"mouseup":case"dragend":kp=!1,zw(Y,l,G);break;case"selectionchange":if(J8)break;case"keydown":case"keyup":zw(Y,l,G)}var de;if(Sp)e:{switch(r){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Do?Rw(r,l)&&(me="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&(bw&&l.locale!=="ko"&&(Do||me!=="onCompositionStart"?me==="onCompositionEnd"&&Do&&(de=_w()):(Gr=G,pp="value"in Gr?Gr.value:Gr.textContent,Do=!0)),ue=Mc(D,me),0<ue.length&&(me=new kw(me,r,null,l,G),Y.push({event:me,listeners:ue}),de?me.data=de:(de=Aw(l),de!==null&&(me.data=de)))),(de=B8?z8(r,l):U8(r,l))&&(D=Mc(D,"onBeforeInput"),0<D.length&&(G=new kw("onBeforeInput","beforeinput",null,l,G),Y.push({event:G,listeners:D}),G.data=de))}Qw(Y,o)})}function ca(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Mc(r,o){for(var l=o+"Capture",u=[];r!==null;){var p=r,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=Wi(r,l),m!=null&&u.unshift(ca(r,m,p)),m=Wi(r,o),m!=null&&u.push(ca(r,m,p))),r=r.return}return u}function Bo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Jw(r,o,l,u,p){for(var m=o._reactName,S=[];l!==null&&l!==u;){var T=l,b=T.alternate,D=T.stateNode;if(b!==null&&b===u)break;T.tag===5&&D!==null&&(T=D,p?(b=Wi(l,m),b!=null&&S.unshift(ca(l,b,T))):p||(b=Wi(l,m),b!=null&&S.push(ca(l,b,T)))),l=l.return}S.length!==0&&r.push({event:o,listeners:S})}var nF=/\r\n?/g,rF=/\u0000|\uFFFD/g;function Zw(r){return(typeof r=="string"?r:""+r).replace(nF,`
`).replace(rF,"")}function Lc(r,o,l){if(o=Zw(o),Zw(r)!==o&&l)throw Error(n(425))}function jc(){}var Ap=null,Op=null;function Pp(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 Np=typeof setTimeout=="function"?setTimeout:void 0,sF=typeof clearTimeout=="function"?clearTimeout:void 0,e_=typeof Promise=="function"?Promise:void 0,oF=typeof queueMicrotask=="function"?queueMicrotask:typeof e_<"u"?function(r){return e_.resolve(null).then(r).catch(iF)}:Np;function iF(r){setTimeout(function(){throw r})}function Mp(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),Zi(o);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=p}while(l);Zi(o)}function Kr(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 t_(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),Jn="__reactFiber$"+zo,ua="__reactProps$"+zo,mr="__reactContainer$"+zo,Lp="__reactEvents$"+zo,aF="__reactListeners$"+zo,lF="__reactHandles$"+zo;function Ds(r){var o=r[Jn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[mr]||l[Jn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=t_(r);r!==null;){if(l=r[Jn])return l;r=t_(r)}return o}r=l,l=r.parentNode}return null}function da(r){return r=r[Jn]||r[mr],!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 Dc(r){return r[ua]||null}var jp=[],Ho=-1;function Qr(r){return{current:r}}function Je(r){0>Ho||(r.current=jp[Ho],jp[Ho]=null,Ho--)}function Qe(r,o){Ho++,jp[Ho]=r.current,r.current=o}var Xr={},Nt=Qr(Xr),Jt=Qr(!1),$s=Xr;function Wo(r,o){var l=r.type.contextTypes;if(!l)return Xr;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 $c(){Je(Jt),Je(Nt)}function n_(r,o,l){if(Nt.current!==Xr)throw Error(n(168));Qe(Nt,o),Qe(Jt,l)}function r_(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,ze(r)||"Unknown",p));return J({},l,u)}function Fc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Xr,$s=Nt.current,Qe(Nt,r),Qe(Jt,Jt.current),!0}function s_(r,o,l){var u=r.stateNode;if(!u)throw Error(n(169));l?(r=r_(r,o,$s),u.__reactInternalMemoizedMergedChildContext=r,Je(Jt),Je(Nt),Qe(Nt,r)):Je(Jt),Qe(Jt,l)}var gr=null,Bc=!1,Dp=!1;function o_(r){gr===null?gr=[r]:gr.push(r)}function cF(r){Bc=!0,o_(r)}function Jr(){if(!Dp&&gr!==null){Dp=!0;var r=0,o=Ue;try{var l=gr;for(Ue=1;r<l.length;r++){var u=l[r];do u=u(!0);while(u!==null)}gr=null,Bc=!1}catch(p){throw gr!==null&&(gr=gr.slice(r+1)),aw(op,Jr),p}finally{Ue=o,Dp=!1}}return null}var qo=[],Vo=0,zc=null,Uc=0,_n=[],En=0,Fs=null,yr=1,vr="";function Bs(r,o){qo[Vo++]=Uc,qo[Vo++]=zc,zc=r,Uc=o}function i_(r,o,l){_n[En++]=yr,_n[En++]=vr,_n[En++]=Fs,Fs=r;var u=yr;r=vr;var p=32-Ln(u)-1;u&=~(1<<p),l+=1;var m=32-Ln(o)+p;if(30<m){var S=p-p%5;m=(u&(1<<S)-1).toString(32),u>>=S,p-=S,yr=1<<32-Ln(o)+p|l<<p|u,vr=m+r}else yr=1<<m|l<<p|u,vr=r}function $p(r){r.return!==null&&(Bs(r,1),i_(r,1,0))}function Fp(r){for(;r===zc;)zc=qo[--Vo],qo[Vo]=null,Uc=qo[--Vo],qo[Vo]=null;for(;r===Fs;)Fs=_n[--En],_n[En]=null,vr=_n[--En],_n[En]=null,yr=_n[--En],_n[En]=null}var dn=null,fn=null,Ze=!1,Dn=null;function a_(r,o){var l=bn(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 l_(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,dn=r,fn=Kr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,dn=r,fn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Fs!==null?{id:yr,overflow:vr}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=bn(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,dn=r,fn=null,!0):!1;default:return!1}}function Bp(r){return(r.mode&1)!==0&&(r.flags&128)===0}function zp(r){if(Ze){var o=fn;if(o){var l=o;if(!l_(r,o)){if(Bp(r))throw Error(n(418));o=Kr(l.nextSibling);var u=dn;o&&l_(r,o)?a_(u,l):(r.flags=r.flags&-4097|2,Ze=!1,dn=r)}}else{if(Bp(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ze=!1,dn=r}}}function c_(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dn=r}function Hc(r){if(r!==dn)return!1;if(!Ze)return c_(r),Ze=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Pp(r.type,r.memoizedProps)),o&&(o=fn)){if(Bp(r))throw u_(),Error(n(418));for(;o;)a_(r,o),o=Kr(o.nextSibling)}if(c_(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){fn=Kr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}fn=null}}else fn=dn?Kr(r.stateNode.nextSibling):null;return!0}function u_(){for(var r=fn;r;)r=Kr(r.nextSibling)}function Go(){fn=dn=null,Ze=!1}function Up(r){Dn===null?Dn=[r]:Dn.push(r)}var uF=H.ReactCurrentBatchConfig;function fa(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 Wc(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function d_(r){var o=r._init;return o(r._payload)}function f_(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=is(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=Nh(N,P.mode,Q),I.return=P,I):(I=p(I,N),I.return=P,I)}function b(P,I,N,Q){var le=N.type;return le===L?G(P,I,N.props.children,Q,N.key):I!==null&&(I.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&d_(le)===I.type)?(Q=p(I,N.props),Q.ref=fa(P,I,N),Q.return=P,Q):(Q=hu(N.type,N.key,N.props,null,P.mode,Q),Q.ref=fa(P,I,N),Q.return=P,Q)}function D(P,I,N,Q){return I===null||I.tag!==4||I.stateNode.containerInfo!==N.containerInfo||I.stateNode.implementation!==N.implementation?(I=Mh(N,P.mode,Q),I.return=P,I):(I=p(I,N.children||[]),I.return=P,I)}function G(P,I,N,Q,le){return I===null||I.tag!==7?(I=Ys(N,P.mode,Q,le),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=Nh(""+I,P.mode,N),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return N=hu(I.type,I.key,I.props,null,P.mode,N),N.ref=fa(P,null,I),N.return=P,N;case M:return I=Mh(I,P.mode,N),I.return=P,I;case ce:var Q=I._init;return Y(P,Q(I._payload),N)}if(Re(I)||re(I))return I=Ys(I,P.mode,N,null),I.return=P,I;Wc(P,I)}return null}function V(P,I,N,Q){var le=I!==null?I.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return le!==null?null:T(P,I,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case z:return N.key===le?b(P,I,N,Q):null;case M:return N.key===le?D(P,I,N,Q):null;case ce:return le=N._init,V(P,I,le(N._payload),Q)}if(Re(N)||re(N))return le!==null?null:G(P,I,N,Q,null);Wc(P,N)}return null}function ee(P,I,N,Q,le){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return P=P.get(N)||null,T(I,P,""+Q,le);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,le);case M:return P=P.get(Q.key===null?N:Q.key)||null,D(I,P,Q,le);case ce:var ue=Q._init;return ee(P,I,N,ue(Q._payload),le)}if(Re(Q)||re(Q))return P=P.get(N)||null,G(I,P,Q,le,null);Wc(I,Q)}return null}function se(P,I,N,Q){for(var le=null,ue=null,de=I,me=I=0,kt=null;de!==null&&me<N.length;me++){de.index>me?(kt=de,de=null):kt=de.sibling;var Be=V(P,de,N[me],Q);if(Be===null){de===null&&(de=kt);break}r&&de&&Be.alternate===null&&o(P,de),I=m(Be,I,me),ue===null?le=Be:ue.sibling=Be,ue=Be,de=kt}if(me===N.length)return l(P,de),Ze&&Bs(P,me),le;if(de===null){for(;me<N.length;me++)de=Y(P,N[me],Q),de!==null&&(I=m(de,I,me),ue===null?le=de:ue.sibling=de,ue=de);return Ze&&Bs(P,me),le}for(de=u(P,de);me<N.length;me++)kt=ee(de,P,me,N[me],Q),kt!==null&&(r&&kt.alternate!==null&&de.delete(kt.key===null?me:kt.key),I=m(kt,I,me),ue===null?le=kt:ue.sibling=kt,ue=kt);return r&&de.forEach(function(as){return o(P,as)}),Ze&&Bs(P,me),le}function ie(P,I,N,Q){var le=re(N);if(typeof le!="function")throw Error(n(150));if(N=le.call(N),N==null)throw Error(n(151));for(var ue=le=null,de=I,me=I=0,kt=null,Be=N.next();de!==null&&!Be.done;me++,Be=N.next()){de.index>me?(kt=de,de=null):kt=de.sibling;var as=V(P,de,Be.value,Q);if(as===null){de===null&&(de=kt);break}r&&de&&as.alternate===null&&o(P,de),I=m(as,I,me),ue===null?le=as:ue.sibling=as,ue=as,de=kt}if(Be.done)return l(P,de),Ze&&Bs(P,me),le;if(de===null){for(;!Be.done;me++,Be=N.next())Be=Y(P,Be.value,Q),Be!==null&&(I=m(Be,I,me),ue===null?le=Be:ue.sibling=Be,ue=Be);return Ze&&Bs(P,me),le}for(de=u(P,de);!Be.done;me++,Be=N.next())Be=ee(de,P,me,Be.value,Q),Be!==null&&(r&&Be.alternate!==null&&de.delete(Be.key===null?me:Be.key),I=m(Be,I,me),ue===null?le=Be:ue.sibling=Be,ue=Be);return r&&de.forEach(function(HF){return o(P,HF)}),Ze&&Bs(P,me),le}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 le=N.key,ue=I;ue!==null;){if(ue.key===le){if(le=N.type,le===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===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&d_(le)===ue.type){l(P,ue.sibling),I=p(ue,N.props),I.ref=fa(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=Ys(N.props.children,P.mode,Q,N.key),I.return=P,P=I):(Q=hu(N.type,N.key,N.props,null,P.mode,Q),Q.ref=fa(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=Mh(N,P.mode,Q),I.return=P,P=I}return S(P);case ce:return ue=N._init,lt(P,I,ue(N._payload),Q)}if(Re(N))return se(P,I,N,Q);if(re(N))return ie(P,I,N,Q);Wc(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=Nh(N,P.mode,Q),I.return=P,P=I),S(P)):l(P,I)}return lt}var Yo=f_(!0),p_=f_(!1),qc=Qr(null),Vc=null,Ko=null,Hp=null;function Wp(){Hp=Ko=Vc=null}function qp(r){var o=qc.current;Je(qc),r._currentValue=o}function Vp(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){Vc=r,Hp=Ko=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&o&&(en=!0),r.firstContext=null)}function xn(r){var o=r._currentValue;if(Hp!==r)if(r={context:r,memoizedValue:o,next:null},Ko===null){if(Vc===null)throw Error(n(308));Ko=r,Vc.dependencies={lanes:0,firstContext:r}}else Ko=Ko.next=r;return o}var zs=null;function Gp(r){zs===null?zs=[r]:zs.push(r)}function h_(r,o,l,u){var p=o.interleaved;return p===null?(l.next=l,Gp(o)):(l.next=p.next,p.next=l),o.interleaved=l,Sr(r,u)}function Sr(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 Zr=!1;function Yp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m_(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 wr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function es(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,Sr(r,l)}return p=u.interleaved,p===null?(o.next=o,Gp(u)):(o.next=p.next,p.next=o),u.interleaved=o,Sr(r,l)}function Gc(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,lp(r,l)}}function g_(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 Yc(r,o,l,u){var p=r.updateQueue;Zr=!1;var m=p.firstBaseUpdate,S=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var b=T,D=b.next;b.next=null,S===null?m=D:S.next=D,S=b;var G=r.alternate;G!==null&&(G=G.updateQueue,T=G.lastBaseUpdate,T!==S&&(T===null?G.firstBaseUpdate=D:T.next=D,G.lastBaseUpdate=b))}if(m!==null){var Y=p.baseState;S=0,G=D=b=null,T=m;do{var V=T.lane,ee=T.eventTime;if((u&V)===V){G!==null&&(G=G.next={eventTime:ee,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var se=r,ie=T;switch(V=o,ee=l,ie.tag){case 1:if(se=ie.payload,typeof se=="function"){Y=se.call(ee,Y,V);break e}Y=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ie.payload,V=typeof se=="function"?se.call(ee,Y,V):se,V==null)break e;Y=J({},Y,V);break e;case 2:Zr=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,V=p.effects,V===null?p.effects=[T]:V.push(T))}else ee={eventTime:ee,lane:V,tag:T.tag,payload:T.payload,callback:T.callback,next:null},G===null?(D=G=ee,b=Y):G=G.next=ee,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=D,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);Ws|=S,r.lanes=S,r.memoizedState=Y}}function y_(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 pa={},Zn=Qr(pa),ha=Qr(pa),ma=Qr(pa);function Us(r){if(r===pa)throw Error(n(174));return r}function Kp(r,o){switch(Qe(ma,o),Qe(ha,r),Qe(Zn,pa),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Qf(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Qf(o,r)}Je(Zn),Qe(Zn,o)}function Xo(){Je(Zn),Je(ha),Je(ma)}function v_(r){Us(ma.current);var o=Us(Zn.current),l=Qf(o,r.type);o!==l&&(Qe(ha,r),Qe(Zn,l))}function Qp(r){ha.current===r&&(Je(Zn),Je(ha))}var et=Qr(0);function Kc(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 Xp=[];function Jp(){for(var r=0;r<Xp.length;r++)Xp[r]._workInProgressVersionPrimary=null;Xp.length=0}var Qc=H.ReactCurrentDispatcher,Zp=H.ReactCurrentBatchConfig,Hs=0,tt=null,pt=null,Et=null,Xc=!1,ga=!1,ya=0,dF=0;function Mt(){throw Error(n(321))}function eh(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!jn(r[l],o[l]))return!1;return!0}function th(r,o,l,u,p,m){if(Hs=m,tt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Qc.current=r===null||r.memoizedState===null?mF:gF,r=l(u,p),ga){m=0;do{if(ga=!1,ya=0,25<=m)throw Error(n(301));m+=1,Et=pt=null,o.updateQueue=null,Qc.current=yF,r=l(u,p)}while(ga)}if(Qc.current=eu,o=pt!==null&&pt.next!==null,Hs=0,Et=pt=tt=null,Xc=!1,o)throw Error(n(300));return r}function nh(){var r=ya!==0;return ya=0,r}function er(){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 kn(){if(pt===null){var r=tt.alternate;r=r!==null?r.memoizedState:null}else r=pt.next;var o=Et===null?tt.memoizedState:Et.next;if(o!==null)Et=o,pt=r;else{if(r===null)throw Error(n(310));pt=r,r={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Et===null?tt.memoizedState=Et=r:Et=Et.next=r}return Et}function va(r,o){return typeof o=="function"?o(r):o}function rh(r){var o=kn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var u=pt,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,D=m;do{var G=D.lane;if((Hs&G)===G)b!==null&&(b=b.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:r(u,D.action);else{var Y={lane:G,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};b===null?(T=b=Y,S=u):b=b.next=Y,tt.lanes|=G,Ws|=G}D=D.next}while(D!==null&&D!==m);b===null?S=u:b.next=T,jn(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,Ws|=m,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function sh(r){var o=kn(),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);jn(m,o.memoizedState)||(en=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,u]}function S_(){}function w_(r,o){var l=tt,u=kn(),p=o(),m=!jn(u.memoizedState,p);if(m&&(u.memoizedState=p,en=!0),u=u.queue,oh(x_.bind(null,l,u,r),[r]),u.getSnapshot!==o||m||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,Sa(9,E_.bind(null,l,u,p,o),void 0,null),xt===null)throw Error(n(349));Hs&30||__(l,o,p)}return p}function __(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 E_(r,o,l,u){o.value=l,o.getSnapshot=u,k_(o)&&T_(r)}function x_(r,o,l){return l(function(){k_(o)&&T_(r)})}function k_(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!jn(r,l)}catch{return!0}}function T_(r){var o=Sr(r,1);o!==null&&zn(o,r,1,-1)}function b_(r){var o=er();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:r},o.queue=r,r=r.dispatch=hF.bind(null,tt,r),[o.memoizedState,r]}function Sa(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 I_(){return kn().memoizedState}function Jc(r,o,l,u){var p=er();tt.flags|=r,p.memoizedState=Sa(1|o,l,void 0,u===void 0?null:u)}function Zc(r,o,l,u){var p=kn();u=u===void 0?null:u;var m=void 0;if(pt!==null){var S=pt.memoizedState;if(m=S.destroy,u!==null&&eh(u,S.deps)){p.memoizedState=Sa(o,l,m,u);return}}tt.flags|=r,p.memoizedState=Sa(1|o,l,m,u)}function C_(r,o){return Jc(8390656,8,r,o)}function oh(r,o){return Zc(2048,8,r,o)}function R_(r,o){return Zc(4,2,r,o)}function A_(r,o){return Zc(4,4,r,o)}function O_(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 P_(r,o,l){return l=l!=null?l.concat([r]):null,Zc(4,4,O_.bind(null,o,r),l)}function ih(){}function N_(r,o){var l=kn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&eh(o,u[1])?u[0]:(l.memoizedState=[r,o],r)}function M_(r,o){var l=kn();o=o===void 0?null:o;var u=l.memoizedState;return u!==null&&o!==null&&eh(o,u[1])?u[0]:(r=r(),l.memoizedState=[r,o],r)}function L_(r,o,l){return Hs&21?(jn(l,o)||(l=dw(),tt.lanes|=l,Ws|=l,r.baseState=!0),o):(r.baseState&&(r.baseState=!1,en=!0),r.memoizedState=l)}function fF(r,o){var l=Ue;Ue=l!==0&&4>l?l:4,r(!0);var u=Zp.transition;Zp.transition={};try{r(!1),o()}finally{Ue=l,Zp.transition=u}}function j_(){return kn().memoizedState}function pF(r,o,l){var u=ss(r);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},D_(r))$_(o,l);else if(l=h_(r,o,l,u),l!==null){var p=Wt();zn(l,r,u,p),F_(l,o,u)}}function hF(r,o,l){var u=ss(r),p={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(D_(r))$_(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,jn(T,S)){var b=o.interleaved;b===null?(p.next=p,Gp(o)):(p.next=b.next,b.next=p),o.interleaved=p;return}}catch{}finally{}l=h_(r,o,p,u),l!==null&&(p=Wt(),zn(l,r,u,p),F_(l,o,u))}}function D_(r){var o=r.alternate;return r===tt||o!==null&&o===tt}function $_(r,o){ga=Xc=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function F_(r,o,l){if(l&4194240){var u=o.lanes;u&=r.pendingLanes,l|=u,o.lanes=l,lp(r,l)}}var eu={readContext:xn,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},mF={readContext:xn,useCallback:function(r,o){return er().memoizedState=[r,o===void 0?null:o],r},useContext:xn,useEffect:C_,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,Jc(4194308,4,O_.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Jc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Jc(4,2,r,o)},useMemo:function(r,o){var l=er();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var u=er();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=pF.bind(null,tt,r),[u.memoizedState,r]},useRef:function(r){var o=er();return r={current:r},o.memoizedState=r},useState:b_,useDebugValue:ih,useDeferredValue:function(r){return er().memoizedState=r},useTransition:function(){var r=b_(!1),o=r[0];return r=fF.bind(null,r[1]),er().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var u=tt,p=er();if(Ze){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),xt===null)throw Error(n(349));Hs&30||__(u,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,C_(x_.bind(null,u,m,r),[r]),u.flags|=2048,Sa(9,E_.bind(null,u,m,l,o),void 0,null),l},useId:function(){var r=er(),o=xt.identifierPrefix;if(Ze){var l=vr,u=yr;l=(u&~(1<<32-Ln(u)-1)).toString(32)+l,o=":"+o+"R"+l,l=ya++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=dF++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},gF={readContext:xn,useCallback:N_,useContext:xn,useEffect:oh,useImperativeHandle:P_,useInsertionEffect:R_,useLayoutEffect:A_,useMemo:M_,useReducer:rh,useRef:I_,useState:function(){return rh(va)},useDebugValue:ih,useDeferredValue:function(r){var o=kn();return L_(o,pt.memoizedState,r)},useTransition:function(){var r=rh(va)[0],o=kn().memoizedState;return[r,o]},useMutableSource:S_,useSyncExternalStore:w_,useId:j_,unstable_isNewReconciler:!1},yF={readContext:xn,useCallback:N_,useContext:xn,useEffect:oh,useImperativeHandle:P_,useInsertionEffect:R_,useLayoutEffect:A_,useMemo:M_,useReducer:sh,useRef:I_,useState:function(){return sh(va)},useDebugValue:ih,useDeferredValue:function(r){var o=kn();return pt===null?o.memoizedState=r:L_(o,pt.memoizedState,r)},useTransition:function(){var r=sh(va)[0],o=kn().memoizedState;return[r,o]},useMutableSource:S_,useSyncExternalStore:w_,useId:j_,unstable_isNewReconciler:!1};function $n(r,o){if(r&&r.defaultProps){o=J({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function ah(r,o,l,u){o=r.memoizedState,l=l(u,o),l=l==null?o:J({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var tu={isMounted:function(r){return(r=r._reactInternals)?js(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var u=Wt(),p=ss(r),m=wr(u,p);m.payload=o,l!=null&&(m.callback=l),o=es(r,m,p),o!==null&&(zn(o,r,p,u),Gc(o,r,p))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var u=Wt(),p=ss(r),m=wr(u,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=es(r,m,p),o!==null&&(zn(o,r,p,u),Gc(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=Wt(),u=ss(r),p=wr(l,u);p.tag=2,o!=null&&(p.callback=o),o=es(r,p,u),o!==null&&(zn(o,r,u,l),Gc(o,r,u))}};function B_(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?!oa(l,u)||!oa(p,m):!0}function z_(r,o,l){var u=!1,p=Xr,m=o.contextType;return typeof m=="object"&&m!==null?m=xn(m):(p=Zt(o)?$s:Nt.current,u=o.contextTypes,m=(u=u!=null)?Wo(r,p):Xr),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=tu,r.stateNode=o,o._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=m),o}function U_(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&&tu.enqueueReplaceState(o,o.state,null)}function lh(r,o,l,u){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},Yp(r);var m=o.contextType;typeof m=="object"&&m!==null?p.context=xn(m):(m=Zt(o)?$s:Nt.current,p.context=Wo(r,m)),p.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(ah(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&&tu.enqueueReplaceState(p,p.state,null),Yc(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 ch(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function uh(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var vF=typeof WeakMap=="function"?WeakMap:Map;function H_(r,o,l){l=wr(-1,l),l.tag=3,l.payload={element:null};var u=o.value;return l.callback=function(){lu||(lu=!0,Th=u),uh(r,o)},l}function W_(r,o,l){l=wr(-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(){uh(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){uh(r,o),typeof u!="function"&&(ns===null?ns=new Set([this]):ns.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),l}function q_(r,o,l){var u=r.pingCache;if(u===null){u=r.pingCache=new vF;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=PF.bind(null,r,o,l),o.then(r,r))}function V_(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 G_(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=wr(-1,1),o.tag=2,es(l,o,1))),l.lanes|=1),r)}var SF=H.ReactCurrentOwner,en=!1;function Ht(r,o,l,u){o.child=r===null?p_(o,null,l,u):Yo(o,r.child,l,u)}function Y_(r,o,l,u,p){l=l.render;var m=o.ref;return Qo(o,p),u=th(r,o,l,u,m,p),l=nh(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,_r(r,o,p)):(Ze&&l&&$p(o),o.flags|=1,Ht(r,o,u,p),o.child)}function K_(r,o,l,u,p){if(r===null){var m=l.type;return typeof m=="function"&&!Ph(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,Q_(r,o,m,u,p)):(r=hu(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:oa,l(S,u)&&r.ref===o.ref)return _r(r,o,p)}return o.flags|=1,r=is(m,u),r.ref=o.ref,r.return=o,o.child=r}function Q_(r,o,l,u,p){if(r!==null){var m=r.memoizedProps;if(oa(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,_r(r,o,p)}return dh(r,o,l,u,p)}function X_(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,pn),pn|=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,pn),pn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=m!==null?m.baseLanes:l,Qe(ei,pn),pn|=u}else m!==null?(u=m.baseLanes|l,o.memoizedState=null):u=l,Qe(ei,pn),pn|=u;return Ht(r,o,p,l),o.child}function J_(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function dh(r,o,l,u,p){var m=Zt(l)?$s:Nt.current;return m=Wo(o,m),Qo(o,p),l=th(r,o,l,u,m,p),u=nh(),r!==null&&!en?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,_r(r,o,p)):(Ze&&u&&$p(o),o.flags|=1,Ht(r,o,l,p),o.child)}function Z_(r,o,l,u,p){if(Zt(l)){var m=!0;Fc(o)}else m=!1;if(Qo(o,p),o.stateNode===null)ru(r,o),z_(o,l,u),lh(o,l,u,p),u=!0;else if(r===null){var S=o.stateNode,T=o.memoizedProps;S.props=T;var b=S.context,D=l.contextType;typeof D=="object"&&D!==null?D=xn(D):(D=Zt(l)?$s:Nt.current,D=Wo(o,D));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!==D)&&U_(o,S,u,D),Zr=!1;var V=o.memoizedState;S.state=V,Yc(o,u,S,p),b=o.memoizedState,T!==u||V!==b||Jt.current||Zr?(typeof G=="function"&&(ah(o,l,G,u),b=o.memoizedState),(T=Zr||B_(o,l,T,u,V,b,D))?(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=D,u=T):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{S=o.stateNode,m_(r,o),T=o.memoizedProps,D=o.type===o.elementType?T:$n(o.type,T),S.props=D,Y=o.pendingProps,V=S.context,b=l.contextType,typeof b=="object"&&b!==null?b=xn(b):(b=Zt(l)?$s:Nt.current,b=Wo(o,b));var ee=l.getDerivedStateFromProps;(G=typeof ee=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==Y||V!==b)&&U_(o,S,u,b),Zr=!1,V=o.memoizedState,S.state=V,Yc(o,u,S,p);var se=o.memoizedState;T!==Y||V!==se||Jt.current||Zr?(typeof ee=="function"&&(ah(o,l,ee,u),se=o.memoizedState),(D=Zr||B_(o,l,D,u,V,se,b)||!1)?(G||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(u,se,b),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(u,se,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=se),S.props=u,S.state=se,S.context=b,u=D):(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 fh(r,o,l,u,m,p)}function fh(r,o,l,u,p,m){J_(r,o);var S=(o.flags&128)!==0;if(!u&&!S)return p&&s_(o,l,!1),_r(r,o,m);u=o.stateNode,SF.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)):Ht(r,o,T,m),o.memoizedState=u.state,p&&s_(o,l,!0),o.child}function eE(r){var o=r.stateNode;o.pendingContext?n_(r,o.pendingContext,o.pendingContext!==o.context):o.context&&n_(r,o.context,!1),Kp(r,o.containerInfo)}function tE(r,o,l,u,p){return Go(),Up(p),o.flags|=256,Ht(r,o,l,u),o.child}var ph={dehydrated:null,treeContext:null,retryLane:0};function hh(r){return{baseLanes:r,cachePool:null,transitions:null}}function nE(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 zp(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=mu(S,u,0,null),r=Ys(r,u,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=hh(l),o.memoizedState=ph,r):mh(o,S));if(p=r.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return wF(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=is(p,b),u.subtreeFlags=p.subtreeFlags&14680064),T!==null?m=is(T,m):(m=Ys(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?hh(l):{baseLanes:S.baseLanes|l,cachePool:null,transitions:S.transitions},m.memoizedState=S,m.childLanes=r.childLanes&~l,o.memoizedState=ph,u}return m=r.child,r=m.sibling,u=is(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 mh(r,o){return o=mu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function nu(r,o,l,u){return u!==null&&Up(u),Yo(o,r.child,null,l),r=mh(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function wF(r,o,l,u,p,m,S){if(l)return o.flags&256?(o.flags&=-257,u=ch(Error(n(422))),nu(r,o,S,u)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=u.fallback,p=o.mode,u=mu({mode:"visible",children:u.children},p,0,null),m=Ys(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=hh(S),o.memoizedState=ph,m);if(!(o.mode&1))return nu(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=ch(m,u,void 0),nu(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,Sr(r,p),zn(u,r,p,-1))}return Oh(),u=ch(Error(n(421))),nu(r,o,S,u)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=NF.bind(null,r),p._reactRetry=o,null):(r=m.treeContext,fn=Kr(p.nextSibling),dn=o,Ze=!0,Dn=null,r!==null&&(_n[En++]=yr,_n[En++]=vr,_n[En++]=Fs,yr=r.id,vr=r.overflow,Fs=o),o=mh(o,u.children),o.flags|=4096,o)}function rE(r,o,l){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o),Vp(r.return,o,l)}function gh(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 sE(r,o,l){var u=o.pendingProps,p=u.revealOrder,m=u.tail;if(Ht(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&&rE(r,l,o);else if(r.tag===19)rE(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&&Kc(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),gh(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&&Kc(r)===null){o.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}gh(o,!0,l,null,m);break;case"together":gh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ru(r,o){!(o.mode&1)&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function _r(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Ws|=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=is(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=is(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function _F(r,o,l){switch(o.tag){case 3:eE(o),Go();break;case 5:v_(o);break;case 1:Zt(o.type)&&Fc(o);break;case 4:Kp(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,p=o.memoizedProps.value;Qe(qc,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?nE(r,o,l):(Qe(et,et.current&1),r=_r(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 sE(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,X_(r,o,l)}return _r(r,o,l)}var oE,yh,iE,aE;oE=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}},yh=function(){},iE=function(r,o,l,u){var p=r.memoizedProps;if(p!==u){r=o.stateNode,Us(Zn.current);var m=null;switch(l){case"input":p=Mn(r,p),u=Mn(r,u),m=[];break;case"select":p=J({},p,{value:void 0}),u=J({},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=jc)}Xf(l,u);var S;l=null;for(D in p)if(!u.hasOwnProperty(D)&&p.hasOwnProperty(D)&&p[D]!=null)if(D==="style"){var T=p[D];for(S in T)T.hasOwnProperty(S)&&(l||(l={}),l[S]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(i.hasOwnProperty(D)?m||(m=[]):(m=m||[]).push(D,null));for(D in u){var b=u[D];if(T=p!=null?p[D]:void 0,u.hasOwnProperty(D)&&b!==T&&(b!=null||T!=null))if(D==="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(D,l)),l=b;else D==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,T=T?T.__html:void 0,b!=null&&T!==b&&(m=m||[]).push(D,b)):D==="children"?typeof b!="string"&&typeof b!="number"||(m=m||[]).push(D,""+b):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(i.hasOwnProperty(D)?(b!=null&&D==="onScroll"&&Xe("scroll",r),m||T===b||(m=[])):(m=m||[]).push(D,b))}l&&(m=m||[]).push("style",l);var D=m;(o.updateQueue=D)&&(o.flags|=4)}},aE=function(r,o,l,u){l!==u&&(o.flags|=4)};function wa(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 EF(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)&&$c(),Lt(o),null;case 3:return u=o.stateNode,Xo(),Je(Jt),Je(Nt),Jp(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Hc(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Dn!==null&&(Ch(Dn),Dn=null))),yh(r,o),Lt(o),null;case 5:Qp(o);var p=Us(ma.current);if(l=o.type,r!==null&&o.stateNode!=null)iE(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=Us(Zn.current),Hc(o)){u=o.stateNode,l=o.type;var m=o.memoizedProps;switch(u[Jn]=o,u[ua]=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<aa.length;p++)Xe(aa[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":Kn(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)}Xf(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&&Lc(u.textContent,T,r),p=["children",T]):typeof T=="number"&&u.textContent!==""+T&&(m.suppressHydrationWarning!==!0&&Lc(u.textContent,T,r),p=["children",""+T]):i.hasOwnProperty(S)&&T!=null&&S==="onScroll"&&Xe("scroll",u)}switch(l){case"input":Ps(u),Ms(u,m,!0);break;case"textarea":Ps(u),Qn(u);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(u.onclick=jc)}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=pc(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[Jn]=o,r[ua]=u,oE(r,o,!1,!1),o.stateNode=r;e:{switch(S=Jf(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<aa.length;p++)Xe(aa[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":Kn(r,u),p=Mn(r,u),Xe("invalid",r);break;case"option":p=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},p=J({},u,{value:void 0}),Xe("invalid",r);break;case"textarea":Ke(r,u),p=Ce(r,u),Xe("invalid",r);break;default:p=u}Xf(l,p),T=p;for(m in T)if(T.hasOwnProperty(m)){var b=T[m];m==="style"?QS(r,b):m==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&YS(r,b)):m==="children"?typeof b=="string"?(l!=="textarea"||b!=="")&&Ui(r,b):typeof b=="number"&&Ui(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":Ps(r),Ms(r,u,!1);break;case"textarea":Ps(r),Qn(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=jc)}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)aE(r,o,r.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(n(166));if(l=Us(ma.current),Us(Zn.current),Hc(o)){if(u=o.stateNode,l=o.memoizedProps,u[Jn]=o,(m=u.nodeValue!==l)&&(r=dn,r!==null))switch(r.tag){case 3:Lc(u.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Lc(u.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Jn]=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&&fn!==null&&o.mode&1&&!(o.flags&128))u_(),Go(),o.flags|=98560,m=!1;else if(m=Hc(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[Jn]=o}else Go(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Lt(o),m=!1}else Dn!==null&&(Ch(Dn),Dn=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?ht===0&&(ht=3):Oh())),o.updateQueue!==null&&(o.flags|=4),Lt(o),null);case 4:return Xo(),yh(r,o),r===null&&la(o.stateNode.containerInfo),Lt(o),null;case 10:return qp(o.type._context),Lt(o),null;case 17:return Zt(o.type)&&$c(),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)wa(m,!1);else{if(ht!==0||r!==null&&r.flags&128)for(r=o.child;r!==null;){if(S=Kc(r),S!==null){for(o.flags|=128,wa(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,wa(m,!1),o.lanes=4194304)}else{if(!u)if(r=Kc(S),r!==null){if(o.flags|=128,u=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),wa(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,wa(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 Ah(),u=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(o.flags|=8192),u&&o.mode&1?pn&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 xF(r,o){switch(Fp(o),o.tag){case 1:return Zt(o.type)&&$c(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Xo(),Je(Jt),Je(Nt),Jp(),r=o.flags,r&65536&&!(r&128)?(o.flags=r&-65537|128,o):null;case 5:return Qp(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 qp(o.type._context),null;case 22:case 23:return Ah(),null;case 24:return null;default:return null}}var su=!1,jt=!1,kF=typeof WeakSet=="function"?WeakSet:Set,ne=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 vh(r,o,l){try{l()}catch(u){rt(r,o,u)}}var lE=!1;function TF(r,o){if(Ap=kc,r=Bw(),Ep(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,D=0,G=0,Y=r,V=null;t:for(;;){for(var ee;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),(ee=Y.firstChild)!==null;)V=Y,Y=ee;for(;;){if(Y===r)break t;if(V===l&&++D===p&&(T=S),V===m&&++G===u&&(b=S),(ee=Y.nextSibling)!==null)break;Y=V,V=Y.parentNode}Y=ee}l=T===-1||b===-1?null:{start:T,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Op={focusedElem:r,selectionRange:l},kc=!1,ne=o;ne!==null;)if(o=ne,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ne=r;else for(;ne!==null;){o=ne;try{var se=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(se!==null){var ie=se.memoizedProps,lt=se.memoizedState,P=o.stateNode,I=P.getSnapshotBeforeUpdate(o.elementType===o.type?ie:$n(o.type,ie),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,ne=r;break}ne=o.return}return se=lE,lE=!1,se}function _a(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&&vh(o,l,m)}p=p.next}while(p!==u)}}function ou(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 Sh(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 cE(r){var o=r.alternate;o!==null&&(r.alternate=null,cE(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Jn],delete o[ua],delete o[Lp],delete o[aF],delete o[lF])),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 uE(r){return r.tag===5||r.tag===3||r.tag===4}function dE(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||uE(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 wh(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=jc));else if(u!==4&&(r=r.child,r!==null))for(wh(r,o,l),r=r.sibling;r!==null;)wh(r,o,l),r=r.sibling}function _h(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(_h(r,o,l),r=r.sibling;r!==null;)_h(r,o,l),r=r.sibling}var Rt=null,Fn=!1;function ts(r,o,l){for(l=l.child;l!==null;)fE(r,o,l),l=l.sibling}function fE(r,o,l){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(vc,l)}catch{}switch(l.tag){case 5:jt||Zo(l,o);case 6:var u=Rt,p=Fn;Rt=null,ts(r,o,l),Rt=u,Fn=p,Rt!==null&&(Fn?(r=Rt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Rt.removeChild(l.stateNode));break;case 18:Rt!==null&&(Fn?(r=Rt,l=l.stateNode,r.nodeType===8?Mp(r.parentNode,l):r.nodeType===1&&Mp(r,l),Zi(r)):Mp(Rt,l.stateNode));break;case 4:u=Rt,p=Fn,Rt=l.stateNode.containerInfo,Fn=!0,ts(r,o,l),Rt=u,Fn=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)&&vh(l,o,S),p=p.next}while(p!==u)}ts(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)}ts(r,o,l);break;case 21:ts(r,o,l);break;case 22:l.mode&1?(jt=(u=jt)||l.memoizedState!==null,ts(r,o,l),jt=u):ts(r,o,l);break;default:ts(r,o,l)}}function pE(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new kF),o.forEach(function(u){var p=MF.bind(null,r,u);l.has(u)||(l.add(u),u.then(p,p))})}}function Bn(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,Fn=!1;break e;case 3:Rt=T.stateNode.containerInfo,Fn=!0;break e;case 4:Rt=T.stateNode.containerInfo,Fn=!0;break e}T=T.return}if(Rt===null)throw Error(n(160));fE(m,S,p),Rt=null,Fn=!1;var b=p.alternate;b!==null&&(b.return=null),p.return=null}catch(D){rt(p,o,D)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)hE(o,r),o=o.sibling}function hE(r,o){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Bn(o,r),tr(r),u&4){try{_a(3,r,r.return),ou(3,r)}catch(ie){rt(r,r.return,ie)}try{_a(5,r,r.return)}catch(ie){rt(r,r.return,ie)}}break;case 1:Bn(o,r),tr(r),u&512&&l!==null&&Zo(l,l.return);break;case 5:if(Bn(o,r),tr(r),u&512&&l!==null&&Zo(l,l.return),r.flags&32){var p=r.stateNode;try{Ui(p,"")}catch(ie){rt(r,r.return,ie)}}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),Jf(T,S);var D=Jf(T,m);for(S=0;S<b.length;S+=2){var G=b[S],Y=b[S+1];G==="style"?QS(p,Y):G==="dangerouslySetInnerHTML"?YS(p,Y):G==="children"?Ui(p,Y):$(p,G,Y,D)}switch(T){case"input":Ns(p,m);break;case"textarea":je(p,m);break;case"select":var V=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var ee=m.value;ee!=null?_t(p,!!m.multiple,ee,!1):V!==!!m.multiple&&(m.defaultValue!=null?_t(p,!!m.multiple,m.defaultValue,!0):_t(p,!!m.multiple,m.multiple?[]:"",!1))}p[ua]=m}catch(ie){rt(r,r.return,ie)}}break;case 6:if(Bn(o,r),tr(r),u&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,m=r.memoizedProps;try{p.nodeValue=m}catch(ie){rt(r,r.return,ie)}}break;case 3:if(Bn(o,r),tr(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Zi(o.containerInfo)}catch(ie){rt(r,r.return,ie)}break;case 4:Bn(o,r),tr(r);break;case 13:Bn(o,r),tr(r),p=r.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(kh=at())),u&4&&pE(r);break;case 22:if(G=l!==null&&l.memoizedState!==null,r.mode&1?(jt=(D=jt)||G,Bn(o,r),jt=D):Bn(o,r),tr(r),u&8192){if(D=r.memoizedState!==null,(r.stateNode.isHidden=D)&&!G&&r.mode&1)for(ne=r,G=r.child;G!==null;){for(Y=ne=G;ne!==null;){switch(V=ne,ee=V.child,V.tag){case 0:case 11:case 14:case 15:_a(4,V,V.return);break;case 1:Zo(V,V.return);var se=V.stateNode;if(typeof se.componentWillUnmount=="function"){u=V,l=V.return;try{o=u,se.props=o.memoizedProps,se.state=o.memoizedState,se.componentWillUnmount()}catch(ie){rt(u,l,ie)}}break;case 5:Zo(V,V.return);break;case 22:if(V.memoizedState!==null){yE(Y);continue}}ee!==null?(ee.return=V,ne=ee):yE(Y)}G=G.sibling}e:for(G=null,Y=r;;){if(Y.tag===5){if(G===null){G=Y;try{p=Y.stateNode,D?(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=KS("display",S))}catch(ie){rt(r,r.return,ie)}}}else if(Y.tag===6){if(G===null)try{Y.stateNode.nodeValue=D?"":Y.memoizedProps}catch(ie){rt(r,r.return,ie)}}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:Bn(o,r),tr(r),u&4&&pE(r);break;case 21:break;default:Bn(o,r),tr(r)}}function tr(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(uE(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&&(Ui(p,""),u.flags&=-33);var m=dE(r);_h(r,m,p);break;case 3:case 4:var S=u.stateNode.containerInfo,T=dE(r);wh(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 bF(r,o,l){ne=r,mE(r)}function mE(r,o,l){for(var u=(r.mode&1)!==0;ne!==null;){var p=ne,m=p.child;if(p.tag===22&&u){var S=p.memoizedState!==null||su;if(!S){var T=p.alternate,b=T!==null&&T.memoizedState!==null||jt;T=su;var D=jt;if(su=S,(jt=b)&&!D)for(ne=p;ne!==null;)S=ne,b=S.child,S.tag===22&&S.memoizedState!==null?vE(p):b!==null?(b.return=S,ne=b):vE(p);for(;m!==null;)ne=m,mE(m),m=m.sibling;ne=p,su=T,jt=D}gE(r)}else p.subtreeFlags&8772&&m!==null?(m.return=p,ne=m):gE(r)}}function gE(r){for(;ne!==null;){var o=ne;if(o.flags&8772){var l=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:jt||ou(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:$n(o.type,l.memoizedProps);u.componentDidUpdate(p,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&y_(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}y_(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 D=o.alternate;if(D!==null){var G=D.memoizedState;if(G!==null){var Y=G.dehydrated;Y!==null&&Zi(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}jt||o.flags&512&&Sh(o)}catch(V){rt(o,o.return,V)}}if(o===r){ne=null;break}if(l=o.sibling,l!==null){l.return=o.return,ne=l;break}ne=o.return}}function yE(r){for(;ne!==null;){var o=ne;if(o===r){ne=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ne=l;break}ne=o.return}}function vE(r){for(;ne!==null;){var o=ne;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{ou(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{Sh(o)}catch(b){rt(o,m,b)}break;case 5:var S=o.return;try{Sh(o)}catch(b){rt(o,S,b)}}}catch(b){rt(o,o.return,b)}if(o===r){ne=null;break}var T=o.sibling;if(T!==null){T.return=o.return,ne=T;break}ne=o.return}}var IF=Math.ceil,iu=H.ReactCurrentDispatcher,Eh=H.ReactCurrentOwner,Tn=H.ReactCurrentBatchConfig,$e=0,xt=null,ct=null,At=0,pn=0,ei=Qr(0),ht=0,Ea=null,Ws=0,au=0,xh=0,xa=null,tn=null,kh=0,ti=1/0,Er=null,lu=!1,Th=null,ns=null,cu=!1,rs=null,uu=0,ka=0,bh=null,du=-1,fu=0;function Wt(){return $e&6?at():du!==-1?du:du=at()}function ss(r){return r.mode&1?$e&2&&At!==0?At&-At:uF.transition!==null?(fu===0&&(fu=dw()),fu):(r=Ue,r!==0||(r=window.event,r=r===void 0?16:ww(r.type)),r):1}function zn(r,o,l,u){if(50<ka)throw ka=0,bh=null,Error(n(185));Yi(r,l,u),(!($e&2)||r!==xt)&&(r===xt&&(!($e&2)&&(au|=l),ht===4&&os(r,At)),nn(r,u),l===1&&$e===0&&!(o.mode&1)&&(ti=at()+500,Bc&&Jr()))}function nn(r,o){var l=r.callbackNode;u8(r,o);var u=_c(r,r===xt?At:0);if(u===0)l!==null&&lw(l),r.callbackNode=null,r.callbackPriority=0;else if(o=u&-u,r.callbackPriority!==o){if(l!=null&&lw(l),o===1)r.tag===0?cF(wE.bind(null,r)):o_(wE.bind(null,r)),oF(function(){!($e&6)&&Jr()}),l=null;else{switch(fw(u)){case 1:l=op;break;case 4:l=cw;break;case 16:l=yc;break;case 536870912:l=uw;break;default:l=yc}l=CE(l,SE.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function SE(r,o){if(du=-1,fu=0,$e&6)throw Error(n(327));var l=r.callbackNode;if(ni()&&r.callbackNode!==l)return null;var u=_c(r,r===xt?At:0);if(u===0)return null;if(u&30||u&r.expiredLanes||o)o=pu(r,u);else{o=u;var p=$e;$e|=2;var m=EE();(xt!==r||At!==o)&&(Er=null,ti=at()+500,Vs(r,o));do try{AF();break}catch(T){_E(r,T)}while(!0);Wp(),iu.current=m,$e=p,ct!==null?o=0:(xt=null,At=0,o=ht)}if(o!==0){if(o===2&&(p=ip(r),p!==0&&(u=p,o=Ih(r,p))),o===1)throw l=Ea,Vs(r,0),os(r,u),nn(r,at()),l;if(o===6)os(r,u);else{if(p=r.current.alternate,!(u&30)&&!CF(p)&&(o=pu(r,u),o===2&&(m=ip(r),m!==0&&(u=m,o=Ih(r,m))),o===1))throw l=Ea,Vs(r,0),os(r,u),nn(r,at()),l;switch(r.finishedWork=p,r.finishedLanes=u,o){case 0:case 1:throw Error(n(345));case 2:Gs(r,tn,Er);break;case 3:if(os(r,u),(u&130023424)===u&&(o=kh+500-at(),10<o)){if(_c(r,0)!==0)break;if(p=r.suspendedLanes,(p&u)!==u){Wt(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Np(Gs.bind(null,r,tn,Er),o);break}Gs(r,tn,Er);break;case 4:if(os(r,u),(u&4194240)===u)break;for(o=r.eventTimes,p=-1;0<u;){var S=31-Ln(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*IF(u/1960))-u,10<u){r.timeoutHandle=Np(Gs.bind(null,r,tn,Er),u);break}Gs(r,tn,Er);break;case 5:Gs(r,tn,Er);break;default:throw Error(n(329))}}}return nn(r,at()),r.callbackNode===l?SE.bind(null,r):null}function Ih(r,o){var l=xa;return r.current.memoizedState.isDehydrated&&(Vs(r,o).flags|=256),r=pu(r,o),r!==2&&(o=tn,tn=l,o!==null&&Ch(o)),r}function Ch(r){tn===null?tn=r:tn.push.apply(tn,r)}function CF(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(!jn(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 os(r,o){for(o&=~xh,o&=~au,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-Ln(o),u=1<<l;r[l]=-1,o&=~u}}function wE(r){if($e&6)throw Error(n(327));ni();var o=_c(r,0);if(!(o&1))return nn(r,at()),null;var l=pu(r,o);if(r.tag!==0&&l===2){var u=ip(r);u!==0&&(o=u,l=Ih(r,u))}if(l===1)throw l=Ea,Vs(r,0),os(r,o),nn(r,at()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Gs(r,tn,Er),nn(r,at()),null}function Rh(r,o){var l=$e;$e|=1;try{return r(o)}finally{$e=l,$e===0&&(ti=at()+500,Bc&&Jr())}}function qs(r){rs!==null&&rs.tag===0&&!($e&6)&&ni();var o=$e;$e|=1;var l=Tn.transition,u=Ue;try{if(Tn.transition=null,Ue=1,r)return r()}finally{Ue=u,Tn.transition=l,$e=o,!($e&6)&&Jr()}}function Ah(){pn=ei.current,Je(ei)}function Vs(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,sF(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&&$c();break;case 3:Xo(),Je(Jt),Je(Nt),Jp();break;case 5:Qp(u);break;case 4:Xo();break;case 13:Je(et);break;case 19:Je(et);break;case 10:qp(u.type._context);break;case 22:case 23:Ah()}l=l.return}if(xt=r,ct=r=is(r.current,null),At=pn=o,ht=0,Ea=null,xh=au=Ws=0,tn=xa=null,zs!==null){for(o=0;o<zs.length;o++)if(l=zs[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}zs=null}return r}function _E(r,o){do{var l=ct;try{if(Wp(),Qc.current=eu,Xc){for(var u=tt.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Xc=!1}if(Hs=0,Et=pt=tt=null,ga=!1,ya=0,Eh.current=null,l===null||l.return===null){ht=1,Ea=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 D=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 ee=V_(S);if(ee!==null){ee.flags&=-257,G_(ee,S,T,m,o),ee.mode&1&&q_(m,D,o),o=ee,b=D;var se=o.updateQueue;if(se===null){var ie=new Set;ie.add(b),o.updateQueue=ie}else se.add(b);break e}else{if(!(o&1)){q_(m,D,o),Oh();break e}b=Error(n(426))}}else if(Ze&&T.mode&1){var lt=V_(S);if(lt!==null){!(lt.flags&65536)&&(lt.flags|=256),G_(lt,S,T,m,o),Up(Jo(b,T));break e}}m=b=Jo(b,T),ht!==4&&(ht=2),xa===null?xa=[m]:xa.push(m),m=S;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var P=H_(m,b,o);g_(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"&&(ns===null||!ns.has(N)))){m.flags|=65536,o&=-o,m.lanes|=o;var Q=W_(m,T,o);g_(m,Q);break e}}m=m.return}while(m!==null)}kE(l)}catch(le){o=le,ct===l&&l!==null&&(ct=l=l.return);continue}break}while(!0)}function EE(){var r=iu.current;return iu.current=eu,r===null?eu:r}function Oh(){(ht===0||ht===3||ht===2)&&(ht=4),xt===null||!(Ws&268435455)&&!(au&268435455)||os(xt,At)}function pu(r,o){var l=$e;$e|=2;var u=EE();(xt!==r||At!==o)&&(Er=null,Vs(r,o));do try{RF();break}catch(p){_E(r,p)}while(!0);if(Wp(),$e=l,iu.current=u,ct!==null)throw Error(n(261));return xt=null,At=0,ht}function RF(){for(;ct!==null;)xE(ct)}function AF(){for(;ct!==null&&!t8();)xE(ct)}function xE(r){var o=IE(r.alternate,r,pn);r.memoizedProps=r.pendingProps,o===null?kE(r):ct=o,Eh.current=null}function kE(r){var o=r;do{var l=o.alternate;if(r=o.return,o.flags&32768){if(l=xF(l,o),l!==null){l.flags&=32767,ct=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{ht=6,ct=null;return}}else if(l=EF(l,o,pn),l!==null){ct=l;return}if(o=o.sibling,o!==null){ct=o;return}ct=o=r}while(o!==null);ht===0&&(ht=5)}function Gs(r,o,l){var u=Ue,p=Tn.transition;try{Tn.transition=null,Ue=1,OF(r,o,l,u)}finally{Tn.transition=p,Ue=u}return null}function OF(r,o,l,u){do ni();while(rs!==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(d8(r,m),r===xt&&(ct=xt=null,At=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||cu||(cu=!0,CE(yc,function(){return ni(),null})),m=(l.flags&15990)!==0,l.subtreeFlags&15990||m){m=Tn.transition,Tn.transition=null;var S=Ue;Ue=1;var T=$e;$e|=4,Eh.current=null,TF(r,l),hE(l,r),X8(Op),kc=!!Ap,Op=Ap=null,r.current=l,bF(l),n8(),$e=T,Ue=S,Tn.transition=m}else r.current=l;if(cu&&(cu=!1,rs=r,uu=p),m=r.pendingLanes,m===0&&(ns=null),o8(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(lu)throw lu=!1,r=Th,Th=null,r;return uu&1&&r.tag!==0&&ni(),m=r.pendingLanes,m&1?r===bh?ka++:(ka=0,bh=r):ka=0,Jr(),null}function ni(){if(rs!==null){var r=fw(uu),o=Tn.transition,l=Ue;try{if(Tn.transition=null,Ue=16>r?16:r,rs===null)var u=!1;else{if(r=rs,rs=null,uu=0,$e&6)throw Error(n(331));var p=$e;for($e|=4,ne=r.current;ne!==null;){var m=ne,S=m.child;if(ne.flags&16){var T=m.deletions;if(T!==null){for(var b=0;b<T.length;b++){var D=T[b];for(ne=D;ne!==null;){var G=ne;switch(G.tag){case 0:case 11:case 15:_a(8,G,m)}var Y=G.child;if(Y!==null)Y.return=G,ne=Y;else for(;ne!==null;){G=ne;var V=G.sibling,ee=G.return;if(cE(G),G===D){ne=null;break}if(V!==null){V.return=ee,ne=V;break}ne=ee}}}var se=m.alternate;if(se!==null){var ie=se.child;if(ie!==null){se.child=null;do{var lt=ie.sibling;ie.sibling=null,ie=lt}while(ie!==null)}}ne=m}}if(m.subtreeFlags&2064&&S!==null)S.return=m,ne=S;else e:for(;ne!==null;){if(m=ne,m.flags&2048)switch(m.tag){case 0:case 11:case 15:_a(9,m,m.return)}var P=m.sibling;if(P!==null){P.return=m.return,ne=P;break e}ne=m.return}}var I=r.current;for(ne=I;ne!==null;){S=ne;var N=S.child;if(S.subtreeFlags&2064&&N!==null)N.return=S,ne=N;else e:for(S=I;ne!==null;){if(T=ne,T.flags&2048)try{switch(T.tag){case 0:case 11:case 15:ou(9,T)}}catch(le){rt(T,T.return,le)}if(T===S){ne=null;break e}var Q=T.sibling;if(Q!==null){Q.return=T.return,ne=Q;break e}ne=T.return}}if($e=p,Jr(),Xn&&typeof Xn.onPostCommitFiberRoot=="function")try{Xn.onPostCommitFiberRoot(vc,r)}catch{}u=!0}return u}finally{Ue=l,Tn.transition=o}}return!1}function TE(r,o,l){o=Jo(l,o),o=H_(r,o,1),r=es(r,o,1),o=Wt(),r!==null&&(Yi(r,1,o),nn(r,o))}function rt(r,o,l){if(r.tag===3)TE(r,r,l);else for(;o!==null;){if(o.tag===3){TE(o,r,l);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ns===null||!ns.has(u))){r=Jo(l,r),r=W_(o,r,1),o=es(o,r,1),r=Wt(),o!==null&&(Yi(o,1,r),nn(o,r));break}}o=o.return}}function PF(r,o,l){var u=r.pingCache;u!==null&&u.delete(o),o=Wt(),r.pingedLanes|=r.suspendedLanes&l,xt===r&&(At&l)===l&&(ht===4||ht===3&&(At&130023424)===At&&500>at()-kh?Vs(r,0):xh|=l),nn(r,o)}function bE(r,o){o===0&&(r.mode&1?(o=wc,wc<<=1,!(wc&130023424)&&(wc=4194304)):o=1);var l=Wt();r=Sr(r,o),r!==null&&(Yi(r,o,l),nn(r,l))}function NF(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),bE(r,l)}function MF(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),bE(r,l)}var IE;IE=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,_F(r,o,l);en=!!(r.flags&131072)}else en=!1,Ze&&o.flags&1048576&&i_(o,Uc,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;ru(r,o),r=o.pendingProps;var p=Wo(o,Nt.current);Qo(o,l),p=th(null,o,u,r,p,l);var m=nh();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,Yp(o),p.updater=tu,o.stateNode=p,p._reactInternals=o,lh(o,u,r,l),o=fh(null,o,u,!0,m,l)):(o.tag=0,Ze&&m&&$p(o),Ht(null,o,p,l),o=o.child),o;case 16:u=o.elementType;e:{switch(ru(r,o),r=o.pendingProps,p=u._init,u=p(u._payload),o.type=u,p=o.tag=jF(u),r=$n(u,r),p){case 0:o=dh(null,o,u,r,l);break e;case 1:o=Z_(null,o,u,r,l);break e;case 11:o=Y_(null,o,u,r,l);break e;case 14:o=K_(null,o,u,$n(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:$n(u,p),dh(r,o,u,p,l);case 1:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:$n(u,p),Z_(r,o,u,p,l);case 3:e:{if(eE(o),r===null)throw Error(n(387));u=o.pendingProps,m=o.memoizedState,p=m.element,m_(r,o),Yc(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=tE(r,o,u,l,p);break e}else if(u!==p){p=Jo(Error(n(424)),o),o=tE(r,o,u,l,p);break e}else for(fn=Kr(o.stateNode.containerInfo.firstChild),dn=o,Ze=!0,Dn=null,l=p_(o,null,u,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Go(),u===p){o=_r(r,o,l);break e}Ht(r,o,u,l)}o=o.child}return o;case 5:return v_(o),r===null&&zp(o),u=o.type,p=o.pendingProps,m=r!==null?r.memoizedProps:null,S=p.children,Pp(u,p)?S=null:m!==null&&Pp(u,m)&&(o.flags|=32),J_(r,o),Ht(r,o,S,l),o.child;case 6:return r===null&&zp(o),null;case 13:return nE(r,o,l);case 4:return Kp(o,o.stateNode.containerInfo),u=o.pendingProps,r===null?o.child=Yo(o,null,u,l):Ht(r,o,u,l),o.child;case 11:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:$n(u,p),Y_(r,o,u,p,l);case 7:return Ht(r,o,o.pendingProps,l),o.child;case 8:return Ht(r,o,o.pendingProps.children,l),o.child;case 12:return Ht(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(qc,u._currentValue),u._currentValue=S,m!==null)if(jn(m.value,S)){if(m.children===p.children&&!Jt.current){o=_r(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=wr(-1,l&-l),b.tag=2;var D=m.updateQueue;if(D!==null){D=D.shared;var G=D.pending;G===null?b.next=b:(b.next=G.next,G.next=b),D.pending=b}}m.lanes|=l,b=m.alternate,b!==null&&(b.lanes|=l),Vp(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),Vp(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}Ht(r,o,p.children,l),o=o.child}return o;case 9:return p=o.type,u=o.pendingProps.children,Qo(o,l),p=xn(p),u=u(p),o.flags|=1,Ht(r,o,u,l),o.child;case 14:return u=o.type,p=$n(u,o.pendingProps),p=$n(u.type,p),K_(r,o,u,p,l);case 15:return Q_(r,o,o.type,o.pendingProps,l);case 17:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:$n(u,p),ru(r,o),o.tag=1,Zt(u)?(r=!0,Fc(o)):r=!1,Qo(o,l),z_(o,u,p),lh(o,u,p,l),fh(null,o,u,!0,r,l);case 19:return sE(r,o,l);case 22:return X_(r,o,l)}throw Error(n(156,o.tag))};function CE(r,o){return aw(r,o)}function LF(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 bn(r,o,l,u){return new LF(r,o,l,u)}function Ph(r){return r=r.prototype,!(!r||!r.isReactComponent)}function jF(r){if(typeof r=="function")return Ph(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ae)return 11;if(r===He)return 14}return 2}function is(r,o){var l=r.alternate;return l===null?(l=bn(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 hu(r,o,l,u,p,m){var S=2;if(u=r,typeof r=="function")Ph(r)&&(S=1);else if(typeof r=="string")S=5;else e:switch(r){case L:return Ys(l.children,p,m,o);case U:S=8,p|=8;break;case te:return r=bn(12,l,o,p|2),r.elementType=te,r.lanes=m,r;case ye:return r=bn(13,l,o,p),r.elementType=ye,r.lanes=m,r;case Ie:return r=bn(19,l,o,p),r.elementType=Ie,r.lanes=m,r;case ke:return mu(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 He:S=14;break e;case ce:S=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=bn(S,l,o,p),o.elementType=r,o.type=u,o.lanes=m,o}function Ys(r,o,l,u){return r=bn(7,r,u,o),r.lanes=l,r}function mu(r,o,l,u){return r=bn(22,r,u,o),r.elementType=ke,r.lanes=l,r.stateNode={isHidden:!1},r}function Nh(r,o,l){return r=bn(6,r,null,o),r.lanes=l,r}function Mh(r,o,l){return o=bn(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function DF(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=ap(0),this.expirationTimes=ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ap(0),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Lh(r,o,l,u,p,m,S,T,b){return r=new DF(r,o,l,T,b),o===1?(o=1,m===!0&&(o|=8)):o=0,m=bn(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yp(m),r}function $F(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 RE(r){if(!r)return Xr;r=r._reactInternals;e:{if(js(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 r_(r,l,o)}return o}function AE(r,o,l,u,p,m,S,T,b){return r=Lh(l,u,!0,r,p,m,S,T,b),r.context=RE(null),l=r.current,u=Wt(),p=ss(l),m=wr(u,p),m.callback=o??null,es(l,m,p),r.current.lanes=p,Yi(r,p,u),nn(r,u),r}function gu(r,o,l,u){var p=o.current,m=Wt(),S=ss(p);return l=RE(l),o.context===null?o.context=l:o.pendingContext=l,o=wr(m,S),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=es(p,o,S),r!==null&&(zn(r,p,S,m),Gc(r,p,S)),S}function yu(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 OE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function jh(r,o){OE(r,o),(r=r.alternate)&&OE(r,o)}function FF(){return null}var PE=typeof reportError=="function"?reportError:function(r){console.error(r)};function Dh(r){this._internalRoot=r}vu.prototype.render=Dh.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));gu(r,o,null,null)},vu.prototype.unmount=Dh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;qs(function(){gu(null,r,null,null)}),o[mr]=null}};function vu(r){this._internalRoot=r}vu.prototype.unstable_scheduleHydration=function(r){if(r){var o=mw();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Vr.length&&o!==0&&o<Vr[l].priority;l++);Vr.splice(l,0,r),l===0&&vw(r)}};function $h(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Su(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function NE(){}function BF(r,o,l,u,p){if(p){if(typeof u=="function"){var m=u;u=function(){var D=yu(S);m.call(D)}}var S=AE(o,u,r,0,null,!1,!1,"",NE);return r._reactRootContainer=S,r[mr]=S.current,la(r.nodeType===8?r.parentNode:r),qs(),S}for(;p=r.lastChild;)r.removeChild(p);if(typeof u=="function"){var T=u;u=function(){var D=yu(b);T.call(D)}}var b=Lh(r,0,!1,null,null,!1,!1,"",NE);return r._reactRootContainer=b,r[mr]=b.current,la(r.nodeType===8?r.parentNode:r),qs(function(){gu(o,b,l,u)}),b}function wu(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=yu(S);T.call(b)}}gu(o,S,r,p)}else S=BF(l,o,r,p,u);return yu(S)}pw=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Gi(o.pendingLanes);l!==0&&(lp(o,l|1),nn(o,at()),!($e&6)&&(ti=at()+500,Jr()))}break;case 13:qs(function(){var u=Sr(r,1);if(u!==null){var p=Wt();zn(u,r,1,p)}}),jh(r,1)}},cp=function(r){if(r.tag===13){var o=Sr(r,134217728);if(o!==null){var l=Wt();zn(o,r,134217728,l)}jh(r,134217728)}},hw=function(r){if(r.tag===13){var o=ss(r),l=Sr(r,o);if(l!==null){var u=Wt();zn(l,r,o,u)}jh(r,o)}},mw=function(){return Ue},gw=function(r,o){var l=Ue;try{return Ue=r,o()}finally{Ue=l}},tp=function(r,o,l){switch(o){case"input":if(Ns(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=Dc(u);if(!p)throw Error(n(90));fc(u),Ns(u,p)}}}break;case"textarea":je(r,l);break;case"select":o=l.value,o!=null&&_t(r,!!l.multiple,o,!1)}},ew=Rh,tw=qs;var zF={usingClientEntryPoint:!1,Events:[da,Uo,Dc,JS,ZS,Rh]},Ta={findFiberByHostInstance:Ds,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},UF={bundleType:Ta.bundleType,version:Ta.version,rendererPackageName:Ta.rendererPackageName,rendererConfig:Ta.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=ow(r),r===null?null:r.stateNode},findFiberByHostInstance:Ta.findFiberByHostInstance||FF,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 _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{vc=_u.inject(UF),Xn=_u}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zF,qt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$h(o))throw Error(n(200));return $F(r,o,null,l)},qt.createRoot=function(r,o){if(!$h(r))throw Error(n(299));var l=!1,u="",p=PE;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Lh(r,1,!1,null,null,l,!1,u,p),r[mr]=o.current,la(r.nodeType===8?r.parentNode:r),new Dh(o)},qt.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=ow(o),r=r===null?null:r.stateNode,r},qt.flushSync=function(r){return qs(r)},qt.hydrate=function(r,o,l){if(!Su(o))throw Error(n(200));return wu(null,r,o,!0,l)},qt.hydrateRoot=function(r,o,l){if(!$h(r))throw Error(n(405));var u=l!=null&&l.hydratedSources||null,p=!1,m="",S=PE;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),o=AE(o,null,r,1,l??null,p,!1,m,S),r[mr]=o.current,la(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 vu(o)},qt.render=function(r,o,l){if(!Su(o))throw Error(n(200));return wu(null,r,o,!1,l)},qt.unmountComponentAtNode=function(r){if(!Su(r))throw Error(n(40));return r._reactRootContainer?(qs(function(){wu(null,null,r,!1,function(){r._reactRootContainer=null,r[mr]=null})}),!0):!1},qt.unstable_batchedUpdates=Rh,qt.unstable_renderSubtreeIntoContainer=function(r,o,l,u){if(!Su(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return wu(r,o,l,!1,u)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var Vh;function Gh(){if(Vh)return Tu.exports;Vh=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(),Tu.exports=BE(),Tu.exports}var Yh;function zE(){if(Yh)return ba;Yh=1;var e=Gh();return ba.createRoot=e.createRoot,ba.hydrateRoot=e.hydrateRoot,ba}var UE=zE();const xr=e=>{const t=crypto.randomUUID();return e?t.substring(0,e):t},mn={userId:"edmap-user-id",profileEmoji:"edmap-profileEmoji",defaultName:"edmap-random-name",accessToken:"edmap-access-token"},HE=()=>{localStorage.removeItem("edmap-access-token"),localStorage.removeItem("edmap-refresh-token")},WE=async()=>(qE(),await fr()),qE=()=>{localStorage.removeItem(mn.userId)},VE=()=>{const e=new URL(window.location.href);e.searchParams.delete("code"),window.history.replaceState({index:0,scrollX:0,scrollY:document.scrollY},"",e.toString())},Kh=async()=>(HE(),VE(),await WE());function Qh(e,t){return function(){return e.apply(t,arguments)}}const{toString:GE}=Object.prototype,{getPrototypeOf:Cu}=Object,Ia=(e=>t=>{const n=GE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>Ia(t)===e),Ca=e=>t=>typeof t===e,{isArray:Qs}=Array,si=Ca("undefined");function YE(e){return e!==null&&!si(e)&&e.constructor!==null&&!si(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xh=In("ArrayBuffer");function KE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xh(e.buffer),t}const QE=Ca("string"),rn=Ca("function"),Jh=Ca("number"),Ra=e=>e!==null&&typeof e=="object",XE=e=>e===!0||e===!1,Aa=e=>{if(Ia(e)!=="object")return!1;const t=Cu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},JE=In("Date"),ZE=In("File"),ex=In("Blob"),tx=In("FileList"),nx=e=>Ra(e)&&rn(e.pipe),rx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=Ia(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},sx=In("URLSearchParams"),[ox,ix,ax,lx]=["ReadableStream","Request","Response","Headers"].map(In),cx=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]),Qs(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 Zh(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 ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,em=e=>!si(e)&&e!==ls;function Ru(){const{caseless:e}=em(this)&&this||{},t={},n=(s,i)=>{const a=e&&Zh(t,i)||i;Aa(t[a])&&Aa(s)?t[a]=Ru(t[a],s):Aa(s)?t[a]=Ru({},s):Qs(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 ux=(e,t,n,{allOwnKeys:s}={})=>(oi(t,(i,a)=>{n&&rn(i)?e[a]=Qh(i,n):e[a]=i},{allOwnKeys:s}),e),dx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fx=(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)},px=(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&&Cu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hx=(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},mx=e=>{if(!e)return null;if(Qs(e))return e;let t=e.length;if(!Jh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cu(Uint8Array)),yx=(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])}},vx=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Sx=In("HTMLFormElement"),wx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),tm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_x=In("RegExp"),nm=(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)},Ex=e=>{nm(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+"'")})}})},xx=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Qs(e)?s(e):s(String(e).split(t)),n},kx=()=>{},Tx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Au="abcdefghijklmnopqrstuvwxyz",rm="0123456789",sm={DIGIT:rm,ALPHA:Au,ALPHA_DIGIT:Au+Au.toUpperCase()+rm},bx=(e=16,t=sm.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function Ix(e){return!!(e&&rn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Cx=e=>{const t=new Array(10),n=(s,i)=>{if(Ra(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const a=Qs(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)},Rx=In("AsyncFunction"),Ax=e=>e&&(Ra(e)||rn(e))&&rn(e.then)&&rn(e.catch),om=((e,t)=>e?setImmediate:t?((n,s)=>(ls.addEventListener("message",({source:i,data:a})=>{i===ls&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),ls.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(ls.postMessage)),Ox=typeof queueMicrotask<"u"?queueMicrotask.bind(ls):typeof process<"u"&&process.nextTick||om,B={isArray:Qs,isArrayBuffer:Xh,isBuffer:YE,isFormData:rx,isArrayBufferView:KE,isString:QE,isNumber:Jh,isBoolean:XE,isObject:Ra,isPlainObject:Aa,isReadableStream:ox,isRequest:ix,isResponse:ax,isHeaders:lx,isUndefined:si,isDate:JE,isFile:ZE,isBlob:ex,isRegExp:_x,isFunction:rn,isStream:nx,isURLSearchParams:sx,isTypedArray:gx,isFileList:tx,forEach:oi,merge:Ru,extend:ux,trim:cx,stripBOM:dx,inherits:fx,toFlatObject:px,kindOf:Ia,kindOfTest:In,endsWith:hx,toArray:mx,forEachEntry:yx,matchAll:vx,isHTMLForm:Sx,hasOwnProperty:tm,hasOwnProp:tm,reduceDescriptors:nm,freezeMethods:Ex,toObjectSet:xx,toCamelCase:wx,noop:kx,toFiniteNumber:Tx,findKey:Zh,global:ls,isContextDefined:em,ALPHABET:sm,generateString:bx,isSpecCompliantForm:Ix,toJSONObject:Cx,isAsyncFn:Rx,isThenable:Ax,setImmediate:om,asap:Ox};function _e(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(_e,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 im=_e.prototype,am={};["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=>{am[e]={value:e}}),Object.defineProperties(_e,am),Object.defineProperty(im,"isAxiosError",{value:!0}),_e.from=(e,t,n,s,i,a)=>{const c=Object.create(im);return B.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),_e.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const Px=null;function Ou(e){return B.isPlainObject(e)||B.isArray(e)}function lm(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function cm(e,t,n){return e?e.concat(t).map(function(i,a){return i=lm(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Nx(e){return B.isArray(e)&&!e.some(Ou)}const Mx=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function Oa(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(!f&&B.isBlob(_))throw new _e("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(_)&&Nx(_)||(B.isFileList(_)||B.endsWith(x,"[]"))&&(O=B.toArray(_)))return x=lm(x),O.forEach(function($,H){!(B.isUndefined($)||$===null)&&t.append(c===!0?cm([x],H,a):c===null?x:x+"[]",h($))}),!1}return Ou(_)?!0:(t.append(cm(k,x,a),h(_)),!1)}const g=[],w=Object.assign(Mx,{defaultVisitor:y,convertValue:h,isVisitable:Ou});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 um(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Pu(e,t){this._pairs=[],e&&Oa(e,this,t)}const dm=Pu.prototype;dm.append=function(t,n){this._pairs.push([t,n])},dm.toString=function(t){const n=t?function(s){return t.call(this,s,um)}:um;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Lx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fm(e,t,n){if(!t)return e;const s=n&&n.encode||Lx;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 Pu(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}let pm=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){B.forEach(this.handlers,function(s){s!==null&&t(s)})}};const hm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jx={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Pu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Nu=typeof window<"u"&&typeof document<"u",Mu=typeof navigator=="object"&&navigator||void 0,Dx=Nu&&(!Mu||["ReactNative","NativeScript","NS"].indexOf(Mu.product)<0),$x=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fx=Nu&&window.location.href||"http://localhost",Ot={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:Dx,hasStandardBrowserWebWorkerEnv:$x,navigator:Mu,origin:Fx},Symbol.toStringTag,{value:"Module"})),...jx};function Bx(e,t){return Oa(e,new Ot.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,a){return Ot.isNode&&B.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function zx(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ux(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 mm(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]=Ux(i[c])),!d)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(s,i)=>{t(zx(s),i,n,0)}),n}return null}function Hx(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 ii={transitional:hm,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(mm(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 Bx(t,this.formSerializer).toString();if((d=B.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Oa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Hx(t)):t}],transformResponse:[function(t){const n=this.transitional||ii.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"?_e.from(d,_e.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}}};B.forEach(["delete","get","head","post","put","patch"],e=>{ii.headers[e]={}});const Wx=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"]),qx=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]&&Wx[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},gm=Symbol("internals");function ai(e){return e&&String(e).trim().toLowerCase()}function Pa(e){return e===!1||e==null?e:B.isArray(e)?e.map(Pa):String(e)}function Vx(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 Gx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lu(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 Yx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Kx(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})})}let Vt=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=B.findKey(i,y);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||f]=Pa(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())&&!Gx(t))c(qx(t),n);else if(B.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=B.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return Vx(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=ai(t),t){const s=B.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Lu(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=B.findKey(s,c);d&&(!n||Lu(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||Lu(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]=Pa(i),delete n[a];return}const d=t?Yx(a):String(a).trim();d!==a&&delete n[a],n[d]=Pa(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(`
`)}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[gm]=this[gm]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=ai(c);s[d]||(Kx(i,c),s[d]=!0)}return B.isArray(t)?t.forEach(a):a(t),this}};Vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(Vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),B.freezeMethods(Vt);function ju(e,t){const n=this||ii,s=t||n,i=Vt.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 ym(e){return!!(e&&e.__CANCEL__)}function Xs(e,t,n){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(Xs,_e,{__CANCEL__:!0});function vm(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xx(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 Jx(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 Na=(e,t,n=3)=>{let s=0;const i=Xx(50,250);return Jx(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)},Sm=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},wm=e=>(...t)=>B.asap(()=>e(...t)),Zx=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,ek=Ot.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 tk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _m(e,t){return e&&!tk(t)?nk(e,t):t}const Em=e=>e instanceof Vt?{...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(Em(h),Em(y),g,!0)};return B.forEach(Object.keys(Object.assign({},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 xm=e=>{const t=cs({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Vt.from(c),t.url=fm(_m(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(B.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&&B.isFunction(s)&&(s=s(t)),s||s!==!1&&Zx(t.url))){const h=i&&a&&ek.read(a);h&&c.set(i,h)}return t},rk=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=xm(e);let a=i.data;const c=Vt.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 $=Vt.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};vm(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 _e("Request aborted",_e.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new _e("Network Error",_e.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||hm;i.timeoutErrorMessage&&(H=i.timeoutErrorMessage),s(new _e(H,z.clarifyTimeoutError?_e.ETIMEDOUT:_e.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,_]=Na(h,!0),k.addEventListener("progress",w)),f&&k.upload&&([g,E]=Na(f),k.upload.addEventListener("progress",g),k.upload.addEventListener("loadend",E)),(i.cancelToken||i.signal)&&(y=$=>{k&&(s(!$||$.type?new Xs(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=Qx(i.url);if(R&&Ot.protocols.indexOf(R)===-1){s(new _e("Unsupported protocol "+R+":",_e.ERR_BAD_REQUEST,e));return}k.send(a||null)})},sk=(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 _e?y:new Xs(y instanceof Error?y.message:y))}};let c=t&&setTimeout(()=>{c=null,a(new _e(`timeout ${t} of ms exceeded`,_e.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}},ok=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},ik=async function*(e,t){for await(const n of ak(e))yield*ok(n,t)},ak=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()}},km=(e,t,n,s)=>{const i=ik(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})},Ma=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tm=Ma&&typeof ReadableStream=="function",lk=Ma&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ck=Tm&&bm(()=>{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}),Im=64*1024,Du=Tm&&bm(()=>B.isReadableStream(new Response("").body)),La={stream:Du&&(e=>e.body)};Ma&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!La[t]&&(La[t]=B.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new _e(`Response type '${t}' is not supported`,_e.ERR_NOT_SUPPORT,s)})})})(new Response);const uk=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(Ot.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 lk(e)).byteLength},dk=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??uk(t)},$u={http:Px,xhr:rk,fetch:Ma&&(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}=xm(e);h=h?(h+"").toLowerCase():"text";let E=sk([i,a&&a.toAbortSignal()],c),_;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let k;try{if(f&&ck&&n!=="get"&&n!=="head"&&(k=await dk(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]=Sm(k,Na(wm(f)));s=km(z.body,Im,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(_);const $=Du&&(h==="stream"||h==="response");if(Du&&(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&&Sm(M,Na(wm(d),!0))||[];R=new Response(km(R.body,Im,L,()=>{U&&U(),x&&x()}),z)}h=h||"text";let H=await La[B.findKey(La,h)||"text"](R,e);return!$&&x&&x(),await new Promise((z,M)=>{vm(z,M,{data:H,headers:Vt.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 _e("Network Error",_e.ERR_NETWORK,e,_),{cause:O.cause||O}):_e.from(O,O&&O.code,e,_)}})};B.forEach($u,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cm=e=>`- ${e}`,fk=e=>B.isFunction(e)||e===null||e===!1,Rm={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,!fk(n)&&(s=$u[(c=String(n)).toLowerCase()],s===void 0))throw new _e(`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(Cm).join(`
`):" "+Cm(a[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:$u};function Fu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xs(null,e)}function Am(e){return Fu(e),e.headers=Vt.from(e.headers),e.data=ju.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rm.getAdapter(e.adapter||ii.adapter)(e).then(function(s){return Fu(e),s.data=ju.call(e,e.transformResponse,s),s.headers=Vt.from(s.headers),s},function(s){return ym(s)||(Fu(e),s&&s.response&&(s.response.data=ju.call(e,e.transformResponse,s.response),s.response.headers=Vt.from(s.response.headers))),Promise.reject(s)})}const Om="1.7.9",ja={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ja[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Pm={};ja.transitional=function(t,n,s){function i(a,c){return"[Axios v"+Om+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new _e(i(c," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Pm[c]&&(Pm[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}},ja.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function pk(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.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 _e("option "+a+" must be "+f,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+a,_e.ERR_BAD_OPTION)}}const Da={assertOptions:pk,validators:ja},Un=Da.validators;let us=class{constructor(t){this.defaults=t,this.interceptors={request:new pm,response:new pm}}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&&Da.assertOptions(s,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),i!=null&&(B.isFunction(i)?n.paramsSerializer={serialize:i}:Da.assertOptions(i,{encode:Un.function,serialize:Un.function},!0)),Da.assertOptions(n,{baseUrl:Un.spelling("baseURL"),withXsrfToken:Un.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=Vt.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 _=[Am.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=Am.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=_m(t.baseURL,t.url);return fm(n,t.params,t.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(t){us.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}))}}us.prototype[t]=n(),us.prototype[t+"Form"]=n(!0)});let hk=class ME{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 Xs(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 ME(function(i){t=i}),cancel:t}}};function mk(e){return function(n){return e.apply(null,n)}}function gk(e){return B.isObject(e)&&e.isAxiosError===!0}const Bu={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(Bu).forEach(([e,t])=>{Bu[t]=e});function Nm(e){const t=new us(e),n=Qh(us.prototype.request,t);return B.extend(n,us.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Nm(cs(e,i))},n}const st=Nm(ii);st.Axios=us,st.CanceledError=Xs,st.CancelToken=hk,st.isCancel=ym,st.VERSION=Om,st.toFormData=Oa,st.AxiosError=_e,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=mk,st.isAxiosError=gk,st.mergeConfig=cs,st.AxiosHeaders=Vt,st.formToJSON=e=>mm(B.isHTMLForm(e)?new FormData(e):e),st.getAdapter=Rm.getAdapter,st.HttpStatusCode=Bu,st.default=st;const zu="https://api.edmap.space",ut=st.create();ut.defaults.baseURL=zu,ut.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={},Mm=async e=>(await Kh(),window.location.reload(),Promise.reject(e)),Lm=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}`,ut(t)};ut.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 Mm(e);try{if(!li.time||Date.now()-li.time>1e3*3){const c=st.post(`${zu}/auth/revalidate-token`,{refreshToken:i},{headers:{Authorization:`Bearer ${i}`}});li.time=Date.now(),li.request=c;const d=await c;return Lm(d,t)}const a=await li.request;if(!a)throw new Error;return Lm(a,t)}catch(a){return Mm(a)}});class yk{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:$l(),edgeId:t})});Dt(this,"reportTestAnswers",t=>{const{mapId:n,questId:s}=this.getBaseAnalyticsProps(),i=$l(),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:$l(),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:$l()})});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=`${zu}/analytics`}}const kr=new yk,Ee=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ds="8.50.0",Ne=globalThis;function $a(e,t,n){const s=Ne,i=s.__SENTRY__=s.__SENTRY__||{},a=i[ds]=i[ds]||{};return a[e]||(a[e]=t())}const Tr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vk="Sentry Logger ",Uu=["debug","info","warn","error","log","assert","trace"],Fa={};function br(e){if(!("console"in Ne))return e();const t=Ne.console,n={},s=Object.keys(Fa);s.forEach(i=>{const a=Fa[i];n[i]=t[i],t[i]=a});try{return e()}finally{s.forEach(i=>{t[i]=n[i]})}}function Sk(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Tr?Uu.forEach(n=>{t[n]=(...s)=>{e&&br(()=>{Ne.console[n](`${vk}[${n}]:`,...s)})}}):Uu.forEach(n=>{t[n]=()=>{}}),t}const X=$a("logger",Sk),jm=50,fs="?",Dm=/\(error: (.*)\)/,$m=/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=Dm.test(f)?f.replace(Dm,"$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>=jm+i)break}}return _k(a.slice(i))}}function wk(e){return Array.isArray(e)?Fm(...e):e}function _k(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ba(t).function||"")&&t.pop(),t.reverse(),$m.test(Ba(t).function||"")&&(t.pop(),$m.test(Ba(t).function||"")&&t.pop()),t.slice(0,jm).map(n=>({...n,filename:n.filename||Ba(t).filename,function:n.function||fs}))}function Ba(e){return e[e.length-1]||{}}const Hu="<anonymous>";function nr(e){try{return!e||typeof e!="function"?Hu:e.name||Hu}catch{return Hu}}function Bm(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 za={},zm={};function Ir(e,t){za[e]=za[e]||[],za[e].push(t)}function Cr(e,t){if(!zm[e]){zm[e]=!0;try{t()}catch(n){Tr&&X.error(`Error while instrumenting ${e}`,n)}}}function gn(e,t){const n=e&&za[e];if(n)for(const s of n)try{s(t)}catch(i){Tr&&X.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${nr(s)}
Error:`,i)}}let Wu=null;function Um(e){const t="error";Ir(t,e),Cr(t,Ek)}function Ek(){Wu=Ne.onerror,Ne.onerror=function(e,t,n,s,i){return gn("error",{column:s,error:i,line:n,msg:e,url:t}),Wu?Wu.apply(this,arguments):!1},Ne.onerror.__SENTRY_INSTRUMENTED__=!0}let qu=null;function Hm(e){const t="unhandledrejection";Ir(t,e),Cr(t,xk)}function xk(){qu=Ne.onunhandledrejection,Ne.onunhandledrejection=function(e){return gn("unhandledrejection",e),qu?qu.apply(this,arguments):!0},Ne.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ps(){return Vu(Ne),Ne}function Vu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ds,t[ds]=t[ds]||{}}const Wm=Object.prototype.toString;function Gu(e){switch(Wm.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return sr(e,Error)}}function Js(e,t){return Wm.call(e)===`[object ${t}]`}function qm(e){return Js(e,"ErrorEvent")}function Vm(e){return Js(e,"DOMError")}function kk(e){return Js(e,"DOMException")}function rr(e){return Js(e,"String")}function Yu(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ku(e){return e===null||Yu(e)||typeof e!="object"&&typeof e!="function"}function Zs(e){return Js(e,"Object")}function Ua(e){return typeof Event<"u"&&sr(e,Event)}function Tk(e){return typeof Element<"u"&&sr(e,Element)}function bk(e){return Js(e,"RegExp")}function Ha(e){return!!(e&&e.then&&typeof e.then=="function")}function Ik(e){return Zs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function sr(e,t){try{return e instanceof t}catch{return!1}}function Gm(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const eo=Ne,Ck=80;function or(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||Ck;for(;n&&a++<s&&(h=Rk(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 Rk(e,t){const n=e,s=[];if(!n||!n.tagName)return"";if(eo.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&&rr(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 Ym(){try{return eo.document.location.href}catch{return""}}function Ak(e){return eo.document&&eo.document.querySelector?eo.document.querySelector(e):null}function Km(e){if(!eo.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 to(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Qm(e,t){if(!Array.isArray(e))return"";const n=[];for(let s=0;s<e.length;s++){const i=e[s];try{Gm(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ok(e,t,n=!1){return rr(e)?bk(t)?t.test(e):rr(t)?n?e===t:e.includes(t):!1:!1}function Rr(e,t=[],n=!1){return t.some(s=>Ok(e,s,n))}function Gt(e,t,n){if(!(t in e))return;const s=e[t],i=n(s);typeof i=="function"&&Xm(i,s);try{e[t]=i}catch{Tr&&X.log(`Failed to replace method "${t}" in object`,e)}}function yn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Tr&&X.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Xm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,yn(e,"__sentry_original__",t)}catch{}}function Qu(e){return e.__sentry_original__}function Jm(e){if(Gu(e))return{message:e.message,name:e.name,stack:e.stack,...eg(e)};if(Ua(e)){const t={type:e.type,target:Zm(e.target),currentTarget:Zm(e.currentTarget),...eg(e)};return typeof CustomEvent<"u"&&sr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zm(e){try{return Tk(e)?or(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eg(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 Pk(e,t=40){const n=Object.keys(Jm(e));n.sort();const s=n[0];if(!s)return"[object has no keys]";if(s.length>=t)return to(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:to(a,t)}return""}function dt(e){return Xu(e,new Map)}function Xu(e,t){if(Nk(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]=Xu(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(Xu(i,t))}),s}return e}function Nk(e){if(!Zs(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const tg=1e3;function ci(){return Date.now()/tg}function Mk(){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())/tg}const $t=Mk(),Ft=(()=>{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 ng(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ar(e){const{message:t,event_id:n}=e;if(t)return t;const s=ng(e);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function Ju(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 no(e,t){const n=ng(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 rg(e){if(Lk(e))return!0;try{yn(e,"__sentry_captured__",!0)}catch{}return!1}function Lk(e){try{return e.__sentry_captured__}catch{}}var ir;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(ir||(ir={}));function ar(e){return new vn(t=>{t(e)})}function Wa(e){return new vn((t,n)=>{n(e)})}class vn{constructor(t){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),this._state=ir.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new vn((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 vn((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(ir.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ir.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ir.PENDING){if(Ha(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ir.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ir.RESOLVED&&n[1](this._value),this._state===ir.REJECTED&&n[2](this._value),n[0]=!0)})}}}function jk(e){const t=$t(),n={sid:sn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>$k(n)};return e&&ro(n,e),n}function ro(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 Dk(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ro(e,n)}function $k(e){return dt({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 Or(){return sn()}function Pr(){return sn().substring(16)}function qa(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]=qa(s[i],t[i],n-1));return s}const Zu="_sentrySpan";function ui(e,t){t?yn(e,Zu,t):delete e[Zu]}function Va(e){return e[Zu]}const Fk=100;class ed{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:Or(),spanId:Pr()}}clone(){const t=new ed;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,Va(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&&ro(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 hs?[n.getScopeData(),n.getRequestSession()]:Zs(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:Or()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:Fk;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:Va(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=qa(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Pr(),...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 hs=ed;function Bk(){return $a("defaultCurrentScope",()=>new hs)}function zk(){return $a("defaultIsolationScope",()=>new hs)}class Uk{constructor(t,n){let s;t?s=t:s=new hs;let i;n?i=n:i=new hs,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 Ha(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 so(){const e=ps(),t=Vu(e);return t.stack=t.stack||new Uk(Bk(),zk())}function Hk(e){return so().withScope(e)}function Wk(e,t){const n=so();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function sg(e){return so().withScope(()=>e(so().getIsolationScope()))}function qk(){return{withIsolationScope:sg,withScope:Hk,withSetScope:Wk,withSetIsolationScope:(e,t)=>sg(t),getCurrentScope:()=>so().getScope(),getIsolationScope:()=>so().getIsolationScope()}}function oo(e){const t=Vu(e);return t.acs?t.acs:qk()}function Ve(){const e=ps();return oo(e).getCurrentScope()}function Cn(){const e=ps();return oo(e).getIsolationScope()}function Vk(){return $a("globalScope",()=>new hs)}function td(...e){const t=ps(),n=oo(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 Ve().getClient()}function Gk(e){const t=e.getPropagationContext(),{traceId:n,spanId:s,parentSpanId:i}=t;return dt({trace_id:n,span_id:s,parent_span_id:i})}const Yk="_sentryMetrics";function nd(e){const t=e[Yk];if(!t)return;const n={};for(const[,[s,i]]of t)(n[s]||(n[s]=[])).push(dt(i));return n}const Hn="sentry.source",og="sentry.sample_rate",ms="sentry.op",gt="sentry.origin",rd="sentry.idle_span_finish_reason",Ga="sentry.measurement_unit",Ya="sentry.measurement_value",ig="sentry.custom_span_name",Kk="sentry.profile_id",sd="sentry.exclusive_time",Qk=0,ag=1,yt=2;function Xk(e){if(e<400&&e>=100)return{code:ag};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 lg(e,t){e.setAttribute("http.response.status_code",t);const n=Xk(t);n.message!=="unknown_error"&&e.setStatus(n)}const od="sentry-",Jk=/^sentry-/,Zk=8192;function cg(e){const t=tT(e);if(!t)return;const n=Object.entries(t).reduce((s,[i,a])=>{if(i.match(Jk)){const c=i.slice(od.length);s[c]=a}return s},{});if(Object.keys(n).length>0)return n}function eT(e){if(!e)return;const t=Object.entries(e).reduce((n,[s,i])=>(i&&(n[`${od}${s}`]=i),n),{});return nT(t)}function tT(e){if(!(!e||!rr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const s=ug(n);return Object.entries(s).forEach(([i,a])=>{t[i]=a}),t},{}):ug(e)}function ug(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,s])=>(n&&s&&(t[n]=s),t),{})}function nT(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>Zk?(Tr&&X.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),t):c},"")}const dg=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function rT(e){if(!e)return;const t=e.match(dg);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 sT(e,t){const n=rT(e),s=cg(t);if(!n||!n.traceId)return{traceId:Or(),spanId:Pr()};const{traceId:i,parentSpanId:a,parentSampled:c}=n,d=Pr();return{traceId:i,parentSpanId:a,spanId:d,sampled:c,dsc:s||{}}}function fg(e=Or(),t=Pr(),n){let s="";return n!==void 0&&(s=n?"-1":"-0"),`${e}-${t}${s}`}const pg=0,hg=1;let mg=!1;function oT(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:a,status:c,origin:d}=Fe(e);return dt({parent_span_id:a,span_id:t,trace_id:n,data:s,op:i,status:c,origin:d})}function iT(e){const{spanId:t,traceId:n,isRemote:s}=e.spanContext(),i=s?t:Fe(e).parent_span_id,a=s?Pr():t;return dt({parent_span_id:i,span_id:a,trace_id:n})}function aT(e){const{traceId:t,spanId:n}=e.spanContext(),s=ys(e);return fg(t,n,s)}function gs(e){return typeof e=="number"?gg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gg(e.getTime()):$t()}function gg(e){return e>9999999999?e/1e3:e}function Fe(e){if(cT(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(lT(e)){const{attributes:s,startTime:i,name:a,endTime:c,parentSpanId:d,status:f}=e;return dt({span_id:t,trace_id:n,data:s,description:a,parent_span_id:d,start_timestamp:gs(i),timestamp:gs(c)||void 0,status:yg(f),op:s[ms],origin:s[gt],_metrics_summary:nd(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function lT(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function cT(e){return typeof e.getSpanJSON=="function"}function ys(e){const{traceFlags:t}=e.spanContext();return t===hg}function yg(e){if(!(!e||e.code===Qk))return e.code===ag?"ok":e.message||"unknown_error"}const vs="_sentryChildSpans",id="_sentryRootSpan";function vg(e,t){const n=e[id]||e;yn(t,id,n),e[vs]?e[vs].add(t):yn(e,vs,new Set([t]))}function uT(e,t){e[vs]&&e[vs].delete(t)}function Ka(e){const t=new Set;function n(s){if(!t.has(s)&&ys(s)){t.add(s);const i=s[vs]?Array.from(s[vs]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function bt(e){return e[id]||e}function vt(){const e=ps(),t=oo(e);return t.getActiveSpan?t.getActiveSpan():Va(Ve())}function Sg(){mg||(br(()=>{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.")}),mg=!0)}let wg=!1;function dT(){wg||(wg=!0,Um(ad),Hm(ad))}function ad(){const e=vt(),t=e&&bt(e);if(t){const n="internal_error";Ee&&X.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:yt,message:n})}}ad.tag="sentry_tracingErrorCallback";const _g="_sentryScope",Eg="_sentryIsolationScope";function fT(e,t,n){e&&(yn(e,Eg,n),yn(e,_g,t))}function xg(e){return{scope:e[_g],isolationScope:e[Eg]}}function Nr(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 io{constructor(t={}){this._traceId=t.traceId||Or(),this._spanId=t.spanId||Pr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:pg}}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 ld="production",kg="_frozenDsc";function Tg(e,t){yn(e,kg,t)}function bg(e,t){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},i=dt({environment:n.environment||ld,release:n.release,public_key:s,trace_id:e});return t.emit("createDsc",i),i}function Ig(e,t){const n=t.getPropagationContext();return n.dsc||bg(n.traceId,e)}function Ss(e){const t=Ae();if(!t)return{};const n=bt(e),s=n[kg];if(s)return s;const i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),c=a&&cg(a);if(c)return c;const d=bg(e.spanContext().traceId,t),f=Fe(n),h=f.data||{},y=h[og];y!=null&&(d.sample_rate=`${y}`);const g=h[Hn],w=f.description;return g!=="url"&&w&&(d.transaction=w),Nr()&&(d.sampled=String(ys(n))),t.emit("createDsc",d,n),d}function pT(e){if(!Ee)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:s}=Fe(e),{spanId:i}=e.spanContext(),a=ys(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}=Fe(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 hT(e){if(!Ee)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Fe(e),{spanId:s}=e.spanContext(),a=bt(e)===e,c=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${s}`;X.log(c)}function Qa(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){Ee&&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 mT(e,t){if(!Nr(e))return[!1];const n=Cn().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=Qa(i);return a===void 0?(Ee&&X.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()<a?[!0,a]:(Ee&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[!1,a]):(Ee&&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 gT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yT(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 vT(e){const t=gT.exec(e);if(!t){br(()=>{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 Cg({host:a,pass:i,path:f,projectId:h,port:c,protocol:n,publicKey:s})}function Cg(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ST(e){if(!Tr)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+$/)?yT(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 wT(e){const t=typeof e=="string"?vT(e):Cg(e);if(!(!t||!ST(t)))return t}function _T(){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 Rn(e,t=100,n=1/0){try{return cd("",e,t,n)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function Rg(e,t=3,n=100*1024){const s=Rn(e,t);return TT(s)>n?Rg(e,t-1,n):s}function cd(e,t,n=1/0,s=1/0,i=_T()){const[a,c]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=ET(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 cd("",E,f-1,s,i)}catch{}const y=Array.isArray(t)?[]:{};let g=0;const w=Jm(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]=cd(E,_,f-1,s,i),g++}return c(t),y}function ET(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(Gm(t))return"[VueViewModel]";if(Ik(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${nr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=xT(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function xT(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function kT(e){return~-encodeURI(e).split(/%..|./).length}function TT(e){return kT(JSON.stringify(e))}function ws(e,t=[]){return[e,t]}function bT(e,t){const[n,s]=e;return[n,[...s,t]]}function Ag(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 ud(e){return Ne.__SENTRY__&&Ne.__SENTRY__.encodePolyfill?Ne.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function IT(e){const[t,n]=e;let s=JSON.stringify(t);function i(a){typeof s=="string"?s=typeof a=="string"?s+a:[ud(s),a]:s.push(typeof a=="string"?ud(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(Rn(d))}i(f)}}return typeof s=="string"?s:CT(s)}function CT(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 RT(e){return[{type:"span"},e]}function AT(e){const t=typeof e.data=="string"?ud(e.data):e.data;return[dt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const OT={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 Og(e){return OT[e]}function dd(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Pg(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:dt({...i})}}}function PT(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 NT(e,t,n,s){const i=dd(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 ws(a,[c])}function MT(e,t,n,s){const i=dd(n),a=e.type&&e.type!=="replay_event"?e.type:"event";PT(e,n&&n.sdk);const c=Pg(e,i,s,t);return delete e.sdkProcessingMetadata,ws(c,[[{type:a},e]])}function LT(e,t){function n(y){return!!y.trace_id&&!!y.public_key}const s=Ss(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(Fe(y));return g||Sg(),g}:y=>Fe(y),h=[];for(const y of e){const g=f(y);g&&h.push(RT(g))}return ws(c,h)}function jT(e,t,n,s=vt()){const i=s&&bt(s);i&&(Ee&&X.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Ya]:t,[Ga]:n}))}function Ng(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const s=n.attributes||{},i=s[Ga],a=s[Ya];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const Mg=1e3;class fd{constructor(t={}){this._traceId=t.traceId||Or(),this._spanId=t.spanId||Pr(),this._startTime=t.startTimestamp||$t(),this._attributes={},this.setAttributes({[gt]:"manual",[ms]: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?hg:pg}}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=gs(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Hn,"custom"),this}end(t){this._endTime||(this._endTime=gs(t),hT(this),this._onSpanEnded())}getSpanJSON(){return dt({data:this._attributes,description:this._name,op:this._attributes[ms],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:yg(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gt],_metrics_summary:nd(this),profile_id:this._attributes[Kk],exclusive_time:this._attributes[sd],measurements:Ng(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){Ee&&X.log("[Tracing] Adding an event to span:",t);const i=Lg(n)?n:s||$t(),a=Lg(n)?{}:n||{},c={name:t,time:gs(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?$T(LT([this],t)):(Ee&&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&&(xg(this).scope||Ve()).captureEvent(s)}_convertSpanToTransaction(){if(!jg(Fe(this)))return;this._name||(Ee&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=xg(this),i=(t||Ve()).getClient()||Ae();if(this._sampled!==!0){Ee&&X.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const c=Ka(this).filter(g=>g!==this&&!DT(g)).map(g=>Fe(g)).filter(jg),d=this._attributes[Hn];delete this._attributes[ig],c.forEach(g=>{g.data&&delete g.data[ig]});const f={contexts:{trace:oT(this)},spans:c.length>Mg?c.sort((g,w)=>g.start_timestamp-w.start_timestamp).slice(0,Mg):c,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...dt({dynamicSamplingContext:Ss(this)})},_metrics_summary:nd(this),...d&&{transaction_info:{source:d}}},h=Ng(this._events);return h&&Object.keys(h).length&&(Ee&&X.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),f.measurements=h),f}}function Lg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function jg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function DT(e){return e instanceof fd&&e.isStandaloneSpan()}function $T(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 Dg="__SENTRY_SUPPRESS_TRACING__";function fi(e){const t=Fg();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=BT(e),{forceTransaction:s,parentSpan:i}=e;return(e.scope?c=>td(e.scope,c):i!==void 0?c=>$g(i,c):c=>c())(()=>{const c=Ve(),d=UT(c);return e.onlyIfParent&&!d?new io:FT({parentSpan:d,spanArguments:n,forceTransaction:s,scope:c})})}function $g(e,t){const n=Fg();return n.withActiveSpan?n.withActiveSpan(e,t):td(s=>(ui(s,e||void 0),t(s)))}function FT({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!Nr())return new io;const i=Cn();let a;if(e&&!n)a=zT(e,s,t),vg(e,a);else if(e){const c=Ss(e),{traceId:d,spanId:f}=e.spanContext(),h=ys(e);a=Bg({traceId:d,parentSpanId:f,...t},s,h),Tg(a,c)}else{const{traceId:c,dsc:d,parentSpanId:f,sampled:h}={...i.getPropagationContext(),...s.getPropagationContext()};a=Bg({traceId:c,parentSpanId:f,...t},s,h),d&&Tg(a,d)}return pT(a),fT(a,s,i),a}function BT(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const s={...n};return s.startTimestamp=gs(e.startTime),delete s.startTime,s}return n}function Fg(){const e=ps();return oo(e)}function Bg(e,t,n){const s=Ae(),i=s&&s.getOptions()||{},{name:a="",attributes:c}=e,[d,f]=t.getScopeData().sdkProcessingMetadata[Dg]?[!1]:mT(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),h=new fd({...e,attributes:{[Hn]:"custom",...e.attributes},sampled:d});return f!==void 0&&h.setAttribute(og,f),s&&s.emit("spanStart",h),h}function zT(e,t,n){const{spanId:s,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Dg]?!1:ys(e),c=a?new fd({...n,parentSpanId:s,traceId:i,sampled:a}):new io({traceId:i});vg(e,c);const d=Ae();return d&&(d.emit("spanStart",c),n.endTimestamp&&d.emit("spanEnd",c)),c}function UT(e){const t=Va(e);if(!t)return;const n=Ae();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?bt(t):t}const Xa={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},HT="heartbeatFailed",WT="idleTimeout",qT="finalTimeout",VT="externalFinish";function zg(e,t={}){const n=new Map;let s=!1,i,a=VT,c=!t.disableAutoFinish;const d=[],{idleTimeout:f=Xa.idleTimeout,finalTimeout:h=Xa.finalTimeout,childSpanTimeout:y=Xa.childSpanTimeout,beforeSpanEnd:g}=t,w=Ae();if(!w||!Nr())return new io;const E=Ve(),_=vt(),x=GT(e);x.end=new Proxy(x.end,{apply(M,L,U){g&&g(x);const[te,...K]=U,oe=te||$t(),ae=gs(oe),ye=Ka(x).filter(W=>W!==x);if(!ye.length)return z(ae),Reflect.apply(M,L,[ae,...K]);const Ie=ye.map(W=>Fe(W).timestamp).filter(W=>!!W),He=Ie.length?Math.max(...Ie):void 0,ce=Fe(x).start_timestamp,ke=Math.min(ce?ce+h/1e3:1/0,Math.max(ce||-1/0,Math.min(ae,He||1/0)));return z(ke),Reflect.apply(M,L,[ke,...K])}});function k(){i&&(clearTimeout(i),i=void 0)}function O(M){k(),i=setTimeout(()=>{!s&&n.size===0&&c&&(a=WT,x.end(M))},f)}function R(M){i=setTimeout(()=>{!s&&c&&(a=HT,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=Fe(x),{start_timestamp:U}=L;if(!U)return;(L.data||{})[rd]||x.setAttribute(rd,a),X.log(`[Tracing] Idle span "${L.op}" finished`);const K=Ka(x).filter(ae=>ae!==x);let oe=0;K.forEach(ae=>{ae.isRecording()&&(ae.setStatus({code:yt,message:"cancelled"}),ae.end(M),Ee&&X.log("[Tracing] Cancelling span since span ended early",JSON.stringify(ae,void 0,2)));const ye=Fe(ae),{timestamp:Ie=0,start_timestamp:He=0}=ye,ce=He<=M,ke=(h+f)/1e3,W=Ie-He<=ke;if(Ee){const re=JSON.stringify(ae,void 0,2);ce?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||!ce)&&(uT(x,ae),oe++)}),oe>0&&x.setAttribute("sentry.idle_span_discarded_spans",oe)}return d.push(w.on("spanStart",M=>{if(s||M===x||Fe(M).timestamp)return;Ka(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=qT,x.end())},h),x}function GT(e){const t=fi(e);return ui(Ve(),t),Ee&&X.log("[Tracing] Started span is an idle span"),t}function pd(e,t,n,s=0){return new vn((i,a)=>{const c=e[s];if(t===null||typeof c!="function")i(t);else{const d=c({...t},n);Ee&&c.id&&d===null&&X.log(`Event processor "${c.id}" dropped event`),Ha(d)?d.then(f=>pd(e,f,n,s+1).then(i)).then(null,a):pd(e,d,n,s+1).then(i).then(null,a)}})}let Ja,Ug,Za;function YT(e){const t=Ne._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Za&&n.length===Ug||(Ug=n.length,Za=n.reduce((s,i)=>{Ja||(Ja={});const a=Ja[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,Ja[i]=[h,y];break}}}return s},{})),Za}function KT(e,t){const{fingerprint:n,span:s,breadcrumbs:i,sdkProcessingMetadata:a}=t;QT(e,t),s&&ZT(e,s),eb(e,n),XT(e,i),JT(e,a)}function Hg(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;el(e,"extra",n),el(e,"tags",s),el(e,"user",i),el(e,"contexts",a),e.sdkProcessingMetadata=qa(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 el(e,t,n){e[t]=qa(e[t],n,1)}function QT(e,t){const{extra:n,tags:s,user:i,contexts:a,level:c,transactionName:d}=t,f=dt(n);f&&Object.keys(f).length&&(e.extra={...f,...e.extra});const h=dt(s);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=dt(i);y&&Object.keys(y).length&&(e.user={...y,...e.user});const g=dt(a);g&&Object.keys(g).length&&(e.contexts={...g,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function XT(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function JT(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ZT(e,t){e.contexts={trace:iT(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ss(t),...e.sdkProcessingMetadata};const n=bt(t),s=Fe(n).description;s&&!e.transaction&&e.type==="transaction"&&(e.transaction=s)}function eb(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 Wg(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);tb(f,e),sb(f,h),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&nb(f,e.stackParser);const y=ib(s,n.captureContext);n.mechanism&&no(f,n.mechanism);const g=i?i.getEventProcessors():[],w=Vk().getScopeData();if(a){const k=a.getScopeData();Hg(w,k)}if(y){const k=y.getScopeData();Hg(w,k)}const E=[...n.attachments||[],...w.attachments];E.length&&(n.attachments=E),KT(f,w);const _=[...g,...w.eventProcessors];return pd(_,f,n).then(k=>(k&&rb(k),typeof c=="number"&&c>0?ob(k,c,d):k))}function tb(e,t){const{environment:n,release:s,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||ld,!e.release&&s&&(e.release=s),!e.dist&&i&&(e.dist=i),e.message&&(e.message=to(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=to(c.value,a));const d=e.request;d&&d.url&&(d.url=to(d.url,a))}function nb(e,t){const n=YT(t);try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(i=>{n&&i.filename&&(i.debug_id=n[i.filename])})})}catch{}}function rb(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 sb(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ob(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Rn(i.data,t,n)}}))},...e.user&&{user:Rn(e.user,t,n)},...e.contexts&&{contexts:Rn(e.contexts,t,n)},...e.extra&&{extra:Rn(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=Rn(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map(i=>({...i,...i.data&&{data:Rn(i.data,t,n)}}))),e.contexts&&e.contexts.flags&&s.contexts&&(s.contexts.flags=Rn(e.contexts.flags,3,n)),s}function ib(e,t){if(!t)return e;const n=e?e.clone():new hs;return n.update(t),n}function JF(e){}function An(e,t){return Ve().captureException(e,void 0)}function qg(e,t){return Ve().captureEvent(e,t)}function Vg(e,t){Cn().setContext(e,t)}function ab(){const e=Ae();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function lb(e){Cn().addEventProcessor(e)}function Gg(e){const t=Ae(),n=Cn(),s=Ve(),{release:i,environment:a=ld}=t&&t.getOptions()||{},{userAgent:c}=Ne.navigator||{},d=jk({release:i,environment:a,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&f.status==="ok"&&ro(f,{status:"exited"}),Yg(),n.setSession(d),s.setSession(d),d}function Yg(){const e=Cn(),t=Ve(),n=t.getSession()||e.getSession();n&&Dk(n),Kg(),e.setSession(),t.setSession()}function Kg(){const e=Cn(),t=Ve(),n=Ae(),s=t.getSession()||e.getSession();s&&n&&n.captureSession(s)}function Qg(e=!1){if(e){Yg();return}Kg()}const cb="7";function ub(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function db(e){return`${ub(e)}${e.projectId}/envelope/`}function fb(e,t){const n={sentry_version:cb};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function pb(e,t,n){return t||`${db(e)}?${fb(e,n)}`}const Xg=[];function hb(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 mb(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=hb(s),a=i.findIndex(c=>c.name==="Debug");if(a>-1){const[c]=i.splice(a,1);i.push(c)}return i}function gb(e,t){const n={};return t.forEach(s=>{s&&Zg(e,s,n)}),n}function Jg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Zg(e,t,n){if(n[t.name]){Ee&&X.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Xg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Xg.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)}Ee&&X.log(`Integration installed: ${t.name}`)}function ZF(e){return e}function yb(e,t,n){const s=[{type:"client_report"},{timestamp:ci(),discarded_events:e}];return ws(t?{dsn:t}:{},[s])}class Wn 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 ey="Not capturing exception because it's already been captured.";class vb{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=wT(t.dsn):Ee&&X.warn("No DSN provided, client will not send events."),this._dsn){const i=pb(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&&br(()=>{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(rg(t))return Ee&&X.log(ey),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=Yu(t)?t:String(t),d=Ku(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&&rg(n.originalException))return Ee&&X.log(ey),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"?Ee&&X.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ro(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))):ar(!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];Zg(this,t,this._integrations),n||Jg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let s=MT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])s=bT(s,AT(a));const i=this.sendEnvelope(s);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=NT(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}`;Ee&&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=>(Ee&&X.error("Error while sending envelope:",n),n)):(Ee&&X.error("Transport disabled"),ar({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=gb(this,t),Jg(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)&&(ro(t,{...s&&{status:"crashed"},errors:t.errors||Number(i||s)}),this.captureSession(t))}_isClientDoneProcessing(t){return new vn(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=Ve(),i=Cn()){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),Wg(a,t,n,s,this,i).then(d=>{if(d===null)return d;d.contexts={trace:Gk(s),...d.contexts};const f=Ig(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(Ee){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=ny(t),d=ty(t),f=t.type||"error",h=`before send for type \`${f}\``,y=typeof a>"u"?void 0:Qa(a);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),Wa(new Wn(`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 Wn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const k=wb(this,i,_,n);return Sb(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 Wn(`${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 Wn?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new Wn(`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(){Ee&&X.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ee&&X.log("No outcomes to send");return}if(!this._dsn){Ee&&X.log("No dsn provided, will not send outcomes");return}Ee&&X.log("Sending outcomes:",t);const n=yb(t,this._options.tunnel&&di(this._dsn));this.sendEnvelope(n)}}function Sb(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ha(e))return e.then(s=>{if(!Zs(s)&&s!==null)throw new Wn(n);return s},s=>{throw new Wn(`${t} rejected with ${s}`)});if(!Zs(e)&&e!==null)throw new Wn(n);return e}function wb(e,t,n,s){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:c}=t;if(ty(n)&&i)return i(n,s);if(ny(n)){if(n.spans&&c){const d=[];for(const f of n.spans){const h=c(f);h?d.push(h):(Sg(),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 ty(e){return e.type===void 0}function ny(e){return e.type==="transaction"}function _b(e,t){t.debug===!0&&(Ee?X.enable():br(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Ve().update(t.initialScope);const s=new e(t);return Eb(s),s.init(),s}function Eb(e){Ve().setClient(e)}function xb(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 Wa(new Wn("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 vn((d,f)=>{let h=t.length;if(!h)return d(!0);const y=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(g=>{ar(g).then(()=>{--h||(clearTimeout(y),d(!0))},f)})})}return{$:t,add:i,drain:a}}const kb=60*1e3;function Tb(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const s=Date.parse(`${e}`);return isNaN(s)?kb:s-t}function bb(e,t){return e[t]||e.all||0}function ry(e,t,n=Date.now()){return bb(e,t)>n}function sy(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+Tb(c,s):t===429&&(i.all=s+60*1e3);return i}const Ib=64;function Cb(e,t,n=xb(e.bufferSize||Ib)){let s={};const i=c=>n.drain(c);function a(c){const d=[];if(Ag(c,(g,w)=>{const E=Og(w);if(ry(s,E)){const _=oy(g,w);e.recordDroppedEvent("ratelimit_backoff",E,_)}else d.push(g)}),d.length===0)return ar({});const f=ws(c[0],d),h=g=>{Ag(f,(w,E)=>{const _=oy(w,E);e.recordDroppedEvent(g,Og(E),_)})},y=()=>t({body:IT(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&Ee&&X.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),s=sy(s,g),g),g=>{throw h("network_error"),g});return n.add(y).then(g=>g,g=>{if(g instanceof Wn)return Ee&&X.error("Skipped sending event because buffer is full."),h("queue_overflow"),ar({});throw g})}return{send:a,flush:i}}function oy(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Rb(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return Ob(e,n)||Ab(e,s)}function Ab(e,t){return t?iy(e)===iy(t):!1}function Ob(e,t){return t?e.includes(t.host):!1}function iy(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function ay(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:ds})),version:ds}),e._metadata=i}function ly(e={}){const t=Ae();if(!ab()||!t)return{};const n=ps(),s=oo(n);if(s.getTraceData)return s.getTraceData(e);const i=Ve(),a=e.span||vt(),c=a?aT(a):Pb(i),d=a?Ss(a):Ig(t,i),f=eT(d);return dg.test(c)?{"sentry-trace":c,baggage:f}:(X.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Pb(e){const{traceId:t,sampled:n,spanId:s}=e.getPropagationContext();return fg(t,s,n)}const Nb=100;function Mr(e,t){const n=Ae(),s=Cn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Nb}=n.getOptions();if(a<=0)return;const d={timestamp:ci(),...e},f=i?br(()=>i(d,t)):d;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),s.addBreadcrumb(f,a))}let cy;const Mb="FunctionToString",uy=new WeakMap,Lb=()=>({name:Mb,setupOnce(){cy=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Qu(this),n=uy.has(Ae())&&t!==void 0?t:this;return cy.apply(n,e)}}catch{}},setup(e){uy.set(e,!0)}}),jb=[/^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+$/],Db="InboundFilters",$b=(e={})=>({name:Db,processEvent(t,n,s){const i=s.getOptions(),a=Fb(e,i);return Bb(t,a)?null:t}});function Fb(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jb],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Bb(e,t){return t.ignoreInternal&&Vb(e)?(Ee&&X.warn(`Event dropped due to being internal Sentry Error.
Event: ${Ar(e)}`),!0):zb(e,t.ignoreErrors)?(Ee&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ar(e)}`),!0):Yb(e)?(Ee&&X.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ar(e)}`),!0):Ub(e,t.ignoreTransactions)?(Ee&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ar(e)}`),!0):Hb(e,t.denyUrls)?(Ee&&X.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ar(e)}.
Url: ${tl(e)}`),!0):Wb(e,t.allowUrls)?!1:(Ee&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ar(e)}.
Url: ${tl(e)}`),!0)}function zb(e,t){return e.type||!t||!t.length?!1:qb(e).some(n=>Rr(n,t))}function Ub(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Rr(n,t):!1}function Hb(e,t){if(!t||!t.length)return!1;const n=tl(e);return n?Rr(n,t):!1}function Wb(e,t){if(!t||!t.length)return!0;const n=tl(e);return n?Rr(n,t):!0}function qb(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 Vb(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Gb(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 tl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Gb(t):null}catch{return Ee&&X.error(`Cannot extract url for event ${Ar(e)}`),null}}function Yb(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 Kb(e,t,n=250,s,i,a,c){if(!a.exception||!a.exception.values||!c||!sr(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=Qb(hd(e,t,i,c.originalException,s,a.exception.values,d,0),n))}function hd(e,t,n,s,i,a,c,d){if(a.length>=n+1)return a;let f=[...a];if(sr(s[i],Error)){dy(c,d);const h=e(t,s[i]),y=f.length;fy(h,i,y,d),f=hd(e,t,n,s[i],i,[h,...f],h,y)}return Array.isArray(s.errors)&&s.errors.forEach((h,y)=>{if(sr(h,Error)){dy(c,d);const g=e(t,h),w=f.length;fy(g,`errors[${y}]`,w,d),f=hd(e,t,n,h,i,[g,...f],g,w)}}),f}function dy(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 fy(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 Qb(e,t){return e.map(n=>(n.value&&(n.value=to(n.value,t)),n))}function _s(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 Xb(e){const t="console";Ir(t,e),Cr(t,Jb)}function Jb(){"console"in Ne&&Uu.forEach(function(e){e in Ne.console&&Gt(Ne.console,e,function(t){return Fa[e]=t,function(...n){gn("console",{args:n,level:e});const i=Fa[e];i&&i.apply(Ne.console,n)}})})}function py(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Zb="Dedupe",eI=()=>{let e;return{name:Zb,processEvent(t){if(t.type)return t;try{if(tI(t,e))return Ee&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function tI(e,t){return t?!!(nI(e,t)||rI(e,t)):!1}function nI(e,t){const n=e.message,s=t.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!my(e,t)||!hy(e,t))}function rI(e,t){const n=gy(t),s=gy(e);return!(!n||!s||n.type!==s.type||n.value!==s.value||!my(e,t)||!hy(e,t))}function hy(e,t){let n=Bm(e),s=Bm(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 my(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 gy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function sI(e,t,n,s,i="auto.http.browser"){if(!e.fetchData)return;const a=Nr()&&t(e.fetchData.url);if(e.endTimestamp&&a){const w=e.fetchData.__span;if(!w)return;const E=s[w];E&&(aI(E,e),delete s[w]);return}const{method:c,url:d}=e.fetchData,f=iI(d),h=f?_s(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,[ms]:"http.client"}}):new io;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]||{},_=oI(w,E,Nr()&&y?g:void 0);_&&(e.args[1]=E,E.headers=_)}return g}function oI(e,t,n){const s=ly({span:n}),i=s["sentry-trace"],a=s.baggage;if(!i)return;const c=t.headers||(lI(e)?e.headers:void 0);if(c)if(cI(c)){const d=new Headers(c);if(d.set("sentry-trace",i),a){const f=d.get("baggage");if(f){const h=nl(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,nl(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"?nl(h):h).filter(h=>h===""):d&&f.push(nl(d)),a&&f.push(a),{...c,"sentry-trace":i,baggage:f.length>0?f.join(","):void 0}}else return{...s}}function iI(e){try{return new URL(e).href}catch{return}}function aI(e,t){if(t.response){lg(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 nl(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(od)).join(",")}function lI(e){return typeof Request<"u"&&sr(e,Request)}function cI(e){return typeof Headers<"u"&&sr(e,Headers)}function yy(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const md=Ne;function vy(){if(!("fetch"in md))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function gd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function uI(){if(typeof EdgeRuntime=="string")return!0;if(!vy())return!1;if(gd(md.fetch))return!0;let e=!1;const t=md.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=gd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Tr&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Sy(e,t){const n="fetch";Ir(n,e),Cr(n,()=>wy(void 0,t))}function dI(e){const t="fetch-body-resolved";Ir(t,e),Cr(t,()=>wy(pI))}function wy(e,t=!1){t&&!uI()||Gt(Ne,"fetch",function(n){return function(...s){const i=new Error,{method:a,url:c}=hI(s),d={args:s,fetchData:{method:a,url:c},startTimestamp:$t()*1e3,virtualError:i};return e||gn("fetch",{...d}),n.apply(Ne,s).then(async f=>(e?e(f):gn("fetch",{...d,endTimestamp:$t()*1e3,response:f}),f),f=>{throw gn("fetch",{...d,endTimestamp:$t()*1e3,error:f}),Gu(f)&&f.stack===void 0&&(f.stack=i.stack,yn(f,"framesToPop",1)),f})}})}async function fI(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 pI(e){let t;try{t=e.clone()}catch{return}fI(t,()=>{gn("fetch-body-resolved",{endTimestamp:$t()*1e3,response:e})})}function yd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function _y(e){return typeof e=="string"?e:e?yd(e,"url")?e.url:e.toString?e.toString():"":""}function hI(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,s]=e;return{url:_y(n),method:yd(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:_y(t),method:yd(t,"method")?String(t.method).toUpperCase():"GET"}}function mI(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gI(){return"npm"}function yI(){return!mI()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ey(){return typeof window<"u"&&(!yI()||vI())}function vI(){const e=Ne.process;return!!e&&e.type==="renderer"}const rl=Ne;function SI(){const e=rl.chrome,t=e&&e.app&&e.app.runtime,n="history"in rl&&!!rl.history.pushState&&!!rl.history.replaceState;return!t&&n}function wI(e,t){return e??t()}function sl(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 Se=Ne;let vd=0;function xy(){return vd>0}function _I(){vd++,setTimeout(()=>{vd--})}function ao(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(Qu(e))return e}catch{return e}const s=function(...i){try{const a=i.map(c=>ao(c,t));return e.apply(this,a)}catch(a){throw _I(),td(c=>{c.addEventProcessor(d=>(t.mechanism&&(Ju(d,void 0),no(d,t.mechanism)),d.extra={...d.extra,arguments:i},d)),An(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=e[i])}catch{}Xm(s,e),yn(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}const qn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Sd(e,t){const n=_d(e,t),s={type:bI(t),value:II(t)};return n.length&&(s.stacktrace={frames:n}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function EI(e,t,n,s){const i=Ae(),a=i&&i.getOptions().normalizeDepth,c=PI(t),d={__serialized__:Rg(t,a)};if(c)return{exception:{values:[Sd(e,c)]},extra:d};const f={exception:{values:[{type:Ua(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:AI(t,{isUnhandledRejection:s})}]},extra:d};if(n){const h=_d(e,n);h.length&&(f.exception.values[0].stacktrace={frames:h})}return f}function wd(e,t){return{exception:{values:[Sd(e,t)]}}}function _d(e,t){const n=t.stacktrace||t.stack||"",s=kI(t),i=TI(t);try{return e(n,s,i)}catch{}return[]}const xI=/Minified React error #\d+;/i;function kI(e){return e&&xI.test(e.message)?1:0}function TI(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function ky(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function bI(e){const t=e&&e.name;return!t&&ky(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function II(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:ky(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function CI(e,t,n,s){const i=n&&n.syntheticException||void 0,a=Ed(e,t,i,s);return no(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),ar(a)}function RI(e,t,n="info",s,i){const a=s&&s.syntheticException||void 0,c=xd(e,t,a,i);return c.level=n,s&&s.event_id&&(c.event_id=s.event_id),ar(c)}function Ed(e,t,n,s,i){let a;if(qm(t)&&t.error)return wd(e,t.error);if(Vm(t)||kk(t)){const c=t;if("stack"in t)a=wd(e,t);else{const d=c.name||(Vm(c)?"DOMError":"DOMException"),f=c.message?`${d}: ${c.message}`:d;a=xd(e,f,n,s),Ju(a,f)}return"code"in c&&(a.tags={...a.tags,"DOMException.code":`${c.code}`}),a}return Gu(t)?wd(e,t):Zs(t)||Ua(t)?(a=EI(e,t,n,i),no(a,{synthetic:!0}),a):(a=xd(e,t,n,s),Ju(a,`${t}`),no(a,{synthetic:!0}),a)}function xd(e,t,n,s){const i={};if(s&&n){const a=_d(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),no(i,{synthetic:!0})}if(Yu(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 AI(e,{isUnhandledRejection:t}){const n=Pk(e),s=t?"promise rejection":"exception";return qm(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:Ua(e)?`Event \`${OI(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${n}`}function OI(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function PI(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function NI(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=MI(e);return ws(i,[a])}function MI(e){return[{type:"user_report"},e]}class LI extends vb{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},s=Se.SENTRY_SDK_SOURCE||gI();ay(n,"browser",["browser"],s),super(n),n.sendClientReports&&Se.document&&Se.document.addEventListener("visibilitychange",()=>{Se.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return CI(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",s){return RI(this._options.stackParser,t,n,s,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){qn&&X.warn("SDK not enabled, will not capture user feedback.");return}const n=NI(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 kd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jI=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",lo=(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=jI(t.value,n),e(t)))}},fe=Ne,DI=()=>`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},co=(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:DI(),navigationType:s}},Es=(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{}},uo=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))},ol=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let mi=-1;const $I=()=>fe.document.visibilityState==="hidden"&&!fe.document.prerendering?0:1/0,il=e=>{fe.document.visibilityState==="hidden"&&mi>-1&&(mi=e.type==="visibilitychange"?e.timeStamp:0,BI())},FI=()=>{addEventListener("visibilitychange",il,!0),addEventListener("prerenderingchange",il,!0)},BI=()=>{removeEventListener("visibilitychange",il,!0),removeEventListener("prerenderingchange",il,!0)},al=()=>(fe.document&&mi<0&&(mi=$I(),FI()),{get firstHiddenTime(){return mi}}),gi=e=>{fe.document&&fe.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},zI=[1800,3e3],UI=(e,t={})=>{gi(()=>{const n=al(),s=co("FCP");let i;const c=Es("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=lo(e,s,zI,t.reportAllChanges))})},HI=[.1,.25],WI=(e,t={})=>{UI(ol(()=>{const n=co("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=Es("layout-shift",c);d&&(s=lo(e,n,HI,t.reportAllChanges),uo(()=>{c(d.takeRecords()),s(!0)}),setTimeout(s,0))}))},qI=[100,300],VI=(e,t={})=>{gi(()=>{const n=al(),s=co("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=Es("first-input",c);i=lo(e,s,qI,t.reportAllChanges),d&&uo(ol(()=>{c(d.takeRecords()),d.disconnect()}))})};let Ty=0,Td=1/0,ll=0;const GI=e=>{e.forEach(t=>{t.interactionId&&(Td=Math.min(Td,t.interactionId),ll=Math.max(ll,t.interactionId),Ty=ll?(ll-Td)/7+1:0)})};let bd;const YI=()=>bd?Ty:performance.interactionCount||0,KI=()=>{"interactionCount"in performance||bd||(bd=Es("event",GI,{type:"event",buffered:!0,durationThreshold:0}))},lr=[],Id=new Map,QI=40;let XI=0;const JI=()=>YI()-XI,ZI=()=>{const e=Math.min(lr.length-1,Math.floor(JI()/50));return lr[e]},Cd=10,eC=[],tC=e=>{if(eC.forEach(s=>s(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=lr[lr.length-1],n=Id.get(e.interactionId);if(n||lr.length<Cd||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]};Id.set(s.id,s),lr.push(s)}lr.sort((s,i)=>i.latency-s.latency),lr.length>Cd&&lr.splice(Cd).forEach(s=>Id.delete(s.id))}},by=e=>{const t=fe.requestIdleCallback||fe.setTimeout;let n=-1;return e=ol(e),fe.document&&fe.document.visibilityState==="hidden"?e():(n=t(e),uo(e)),n},nC=[200,500],rC=(e,t={})=>{"PerformanceEventTiming"in fe&&"interactionId"in PerformanceEventTiming.prototype&&gi(()=>{KI();const n=co("INP");let s;const i=c=>{by(()=>{c.forEach(tC);const d=ZI();d&&d.latency!==n.value&&(n.value=d.latency,n.entries=d.entries,s())})},a=Es("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:QI});s=lo(e,n,nC,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),uo(()=>{i(a.takeRecords()),s(!0)}))})},sC=[2500,4e3],Iy={},oC=(e,t={})=>{gi(()=>{const n=al(),s=co("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=Es("largest-contentful-paint",a);if(c){i=lo(e,s,sC,t.reportAllChanges);const d=ol(()=>{Iy[s.id]||(a(c.takeRecords()),c.disconnect(),Iy[s.id]=!0,i(!0))});["keydown","click"].forEach(f=>{fe.document&&addEventListener(f,()=>by(d),{once:!0,capture:!0})}),uo(d)}})},iC=[800,1800],Rd=e=>{fe.document&&fe.document.prerendering?gi(()=>Rd(e)):fe.document&&fe.document.readyState!=="complete"?addEventListener("load",()=>Rd(e),!0):setTimeout(e,0)},aC=(e,t={})=>{const n=co("TTFB"),s=lo(e,n,iC,t.reportAllChanges);Rd(()=>{const i=pi();i&&(n.value=Math.max(i.responseStart-hi(),0),n.entries=[i],s(!0))})},yi={},cl={};let Cy,Ry,Ay,Oy,Py;function Ad(e,t=!1){return vi("cls",e,cC,Cy,t)}function Ny(e,t=!1){return vi("lcp",e,dC,Ay,t)}function My(e){return vi("fid",e,uC,Ry)}function lC(e){return vi("ttfb",e,fC,Oy)}function Ly(e){return vi("inp",e,pC,Py)}function fo(e,t){return jy(e,t),cl[e]||(hC(e),cl[e]=!0),Dy(e,t)}function po(e,t){const n=yi[e];if(!(!n||!n.length))for(const s of n)try{s(t)}catch(i){kd&&X.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${nr(s)}
Error:`,i)}}function cC(){return WI(e=>{po("cls",{metric:e}),Cy=e},{reportAllChanges:!0})}function uC(){return VI(e=>{po("fid",{metric:e}),Ry=e})}function dC(){return oC(e=>{po("lcp",{metric:e}),Ay=e},{reportAllChanges:!0})}function fC(){return aC(e=>{po("ttfb",{metric:e}),Oy=e})}function pC(){return rC(e=>{po("inp",{metric:e}),Py=e})}function vi(e,t,n,s,i=!1){jy(e,t);let a;return cl[e]||(a=n(),cl[e]=!0),s&&t({metric:s}),Dy(e,t,i?a:void 0)}function hC(e){const t={};e==="event"&&(t.durationThreshold=0),Es(e,n=>{po(e,{entries:n})},t)}function jy(e,t){yi[e]=yi[e]||[],yi[e].push(t)}function Dy(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 mC(e){return"duration"in e}function Od(e){return typeof e=="number"&&isFinite(e)}function cr(e,t,n,{...s}){const i=Fe(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),$g(e,()=>{const a=fi({startTime:t,...s});return a&&a.end(n),a})}function $y(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=Ve(),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 Pd(){return fe&&fe.addEventListener&&fe.performance}function ot(e){return e/1e3}function gC(){let e=0,t,n;if(!vC())return;let s=!1;function i(){s||(s=!0,n&&yC(e,t,n),a())}const a=Ad(({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(e=c.value,t=d)},!0);uo(()=>{i()}),setTimeout(()=>{const c=Ae();if(!c)return;const d=c.on("startNavigationSpan",()=>{i(),d&&d()}),f=vt(),h=f&&bt(f),y=h&&Fe(h);y&&y.op==="pageload"&&(n=h.spanContext().spanId)},0)}function yC(e,t,n){kd&&X.log(`Sending CLS span (${e})`);const s=ot((Ft||0)+(t&&t.startTime||0)),i=Ve().getScopeData().transactionName,a=t?or(t.sources[0]&&t.sources[0].node):"Layout shift",c=dt({[gt]:"auto.http.browser.cls",[ms]:"ui.webvital.cls",[sd]:t&&t.duration||0,"sentry.pageload.span_id":n}),d=$y({name:a,transaction:i,attributes:c,startTime:s});d&&(d.addEvent("cls",{[Ga]:"",[Ya]:e}),d.end(s))}function vC(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const SC=2147483647;let Fy=0,It={},Yt,Si;function wC({recordClsStandaloneSpans:e}){const t=Pd();if(t&&Ft){t.mark&&fe.performance.mark("sentry-tracing-init");const n=bC(),s=TC(),i=IC(),a=e?gC():kC();return()=>{n(),s(),i(),a&&a()}}return()=>{}}function _C(){fo("longtask",({entries:e})=>{const t=vt();if(!t)return;const{op:n,start_timestamp:s}=Fe(t);for(const i of e){const a=ot(Ft+i.startTime),c=ot(i.duration);n==="navigation"&&s&&a<s||cr(t,a,a+c,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[gt]:"auto.ui.browser.metrics"}})}})}function EC(){new PerformanceObserver(t=>{const n=vt();if(n)for(const s of t.getEntries()){if(!s.scripts[0])continue;const i=ot(Ft+s.startTime),{start_timestamp:a,op:c}=Fe(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"]=_),cr(n,i,i+d,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function xC(){fo("event",({entries:e})=>{const t=vt();if(t){for(const n of e)if(n.name==="click"){const s=ot(Ft+n.startTime),i=ot(n.duration),a={name:or(n.target),op:`ui.interaction.${n.name}`,startTime:s,attributes:{[gt]:"auto.ui.browser.metrics"}},c=Km(n.target);c&&(a.attributes["ui.component_name"]=c),cr(t,s,s+i,a)}}})}function kC(){return Ad(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.cls={value:e.value,unit:""},Si=t)},!0)}function TC(){return Ny(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(It.lcp={value:e.value,unit:"millisecond"},Yt=t)},!0)}function bC(){return My(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ot(Ft),s=ot(t.startTime);It.fid={value:e.value,unit:"millisecond"},It["mark.fid"]={value:n+s,unit:"second"}})}function IC(){return lC(({metric:e})=>{e.entries[e.entries.length-1]&&(It.ttfb={value:e.value,unit:"millisecond"})})}function CC(e,t){const n=Pd();if(!n||!n.getEntries||!Ft)return;const s=ot(Ft),i=n.getEntries(),{op:a,start_timestamp:c}=Fe(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":{AC(e,d,s);break}case"mark":case"paint":case"measure":{RC(e,d,f,h,s);const y=al(),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":{NC(e,d,d.name,f,h,s);break}}}),Fy=Math.max(i.length-1,0),MC(e),a==="pageload"){jC(It);const d=It["mark.fid"];d&&It.fid&&(cr(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])=>{jT(f,h.value,h.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",hi()),LC(e)}Yt=void 0,Si=void 0,It={}}function RC(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),cr(e,d,h,{name:t.name,op:t.entryType,attributes:y}),d}function AC(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(s=>{ul(e,t,s,n)}),ul(e,t,"secureConnection",n,"TLS/SSL"),ul(e,t,"fetch",n,"cache"),ul(e,t,"domainLookup",n,"DNS"),PC(e,t,n)}function ul(e,t,n,s,i=n){const a=OC(n),c=t[a],d=t[`${n}Start`];!d||!c||cr(e,s+ot(d),s+ot(c),{op:`browser.${i}`,name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}})}function OC(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function PC(e,t,n){const s=n+ot(t.requestStart),i=n+ot(t.responseEnd),a=n+ot(t.responseStart);t.responseEnd&&(cr(e,s,i,{op:"browser.request",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}),cr(e,a,i,{op:"browser.response",name:t.name,attributes:{[gt]:"auto.ui.browser.metrics"}}))}function NC(e,t,n,s,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=_s(n),d={[gt]:"auto.resource.browser.metrics"};Nd(d,t,"transferSize","http.response_transfer_size"),Nd(d,t,"encodedBodySize","http.response_content_length"),Nd(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;cr(e,y,g,{name:n.replace(fe.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function MC(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),Od(n.rtt)&&(It["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Od(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Od(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function LC(e){Yt&&(Yt.element&&e.setAttribute("lcp.element",or(Yt.element)),Yt.id&&e.setAttribute("lcp.id",Yt.id),Yt.url&&e.setAttribute("lcp.url",Yt.url.trim().slice(0,200)),Yt.loadTime!=null&&e.setAttribute("lcp.loadTime",Yt.loadTime),Yt.renderTime!=null&&e.setAttribute("lcp.renderTime",Yt.renderTime),e.setAttribute("lcp.size",Yt.size)),Si&&Si.sources&&Si.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,or(t.node)))}function Nd(e,t,n,s){const i=t[n];i!=null&&i<SC&&(e[s]=i)}function jC(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 DC=1e3;let By,Md,Ld;function zy(e){const t="dom";Ir(t,e),Cr(t,$C)}function $C(){if(!fe.document)return;const e=gn.bind(null,"dom"),t=Uy(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")||(Gt(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=Uy(e);g.handler=w,c.call(this,d,w,h)}g.refCount++}catch{}return c.call(this,d,f,h)}}),Gt(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 FC(e){if(e.type!==Md)return!1;try{if(!e.target||e.target._sentryId!==Ld)return!1}catch{}return!0}function BC(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Uy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const s=zC(n);if(BC(n.type,s))return;yn(n,"_sentryCaptured",!0),s&&!s._sentryId&&yn(s,"_sentryId",sn());const i=n.type==="keypress"?"input":n.type;FC(n)||(e({event:n,name:i,global:t}),Md=n.type,Ld=s?s._sentryId:void 0),clearTimeout(By),By=fe.setTimeout(()=>{Ld=void 0,Md=void 0},DC)}}function zC(e){try{return e.target}catch{return null}}let dl;function fl(e){const t="history";Ir(t,e),Cr(t,UC)}function UC(){if(!SI())return;const e=fe.onpopstate;fe.onpopstate=function(...n){const s=fe.location.href,i=dl;if(dl=s,gn("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=dl,c=String(i);dl=c,gn("history",{from:a,to:c})}return n.apply(this,s)}}Gt(fe.history,"pushState",t),Gt(fe.history,"replaceState",t)}const pl={};function Hy(e){const t=pl[e];if(t)return t;let n=fe[e];if(gd(n))return pl[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){kd&&X.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(pl[e]=n.bind(fe))}function Wy(e){pl[e]=void 0}function ho(...e){return Hy("setTimeout")(...e)}const xs="__sentry_xhr_v3__";function qy(e){const t="xhr";Ir(t,e),Cr(t,HC)}function HC(){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=rr(s[0])?s[0].toUpperCase():void 0,d=WC(s[1]);if(!c||!d)return t.apply(n,s);n[xs]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const h=n[xs];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const y={endTimestamp:$t()*1e3,startTimestamp:a,xhr:n,virtualError:i};gn("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[xs];return _&&rr(w)&&rr(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[xs];if(!i)return t.apply(n,s);s[0]!==void 0&&(i.body=s[0]);const a={startTimestamp:$t()*1e3,xhr:n};return gn("xhr",a),t.apply(n,s)}})}function WC(e){if(rr(e))return e;try{return e.toString()}catch{}}const jd=[],hl=new Map;function qC(){if(Pd()&&Ft){const t=VC();return()=>{t()}}return()=>{}}const Vy={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 VC(){return Ly(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(_=>_.duration===e.value&&Vy[_.name]);if(!t)return;const{interactionId:n}=t,s=Vy[t.name],i=ot(Ft+t.startTime),a=ot(e.value),c=vt(),d=c?bt(c):void 0,h=(n!=null?hl.get(n):void 0)||d,y=h?Fe(h).description:Ve().getScopeData().transactionName,g=or(t.target),w=dt({[gt]:"auto.http.browser.inp",[ms]:`ui.interaction.${s}`,[sd]:t.duration}),E=$y({name:g,transaction:y,attributes:w,startTime:i});E&&(E.addEvent("inp",{[Ga]:"millisecond",[Ya]:e.value}),E.end(i+a))})}function GC(e){const t=({entries:n})=>{const s=vt(),i=s&&bt(s);n.forEach(a=>{if(!mC(a)||!i)return;const c=a.interactionId;if(c!=null&&!hl.has(c)){if(jd.length>10){const d=jd.shift();hl.delete(d)}jd.push(c),hl.set(c,i)}})};fo("event",t),fo("first-input",t)}function YC(e,t=Hy("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 Wy("fetch"),Wa("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 Wy("fetch"),n-=c,s--,Wa(f)}}return Cb(e,i)}const KC=30,QC=50;function Dd(e,t,n,s){const i={filename:e,function:t==="<anonymous>"?fs:t,in_app:!0};return n!==void 0&&(i.lineno=n),s!==void 0&&(i.colno=s),i}const XC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,JC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ZC=/\((\S*)(?::(\d+))(?::(\d+))\)/,eR=[KC,e=>{const t=XC.exec(e);if(t){const[,s,i,a]=t;return Dd(s,fs,+i,+a)}const n=JC.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=ZC.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[i,a]=Gy(n[1]||fs,n[2]);return Dd(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rR=Fm(...[eR,[QC,e=>{const t=tR.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=nR.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]||fs;return[i,s]=Gy(i,s),Dd(s,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Gy=(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]:fs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ml=1024,sR="Breadcrumbs",oR=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:sR,setup(n){t.console&&Xb(lR(n)),t.dom&&zy(aR(n,t.dom)),t.xhr&&qy(cR(n)),t.fetch&&Sy(uR(n)),t.history&&fl(dR(n)),t.sentry&&n.on("beforeSendEvent",iR(n))}}};function iR(e){return function(n){Ae()===e&&Mr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ar(n)},{event:n})}}function aR(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>ml&&(qn&&X.warn(`\`dom.maxStringLength\` cannot exceed ${ml}, but a value of ${d} was configured. Sentry will use ${ml} instead.`),d=ml),typeof c=="string"&&(c=[c]);try{const h=s.event,y=fR(h)?h.target:h;i=or(y,{keyAttrs:c,maxStringLength:d}),a=Km(y)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${s.name}`,message:i};a&&(f.data={"ui.component_name":a}),Mr(f,{event:s.event,name:s.name,global:s.global})}}function lR(e){return function(n){if(Ae()!==e)return;const s={category:"console",data:{arguments:n.args,logger:"console"},level:py(n.level),message:Qm(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)s.message=`Assertion failed: ${Qm(n.args.slice(1)," ")||"console.assert"}`,s.data.arguments=n.args.slice(1);else return;Mr(s,{input:n.args,level:n.level})}}function cR(e){return function(n){if(Ae()!==e)return;const{startTimestamp:s,endTimestamp:i}=n,a=n.xhr[xs];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=yy(f);Mr({category:"xhr",data:y,type:"http",level:w},g)}}function uR(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};Mr({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=yy(c.status_code);Mr({category:"fetch",data:c,type:"http",level:f},d)}}}function dR(e){return function(n){if(Ae()!==e)return;let s=n.from,i=n.to;const a=_s(Se.location.href);let c=s?_s(s):void 0;const d=_s(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),Mr({category:"navigation",data:{from:s,to:i}})}}function fR(e){return!!e&&!!e.target}const pR=["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"],hR="BrowserApiErrors",mR=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:hR,setupOnce(){t.setTimeout&&Gt(Se,"setTimeout",Yy),t.setInterval&&Gt(Se,"setInterval",Yy),t.requestAnimationFrame&&Gt(Se,"requestAnimationFrame",gR),t.XMLHttpRequest&&"XMLHttpRequest"in Se&&Gt(XMLHttpRequest.prototype,"send",yR);const n=t.eventTarget;n&&(Array.isArray(n)?n:pR).forEach(vR)}}};function Yy(e){return function(...t){const n=t[0];return t[0]=ao(n,{mechanism:{data:{function:nr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function gR(e){return function(t){return e.apply(this,[ao(t,{mechanism:{data:{function:"requestAnimationFrame",handler:nr(e)},handled:!1,type:"instrument"}})])}}function yR(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gt(n,i,function(a){const c={mechanism:{data:{function:i,handler:nr(a)},handled:!1,type:"instrument"}},d=Qu(a);return d&&(c.mechanism.data.handler=nr(d)),ao(a,c)})}),e.apply(this,t)}}function vR(e){const n=Se[e],s=n&&n.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(Gt(s,"addEventListener",function(i){return function(a,c,d){try{SR(c)&&(c.handleEvent=ao(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:nr(c),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[a,ao(c,{mechanism:{data:{function:"addEventListener",handler:nr(c),target:e},handled:!1,type:"instrument"}}),d])}}),Gt(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 SR(e){return typeof e.handleEvent=="function"}const wR=()=>({name:"BrowserSession",setupOnce(){if(typeof Se.document>"u"){qn&&X.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Gg({ignoreDuration:!0}),Qg(),fl(({from:e,to:t})=>{e!==void 0&&e!==t&&(Gg({ignoreDuration:!0}),Qg())})}}),_R="GlobalHandlers",ER=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_R,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(xR(n),Ky("onerror")),t.onunhandledrejection&&(kR(n),Ky("onunhandledrejection"))}}};function xR(e){Um(t=>{const{stackParser:n,attachStacktrace:s}=Qy();if(Ae()!==e||xy())return;const{msg:i,url:a,line:c,column:d,error:f}=t,h=IR(Ed(n,f||i,void 0,s,!1),a,c,d);h.level="error",qg(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})})}function kR(e){Hm(t=>{const{stackParser:n,attachStacktrace:s}=Qy();if(Ae()!==e||xy())return;const i=TR(t),a=Ku(i)?bR(i):Ed(n,i,void 0,s,!0);a.level="error",qg(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function TR(e){if(Ku(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 bR(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function IR(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=rr(t)&&t.length>0?t:Ym();return f.length===0&&f.push({colno:h,filename:g,function:fs,in_app:!0,lineno:y}),e}function Ky(e){qn&&X.log(`Global Handler attached: ${e}`)}function Qy(){const e=Ae();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const CR=()=>({name:"HttpContext",preprocessEvent(e){if(!Se.navigator&&!Se.location&&!Se.document)return;const t=e.request&&e.request.url||Se.location&&Se.location.href,{referrer:n}=Se.document||{},{userAgent:s}=Se.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}}),RR="cause",AR=5,OR="LinkedErrors",PR=(e={})=>{const t=e.limit||AR,n=e.key||RR;return{name:OR,preprocessEvent(s,i,a){const c=a.getOptions();Kb(Sd,c.stackParser,c.maxValueLength,n,t,s,i)}}};function NR(e){const t=[$b(),Lb(),mR(),oR(),ER(),PR(),eI(),CR()];return e.autoSessionTracking!==!1&&t.push(wR()),t}function MR(e={}){const t={defaultIntegrations:NR(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Se.SENTRY_RELEASE&&Se.SENTRY_RELEASE.id?Se.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function LR(){const e=typeof Se.window<"u"&&Se;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],s=n&&n.runtime&&n.runtime.id,i=Se.location&&Se.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!s&&Se===Se.top&&a.some(f=>i.startsWith(`${f}//`)),d=typeof e.nw<"u";return!!s&&!c&&!d}function jR(e={}){const t=MR(e);if(!t.skipBrowserExtensionCheck&&LR()){br(()=>{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}qn&&(vy()||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:wk(t.stackParser||rR),integrations:mb(t),transport:t.transport||YC};return _b(LI,n)}const Ge=Ne,$d="sentryReplaySession",DR="replay_event",Fd="Unable to send Replay",$R=3e5,FR=9e5,BR=5e3,zR=5500,UR=6e4,HR=5e3,WR=3,Xy=15e4,gl=5e3,qR=3e3,VR=300,Bd=2e7,GR=4999,YR=15e3,Jy=36e5;function zd(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 ft;(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"})(ft||(ft={}));function KR(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 QR(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 XR(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 yl(e){try{const t=e.rules||e.cssRules;return t?QR(Array.from(t,Zy).join("")):null}catch{return null}}function JR(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 Zy(e){let t;if(e2(e))try{t=yl(e.styleSheet)||XR(e)}catch{}else if(t2(e)){let n=e.cssText;const s=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=JR(e)),s&&(n=ZR(n)),s||i)return n}return t||e.cssText}function ZR(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function e2(e){return"styleSheet"in e}function t2(e){return"selectorText"in e}class e0{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 zd(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 n2(){return new e0}function vl({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 mo(e){return e.toLowerCase()}function Ud(e){return e.toUpperCase()}const t0="__rrweb_original__";function r2(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=t0 in a?a[t0]: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 Hd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?mo(t):null}function Sl(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function n0(e,t){let n;try{n=new URL(e,zd(t,()=>window.location.href))}catch{return null}const s=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(s);return zd(wi([i,"optionalAccess",a=>a[1]]),()=>null)}const r0={};function s0(e){const t=r0[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 r0[e]=s.bind(window)}function Wd(...e){return s0("setTimeout")(...e)}function o0(...e){return s0("clearTimeout")(...e)}function i0(e){try{return e.contentDocument}catch{}}let s2=1;const o2=new RegExp("[^a-z0-9-_:]"),ki=-2;function qd(){return s2++}function i2(e){if(e instanceof HTMLFormElement)return"form";const t=mo(e.tagName);return o2.test(t)?"div":t}function a2(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let go,a0;const l2=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,c2=/^(?:[a-z+]+:)?\/\//i,u2=/^www\..*/i,d2=/^(data:)([^,]*),(.*)/i;function wl(e,t){return(e||"").replace(l2,(n,s,i,a,c,d)=>{const f=i||c||d,h=s||a||"";if(!f)return n;if(c2.test(f)||u2.test(f))return`url(${h}${f}${h})`;if(d2.test(f))return`url(${h}${f}${h})`;if(f[0]==="/")return`url(${h}${a2(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 f2=/^[^ \t\n\r\u000c]+/,p2=/^[, \t\n\r\u000c]+/;function h2(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(p2),!(n>=t.length);){let a=s(f2);if(a.slice(-1)===",")a=yo(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=yo(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 l0=new WeakMap;function yo(e,t){return!t||t.trim()===""?t:_l(e,t)}function m2(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function _l(e,t){let n=l0.get(e);if(n||(n=e.createElement("a"),l0.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function c0(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")?yo(e,s):n==="srcset"?h2(e,s):n==="style"?wl(s,_l(e)):t==="object"&&n==="data"?yo(e,s):typeof a=="function"?a(n,s,i):s)}function u0(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function g2(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 y2(e,t){for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!1}function ks(e,t,n=1/0,s=0){return!e||e.nodeType!==e.ELEMENT_NODE||s>n?-1:t(e)?s:ks(e.parentNode,t,n,s+1)}function vo(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(y2(s,e))return!0}return!!(t&&s.matches(t))}catch{return!1}}}function So(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=ks(c,vo(s,i)),f<0)return!0;d=ks(c,vo(t,n),f>=0?f:1/0)}else{if(d=ks(c,vo(t,n)),d<0)return!1;f=ks(c,vo(s,i),d>=0?d:1/0)}return d>=0?f>=0?d<=f:!0:f>=0?!1:!!a}catch{}return!!a}function v2(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=Wd(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{o0(d),i=!0,t()});return}const c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return Wd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function S2(e,t,n){let s=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=Wd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{o0(a),s=!0,t()})}function w2(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=_2(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ft.Document,childNodes:[],compatMode:e.compatMode}:{type:ft.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ft.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return x2(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 E2(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:ft.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:ft.Comment,textContent:e.textContent||"",rootId:M};default:return!1}}function _2(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function E2(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=yl(e.parentNode.sheet))}catch(O){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${O}`,e)}w=wl(w,_l(t.doc))}_&&(w="SCRIPT_PLACEHOLDER");const k=So(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=vl({type:null,tagName:g,maskInputOptions:f});w=xi({isMasked:So(e,s,a,i,c,O),element:e,value:w,maskInputFn:h})}return{type:ft.Text,textContent:w||"",isStyle:E,rootId:y}}function x2(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=g2(e,s,i,a),M=i2(e);let L={};const U=e.attributes.length;for(let K=0;K<U;K++){const oe=e.attributes[K];oe.name&&!u0(M,oe.name,oe.value)&&(L[oe.name]=c0(n,M,mo(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=yl(K)),oe&&(L.rel=null,L.href=null,L.crossorigin=null,L._cssText=wl(oe,K.href))}if(M==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const K=yl(e.sheet);K&&(L._cssText=wl(K,_l(n)))}if(M==="input"||M==="textarea"||M==="select"||M==="option"){const K=e,oe=Hd(K),ae=Sl(K,Ud(M),oe),ye=K.checked;if(oe!=="submit"&&oe!=="button"&&ae){const Ie=So(K,O,$,R,H,vl({type:oe,tagName:Ud(M),maskInputOptions:d}));L.value=xi({isMasked:Ie,element:K,value:ae,maskInputFn:h})}ye&&(L.checked=ye)}if(M==="option"&&(e.selected&&!d.select?L.selected=!0:delete L.selected),M==="canvas"&&w){if(e.__context==="2d")r2(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){go||(go=n.createElement("canvas"),a0=go.getContext("2d"));const K=e,oe=K.currentSrc||K.getAttribute("src")||"<unknown-src>",ae=K.crossOrigin,ye=()=>{K.removeEventListener("load",ye);try{go.width=K.naturalWidth,go.height=K.naturalHeight,a0.drawImage(K,0,0),L.rr_dataURL=go.toDataURL(y.type,y.quality)}catch(Ie){if(K.crossOrigin!=="anonymous"){K.crossOrigin="anonymous",K.complete&&K.naturalWidth!==0?ye():K.addEventListener("load",ye);return}else console.warn(`Cannot inline img src=${oe}! Error: ${Ie}`)}K.crossOrigin==="anonymous"&&(ae?L.crossOrigin=ae:K.removeAttribute("crossorigin"))};K.complete&&K.naturalWidth!==0?ye():K.addEventListener("load",ye)}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&&!i0(e)&&(L.rr_src=L.src),delete L.src);let te;try{customElements.get(M)&&(te=!0)}catch{}return{type:ft.Element,tagName:M,attributes:L,childNodes:[],isSVG:m2(e)||void 0,needBlock:z,rootId:x,isCustom:te}}function Ye(e){return e==null?"":e.toLowerCase()}function k2(e,t){if(t.comment&&e.type===ft.Comment)return!0;if(e.type===ft.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"&&n0(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ye(e.attributes.name)==="application-name"||Ye(e.attributes.rel)==="icon"||Ye(e.attributes.rel)==="apple-touch-icon"||Ye(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ye(e.attributes.property).match(/^(og|twitter|fb):/)||Ye(e.attributes.name).match(/^(og|twitter):/)||Ye(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ye(e.attributes.name)==="robots"||Ye(e.attributes.name)==="googlebot"||Ye(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ye(e.attributes.name)==="author"||Ye(e.attributes.name)==="generator"||Ye(e.attributes.name)==="framework"||Ye(e.attributes.name)==="publisher"||Ye(e.attributes.name)==="progid"||Ye(e.attributes.property).match(/^article:/)||Ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ye(e.attributes.name)==="google-site-verification"||Ye(e.attributes.name)==="yandex-verification"||Ye(e.attributes.name)==="csrf-token"||Ye(e.attributes.name)==="p:domain_verify"||Ye(e.attributes.name)==="verify-v1"||Ye(e.attributes.name)==="verification"||Ye(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function wo(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:ye=!0}=t;const Ie=w2(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(!Ie)return console.warn(e,"not serialized"),null;let He;s.hasNode(e)?He=s.getId(e):k2(Ie,R)||!ye&&Ie.type===ft.Text&&!Ie.isStyle&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?He=ki:He=qd();const ce=Object.assign(Ie,{id:He});if(s.add(e,ce),He===ki)return null;M&&M(e);let ke=!w;if(ce.type===ft.Element){ke=ke&&!ce.needBlock,delete ce.needBlock;const W=e.shadowRoot;W&&Ei(W)&&(ce.isShadowHost=!0)}if((ce.type===ft.Document||ce.type===ft.Element)&&ke){R.headWhitespace&&ce.type===ft.Element&&ce.tagName==="head"&&(ye=!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:ye,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe};for(const re of Array.from(e.childNodes)){const J=wo(re,W);J&&ce.childNodes.push(J)}if(KR(e)&&e.shadowRoot)for(const re of Array.from(e.shadowRoot.childNodes)){const J=wo(re,W);J&&(Ei(e.shadowRoot)&&(J.isShadow=!0),ce.childNodes.push(J))}}return e.parentNode&&_i(e.parentNode)&&Ei(e.parentNode)&&(ce.isShadow=!0),ce.type===ft.Element&&ce.tagName==="iframe"&&v2(e,()=>{const W=i0(e);if(W&&L){const re=wo(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:ye,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe});re&&L(e,re)}},U),ce.type===ft.Element&&ce.tagName==="link"&&typeof ce.attributes.rel=="string"&&(ce.attributes.rel==="stylesheet"||ce.attributes.rel==="preload"&&typeof ce.attributes.href=="string"&&n0(ce.attributes.href)==="css")&&S2(e,()=>{if(te){const W=wo(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:ye,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:U,onStylesheetLoad:te,stylesheetLoadTimeout:K,keepIframeSrcFn:oe});W&&te(e,W)}},K),ce}function T2(e,t){const{mirror:n=new e0,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 wo(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 Lr(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 Bt(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const _o=`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 d0={map:{},getId(){return console.error(_o),-1},getNode(){return console.error(_o),null},removeNodeFromMap(){console.error(_o)},has(){return console.error(_o),!1},reset(){console.error(_o)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(d0=new Proxy(d0,{get(e,t,n){return t==="map"&&console.error(_o),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&&(P2(s),s=null),i=c,e.apply(f,a)):!s&&n.trailing!==!1&&(s=xl(()=>{i=n.leading===!1?0:Date.now(),s=null,e.apply(f,a)},d))}}function f0(e,t,n,s,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?n:{set(c){xl(()=>{n.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>f0(e,t,a||{},!0)}function Vd(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 El=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(El=()=>new Date().getTime());function p0(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Lr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Lr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Lr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Lr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Lr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Lr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function h0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function m0(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function g0(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=g0(e);if(!a)return!1;const c=vo(t,n);if(!i){const h=s&&a.matches(s);return c(a)&&!h}const d=ks(a,c);let f=-1;return d<0?!1:(s&&(f=ks(a,vo(null,s))),d>-1&&f<0?!0:d<f)}function b2(e,t){return t.getId(e)!==-1}function Gd(e,t){return t.getId(e)===ki}function y0(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?y0(e.parentNode,t):!0:!0}function Yd(e){return!!e.changedTouches}function I2(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 v0(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function S0(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Kd(e){return!!Lr([e,"optionalAccess",t=>t.shadowRoot])}class C2{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return wI(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 w0(e){let t=null;return Lr([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 R2(e){let t=e,n;for(;n=w0(t);)t=n;return t}function A2(e){const t=e.ownerDocument;if(!t)return!1;const n=R2(e);return t.contains(n)}function _0(e){const t=e.ownerDocument;return t?t.contains(e)||A2(e):!1}const E0={};function Qd(e){const t=E0[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 E0[e]=s.bind(window)}function O2(...e){return Qd("requestAnimationFrame")(...e)}function xl(...e){return Qd("setTimeout")(...e)}function P2(...e){return Qd("clearTimeout")(...e)}var Te=(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))(Te||{}),ge=(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))(ge||{}),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||{}),ur=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ur||{}),x0;(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"})(x0||(x0={}));var k0;(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"})(k0||(k0={}));function Xd(e){try{return e.contentDocument}catch{}}function N2(e){try{return e.contentWindow}catch{}}function M2(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 T0(e){return"__ln"in e}class L2{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=M2([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&T0(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&&T0(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 b0=(e,t)=>`${e}@${t}`;class j2{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 L2,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||!_0(f))return;const h=_i(f.parentNode)?this.mirror.getId(w0(f)):this.mirror.getId(f.parentNode),y=i(f);if(h===-1||y===-1)return s.addNode(f);const g=wo(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=>{v0(w,this.mirror)&&!on(w,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(w),S0(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),Kd(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)I0(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||a(f);for(const f of this.addedSet)!C0(this.droppedSet,f)&&!I0(this.removes,f,this.mirror)||C0(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(!Gd(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:So(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,g0(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=Hd(n),d=n.tagName;i=Sl(n,d,c);const f=vl({maskInputOptions:this.maskInputOptions,tagName:d,type:c}),h=So(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(!Xd(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"),!u0(n.tagName,s)&&(a.attributes[s]=c0(this.doc,mo(n.tagName),mo(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)||Gd(n,this.mirror)||!b2(n,this.mirror)||(this.addedSet.has(n)?(Jd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&s===-1||y0(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[b0(s,i)]?Jd(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(Gd(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[b0(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)),Kd(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 Jd(e,t){e.delete(t),t.childNodes.forEach(n=>Jd(e,n))}function I0(e,t,n){return e.length===0?!1:D2(e,t,n)}function D2(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 C0(e,t){return e.size===0?!1:R0(e,t)}function R0(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:R0(e,n):!1}let bi;function $2(e){bi=e}function F2(){bi=void 0}const Le=e=>bi?(...n)=>{try{return e(...n)}catch(s){if(bi&&bi(s)===!0)return()=>{};throw s}}:e;function On(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 Eo=[];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 A0(e,t){const n=new j2;Eo.push(n),n.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=On([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 B2({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:_}=Yd(g)?g.changedTouches[0]:g;d||(d=El()),c.push({x:E,y:_,id:s.getId(w),timeOffset:El()-d}),f(typeof DragEvent<"u"&&g instanceof DragEvent?ge.Drag:g instanceof MouseEvent?ge.MouseMove:ge.TouchMove)}),i,{trailing:!1})),y=[Bt("mousemove",h,n),Bt("touchmove",h,n),Bt("drag",h,n)];return Le(()=>{y.forEach(g=>g())})}function z2({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":_=ur.Mouse;break;case"touch":_=ur.Touch;break;case"pen":_=ur.Pen;break}_===ur.Touch?zt[g]===zt.MouseDown?x="TouchStart":zt[g]===zt.MouseUp&&(x="TouchEnd"):ur.Pen}else Yd(w)&&(_=ur.Touch);_!==null?(h=_,(x.startsWith("Touch")&&_===ur.Touch||x.startsWith("Mouse")&&_===ur.Mouse)&&(_=null)):zt[g]===zt.Click&&(_=h,h=null);const k=Yd(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=mo(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(Bt(w,E,t))}),Le(()=>{f.forEach(g=>g())})}function O0({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=p0(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 Bt("scroll",d,t)}function U2({viewportResizeCb:e},{win:t}){let n=-1,s=-1;const i=Le(Ti(Le(()=>{const a=h0(),c=m0();(n!==a||s!==c)&&(e({width:Number(c),height:Number(a)}),n=a,s=c)}),200));return Bt("resize",i,t)}const H2=["INPUT","TEXTAREA","SELECT"],P0=new WeakMap;function W2({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&&Ud(U.tagName);if(K==="OPTION"&&(U=U.parentElement),!U||!K||H2.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=Hd(U);let ye=Sl(oe,K,ae),Ie=!1;const He=vl({maskInputOptions:f,tagName:K,type:ae}),ce=So(U,w,_,E,x,He);(ae==="radio"||ae==="checkbox")&&(Ie=U.checked),ye=xi({isMasked:ce,element:U,value:ye,maskInputFn:h}),O(U,g?{text:ye,isChecked:Ie,userTriggered:te}:{text:ye,isChecked:Ie});const ke=U.name;ae==="radio"&&ke&&Ie&&t.querySelectorAll(`input[type="radio"][name="${ke}"]`).forEach(W=>{if(W!==U){const re=xi({isMasked:ce,element:W,value:Sl(W,K,ae),maskInputFn:h});O(W,g?{text:re,isChecked:!Ie,userTriggered:!1}:{text:re,isChecked:!Ie})}})}function O(L,U){const te=P0.get(L);if(!te||te.text!==U.text||te.isChecked!==U.isChecked){P0.set(L,U);const K=n.getId(L);Le(e)({...U,id:K})}}const $=(y.input==="last"?["change"]:["input","change"]).map(L=>Bt(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=>f0(L[0],L[1],{set(){Le(k)({target:this,isTrusted:!1})}},!1,H))),Le(()=>{$.forEach(L=>L())})}function kl(e){const t=[];function n(s,i){if(Tl("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||Tl("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||Tl("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||Tl("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 jr(e,t,n){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:s}):{}}function q2({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}=jr(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}=jr(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}=jr(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}=jr(g,t,n.styleMirror);return(_&&_!==-1||x&&x!==-1)&&e({id:_,styleId:x,replaceSync:E}),y.apply(g,w)})}));const f={};bl("CSSGroupingRule")?f.CSSGroupingRule=s.CSSGroupingRule:(bl("CSSMediaRule")&&(f.CSSMediaRule=s.CSSMediaRule),bl("CSSConditionRule")&&(f.CSSConditionRule=s.CSSConditionRule),bl("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}=jr(E.parentStyleSheet,t,n.styleMirror);return(O&&O!==-1||R&&R!==-1)&&e({id:O,styleId:R,adds:[{rule:x,index:[...kl(E),k||0]}]}),w.apply(E,_)})}),g.prototype.deleteRule=new Proxy(h[y].deleteRule,{apply:Le((w,E,_)=>{const[x]=_,{id:k,styleId:O}=jr(E.parentStyleSheet,t,n.styleMirror);return(k&&k!==-1||O&&O!==-1)&&e({id:k,styleId:O,removes:[{index:[...kl(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 N0({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"?On([n,"access",c=>c.defaultView,"optionalAccess",c=>c.Document]):On([n,"access",c=>c.ownerDocument,"optionalAccess",c=>c.defaultView,"optionalAccess",c=>c.ShadowRoot]),a=On([i,"optionalAccess",c=>c.prototype])?Object.getOwnPropertyDescriptor(On([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 On([a,"access",c=>c.get,"optionalAccess",c=>c.call,"call",c=>c(this)])},set(c){const d=On([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 V2({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:_}=jr(On([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:kl(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}=jr(On([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:kl(f.parentRule)}),d.apply(f,h)})}),Le(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function G2({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=[Bt("play",d(0),c),Bt("pause",d(1),c),Bt("seeked",d(2),c),Bt("volumechange",d(3),c),Bt("ratechange",d(4),c)];return Le(()=>{f.forEach(h=>h())})}function Y2({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=Vd(t.fonts,"add",function(d){return function(f){return xl(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 K2(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&&On([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(),Bt("selectionchange",f)}function Q2({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Vd(n.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch{}return i.apply(this,[a,c,d])}})}function X2(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;e.recordDOM&&(s=A0(e,e.doc));const i=B2(e),a=z2(e),c=O0(e),d=U2(e,{win:n}),f=W2(e),h=G2(e);let y=()=>{},g=()=>{},w=()=>{},E=()=>{};e.recordDOM&&(y=q2(e,{win:n}),g=N0(e,e.doc),w=V2(e,{win:n}),e.collectFonts&&(E=Y2(e)));const _=K2(e),x=Q2(e),k=[];for(const O of e.plugins)k.push(O.observer(O.callback,n,O.options));return Le(()=>{Eo.forEach(O=>O.reset()),On([s,"optionalAccess",O=>O.disconnect,"call",O=>O()]),i(),a(),c(),d(),f(),h(),y(),g(),w(),E(),_(),x(),k.forEach(O=>O())})}function Tl(e){return typeof window[e]<"u"}function bl(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Zd{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 M0(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 J2{constructor(){this.crossOriginIframeMirror=new Zd(qd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Z2{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Zd(qd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Zd(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}),M0([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]);const s=Xd(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 Te.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:Te.IncrementalSnapshot,data:{source:ge.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Te.Meta:case Te.Load:case Te.DomContentLoaded:return!1;case Te.Plugin:return n;case Te.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Te.IncrementalSnapshot:switch(n.data.source){case ge.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 ge.Drag:case ge.TouchMove:case ge.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case ge.ViewportResize:return!1;case ge.MediaInteraction:case ge.MouseInteraction:case ge.Scroll:case ge.CanvasMutation:case ge.Input:return this.replaceIds(n.data,t,["id"]),n;case ge.StyleSheetRule:case ge.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ge.Font:return n;case ge.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case ge.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),M0([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!==ft.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,n)})}}class eA{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tA{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=A0({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(O0({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),xl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(N0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Xd(t),s=N2(t);!n||!s||this.patchAttachShadow(s.Element,n)}patchAttachShadow(t,n){const s=this;this.restoreHandlers.push(Vd(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a);return this.shadowRoot&&_0(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 L0{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class nA{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new C2,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:Zy(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 rA{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,O2(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let nt,Il;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=sl([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 Pn=n2();function dr(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:ye=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Ie=!1,collectFonts:He=!1,inlineImages:ce=!1,plugins:ke,keepIframeSrcFn:W=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:J,onMutation:A,getCanvasManager:q}=e;$2(J);const ve=ae?window.parent===window:!0;let we=!1;if(!ve)try{window.parent.document&&(we=!1)}catch{we=!0}if(ve&&!t)throw new Error("emit function is required");if(!ve&&!we)return()=>{};te!==void 0&&L.mousemove===void 0&&(L.mousemove=te),Pn.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||{};I2();let ze,De=0;const qe=Re=>{for(const _t of ke||[])_t.eventProcessor&&(Re=_t.eventProcessor(Re));return M&&!we&&(Re=M(Re)),Re};nt=(Re,_t)=>{const Ce=Re;if(Ce.timestamp=El(),sl([Eo,"access",Ke=>Ke[0],"optionalAccess",Ke=>Ke.isFrozen,"call",Ke=>Ke()])&&Ce.type!==Te.FullSnapshot&&!(Ce.type===Te.IncrementalSnapshot&&Ce.data.source===ge.Mutation)&&Eo.forEach(Ke=>Ke.unfreeze()),ve)sl([t,"optionalCall",Ke=>Ke(qe(Ce),_t)]);else if(we){const Ke={type:"rrweb",event:qe(Ce),origin:window.location.origin,isCheckout:_t};window.parent.postMessage(Ke,"*")}if(Ce.type===Te.FullSnapshot)ze=Ce,De=0;else if(Ce.type===Te.IncrementalSnapshot){if(Ce.data.source===ge.Mutation&&Ce.data.isAttachIframe)return;De++;const Ke=s&&De>=s,je=n&&ze&&Ce.timestamp-ze.timestamp>n;(Ke||je)&&Ls(!0)}};const wt=Re=>{nt({type:Te.IncrementalSnapshot,data:{source:ge.Mutation,...Re}})},Ps=Re=>nt({type:Te.IncrementalSnapshot,data:{source:ge.Scroll,...Re}}),fc=Re=>nt({type:Te.IncrementalSnapshot,data:{source:ge.CanvasMutation,...Re}}),Oo=Re=>nt({type:Te.IncrementalSnapshot,data:{source:ge.AdoptedStyleSheet,...Re}}),Mn=new nA({mutationCb:wt,adoptedStyleSheetCb:Oo}),Kn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new J2:new Z2({mirror:Pn,mutationCb:wt,stylesheetManager:Mn,recordCrossOriginIframes:ae,wrappedEmit:nt});for(const Re of ke||[])Re.getMirror&&Re.getMirror({nodeMirror:Pn,crossOriginIframeMirror:Kn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Kn.crossOriginIframeStyleMirror});const Po=new rA,Ns=oA(q,{mirror:Pn,win:window,mutationCb:Re=>nt({type:Te.IncrementalSnapshot,data:{source:ge.CanvasMutation,...Re}}),recordCanvas:oe,blockClass:i,blockSelector:a,unblockSelector:c,maxCanvasSize:z,sampling:L.canvas,dataURLOptions:U,errorHandler:J}),Ms=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new eA:new tA({mutationCb:wt,scrollCb:Ps,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:ce,sampling:L,slimDOMOptions:Pe,iframeManager:Kn,stylesheetManager:Mn,canvasManager:Ns,keepIframeSrcFn:W,processedNodeManager:Po},mirror:Pn}),Ls=(Re=!1)=>{if(!K)return;nt({type:Te.Meta,data:{href:window.location.href,width:m0(),height:h0()}},Re),Mn.reset(),Ms.init(),Eo.forEach(Ce=>Ce.lock());const _t=T2(document,{mirror:Pn,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:ce,onSerialize:Ce=>{v0(Ce,Pn)&&Kn.addIframe(Ce),S0(Ce,Pn)&&Mn.trackLinkElement(Ce),Kd(Ce)&&Ms.addShadowRoot(Ce.shadowRoot,document)},onIframeLoad:(Ce,Ke)=>{Kn.attachIframe(Ce,Ke),Ce.contentWindow&&Ns.addWindow(Ce.contentWindow),Ms.observeAttachShadow(Ce)},onStylesheetLoad:(Ce,Ke)=>{Mn.attachLinkElement(Ce,Ke)},keepIframeSrcFn:W});if(!_t)return console.warn("Failed to snapshot the document");nt({type:Te.FullSnapshot,data:{node:_t,initialOffset:p0(window)}}),Eo.forEach(Ce=>Ce.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Mn.adoptStyleSheets(document.adoptedStyleSheets,Pn.getId(document))};Il=Ls;try{const Re=[],_t=Ke=>Le(X2)({onMutation:A,mutationCb:wt,mousemoveCb:(je,Qn)=>nt({type:Te.IncrementalSnapshot,data:{source:Qn,positions:je}}),mouseInteractionCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.MouseInteraction,...je}}),scrollCb:Ps,viewportResizeCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.ViewportResize,...je}}),inputCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.Input,...je}}),mediaInteractionCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.MediaInteraction,...je}}),styleSheetRuleCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.StyleSheetRule,...je}}),styleDeclarationCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.StyleDeclaration,...je}}),canvasMutationCb:fc,fontCb:je=>nt({type:Te.IncrementalSnapshot,data:{source:ge.Font,...je}}),selectionCb:je=>{nt({type:Te.IncrementalSnapshot,data:{source:ge.Selection,...je}})},customElementCb:je=>{nt({type:Te.IncrementalSnapshot,data:{source:ge.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:ce,userTriggeredOnInput:Ie,collectFonts:He,doc:Ke,maskAttributeFn:R,maskInputFn:$,maskTextFn:H,keepIframeSrcFn:W,blockSelector:a,unblockSelector:c,slimDOMOptions:Pe,dataURLOptions:U,mirror:Pn,iframeManager:Kn,stylesheetManager:Mn,shadowDomManager:Ms,processedNodeManager:Po,canvasManager:Ns,ignoreCSSAttributes:re,plugins:sl([ke,"optionalAccess",je=>je.filter,"call",je=>je(Qn=>Qn.observer),"optionalAccess",je=>je.map,"call",je=>je(Qn=>({observer:Qn.observer,options:Qn.options,callback:pc=>nt({type:Te.Plugin,data:{plugin:Qn.name,payload:pc}})}))])||[]},{});Kn.addLoadListener(Ke=>{try{Re.push(_t(Ke.contentDocument))}catch(je){console.warn(je)}});const Ce=()=>{Ls(),Re.push(_t(document))};return document.readyState==="interactive"||document.readyState==="complete"?Ce():(Re.push(Bt("DOMContentLoaded",()=>{nt({type:Te.DomContentLoaded,data:{}}),ye==="DOMContentLoaded"&&Ce()})),Re.push(Bt("load",()=>{nt({type:Te.Load,data:{}}),ye==="load"&&Ce()},window))),()=>{Re.forEach(Ke=>Ke()),Po.destroy(),Il=void 0,F2()}}catch(Re){console.warn(Re)}}function sA(e){if(!Il)throw new Error("please take full snapshot after start recording");Il(e)}dr.mirror=Pn,dr.takeFullSnapshot=sA;function oA(e,t){try{return e?e(t):new L0}catch{return console.warn("Unable to initialize CanvasManager"),new L0}}const iA=3,aA=5;function ef(e){return e>9999999999?e:e*1e3}function tf(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:Te.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Rn(t,10,1e3)}}),t.category==="console")))}const lA="button,a";function j0(e){return e.closest(lA)||e}function D0(e){const t=$0(e);return!t||!(t instanceof Element)?t:j0(t)}function $0(e){return cA(e)?e.target:e}function cA(e){return typeof e=="object"&&!!e&&"target"in e}let Dr;function uA(e){return Dr||(Dr=[],dA()),Dr.push(e),()=>{const t=Dr?Dr.indexOf(e):-1;t>-1&&Dr.splice(t,1)}}function dA(){Gt(Ge,"open",function(e){return function(...t){if(Dr)try{Dr.forEach(n=>n())}catch{}return e.apply(Ge,t)}})}const fA=new Set([ge.Mutation,ge.StyleSheetRule,ge.StyleDeclaration,ge.AdoptedStyleSheet,ge.CanvasMutation,ge.Selection,ge.MediaInteraction]);function pA(e,t,n){e.handleClick(t,n)}class hA{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=uA(()=>{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(gA(n,this._ignoreSelector)||!yA(t))return;const s={timestamp:tf(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=tf(t)}registerScroll(t=Date.now()){this._lastScroll=tf(t)}registerClick(t){const n=j0(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:Ge.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:Ge.location.href,route:n.getCurrentRoute(),clickCount:c,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ho(()=>this._checkClicks(),1e3)}}const mA=["A","BUTTON","INPUT"];function gA(e,t){return!!(!mA.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 yA(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function F0(){return Date.now()/1e3}function vA(e,t){try{if(!SA(t))return;const{source:n}=t.data;if(fA.has(n)&&e.registerMutation(t.timestamp),n===ge.Scroll&&e.registerScroll(t.timestamp),wA(t)){const{type:s,id:i}=t.data,a=dr.mirror.getNode(i);a instanceof HTMLElement&&s===zt.Click&&e.registerClick(a)}}catch{}}function SA(e){return e.type===iA}function wA(e){return e.data.source===ge.MouseInteraction}function Vn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Cl;(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"})(Cl||(Cl={}));const _A=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function EA(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(_A.has(n)){let s=n;(n==="data-testid"||n==="data-test-id")&&(s="testId"),t[s]=e[n]}return t}const xA=e=>t=>{if(!e.isEnabled())return;const n=kA(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&&pA(e.clickDetector,n,D0(t.event)),Ci(e,n)};function B0(e,t){const n=dr.mirror.getId(e),s=n&&dr.mirror.getNode(n),i=s&&dr.mirror.getMeta(s),a=i&&bA(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===Cl.Text&&c.textContent).filter(Boolean).map(c=>c.trim()).join(""),attributes:EA(a.attributes)}}:{}}}function kA(e){const{target:t,message:n}=TA(e);return Vn({category:`ui.${e.name}`,...B0(t,n)})}function TA(e){const t=e.name==="click";let n,s=null;try{s=t?D0(e.event):$0(e.event),n=or(s,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:s,message:n}}function bA(e){return e.type===Cl.Element}function IA(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=CA(t);n&&Ci(e,n)}function CA(e){const{metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a,target:c}=e;if(!c||RA(c)||!a)return null;const d=t||s||i,f=a.length===1;if(!d&&f)return null;const h=or(c,{maxStringLength:200})||"<unknown>",y=B0(c,h);return Vn({category:"ui.keyDown",message:h,data:{...y.data,metaKey:t,shiftKey:n,ctrlKey:s,altKey:i,key:a}})}function RA(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const AA={resource:LA,paint:NA,navigation:MA};function Rl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function OA(e){return e.map(PA).filter(Boolean)}function PA(e){const t=AA[e.entryType];return t?t(e):null}function xo(e){return((Ft||Ge.performance.timeOrigin)+e)/1e3}function NA(e){const{duration:t,entryType:n,name:s,startTime:i}=e,a=xo(i);return{type:n,name:s,start:a,end:a+t,data:void 0}}function MA(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:xo(E),end:xo(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 LA(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:xo(a),end:xo(i),name:s,data:{size:h,statusCode:f,decodedBodySize:c,encodedBodySize:d}}}function jA(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Al(e,"largest-contentful-paint",n)}function DA(e){return e.sources!==void 0}function $A(e){const t=[],n=[];for(const s of e.entries)if(DA(s)){const i=[];for(const a of s.sources)if(a.node){n.push(a.node);const c=dr.mirror.getId(a.node);c&&i.push(c)}t.push({value:s.value,nodeIds:i.length?i:void 0})}return Al(e,"cumulative-layout-shift",n,t)}function FA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Al(e,"first-input-delay",n)}function BA(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Al(e,"interaction-to-next-paint",n)}function Al(e,t,n,s){const i=e.value,a=e.rating,c=xo(i);return{type:"web-vital",name:t,start:c,end:c,data:{value:i,size:i,rating:a,nodeIds:n?n.map(d=>dr.mirror.getId(d)):void 0,attributions:s}}}function zA(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(fo(i,n))}),s.push(Ny(Rl(jA,e)),Ad(Rl($A,e)),My(Rl(FA,e)),Ly(Rl(BA,e))),()=>{s.forEach(i=>i())}}const pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,UA='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 HA(){const e=new Blob([UA]);return URL.createObjectURL(e)}const z0=["info","warn","error","log"],Ol="[Replay] ";function nf(e,t="info"){Mr({category:"console",data:{logger:"replay"},level:t,message:`${Ol}${e}`},{level:t})}function WA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:s=>{e=s.captureExceptions,t=s.traceInternals}};return pe?(z0.forEach(s=>{n[s]=(...i)=>{X[s](Ol,...i),t&&nf(i.join(""),py(s))}}),n.exception=(s,...i)=>{i.length&&n.error&&n.error(...i),X.error(Ol,s),e?An(s):t&&nf(s,"error")},n.infoTick=(...s)=>{X.info(Ol,...s),t&&setTimeout(()=>nf(s[0]),0)}):z0.forEach(s=>{n[s]=()=>{}}),n}const he=WA();class rf extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Bd}.`)}}class U0{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>Bd)throw new rf;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?ef(t):null}}class qA{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 VA{constructor(t){this._worker=new qA(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=ef(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const s=JSON.stringify(t);return this._totalSize+=s.length,this._totalSize>Bd?Promise.reject(new rf):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 GA{constructor(t){this._fallback=new U0,this._compression=new VA(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 YA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=KA(t);if(n)return n}return pe&&he.info("Using simple buffer"),new U0}function KA(e){try{const t=e||QA();if(!t)return;pe&&he.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new GA(n)}catch(t){pe&&he.exception(t,"Failed to create compression worker")}}function QA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?HA():""}function sf(){try{return"sessionStorage"in Ge&&!!Ge.sessionStorage}catch{return!1}}function XA(e){JA(),e.session=void 0}function JA(){if(sf())try{Ge.sessionStorage.removeItem($d)}catch{}}function H0(e){return e===void 0?!1:Math.random()<e}function W0(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 of(e){if(sf())try{Ge.sessionStorage.setItem($d,JSON.stringify(e))}catch{}}function ZA(e,t){return H0(e)?"session":t?"buffer":!1}function q0({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:s}={}){const i=ZA(e,t),a=W0({sampled:i,previousSessionId:s});return n&&of(a),a}function eO(){if(!sf())return null;try{const e=Ge.sessionStorage.getItem($d);if(!e)return null;const t=JSON.parse(e);return pe&&he.infoTick("Loading existing session"),W0(t)}catch{return null}}function af(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function V0(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:s=Date.now()}){return af(e.started,t,s)||af(e.lastActivity,n,s)}function G0(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!V0(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function lf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},s){const i=s.stickySession&&eO();return i?G0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(pe&&he.infoTick("Session in sessionStorage is expired, creating new one..."),q0(s,{previousSessionId:i.id})):i:(pe&&he.infoTick("Creating new session"),q0(s,{previousSessionId:n}))}function tO(e){return e.type===Te.Custom}function cf(e,t,n){return K0(e,t)?(Y0(e,t,n),!0):!1}function nO(e,t,n){return K0(e,t)?Y0(e,t,n):Promise.resolve(null)}async function Y0(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=rO(t,a.beforeAddRecordingEvent);return c?await s.addEvent(c):void 0}catch(a){const c=a&&a instanceof rf,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 K0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ef(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 rO(e,t){try{if(typeof t=="function"&&tO(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 uf(e){return!e.type}function df(e){return e.type==="transaction"}function sO(e){return e.type==="replay_event"}function Q0(e){return e.type==="feedback"}function oO(e){return(t,n)=>{if(!e.isEnabled()||!uf(t)&&!df(t))return;const s=n&&n.statusCode;if(!(!s||s<200||s>=300)){if(df(t)){iO(e,t);return}aO(e,t)}}}function iO(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 aO(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)||ho(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function lO(e){return t=>{!e.isEnabled()||!uf(t)||cO(e,t)}}function cO(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=Vn({category:"replay.hydrate-error",data:{url:Ym()}});Ci(e,s)}}function uO(e){const t=Ae();t&&t.on("beforeAddBreadcrumb",n=>dO(e,n))}function dO(e,t){if(!e.isEnabled()||!X0(t))return;const n=fO(t);n&&Ci(e,n)}function fO(e){return!X0(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?pO(e):Vn(e)}function pO(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Vn(e);let n=!1;const s=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>gl?(n=!0,`${i.slice(0,gl)}…`):i;if(typeof i=="object")try{const a=Rn(i,7);return JSON.stringify(a).length>gl?(n=!0,`${JSON.stringify(a,null,2).slice(0,gl)}…`):a}catch{}return i});return Vn({...e,data:{...e.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function X0(e){return!!e.category}function hO(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function J0(){const e=Ve().getPropagationContext().dsc;e&&delete e.replay_id;const t=vt();if(t){const n=Ss(t);delete n.replay_id}}function mO(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Te.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 gO(e,t){return e.recordingMode!=="buffer"||t.message===Fd||!t.exception||t.type?!1:H0(e.getOptions().errorSampleRate)}function yO(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:sO(t)?(delete t.breadcrumbs,t):!uf(t)&&!df(t)&&!Q0(t)?t:e.checkAndHandleExpiredSession()?Q0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),mO(e,t),t):hO(t,n)&&!e.getOptions()._experiments.captureExceptions?(pe&&he.log("Ignoring error from rrweb internals",t),null):((gO(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(J0(),t),{id:"Replay"})}function Pl(e,t){return t.map(({type:n,start:s,end:i,name:a,data:c})=>{const d=e.throttledAddEvent({type:Te.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 vO(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 SO(e){return t=>{if(!e.isEnabled())return;const n=vO(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Pl(e,[n]),!1)))}}function wO(e,t){return pe&&e.getOptions()._experiments.traceInternals?!1:Rb(t,Ae())}function Z0(e,t){e.isEnabled()&&t!==null&&(wO(e,t.name)||e.addUpdate(()=>(Pl(e,[t]),!0)))}function Nl(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=r1(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function e1(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function t1(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[r1(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 Ml(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 n1(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:dt({method:a,statusCode:c,request:d,response:f})}}function Ri(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function $r(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}=_O(n);return s.body=i,a&&a.length>0&&(s._meta={warnings:a}),s}function ff(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 r1(e){return new URLSearchParams(e).toString()}function _O(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Xy,n=EO(e);if(t){const s=e.slice(0,Xy);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 EO(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ll(e,t){const n=xO(e);return Rr(n,t)}function xO(e,t=Ge.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ge.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 kO(e,t,n){try{const s=await bO(e,t,n),i=n1("resource.fetch",s);Z0(n.replay,i)}catch(s){pe&&he.exception(s,"Failed to capture fetch breadcrumb")}}function TO(e,t){const{input:n,response:s}=t,i=n?s1(n):void 0,a=Nl(i),c=s?e1(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 bO(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=Ll(c,n.networkDetailAllowUrls)&&!Ll(c,n.networkDetailDenyUrls),w=g?IO(n,t.input,h):Ri(h),E=await CO(g,n,t.response,y);return{startTimestamp:i,endTimestamp:a,url:c,method:d,statusCode:f,request:w,response:E}}function IO({networkCaptureBodies:e,networkRequestHeaders:t},n,s){const i=n?OO(n,t):{};if(!e)return $r(i,s,void 0);const a=s1(n),[c,d]=t1(a),f=$r(i,s,c);return d?Ml(f,d):f}async function CO(e,{networkCaptureBodies:t,networkResponseHeaders:n},s,i){if(!e&&i!==void 0)return Ri(i);const a=s?o1(s.headers,n):{};if(!s||!t&&i!==void 0)return $r(a,i,void 0);const[c,d]=await AO(s),f=RO(c,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return d?Ml(f,d):f}function RO(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:s,headers:i}){try{const a=e&&e.length&&n===void 0?Nl(e):n;return s?t?$r(i,a,e):$r(i,a,void 0):Ri(a)}catch(a){return pe&&he.exception(a,"Failed to serialize response body"),$r(i,n,void 0)}}async function AO(e){const t=PO(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await NO(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 s1(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function o1(e,t){const n={};return t.forEach(s=>{e.get(s)&&(n[s]=e.get(s))}),n}function OO(e,t){return e.length===1&&typeof e[0]!="string"?i1(e[0],t):e.length===2?i1(e[1],t):{}}function i1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?o1(n,t):Array.isArray(n)?{}:ff(n,t):{}}function PO(e){try{return e.clone()}catch(t){pe&&he.exception(t,"Failed to clone response body")}}function NO(e){return new Promise((t,n)=>{const s=ho(()=>n(new Error("Timeout while trying to read response body")),500);MO(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(s))})}async function MO(e){return await e.text()}async function LO(e,t,n){try{const s=DO(e,t,n),i=n1("resource.xhr",s);Z0(n.replay,i)}catch(s){pe&&he.exception(s,"Failed to capture xhr breadcrumb")}}function jO(e,t){const{xhr:n,input:s}=t;if(!n)return;const i=Nl(s),a=n.getResponseHeader("content-length")?e1(n.getResponseHeader("content-length")):zO(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function DO(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||!Ll(f,n.networkDetailAllowUrls)||Ll(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[xs],_=E?ff(E.request_headers,n.networkRequestHeaders):{},x=ff($O(d),n.networkResponseHeaders),[k,O]=n.networkCaptureBodies?t1(c):[void 0],[R,$]=n.networkCaptureBodies?FO(d):[void 0],H=$r(_,g,k),z=$r(x,w,R);return{startTimestamp:i,endTimestamp:a,url:f,method:h,statusCode:y,request:O?Ml(H,O):H,response:$?Ml(z,$):z}}function $O(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 FO(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return BO(e.response,e.responseType)}catch(n){t.push(n)}return pe&&he.warn("Failed to get xhr response body",...t),[void 0]}function BO(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 zO(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Nl(n)}catch{return}}function UO(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)=>HO(d,f,h))}catch{}}function HO(e,t,n){if(t.data)try{WO(t)&&VO(n)&&(jO(t,n),LO(t,n,e)),qO(t)&&GO(n)&&(TO(t,n),kO(t,n,e))}catch(s){pe&&he.exception(s,"Error when enriching network breadcrumb")}}function WO(e){return e.category==="xhr"}function qO(e){return e.category==="fetch"}function VO(e){return e&&e.xhr}function GO(e){return e&&e.response}function YO(e){const t=Ae();zy(xA(e)),fl(SO(e)),uO(e),UO(e);const n=yO(e);lb(n),t&&(t.on("beforeSendEvent",lO(e)),t.on("afterSendEvent",oO(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 KO(e){try{return Promise.all(Pl(e,[QO(Ge.performance.memory)]))}catch{return[]}}function QO(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 XO(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=ho(d,t),c&&a===void 0&&(a=ho(d,c)),s}return y.cancel=f,y.flush=h,y}const Ts=Ne.navigator;function JO(){return/iPhone|iPad|iPod/i.test(Ts&&Ts.userAgent||"")||/Macintosh/i.test(Ts&&Ts.userAgent||"")&&Ts&&Ts.maxTouchPoints&&Ts.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function ZO(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&&vA(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!cf(e,n,i))return!0;if(!i)return!1;const a=e.session;if(tP(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&&of(a))}return a&&a.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function eP(e){const t=e.getOptions();return{type:Te.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 tP(e,t){!t||!e.session||e.session.segmentId!==0||cf(e,eP(e),!1)}function nP(e,t,n,s){return ws(Pg(e,dd(e),s,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function rP({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 sP({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 Wg(e.getOptions(),s,a,t,e,Cn());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 oP({recordingData:e,replayId:t,segmentId:n,eventContext:s,timestamp:i,session:a}){const c=rP({recordingData:e,headers:{segment_id:n}}),{urls:d,errorIds:f,traceIds:h,initialTimestamp:y}=s,g=Ae(),w=Ve(),E=g&&g.getTransport(),_=g&&g.getDsn();if(!g||!E||!_||!a.sampled)return ar({});const x={type:DR,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 sP({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."),ar({});delete k.sdkProcessingMetadata;const O=nP(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 a1(R.statusCode);const $=sy({},R);if(ry($,"replay"))throw new pf($);return R}class a1 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class pf extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function l1(e,t={count:0,interval:HR}){const{recordingData:n,onError:s}=e;if(n.length)try{return await oP(e),!0}catch(i){if(i instanceof a1||i instanceof pf)throw i;if(Vg("Replays",{_retryCount:t.count}),s&&s(i),t.count>=WR){const a=new Error(`${Fd} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,c)=>{ho(async()=>{try{await l1(e,t),a(!0)}catch(d){c(d)}},t.interval)})}}const c1="__THROTTLED",iP="__SKIPPED";function aP(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?iP:c1}c=!1;const h=s.get(f)||0;return s.set(f,h+1),e(...d)}}class Fr{constructor({options:t,recordingOptions:n}){Fr.prototype.__init.call(this),Fr.prototype.__init2.call(this),Fr.prototype.__init3.call(this),Fr.prototype.__init4.call(this),Fr.prototype.__init5.call(this),Fr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:$R,sessionIdleExpire:FR},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=XO(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=aP((c,d)=>nO(this,c,d),300,5);const{slowClickTimeout:s,slowClickIgnoreSelectors:i}=this.getOptions(),a=s?{threshold:Math.min(qR,s),timeout:s,scrollTimeout:VR,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new hA(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=lf({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=lf({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=dr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:UR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ZO(this),...JO(),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}`:""}`),J0(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,XA(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&&af(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ge.location.pathname}${Ge.location.hash}${Ge.location.search}`,n=`${Ge.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===c1){const i=Vn({category:"replay.throttled"});this.addUpdate(()=>!cf(this,{type:aA,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&&Fe(n).data||{})[Hn];if(!(!n||!i||!["route","custom"].includes(i)))return Fe(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=YA({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=lf({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 G0(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{Ge.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ge.addEventListener("blur",this._handleWindowBlur),Ge.addEventListener("focus",this._handleWindowFocus),Ge.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(YO(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=zA(this)}_removeListeners(){try{Ge.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ge.removeEventListener("blur",this._handleWindowBlur),Ge.removeEventListener("focus",this._handleWindowFocus),Ge.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Ge.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Vn({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Vn({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{IA(this,t)}}_doChangeToBackgroundTasks(t){!this.session||V0(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:Te.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=OA(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(Pl(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 KO(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 l1({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 pf?"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&&of(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=Vn({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 lP({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 cP({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 u1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',uP=["content-length","content-type","accept"];let d1=!1;const dP=e=>new jl(e);class jl{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=BR,flushMaxDelay:n=zR,minReplayDuration:s=GR,maxReplayDuration:i=Jy,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:ye,onError:Ie}={}){this.name=jl.id;const He=lP({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:(ce,ke,W)=>cP({maskAttributes:M,maskAllText:h,privacyOptions:He,key:ce,value:ke,el:W}),...He,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ce=>{try{ce.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(s,YR),maxReplayDuration:Math.min(i,Jy),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:f1($),networkResponseHeaders:f1(H),beforeAddRecordingEvent:ae,beforeErrorSampling:ye,onError:Ie,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${u1}`:u1),this._isInitialized&&Ey())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return d1}set _isInitialized(t){d1=t}afterAllSetup(t){!Ey()||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=fP(this._initialOptions,t);this._replay=new Fr({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}jl.__initStatic();function fP(e,t){const n=t.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...dt(e)},i=Qa(n.replaysSessionSampleRate),a=Qa(n.replaysOnErrorSampleRate);return i==null&&a==null&&br(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(s.sessionSampleRate=i),a!=null&&(s.errorSampleRate=a),s}function f1(e){return[...uP,...e.map(t=>t.toLowerCase())]}const p1=new WeakMap,hf=new Map,Dl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function pP(e,t){const{traceFetch:n,traceXHR:s,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:c,tracePropagationTargets:d}={traceFetch:Dl.traceFetch,traceXHR:Dl.traceXHR,trackFetchStreamPerformance:Dl.trackFetchStreamPerformance,...t},f=typeof a=="function"?a:g=>!0,h=g=>yP(g,d),y={};n&&(e.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(w=>{if(w.op==="http.client"){const E=hf.get(w.span_id);E&&(w.timestamp=E/1e3,hf.delete(w.span_id))}}),g)),i&&dI(g=>{if(g.response){const w=p1.get(g.response);w&&g.endTimestamp&&hf.set(w,g.endTimestamp)}}),Sy(g=>{const w=sI(g,f,h,y);if(g.response&&g.fetchData.__span&&p1.set(g.response,g.fetchData.__span),w){const E=m1(g.fetchData.url),_=E?_s(E).host:void 0;w.setAttributes({"http.url":E,"server.address":_})}c&&w&&h1(w)})),s&&qy(g=>{const w=vP(g,f,h,y);c&&w&&h1(w)})}function hP(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function h1(e){const{url:t}=Fe(e).data||{};if(!t||typeof t!="string")return;const n=fo("resource",({entries:s})=>{s.forEach(i=>{hP(i)&&i.name.endsWith(t)&&(gP(i).forEach(c=>e.setAttribute(...c)),setTimeout(n))})})}function mP(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 Gn(e=0){return((Ft||performance.timeOrigin)+e)/1e3}function gP(e){const{name:t,version:n}=mP(e.nextHopProtocol),s=[];return s.push(["network.protocol.version",n],["network.protocol.name",t]),Ft?[...s,["http.request.redirect_start",Gn(e.redirectStart)],["http.request.fetch_start",Gn(e.fetchStart)],["http.request.domain_lookup_start",Gn(e.domainLookupStart)],["http.request.domain_lookup_end",Gn(e.domainLookupEnd)],["http.request.connect_start",Gn(e.connectStart)],["http.request.secure_connection_start",Gn(e.secureConnectionStart)],["http.request.connection_end",Gn(e.connectEnd)],["http.request.request_start",Gn(e.requestStart)],["http.request.response_start",Gn(e.responseStart)],["http.request.response_end",Gn(e.responseEnd)]]:s}function yP(e,t){const n=Se.location&&Se.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?Rr(s.toString(),t)||a&&Rr(s.pathname,t):a}else{const s=!!e.match(/^\/(?!\/)/);return t?Rr(e,t):s}}function vP(e,t,n,s){const i=e.xhr,a=i&&i[xs];if(!i||i.__sentry_own_request__||!a)return;const c=Nr()&&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&&(lg(w,a.status_code),w.end(),delete s[g]);return}const d=m1(a.url),f=d?_s(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",[ms]:"http.client"}}):new io;return i.__sentry_xhr_span_id__=y.spanContext().spanId,s[i.__sentry_xhr_span_id__]=y,n(a.url)&&SP(i,Nr()&&h?y:void 0),y}function SP(e,t){const{"sentry-trace":n,baggage:s}=ly({span:t});n&&wP(e,n,s)}function wP(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function m1(e){try{return new URL(e,Se.location.origin).href}catch{return}}function _P(){Se&&Se.document?Se.document.addEventListener("visibilitychange",()=>{const e=vt();if(!e)return;const t=bt(e);if(Se.document.hidden&&t){const n="cancelled",{op:s,status:i}=Fe(t);qn&&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()}}):qn&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const EP="BrowserTracing",xP={...Xa,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Dl},kP=(e={})=>{dT();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}={...xP,...e},R=wC({recordClsStandaloneSpans:a||!1});t&&qC(),s&&Ne.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?EC():n&&_C(),i&&xC();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[Hn]="custom",U.attributes=te),$.name=U.name,$.source=te[Hn];const K=zg(U,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:L,beforeSpanEnd:ae=>{R(),CC(ae,{recordClsOnPageloadSpan:!a})}});function oe(){["interactive","complete"].includes(Se.document.readyState)&&z.emit("idleSpanEnableAutoFinish",K)}return L&&Se.document&&(Se.document.addEventListener("readystatechange",()=>{oe()}),oe()),K}return{name:EP,afterAllSetup(z){let M,L=Se.location&&Se.location.href;function U(){M&&!Fe(M).timestamp&&(qn&&X.log(`[Tracing] Finishing current active span with op: ${Fe(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||g1("sentry-trace"),ae=K.baggage||g1("baggage"),ye=sT(oe,ae);Ve().setPropagationContext(ye),M=H(z,{op:"pageload",...te})}),z.on("spanEnd",te=>{const K=Fe(te).op;if(te!==bt(te)||K!=="navigation"&&K!=="pageload")return;const oe=Ve(),ae=oe.getPropagationContext();oe.setPropagationContext({...ae,sampled:ae.sampled!==void 0?ae.sampled:ys(te),dsc:ae.dsc||Ss(te)})}),Se.location&&(k&&TP(z,{name:Se.location.pathname,startTime:Ft?Ft/1e3:void 0,attributes:{[Hn]:"url",[gt]:"auto.pageload.browser"}}),O&&fl(({to:te,from:K})=>{if(K===void 0&&L&&L.indexOf(te)!==-1){L=void 0;return}K!==te&&(L=void 0,bP(z,{name:Se.location.pathname,attributes:{[Hn]:"url",[gt]:"auto.navigation.browser"}}))})),y&&_P(),i&&IP(d,f,h,$),t&&GC(),pP(z,{traceFetch:g,traceXHR:w,trackFetchStreamPerformance:E,tracePropagationTargets:z.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:x})}}};function TP(e,t,n){e.emit("startPageLoadSpan",t,n),Ve().setTransactionName(t.name);const s=vt();return(s&&Fe(s).op)==="pageload"?s:void 0}function bP(e,t){Cn().setPropagationContext({traceId:Or()}),Ve().setPropagationContext({traceId:Or()}),e.emit("startNavigationSpan",t),Ve().setTransactionName(t.name);const n=vt();return(n&&Fe(n).op)==="navigation"?n:void 0}function g1(e){const t=Ak(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function IP(e,t,n,s){let i;const a=()=>{const c="ui.action.click",d=vt(),f=d&&bt(d);if(f){const h=Fe(f).op;if(["navigation","pageload"].includes(h)){qn&&X.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(rd,"interactionInterrupted"),i.end(),i=void 0),!s.name){qn&&X.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=zg({name:s.name,op:c,attributes:{[Hn]:s.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};Se.document&&addEventListener("click",a,{once:!1,capture:!0})}function CP(e){const t={...e};return ay(t,"react"),Vg("react",{version:C.version}),jR(t)}const RP=async e=>{try{return await PP(e),kr.reportNewUserCreated(),e}catch(t){throw console.error("User haven't been registered"),t}},y1=e=>RP(e).then(()=>{mf(e)}).catch(t=>{AP()}),fr=async()=>{const e=ko();if(e)return e;const t=xr(13);return await y1(t),mf(t),t},$l=()=>{const e=ko();if(e)return e;const t=xr(13);return mf(t),y1(t),t},mf=e=>localStorage.setItem(mn.userId,e),ko=()=>localStorage.getItem(mn.userId),AP=()=>{localStorage.removeItem(mn.userId)},OP=async()=>ko()??"dafult-user",PP=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 ut.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}},NP=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 fr(),s=window.location.href;try{const c=await ut.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){An(c),console.error("Error registering new user through telegram",c)}},MP=async e=>{const t="/auth/telegram";try{const n=await ut.post(t,{code:e});(n==null?void 0:n.status)===201&&v1(n==null?void 0:n.data)}catch(n){An(n),console.error("Failed to authorize through Telegram",n)}},LP=async()=>{var a;const e=(a=window==null?void 0:window.__widgetEdmap)==null?void 0:a.mapId,t=ko(),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 ut.get(i);window.location.href=c.data.redirectUrl}catch(c){An(c),console.error("Error registering new user through gmail",c)}},jP=async()=>{const e=new URLSearchParams(window.location.search),t=e.get("accessToken"),n=e.get("refreshToken"),s=e.get("userId");!t||!n||!s||v1({accessToken:t,refreshToken:n,userId:s})},v1=e=>{kr.reportUserRegistration(),localStorage.setItem(mn.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)},DP=e=>{if(!e)return"edmap-session-prob";const t=xr(13),n=`edmap-session-${e}`;return localStorage.setItem(n,`${t}@${Date.now()}`),t},S1=e=>{const t=`edmap-session-${e}`;localStorage.removeItem(t)},$P=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||null},bs=e=>{const t=FP(e),[n,s]=t.split("@");return n},FP=e=>{const t=localStorage.getItem(`edmap-session-${e}`);return t||DP(e)},BP=async(e,t)=>{t&&await MP(t);const n=new URLSearchParams(window.location.search),s=n.get("accessToken"),i=n.get("refreshToken"),a=n.get("userId");s&&i&&a&&await jP();const c=await OP();return _1(e,c)},w1=()=>typeof window>"u"?!1:!!localStorage.getItem("edmap-access-token"),zP=async(e,t)=>{const n=`/quest/${e}/${encodeURIComponent(t)}`;try{const s=await ut.get(n);return s.data?s.data:null}catch{return null}},UP=async e=>{const t=`/quest/widget/${e}`;try{const n=await ut.get(t);return n.data?n.data:null}catch(n){An(n),console.error("Error fetching quest:",n)}},HP=async e=>{const t="/result-quest-answer/test";try{return await ut.post(t,{id:xr(13),sessionId:bs(e.id),questId:e.id,mapId:e.mapId,userId:await fr()})}catch(n){throw console.error("Failed to send result test answers:",n),n}},_1=async(e,t)=>{const n=`/user-result/${e}/${t}`;try{return(await ut.get(n)).data}catch(s){An(s),console.error("Failed to get user results:",s)}},WP=async(e,t,n)=>{const s=`/leaderboard/${e}`;try{return await ut.get(s,{params:{take:t,skip:n}})}catch(i){An(i),console.error("Failed to fetch leaderboard:",i)}},E1=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},qP=e=>e?E1(e):E1,VP=e=>e;function GP(e,t=VP){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const x1=e=>{const t=qP(e),n=s=>GP(t,s);return Object.assign(n,t),n},YP=e=>e?x1(e):x1,k1=new Set,KP=()=>{k1.forEach(e=>e())},Ut=e=>{const t=YP(e),n=t.getState();return k1.add(()=>t.setState(n,!0)),t},Me=Ut((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})})),gf="eddpzuabl",T1="edl168snjk",QP="edwbmletw",b1="edr10i0h72",yf="edn16xylqg",XP="edb19h1gx0",I1="edt1n7onvl",JP="edw16bh3dw",ZP="edw1j9fzy2";function eN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tN=/^((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)-.*))$/,vf=eN(function(e){return tN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nN=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=nN,rN=e=>e.toUpperCase()===e,sN=e=>t=>e.indexOf(t)===-1,R1=(e,t)=>{const n={};return Object.keys(e).filter(sN(t)).forEach(s=>{n[s]=e[s]}),n};function oN(e,t,n){const s=R1(t,n);if(!e){const i=typeof vf=="function"?{default:vf}:vf;Object.keys(s).forEach(a=>{i.default(a)||delete s[a]})}return s}var iN=(e,t)=>{};function aN(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&&!rN(d[0])):n.propsAsIs,y=oN(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;iN($,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 j=aN;const lN=j("div")({name:"Container",class:"edc2mc3o7",propsAsIs:!1}),cN=j("div")({name:"ContentWrapper",class:"edc1mezuql",propsAsIs:!1}),A1=j("div")({name:"InfoBlock",class:"edi282h0s",propsAsIs:!1}),O1=j("p")({name:"InfoBlockTitle",class:"edi1hvj2ef",propsAsIs:!1}),P1=j("p")({name:"InfoBlockSubtitle",class:"edil1zahd",propsAsIs:!1}),N1=j("div")({name:"ButtonsWrapper",class:"edb19bodzu",propsAsIs:!1}),uN=j("div")({name:"SignInBlock",class:"eds1kockd",propsAsIs:!1}),dN=j("div")({name:"MenuSection",class:"edm1mglzga",propsAsIs:!1}),fN=j("div")({name:"Container",class:"edc1j8vq8z",propsAsIs:!1}),pN=j("ul")({name:"Nav",class:"edn1cd6joy",propsAsIs:!1}),hN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs)",mN=()=>e=>e.isActive?"var(--accent)":"var(--popup-menu-tabs-font-hover)",gN=j("li")({name:"NavItem",class:"edn1fabm11",propsAsIs:!1,vars:{"n1fabm11-0":[hN()],"n1fabm11-1":[mN()]}}),M1=e=>({...e,prizes:yN(e)}),yN=e=>{var t,n;return[...(t=e.receivedPrizes)==null?void 0:t.map(vN).map(s=>L1(s,!0)),...(n=e.restPrizes)==null?void 0:n.map(s=>L1(s,!1))]},vN=e=>({...e,...e.prize,id:e.id}),L1=(e,t=!0)=>({...e,isReceived:t}),Ct=Ut(e=>({points:0,results:{},pointsAreReceived:!1,resetUser:()=>e({pointsAreReceived:!1}),setUserPoints:t=>e(n=>({points:n.points+t})),setUserResults:t=>e({results:M1(t)}),setPointsAreReceived:t=>e({pointsAreReceived:t}),refreshUserResults:async t=>{const n=await fr(),s=await _1(t,n);e({results:M1(s)})}})),SN=({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(fN,{children:v.jsx(pN,{children:e.map((c,d)=>v.jsxs(gN,{onClick:()=>n(d),isActive:d===t,children:[c,d===0&&v.jsx("span",{children:i})]},c))})})},wN=j("div")({name:"Container",class:"edc17us64y",propsAsIs:!1}),j1=j("div")({name:"Header",class:"edh141t6pe",propsAsIs:!1}),D1=j("div")({name:"PrizeBackground",class:"edp1oopuya",propsAsIs:!1}),$1=j("div")({name:"Title",class:"edtlw5k9f",propsAsIs:!1}),_N=j("div")({name:"ButtonWrapper",class:"edbggxr7n",propsAsIs:!1}),EN=j("div")({name:"IconButtonWrapper",class:"edi16rf10j",propsAsIs:!1}),xN=j("div")({name:"ProgressWrapper",class:"edp121tjyk",propsAsIs:!1}),kN=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 TN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bN=/^((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=TN(function(e){return bN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IN=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(" ")},F1=IN,CN=e=>e.toUpperCase()===e,RN=e=>t=>e.indexOf(t)===-1,B1=(e,t)=>{const n={};return Object.keys(e).filter(RN(t)).forEach(s=>{n[s]=e[s]}),n};function AN(e,t,n){const s=B1(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 ON=(e,t)=>{};function PN(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&&!CN(d[0])):n.propsAsIs,y=AN(h,a,["as","class"]);y.ref=c,y.className=n.atomic?F1(n.class,y.className||f):F1(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;ON($,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=B1(a,["innerRef"]);return s(c,a.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}}var Z=PN;const z1=Z("button")({name:"ColoredButton",class:"edc1h8okqi",propsAsIs:!1}),wf=Z(z1)({name:"Button",class:"edbym73sg",propsAsIs:!0}),U1=({icon:e,title:t,...n})=>v.jsx(NN,{...n,children:e||t}),NN=Z(wf)({name:"CustomButton",class:"edc1r5q1nu",propsAsIs:!0}),Sn=({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(H1,{isAccent:t,...c,children:e})}):v.jsx(H1,{isAccent:t,...c,children:e}),MN=()=>e=>e.isAccent?"var(--main-btn-accent-bg)":"var(--main-btn-bg)",LN=()=>e=>e.isAccent?"900":"400",jN=()=>e=>e.isAccent?"var(--edmap-text-on-main)":"var(--accent)",DN=()=>e=>e.isAccent?"var(--main-btn-accent-bg-hover)":"var(--main-btn-bg-hover)",$N=()=>e=>e.isAccent?"var(--main-btn-accent-bg-active)":"var(--main-btn-bg-active)",H1=Z("button")({name:"Button",class:"edb16ruis3",propsAsIs:!1,vars:{"b16ruis3-0":[MN()],"b16ruis3-1":[LN()],"b16ruis3-2":[jN()],"b16ruis3-3":[DN()],"b16ruis3-4":[$N()]}}),Fl=({progressValue:e,overallValue:t})=>{const n=e<=t?(100/t*e).toFixed(0):100;return v.jsx(BN,{progressBarWidth:n})},FN=()=>e=>`${e.progressBarWidth}%`,BN=Z("div")({name:"Bar",class:"edb1pz075f",propsAsIs:!1,vars:{"b1pz075f-0":[FN()]}}),Is=({progressValue:e,overallValue:t,text:n})=>v.jsxs(zN,{children:[v.jsx("span",{children:e}),v.jsxs("span",{children:["/",t," "]}),n&&v.jsx(UN,{children:n})]}),zN=Z("div")({name:"Container",class:"edc1sl84gi",propsAsIs:!1}),UN=Z("span")({name:"PointsText",class:"edpccfrec",propsAsIs:!1}),HN=()=>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"})]})})})}),WN=()=>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"})]})})})]}),qN=()=>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"})]})})})]}),VN={1:v.jsx(HN,{}),2:v.jsx(WN,{}),3:v.jsx(qN,{})},GN=Z("div")({name:"InnerIconContainer",class:"edim3awnl",propsAsIs:!1}),W1=({iconId:e,...t})=>v.jsx(GN,{...t,children:VN[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"},share:{share:"Compartir",downloadFallback:"Descargar"},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"},share:{share:"Teilen",downloadFallback:"Herunterladen"},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"},share:{share:"Share",downloadFallback:"Download"},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:"Начать заново"},share:{share:"Поделиться",downloadFallback:"Скачать"},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:"Зяблик Пятнистый"}]}}},zl=Object.keys(Bl)[0],We=Ut(e=>({translations:Bl[zl],localeName:zl,setLocale:t=>{let n=Bl[t];n||(n=Bl[zl],t=zl),e(()=>({translations:n,localeName:t}))}})),YN=async e=>{const{data:t}=await ut.post("/certificate",{userPrizeId:e},{responseType:"blob"});return t},KN={plain:"Plain",certificate:"Certificate"},an=Ut((e,t)=>({prize:null,certificate:{url:"",file:null},richTextBlocks:[],isRegistrationModalOpen:!1,isRichTextModalOpen:!1,isCertificateModalOpen:!1,openModalForRegistration(n){e({prize:n,isRegistrationModalOpen:!0})},openModalForRichText(n){e({richTextBlocks:n,isRichTextModalOpen:!0})},opemCertificateModal(n){e({certificate:n,isCertificateModalOpen:!0})},closeModalForRegistration(){e({prize:null,isRegistrationModalOpen:!1})},closeModalForRichText(){e({prize:null,isRichTextModalOpen:!1})},closeCertificateModal(){e({certificate:{url:"",file:null},isCertificateModalOpen:!1})}})),QN=()=>{const e=an(s=>s.openModalForRegistration),t=an(s=>s.openModalForRichText),n=an(s=>s.opemCertificateModal);return C.useMemo(()=>{const s={handleWantForPrize:i=>{if(!localStorage.getItem(mn.accessToken)){s.askForRegistration(i);return}return s.openPrize(i)},askForRegistration(i){e(i)},openPrize(i){if(i.type===KN.plain){s.showAwardRichText(i);return}return s.openCertificate(i)},async openCertificate(i){const a=await YN(i.id);n({url:URL.createObjectURL(a),file:s.constractFile(i.id,a)})},constractFile(i,a){const c=a.type||"image/webp",d=c.split("/")[1];return new File([a],`certificate-${i}.${d}`,{type:c})},showFullDescription(i){t(i.descriptionRichText.blocks)},showAwardRichText(i){t(i.awardRichText.blocks)}};return s},[e,t,n])},_f=({prizeData:e,userPoints:t,index:n})=>{const s=We(c=>c.translations.popup.prizes),{handleWantForPrize:i,showFullDescription:a}=QN();return v.jsxs(wN,{children:[v.jsxs(j1,{children:[v.jsx(D1,{children:v.jsx(W1,{iconId:e==null?void 0:e.iconId})}),v.jsx($1,{children:e==null?void 0:e.name})]}),v.jsxs(_N,{children:[e!=null&&e.isReceived?v.jsx(Sn,{"data-testid":`edmap-widget__prize-btn-${n+1}`,title:s.buttonTitle,isAccent:!0,style:{minWidth:"159px"},onClick:()=>i(e)}):v.jsx(v.Fragment,{children:v.jsxs(xN,{children:[v.jsx(Is,{text:s.questionsTitle,progressValue:t,overallValue:e==null?void 0:e.awardPoints}),v.jsx(Fl,{progressValue:t,overallValue:e==null?void 0:e.awardPoints})]})}),v.jsx(EN,{children:v.jsx(U1,{icon:v.jsx(kN,{}),onClick:()=>a(e)})})]})]})},XN=j("div")({name:"GiftsContainer",class:"edg1do84z2",propsAsIs:!1}),JN=()=>{var t;const e=Ct(n=>n.results);return v.jsx(XN,{children:(t=e==null?void 0:e.prizes)==null?void 0:t.map((n,s)=>v.jsx(_f,{index:s,prizeData:n,userPoints:e==null?void 0:e.allPoints},n==null?void 0:n.id))})},ZN=j("div")({name:"UserInfoWrapper",class:"eduxnm4b4",propsAsIs:!1}),e3=j("div")({name:"ImageWrapper",class:"edi1fh8glv",propsAsIs:!1}),t3=j("div")({name:"InfoWrapper",class:"edi1e8ga1u",propsAsIs:!1}),n3=j("div")({name:"MainInfo",class:"edm1qs3iet",propsAsIs:!1}),r3=j("div")({name:"TitleWrapper",class:"edtbtnkwj",propsAsIs:!1}),s3=j("div")({name:"PoweredContainer",class:"edp1rvtj15",propsAsIs:!1}),o3=j("div")({name:"ProgressTextWrapper",class:"edpseoz31",propsAsIs:!1}),i3=j("h3")({name:"Title",class:"edt1jzrydq",propsAsIs:!1}),a3=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"})),l3=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"})),Ef=({level:e})=>v.jsxs(d3,{children:[v.jsx(u3,{children:v.jsx(a3,{})}),v.jsx(c3,{children:v.jsx(l3,{})}),v.jsx("span",{children:e})]}),c3=Z("div")({name:"SmoothContainer",class:"edsvd1acj",propsAsIs:!1}),u3=Z("div")({name:"RoughContainer",class:"edr1a0zzy8",propsAsIs:!1}),d3=Z("div")({name:"Container",class:"edc1fcmc7w",propsAsIs:!1}),f3=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("🦄🐺🐗🪼🐝🦅🐋")].map(e=>e.segment),p3=e=>[...e].map(t=>t.codePointAt(0)).join("-"),Ul=Object.fromEntries(f3.map(e=>[p3(e),e])),h3=()=>{const e=localStorage.getItem(mn.profileEmoji);if(e&&Ul[e])return Ul[e];const t=m3();return localStorage.setItem(mn.profileEmoji,t),Ul[t]},m3=()=>{const e=Object.keys(Ul),t=g3(e.length);return e[t]},g3=e=>Math.floor(Math.random()*e),q1=j("div")({name:"Container",class:"edci91fsv",propsAsIs:!1}),xf=({src:e,...t})=>{const n=We(i=>i.translations.user.avatar.alt);if(e)return v.jsx(q1,{children:v.jsx("img",{...t,src:e,alt:n})});const s=h3();return v.jsx(q1,{children:s})},kf=e=>e?e<10?1:Math.floor(e/10):1,y3=j("a")({name:"Container",class:"edc1ryazt0",propsAsIs:!1}),v3=j("span")({name:"Text",class:"edtk7p3bu",propsAsIs:!1}),S3=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"})),V1={en:"en",ru:"ru",de:"de",es:"es",default:"en"},w3=e=>{const t=V1[e];return t||V1.default},G1=()=>{const e=We(s=>s.localeName),t=w3(e),n=new URLSearchParams;return n.set("utm_source",window.location.hostname),n.set("utm_medium",window.location.href),v.jsxs(y3,{href:`https://edmap.space/${t}?${n}`,target:"_blank",children:[v.jsx(v3,{children:"Powered by"}),v.jsx(S3,{})]})},_3=()=>typeof window<"u"&&window.location.hostname==="edmap.space",E3=()=>{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=We(w=>w.translations.user.randomNames),a=We(w=>w.translations.popup),c=_3();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(mn.defaultName);if(!k&&!x){const O=w(_);localStorage.setItem(mn.defaultName,O),t(O)}else x?(localStorage.removeItem(mn.defaultName),t(s)):t(k)})(i)},[s,i]),v.jsxs(ZN,{children:[v.jsx(e3,{children:v.jsx(xf,{src:(h=(f=n==null?void 0:n.User)==null?void 0:f.avatar)==null?void 0:h.src})}),v.jsxs(t3,{children:[v.jsxs(n3,{children:[v.jsxs(r3,{children:[v.jsx(i3,{children:s??e}),v.jsx(Ef,{level:kf(n==null?void 0:n.allPoints)})]}),v.jsx(o3,{children:v.jsx(Is,{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(Fl,{progressValue:n==null?void 0:n.allPoints,overallValue:(g=n==null?void 0:n.map)==null?void 0:g.points})]}),!c&&v.jsx(s3,{children:v.jsx(G1,{})})]})]})},x3=j("ul")({name:"Container",class:"edc18eiqam",propsAsIs:!1}),k3=j("li")({name:"Item",class:"edi8drxbn",propsAsIs:!1}),T3=j("a")({name:"ItemLink",class:"edi1ovdisv",propsAsIs:!1}),b3=j("p")({name:"QuestName",class:"edqiwgwie",propsAsIs:!1}),I3=j("div")({name:"IconWrapper",class:"edi5p8aot",propsAsIs:!1}),Y1=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"})),Tf=({quests:e})=>v.jsx(x3,{children:e==null?void 0:e.map(t=>{var n;return v.jsx(k3,{children:v.jsxs(T3,{href:t==null?void 0:t.url,children:[v.jsx(b3,{children:t==null?void 0:t.name}),v.jsxs(I3,{children:[v.jsx(Is,{progressValue:((n=t==null?void 0:t.resultQuestAnswer)==null?void 0:n.points)??0,overallValue:t==null?void 0:t.maxPoints}),v.jsx(Y1,{})]})]})},t==null?void 0:t.id)})}),C3=j("div")({name:"Container",class:"edc1cuvton",propsAsIs:!1}),R3=j("div")({name:"Wrapper",class:"edw1bhqzg6",propsAsIs:!1}),ln=Ut(e=>({isPanelModalOpen:!1,isRegistrationOpen:!1,setIsPanelOpen:t=>e({isPanelModalOpen:t}),setIsRegistrationOpen:t=>e({isRegistrationOpen:t})})),bf=({setIsRegInfoVisible:e})=>{const t=ln(i=>i.setIsRegistrationOpen),n=We(i=>i.translations.settings.signInPopup),s=()=>{t(!0)};return v.jsxs(R3,{children:[v.jsxs(A1,{children:[v.jsx(O1,{children:n.title}),v.jsx(P1,{children:n.subtitle})]}),v.jsxs(N1,{children:[v.jsx(Sn,{title:n.buttonTitle,onClick:()=>e(!1)}),v.jsx(Sn,{title:n.accentButtonTitle,isAccent:!0,onClick:s})]})]})},K1=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)},Hl=200,Wl=Ut((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"},Hl+25)},25)},25)}})(s),c=new Promise(y=>{setTimeout(()=>{y()},Hl)}),d=async()=>{await c,a(),e({isHidden:!1})},f=async(y=[])=>{const g=K1(y);return d(),g};return await(async(y=[])=>{const[g,w]=await Promise.all([c,f(y)]);return w})(n)}})),Q1=(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})},Hl)},St={test:"Test",journey:"Journey"},pr=Ut(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})})),ql={node:"node",inputAnswerNode:"input-answer-node",random:"random",if:"if",present:"present"},wn={journeyDefault:"journey-default",testDefault:"test-default",journeyText:"journey-text"},A3={[St.journey]:"/user-journey-answer",[St.test]:"/user-test-answer"},O3=e=>({currentNode:e.node,currentResources:tv(e.currentResources)}),X1={[St.journey]:O3,[St.test]:e=>e},P3=e=>({quest:{currentStep:e.questionIndex+1},zustandState:e}),N3=e=>({quest:{},zustandState:e}),J1={[St.journey]:N3,[St.test]:P3},M3={[wn.journeyDefault]:"/user-journey-answer",[wn.journeyText]:"/user-journey-answer/text",[wn.testDefault]:"/user-test-answer"},L3=async(e,t,n)=>({text:t.textAnswer,sessionId:bs(e.id),userId:await fr(),nodeId:t.currentNode.id}),j3=async(e,t,n)=>({id:xr(13),journeyEdgeId:n.journeyEdgeId,sessionId:bs(e.id),userId:await fr()}),D3=async(e,t,n)=>{const s=await fr(),i=bs(e.id);return(t.selectedAnswers.length>0?t.selectedAnswers:[{id:null}]).map(c=>({id:`${xr(13)}`,answerId:c.answerId,questId:c.questId,questionId:t.currentQuestion.id,userId:s,sessionId:i}))},$3={[wn.journeyDefault]:j3,[wn.testDefault]:D3,[wn.journeyText]:L3},F3=e=>e.currentNode.type===ql.present,B3=e=>e.currentQuestion===null,z3={[St.journey]:F3,[St.test]:B3},U3=(e,t)=>z3[e.quest.questType](t),Z1=(e,t,n)=>{if(e.questType===St.test)return wn.testDefault;if(e.questType===St.journey)return t.currentNode.type===ql.inputAnswerNode?wn.journeyText:wn.journeyDefault},H3=async(e,t,n)=>{const s=Z1(e,t),i=await $3[s](e,t,n),a=M3[s],{data:c}=await ut.post(a,i);return X1[e.questType](c)},If=async e=>{if(!e)return null;const t=bs(e.id),n=`${A3[e.questType]}/${e.id}/${t}`,s=await ut.get(n);return X1[e.questType](s.data)},W3=e=>{const t=e.currentNode;if(!t)return[];const n=Cf(t.data.blocks);return[...t.sourceEdges.flatMap(i=>Cf(i.richText.blocks)),...n]},q3=e=>{const t=e.currentQuestion;return t?Cf(t.text.blocks):[]},ev={[St.journey]:W3,[St.test]:q3},V3=async e=>await ut.post("/result-quest-answer/journey",{id:xr(16),sessionId:bs(e.id),questId:e.id,mapId:e.mapId,userId:await fr()}),tv=e=>e.map(X3),G3=e=>{const t=Number.isInteger(e);return new Intl.NumberFormat(void 0,{minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)},Y3=(e,t,n)=>kr.reportEdgeClick(n.journeyEdgeId),K3=(e,t,n)=>kr.reportTestAnswers(t.selectedAnswers),Q3={[wn.journeyDefault]:Y3,[wn.journeyText]:()=>{},[wn.testDefault]:K3},X3=e=>({...e,value:G3(e.value)}),Cf=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}),J3=async(e,t)=>{const n=`/journey-node/${e}/resources`;try{const{data:s}=await ut.get(n,{signal:t});return s}catch{return{imageUrls:[]}}},hr=Ut(e=>({currentNode:{data:{blocks:[]},sourceEdges:[]},currentResources:[],textAnswer:"",setTextAnswer:t=>e({textAnswer:t}),setCurrentNode:(t,n)=>{e({currentNode:t,currentResources:tv(n)})},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await If(t);e(()=>({currentNode:n,currentResources:s}))},restart:(t,n)=>{e({currentNode:t,currentResources:n})}})),Vl=Ut(e=>({currentQuestion:null,selectedAnswers:[],setQuestion:t=>e({currentQuestion:t}),addAnswer:async(t,n,s)=>{const i={id:`${xr(13)}`,answerId:n,questionId:s,questId:t,userId:await fr(),sessionId:bs(t)};e(a=>({selectedAnswers:[...a.selectedAnswers,i]}))},initialize:async t=>{if(!t)return;const{node:n,currentResources:s}=await If(t);e(()=>({currentNode:n,resources:s}))},removeAnswer:t=>e(n=>({selectedAnswers:n.selectedAnswers.filter(s=>s.answerId!==t)})),resetAnswers:()=>e({selectedAnswers:[]}),resetTest:()=>e({selectedAnswers:[]})})),Rf={[St.test]:Vl,[St.journey]:hr},nv=()=>{const e=Me(n=>n.quest),t=Rf[e.questType];return C.useMemo(()=>({quest:e,currentZustandHook:t}))},To=()=>{const{quest:e,currentZustandHook:t}=nv(),n=Me(a=>a.setIsFinished),s=Wl(a=>a.startFadeTransition),i=pr(a=>a.marginRootTop);return C.useMemo(()=>{const a=Rf[e.questType],c={fetchPreviousProgress:async d=>{const f=await If(d),h=J1[d.questType](f);await s(ev[d.questType](h.zustandState)),Me.setState(h.quest),Rf[d.questType].setState(h.zustandState)},makeStep:async d=>{const f=a.getState();Q3[Z1(e,f)](e,f,d);const h=await H3(e,f,d),y=J1[e.questType](h);Q1(i),await s(ev[e.questType](y.zustandState)),Me.setState(y.quest);const g=U3(Me.getState(),y.zustandState);n(g),a.setState(y.zustandState)},cleanQuestInit:async d=>{await c.fetchPreviousProgress(d),n(!1)},restartQuest:async()=>{S1(e.id),c.cleanQuestInit(e),Q1(i)}};return c},[e,t,i])},Z3=()=>{const{resetQuest:e}=To(),t=Ct(i=>i.refreshUserResults),n=We(i=>i.translations.settings),s=async()=>{var i;await Kh(),t((i=window.__widgetEdmap)==null?void 0:i.mapId),e()};return v.jsx(Sn,{onClick:s,title:n.logout,isAccent:!0})},eM=()=>{const e=localStorage.getItem(mn.accessToken),[t,n]=C.useState(!0);return v.jsx(C3,{children:e&&v.jsx(N1,{children:v.jsx(Z3,{})})||t&&v.jsx(bf,{setIsRegInfoVisible:n})})},tM=j("div")({name:"PoweredContainer",class:"edp153jgy2",propsAsIs:!1}),nM=j("div")({name:"ProgressTextContainer",class:"edp88qvra",propsAsIs:!1}),rM=j("div")({name:"StepContainer",class:"eds3v2lpt",propsAsIs:!1}),rv=j("div")({name:"ButtonWrapper",class:"edb1h6cmje",propsAsIs:!1}),sM=j("div")({name:"Container",class:"edc1g9vmxh",propsAsIs:!1}),oM=j("div")({name:"Background",class:"edb1dvqizg",propsAsIs:!1}),iM=j("div")({name:"Container",class:"edc24c84i",propsAsIs:!1}),aM=j("div")({name:"InfoBlock",class:"edic7ywtw",propsAsIs:!1}),lM=j("p")({name:"InfoBlockTitle",class:"ediy16h9m",propsAsIs:!1}),cM=j("p")({name:"InfoBlockSubtitle",class:"edi1m54nr",propsAsIs:!1}),uM=j(rv)({name:"CustomButtonWrapper",class:"edc10pc0jd",propsAsIs:!0}),dM=j("div")({name:"Container",class:"edc1mwrga6",propsAsIs:!1}),sv=j("h3")({name:"Title",class:"edt1l3a9ma",propsAsIs:!1}),fM=j("div")({name:"UnavailableButtons",class:"edutbpur",propsAsIs:!1}),pM=j("div")({name:"CloseButton",class:"edcnx305o",propsAsIs:!1}),hM=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"})),mM=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"})),gM=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"})),yM=[{name:"telegram",icon:v.jsx(hM,{}),onClick:NP},{name:"google",icon:v.jsx(mM,{}),onClick:LP},{name:"discord",icon:v.jsx(gM,{}),onClick:console.log}],vM=({icon:e,title:t,...n})=>v.jsxs(SM,{...n,children:[e,v.jsx(wM,{children:t})]}),SM=Z(wf)({name:"CustomButton",class:"edc1yr71r",propsAsIs:!0}),wM=Z("p")({name:"Title",class:"edtsdg8a8",propsAsIs:!1}),ov=e=>v.jsx(vM,{"data-testid":`edmap-widget__social-${e.name}-btn`,title:e.title,icon:e.icon,disabled:e.disabled,onClick:e.onClick},e.name),_M=(e,t)=>{var n;return{...e,title:(n=t[e.name])==null?void 0:n.title}},EM=(e,t)=>({...e,disabled:t}),xM=({closeModal:e})=>{var f;const t=We(h=>h.translations.socialsPopup),n=Ct(h=>h.results),s=(f=n==null?void 0:n.map)==null?void 0:f.registration,a=yM.map(h=>_M(h,t)).map(h=>EM(h,!s[h.name])),c=a.filter(h=>!h.disabled),d=a.filter(h=>h.disabled);return v.jsxs(dM,{"data-testid":"edmap-widget__social-popup",children:[c.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(pM,{onClick:e,children:"✕"}),v.jsx(sv,{children:t.title}),c.map(ov)]}),d.length>0&&v.jsxs(fM,{children:[v.jsx(sv,{children:t.subTitle}),d.map(ov)]})]})},iv=({isOpen:e,closeModal:t,isSocialModalVisible:n,setIsSocialModalVisible:s})=>{const i=C.useRef(null),a=We(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(oM,{children:v.jsx(iM,{ref:i,children:c||n?v.jsx(xM,{closeModal:h}):v.jsxs("div",{"data-testid":"edmap-widget__signin-popup",children:[v.jsxs(aM,{children:[v.jsx(lM,{children:a.title}),v.jsx(cM,{children:a.subtitle})]}),v.jsxs(uM,{children:[v.jsx(Sn,{title:a.buttonTitle,onClick:t}),v.jsx(Sn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:()=>d(!0)})]})]})})})},kM=j("div")({name:"Background",class:"edbwx2goj",propsAsIs:!1}),TM=j("div")({name:"Container",class:"edcc2hi8c",propsAsIs:!1}),bM=j("div")({name:"CloseButton",class:"edc1td8pnr",propsAsIs:!1}),bo=Z("p")({name:"FittableText",class:"edf16hcfkz",propsAsIs:!1}),IM=Z(bo)({name:"QuestionParagraph",class:"edqbe2o7o",propsAsIs:!0}),CM=Z(bo)({name:"AnswerParagraph",class:"eda1u10kac",propsAsIs:!0}),RM=Z(bo)({name:"JourneyWidgetText",class:"edj1c2nqbc",propsAsIs:!0}),av=Z(bo)({name:"EdgeText",class:"edew0t9wk",propsAsIs:!0}),AM=Z(av)({name:"NodeDescription",class:"edn13pdjrz",propsAsIs:!0}),OM=Z(bo)({name:"PrizeInfoParagraph",class:"edp1ot2zjf",propsAsIs:!0}),PM=Z(bo)({name:"PrizeDescParagraph",class:"edp120urih",propsAsIs:!0}),NM=Z("div")({name:"RichTextWrap",class:"edr4pnqsv",propsAsIs:!1}),MM=Z("table")({name:"StyledTable",class:"edsnwt7pg",propsAsIs:!1}),LM=Z("div")({name:"Border",class:"edb1uwnm14",propsAsIs:!1}),jM=Z("img")({name:"StyledImage",class:"eds4xz4ib",propsAsIs:!1}),DM=Z("div")({name:"CenteringBlock",class:"edc1nwul5g",propsAsIs:!1}),$M=Z("img")({name:"NodeDescriptionImage",class:"ednk9d4jz",propsAsIs:!1}),FM=Z("span")({name:"ImageCaption",class:"ediz6of6y",propsAsIs:!1}),BM=Z("h1")({name:"Heading1",class:"edh1mrpu6g",propsAsIs:!1}),zM=Z("h2")({name:"Heading2",class:"edh4lzuk3",propsAsIs:!1}),UM=Z("h3")({name:"Heading3",class:"edhpo5zbv",propsAsIs:!1}),HM=Z("h4")({name:"Heading4",class:"edhm6a0je",propsAsIs:!1}),WM=Z("div")({name:"BlockWrapper",class:"edbaa4gm3",propsAsIs:!1}),qM=Z("div")({name:"Container",class:"edc1gv2nxr",propsAsIs:!1}),VM=Z("div")({name:"Header",class:"edh1ox5ey6",propsAsIs:!1}),GM=Z("div")({name:"CodeBackground",class:"edc1pst60x",propsAsIs:!1}),YM=Z("div")({name:"CodeBlock",class:"edc1m8ekz6",propsAsIs:!1}),KM=Z("pre")({name:"Scrollable",class:"eds1002l4s",propsAsIs:!1}),QM=Z("span")({name:"LangName",class:"edllrx5n5",propsAsIs:!1});function Gl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var XM=typeof global=="object"&&global&&global.Object===Object&&global,JM=typeof self=="object"&&self&&self.Object===Object&&self,lv=XM||JM||Function("return this")(),Af=function(){return lv.Date.now()},ZM=/\s/;function e4(e){for(var t=e.length;t--&&ZM.test(e.charAt(t)););return t}var t4=/^\s+/;function n4(e){return e&&e.slice(0,e4(e)+1).replace(t4,"")}var Yl=lv.Symbol,cv=Object.prototype,r4=cv.hasOwnProperty,s4=cv.toString,Oi=Yl?Yl.toStringTag:void 0;function o4(e){var t=r4.call(e,Oi),n=e[Oi];try{e[Oi]=void 0;var s=!0}catch{}var i=s4.call(e);return s&&(t?e[Oi]=n:delete e[Oi]),i}var i4=Object.prototype,a4=i4.toString;function l4(e){return a4.call(e)}var c4="[object Null]",u4="[object Undefined]",uv=Yl?Yl.toStringTag:void 0;function d4(e){return e==null?e===void 0?u4:c4:uv&&uv in Object(e)?o4(e):l4(e)}function f4(e){return e!=null&&typeof e=="object"}var p4="[object Symbol]";function h4(e){return typeof e=="symbol"||f4(e)&&d4(e)==p4}var dv=NaN,m4=/^[-+]0x[0-9a-f]+$/i,g4=/^0b[01]+$/i,y4=/^0o[0-7]+$/i,v4=parseInt;function fv(e){if(typeof e=="number")return e;if(h4(e))return dv;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=n4(e);var n=g4.test(e);return n||y4.test(e)?v4(e.slice(2),n?2:8):m4.test(e)?dv:+e}var S4="Expected a function",w4=Math.max,_4=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(S4);t=fv(t)||0,Gl(n)&&(y=!!n.leading,g="maxWait"in n,a=g?w4(fv(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?_4(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=Af();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(Af())}function z(){var M=Af(),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 E4="Expected a function";function x4(e,t,n){var s=!0,i=!0;if(typeof e!="function")throw new TypeError(E4);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 Io=function(){return Io=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},Io.apply(this,arguments)};function pv(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function hv(e){return!e||!e.ownerDocument?document:e.ownerDocument}var mv=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 gv(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function yv(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function vv(e){return".".concat(e.split(" ").join("."))}var Of=!!(typeof window<"u"&&window.document&&window.document.createElement),k4=Object.freeze({__proto__:null,addClasses:gv,canUseDOM:Of,classNamesToQuery:vv,getElementDocument:hv,getElementWindow:pv,getOptions:mv,removeClasses:yv}),Co=null,Sv=null;Of&&window.addEventListener("resize",function(){Sv!==window.devicePixelRatio&&(Sv=window.devicePixelRatio,Co=null)});function wv(){if(Co===null){if(typeof document>"u")return Co=0,Co;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),Co=n}return Co}var Br=pv,Pf=hv,T4=mv,zr=gv,Ur=yv,Kt=vv,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,zr(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(){Ur(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(zr(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){Ur(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=Pf(s.el),c=Br(s.el);i.preventDefault(),i.stopPropagation(),Ur(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=Io(Io({},e.defaultOptions),n),this.classNames=Io(Io({},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=x4(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:wv()}catch{return wv()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),s=Pf(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(){Of&&(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||(zr(this.axis.x.scrollbar.el,this.classNames.visible),zr(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&&(zr(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&&(Ur(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),zr(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?zr(n.scrollbar.el,this.classNames.hover):Ur(n.scrollbar.el,this.classNames.hover)):(Ur(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ur(this.axis[t].track.el,this.classNames.hover),Ur(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=Pf(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,zr(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=T4,e.helpers=k4,e}(),cn=function(){return cn=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},cn.apply(this,arguments)};function b4(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 _v=C.forwardRef(function(e,t){var n=e.children,s=e.scrollableNodeProps,i=s===void 0?{}:s,a=b4(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=cn(cn({},Pi.defaultOptions.classNames),h.classNames),w=cn(cn({},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,cn(cn(cn({},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",cn({"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:cn(cn({},w),{ref:d}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):C.createElement("div",cn({},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})))});_v.displayName="SimpleBar";const I4=Z("button")({name:"Container",class:"edc1q8nrja",propsAsIs:!1}),C4=Z("span")({name:"Text",class:"edt1votrxj",propsAsIs:!1}),R4=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"})),A4=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"})),O4=({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(I4,{style:{background:t?"var(--code-block-copied-button-bg)":"var(--code-block-copy-button-bg)"},onClick:i,children:[t?v.jsx(A4,{}):v.jsx(R4,{}),v.jsx(C4,{children:t?"copied":"copy"})]})},P4=({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(qM,{children:[v.jsxs(VM,{children:[v.jsx(QM,{children:n||"code"}),v.jsx(O4,{textToCopy:s})]}),v.jsx(GM,{style:c,children:v.jsx(_v,{autoHide:!1,style:c,children:v.jsx(YM,{children:v.jsx(KM,{style:{paddingRight:a?"20px":"10px"},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:t}})})})})})]})},N4=/\[(.*?)\]/g,Ev=(e,t)=>e.replace(N4,(n,s)=>t[s]?`${t[s]}`:n),M4=e=>Object.keys(e).reduce((t,n)=>{const s=e[n],i=s.slice(1,s.length-1);return{...t,[i]:`[${n}]`}},{}),xv=e=>C.useMemo(()=>{const t=M4(e);return{convertStringToReplacement:c=>Ev(c,e),convertStringToId:c=>Ev(c,t),convertIdToReplacement:c=>{const d=e[c];return d||c},convertReplacementToId:c=>{const d=t[c];return d||c}}},[e]),L4={1:BM,2:zM,3:UM,4:HM,5:"h5",6:"h6"},j4=({data:e,isEdgeText:t,replacements:n})=>{const{text:s,level:i}=e,{convertStringToReplacement:a}=xv(n),c=L4[i];return v.jsx(c,{isEdgeText:t,children:a(s)})},D4=Z("li")({name:"ListItem",class:"edl18kdprd",propsAsIs:!1}),$4=Z("ol")({name:"OrderedList",class:"edoyxj7j5",propsAsIs:!1}),F4=Z("div")({name:"Row",class:"edr7e6b3z",propsAsIs:!1}),B4=Z("ul")({name:"UnorderedList",class:"eduyntbxa",propsAsIs:!1}),z4=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"})),U4=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"})),H4=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"})),W4=Z("div")({name:"Container",class:"edc8c3d4h",propsAsIs:!1}),q4={0:v.jsx(z4,{}),1:v.jsx(U4,{}),2:v.jsx(H4,{})},V4=({style:e,text:t,level:n})=>{const i=e==="ordered"?t:q4[(n-1)%3];return v.jsx(W4,{children:i})},G4=({data:e,replacements:t,isAnswer:n,isPrizeInfo:s,isPrizeDesc:i,isEdgeText:a,isJourneyWidgetText:c,isNodeDescription:d})=>{const{convertStringToReplacement:f}=xv(t),{text:h}=e,y=f(h),g=kv(y);let w;return n?w=CM:s?w=OM:i?w=PM:a?w=av:c?w=RM:d?w=AM:w=IM,v.jsx(w,{dangerouslySetInnerHTML:{__html:g}})},kv=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},Y4=({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"?B4:$4;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(D4,{style:{paddingLeft:c===1?"0px":"32px"},children:[v.jsxs(F4,{children:[v.jsx(V4,{style:s,level:c,text:g}),v.jsx("span",{dangerouslySetInnerHTML:{__html:kv(h.content)}})]}),i(h.items,c+1,g)]})},y)})})};return v.jsx(v.Fragment,{children:i(n,1,"")})},K4=Z("blockquote")({name:"Container",class:"edc1pmqebe",propsAsIs:!1}),Q4=Z("span")({name:"Content",class:"edcfeuydt",propsAsIs:!1}),X4=Z("div")({name:"CaptionBlock",class:"edcqx7kpx",propsAsIs:!1}),J4=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"})),Z4=({data:e})=>v.jsxs(K4,{children:[v.jsx(J4,{}),v.jsx(Q4,{children:e.quote}),v.jsxs(X4,{children:[v.jsx("p",{children:e.authorName}),v.jsx("p",{children:e.profession})]})]}),eL=({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(MM,{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))})]})},tL=({data:e,isNodeDescription:t})=>{const{file:{url:n},stretched:s,withBackground:i,withBorder:a,caption:c}=e;let d;t?d=$M:d=jM;const f=s?"auto":"400px",h=s?"100%":"fit-content";return v.jsxs(DM,{style:{alignItems:s?"center":"flex-start"},children:[v.jsx(LM,{style:{width:h},children:v.jsx(d,{src:n,alt:c??"test image",style:{width:h,height:f},fetchpriority:"high"})}),c&&v.jsx(FM,{children:c})]})},nL=({data:e})=>v.jsx("div",{dangerouslySetInnerHTML:{__html:e==null?void 0:e.html}}),rL=({data:e,replacements:t,...n})=>{const s=fS(e,t,n);return v.jsx(WM,{style:{gap:n.isJourneyWidgetText?"12px":"14px"},children:s})},sL=Z("a")({name:"Border",class:"edb1n9nuyu",propsAsIs:!1}),oL=Z("div")({name:"FaviconContainer",class:"edf33eea4",propsAsIs:!1}),iL=Z("img")({name:"Favicon",class:"edf1siw68p",propsAsIs:!1}),aL=Z("div")({name:"MetaBlock",class:"edm1u7odcx",propsAsIs:!1}),Tv=Z("span")({name:"Text",class:"edt4nkw3z",propsAsIs:!1}),lL=Z(Tv)({name:"BoldText",class:"edbz1s450",propsAsIs:!0}),cL=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 bv(e,t){return function(){return e.apply(t,arguments)}}const{toString:uL}=Object.prototype,{getPrototypeOf:Nf}=Object,{iterator:Ql,toStringTag:Iv}=Symbol,Xl=(e=>t=>{const n=uL.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=e=>(e=e.toLowerCase(),t=>Xl(t)===e),Jl=e=>t=>typeof t===e,{isArray:Ro}=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 Cv=Nn("ArrayBuffer");function dL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cv(e.buffer),t}const fL=Jl("string"),Qt=Jl("function"),Rv=Jl("number"),Li=e=>e!==null&&typeof e=="object",pL=e=>e===!0||e===!1,Zl=e=>{if(Xl(e)!=="object")return!1;const t=Nf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Iv in e)&&!(Ql in e)},hL=e=>{if(!Li(e)||Mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mL=Nn("Date"),gL=Nn("File"),yL=Nn("Blob"),vL=Nn("FileList"),SL=e=>Li(e)&&Qt(e.pipe),wL=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]"))},_L=Nn("URLSearchParams"),[EL,xL,kL,TL]=["ReadableStream","Request","Response","Headers"].map(Nn),bL=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]),Ro(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 Av(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 Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ov=e=>!Ni(e)&&e!==Cs;function Mf(){const{caseless:e}=Ov(this)&&this||{},t={},n=(s,i)=>{const a=e&&Av(t,i)||i;Zl(t[a])&&Zl(s)?t[a]=Mf(t[a],s):Zl(s)?t[a]=Mf({},s):Ro(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 IL=(e,t,n,{allOwnKeys:s}={})=>(ji(t,(i,a)=>{n&&Qt(i)?e[a]=bv(i,n):e[a]=i},{allOwnKeys:s}),e),CL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RL=(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)},AL=(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&&Nf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OL=(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},PL=e=>{if(!e)return null;if(Ro(e))return e;let t=e.length;if(!Rv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},NL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nf(Uint8Array)),ML=(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])}},LL=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},jL=Nn("HTMLFormElement"),DL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Pv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$L=Nn("RegExp"),Nv=(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)},FL=e=>{Nv(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+"'")})}})},BL=(e,t)=>{const n={},s=i=>{i.forEach(a=>{n[a]=!0})};return Ro(e)?s(e):s(String(e).split(t)),n},zL=()=>{},UL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function HL(e){return!!(e&&Qt(e.append)&&e[Iv]==="FormData"&&e[Ql])}const WL=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=Ro(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)},qL=Nn("AsyncFunction"),VL=e=>e&&(Li(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Mv=((e,t)=>e?setImmediate:t?((n,s)=>(Cs.addEventListener("message",({source:i,data:a})=>{i===Cs&&a===n&&s.length&&s.shift()()},!1),i=>{s.push(i),Cs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(Cs.postMessage)),GL=typeof queueMicrotask<"u"?queueMicrotask.bind(Cs):typeof process<"u"&&process.nextTick||Mv,F={isArray:Ro,isArrayBuffer:Cv,isBuffer:Mi,isFormData:wL,isArrayBufferView:dL,isString:fL,isNumber:Rv,isBoolean:pL,isObject:Li,isPlainObject:Zl,isEmptyObject:hL,isReadableStream:EL,isRequest:xL,isResponse:kL,isHeaders:TL,isUndefined:Ni,isDate:mL,isFile:gL,isBlob:yL,isRegExp:$L,isFunction:Qt,isStream:SL,isURLSearchParams:_L,isTypedArray:NL,isFileList:vL,forEach:ji,merge:Mf,extend:IL,trim:bL,stripBOM:CL,inherits:RL,toFlatObject:AL,kindOf:Xl,kindOfTest:Nn,endsWith:OL,toArray:PL,forEachEntry:ML,matchAll:LL,isHTMLForm:jL,hasOwnProperty:Pv,hasOwnProp:Pv,reduceDescriptors:Nv,freezeMethods:FL,toObjectSet:BL,toCamelCase:DL,noop:zL,toFiniteNumber:UL,findKey:Av,global:Cs,isContextDefined:Ov,isSpecCompliantForm:HL,toJSONObject:WL,isAsyncFn:qL,isThenable:VL,setImmediate:Mv,asap:GL,isIterable:e=>e!=null&&Qt(e[Ql])};function xe(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(xe,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 Lv=xe.prototype,jv={};["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=>{jv[e]={value:e}}),Object.defineProperties(xe,jv),Object.defineProperty(Lv,"isAxiosError",{value:!0}),xe.from=(e,t,n,s,i,a)=>{const c=Object.create(Lv);return F.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),xe.call(c,e.message,t,n,s,i),c.cause=e,c.name=e.name,a&&Object.assign(c,a),c};const YL=null;function Lf(e){return F.isPlainObject(e)||F.isArray(e)}function Dv(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function $v(e,t,n){return e?e.concat(t).map(function(i,a){return i=Dv(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function KL(e){return F.isArray(e)&&!e.some(Lf)}const QL=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function ec(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.isBoolean(_))return _.toString();if(!f&&F.isBlob(_))throw new xe("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(_)&&KL(_)||(F.isFileList(_)||F.endsWith(x,"[]"))&&(O=F.toArray(_)))return x=Dv(x),O.forEach(function($,H){!(F.isUndefined($)||$===null)&&t.append(c===!0?$v([x],H,a):c===null?x:x+"[]",h($))}),!1}return Lf(_)?!0:(t.append($v(k,x,a),h(_)),!1)}const g=[],w=Object.assign(QL,{defaultVisitor:y,convertValue:h,isVisitable:Lf});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 Fv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function jf(e,t){this._pairs=[],e&&ec(e,this,t)}const Bv=jf.prototype;Bv.append=function(t,n){this._pairs.push([t,n])},Bv.toString=function(t){const n=t?function(s){return t.call(this,s,Fv)}:Fv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function XL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zv(e,t,n){if(!t)return e;const s=n&&n.encode||XL;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 jf(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Uv{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 Hv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JL={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:jf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Df=typeof window<"u"&&typeof document<"u",$f=typeof navigator=="object"&&navigator||void 0,ZL=Df&&(!$f||["ReactNative","NativeScript","NS"].indexOf($f.product)<0),ej=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tj=Df&&window.location.href||"http://localhost",Pt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Df,hasStandardBrowserEnv:ZL,hasStandardBrowserWebWorkerEnv:ej,navigator:$f,origin:tj},Symbol.toStringTag,{value:"Module"})),...JL};function nj(e,t){return ec(e,new Pt.classes.URLSearchParams,{visitor:function(n,s,i,a){return Pt.isNode&&F.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function rj(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sj(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 Wv(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]=sj(i[c])),!d)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,(s,i)=>{t(rj(s),i,n,0)}),n}return null}function oj(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 Di={transitional:Hv,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(Wv(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 nj(t,this.formSerializer).toString();if((d=F.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),oj(t)):t}],transformResponse:[function(t){const n=this.transitional||Di.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"?xe.from(d,xe.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}}};F.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});const ij=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"]),aj=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]&&ij[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},qv=Symbol("internals");function $i(e){return e&&String(e).trim().toLowerCase()}function tc(e){return e===!1||e==null?e:F.isArray(e)?e.map(tc):String(e)}function lj(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 cj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ff(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 uj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function dj(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})})}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=F.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)=>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())&&!cj(t))c(aj(t),n);else if(F.isObject(t)&&F.isIterable(t)){let d={},f,h;for(const y of t){if(!F.isArray(y))throw TypeError("Object iterator must return a key-value pair");d[h=y[0]]=(f=d[h])?F.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=F.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return lj(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=$i(t),t){const s=F.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=F.findKey(s,c);d&&(!n||Ff(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||Ff(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]=tc(i),delete n[a];return}const d=t?uj(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 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(`
`)}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[qv]=this[qv]={accessors:{}}).accessors,i=this.prototype;function a(c){const d=$i(c);s[d]||(dj(i,c),s[d]=!0)}return F.isArray(t)?t.forEach(a):a(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),F.freezeMethods(Xt);function Bf(e,t){const n=this||Di,s=t||n,i=Xt.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 Vv(e){return!!(e&&e.__CANCEL__)}function Ao(e,t,n){xe.call(this,e??"canceled",xe.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(Ao,xe,{__CANCEL__:!0});function Gv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new xe("Request failed with status code "+n.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pj(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 hj(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=pj(50,250);return hj(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)},Yv=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Kv=e=>(...t)=>F.asap(()=>e(...t)),mj=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,gj=Pt.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 yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qv(e,t,n){let s=!yj(t);return e&&(s||n==!1)?vj(e,t):t}const Xv=e=>e instanceof Xt?{...e}:e;function Rs(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(Xv(h),Xv(y),g,!0)};return F.forEach(Object.keys({...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 Jv=e=>{const t=Rs({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:a,headers:c,auth:d}=t;t.headers=c=Xt.from(c),t.url=zv(Qv(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(F.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&&F.isFunction(s)&&(s=s(t)),s||s!==!1&&mj(t.url))){const h=i&&a&&gj.read(a);h&&c.set(i,h)}return t},Sj=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=Jv(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};Gv(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 xe("Request aborted",xe.ECONNABORTED,e,k)),k=null)},k.onerror=function(){s(new xe("Network Error",xe.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||Hv;i.timeoutErrorMessage&&(H=i.timeoutErrorMessage),s(new xe(H,z.clarifyTimeoutError?xe.ETIMEDOUT:xe.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,_]=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 Ao(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=fj(i.url);if(R&&Pt.protocols.indexOf(R)===-1){s(new xe("Unsupported protocol "+R+":",xe.ERR_BAD_REQUEST,e));return}k.send(a||null)})},wj=(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 xe?y:new Ao(y instanceof Error?y.message:y))}};let c=t&&setTimeout(()=>{c=null,a(new xe(`timeout ${t} of ms exceeded`,xe.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}},_j=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},Ej=async function*(e,t){for await(const n of xj(e))yield*_j(n,t)},xj=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()}},Zv=(e,t,n,s)=>{const i=Ej(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",eS=rc&&typeof ReadableStream=="function",kj=rc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Tj=eS&&tS(()=>{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}),nS=64*1024,zf=eS&&tS(()=>F.isReadableStream(new Response("").body)),sc={stream:zf&&(e=>e.body)};rc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sc[t]&&(sc[t]=F.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new xe(`Response type '${t}' is not supported`,xe.ERR_NOT_SUPPORT,s)})})})(new Response);const bj=async e=>{if(e==null)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e))return(await new Request(Pt.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 kj(e)).byteLength},Ij=async(e,t)=>{const n=F.toFiniteNumber(e.getContentLength());return n??bj(t)},Uf={http:YL,xhr:Sj,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}=Jv(e);h=h?(h+"").toLowerCase():"text";let E=wj([i,a&&a.toAbortSignal()],c),_;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let k;try{if(f&&Tj&&n!=="get"&&n!=="head"&&(k=await Ij(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]=Yv(k,nc(Kv(f)));s=Zv(z.body,nS,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(_,w);const $=zf&&(h==="stream"||h==="response");if(zf&&(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&&Yv(M,nc(Kv(d),!0))||[];R=new Response(Zv(R.body,nS,L,()=>{U&&U(),x&&x()}),z)}h=h||"text";let H=await sc[F.findKey(sc,h)||"text"](R,e);return!$&&x&&x(),await new Promise((z,M)=>{Gv(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 xe("Network Error",xe.ERR_NETWORK,e,_),{cause:O.cause||O}):xe.from(O,O&&O.code,e,_)}})};F.forEach(Uf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rS=e=>`- ${e}`,Cj=e=>F.isFunction(e)||e===null||e===!1,sS={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,!Cj(n)&&(s=Uf[(c=String(n)).toLowerCase()],s===void 0))throw new xe(`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(rS).join(`
`):" "+rS(a[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Uf};function Hf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ao(null,e)}function oS(e){return Hf(e),e.headers=Xt.from(e.headers),e.data=Bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sS.getAdapter(e.adapter||Di.adapter)(e).then(function(s){return Hf(e),s.data=Bf.call(e,e.transformResponse,s),s.headers=Xt.from(s.headers),s},function(s){return Vv(s)||(Hf(e),s&&s.response&&(s.response.data=Bf.call(e,e.transformResponse,s.response),s.response.headers=Xt.from(s.response.headers))),Promise.reject(s)})}const iS="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 aS={};oc.transitional=function(t,n,s){function i(a,c){return"[Axios v"+iS+"] Transitional option '"+a+"'"+c+(s?". "+s:"")}return(a,c,d)=>{if(t===!1)throw new xe(i(c," has been removed"+(n?" in "+n:"")),xe.ERR_DEPRECATED);return n&&!aS[c]&&(aS[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 Rj(e,t,n){if(typeof e!="object")throw new xe("options must be an object",xe.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 xe("option "+a+" must be "+f,xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xe("Unknown option "+a,xe.ERR_BAD_OPTION)}}const ic={assertOptions:Rj,validators:oc},Yn=ic.validators;class As{constructor(t){this.defaults=t||{},this.interceptors={request:new Uv,response:new Uv}}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=Rs(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:a}=n;s!==void 0&&ic.assertOptions(s,{silentJSONParsing:Yn.transitional(Yn.boolean),forcedJSONParsing:Yn.transitional(Yn.boolean),clarifyTimeoutError:Yn.transitional(Yn.boolean)},!1),i!=null&&(F.isFunction(i)?n.paramsSerializer={serialize:i}:ic.assertOptions(i,{encode:Yn.function,serialize:Yn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ic.assertOptions(n,{baseUrl:Yn.spelling("baseURL"),withXsrfToken:Yn.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=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 _=[oS.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=oS.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=Rs(this.defaults,t);const n=Qv(t.baseURL,t.url,t.allowAbsoluteUrls);return zv(n,t.params,t.paramsSerializer)}}F.forEach(["delete","get","head","options"],function(t){As.prototype[t]=function(n,s){return this.request(Rs(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(Rs(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}As.prototype[t]=n(),As.prototype[t+"Form"]=n(!0)});class Wf{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 Ao(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 Wf(function(i){t=i}),cancel:t}}}function Aj(e){return function(n){return e.apply(null,n)}}function Oj(e){return F.isObject(e)&&e.isAxiosError===!0}const qf={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(qf).forEach(([e,t])=>{qf[t]=e});function lS(e){const t=new As(e),n=bv(As.prototype.request,t);return F.extend(n,As.prototype,t,{allOwnKeys:!0}),F.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return lS(Rs(e,i))},n}const it=lS(Di);it.Axios=As,it.CanceledError=Ao,it.CancelToken=Wf,it.isCancel=Vv,it.VERSION=iS,it.toFormData=ec,it.AxiosError=xe,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=Aj,it.isAxiosError=Oj,it.mergeConfig=Rs,it.AxiosHeaders=Xt,it.formToJSON=e=>Wv(F.isHTMLForm(e)?new FormData(e):e),it.getAdapter=sS.getAdapter,it.HttpStatusCode=qf,it.default=it;const cS="https://api.edmap.space",ac=it.create();ac.defaults.baseURL=cS,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 Fi={};function uS(e){return localStorage.removeItem("access"),localStorage.removeItem("refresh"),localStorage.removeItem("userId"),window.location.href="/sign-in",Promise.reject(e)}function dS(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(!Fi.time||Date.now()-Fi.time>1e3*3){const i=it.post(`${cS}/auth/revalidate-token`,{refreshToken:n},{headers:{Authorization:`Bearer ${n}`}});Fi.time=Date.now(),Fi.request=i;const a=await i;return dS(a,t)}const s=await Fi.request;if(!s)throw new Error;return dS(s,t)}catch(s){return uS(s)}else return uS(e)});const Pj=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||""}},Nj=({data:e})=>v.jsxs(sL,{href:e.url,target:"_blank",children:[v.jsx(oL,{children:v.jsx(iL,{src:`https://www.google.com/s2/favicons?sz=64&domain_url=${encodeURIComponent(e.url)}`,alt:"favicon"})}),v.jsxs(aL,{children:[v.jsx(Tv,{children:Pj(e.url)}),v.jsx(lL,{children:e.title})]}),v.jsx(cL,{})]}),Mj=Z("div")({name:"Container",class:"edc85czkw",propsAsIs:!1}),Lj=({data:e})=>v.jsxs(Mj,{role:"alert",children:[v.jsx("p",{children:e.message}),v.jsx("p",{children:e.title})]}),jj=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},Dj=e=>{if(e==="paragraph")return G4;if(e==="list")return Y4;if(e==="quote")return Z4;if(e==="header")return j4;if(e==="mergedHeaderAndParagraph")return rL;if(e==="code")return P4;if(e==="table")return eL;if(e==="image")return tL;if(e==="linkBlock")return Nj;if(e==="warning")return Lj;if(e==="raw")return nL},fS=(e,t,n)=>{const s=[];return e.forEach(({id:i,data:a,type:c})=>{const d=Dj(c),f=d?v.jsx(d,{data:a,replacements:t,...n},i):null;s.push(f)}),s},Bi=({blocksArray:e,replacements:t={},...n})=>{if(!e||!Array.isArray(e))return;const s=jj(e),i=fS(s,t,n);return v.jsx(NM,{...n,children:i})},pS=()=>{const e=an(i=>i.isRichTextModalOpen),t=an(i=>i.closeModalForRichText),n=an(i=>i.richTextBlocks),s=C.useRef(null);if(C.useEffect(()=>{const i=a=>{s.current&&!s.current.contains(a.target)&&t()};return e?document.addEventListener("mousedown",i):document.removeEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[e]),!!e)return v.jsx(kM,{children:v.jsxs(TM,{ref:s,children:[v.jsx(bM,{onClick:t,children:"✕"}),v.jsx(Bi,{blocksArray:n,isPrizeDesc:!0})]})})},$j=j("div")({name:"Container",class:"edc1uixbmy",propsAsIs:!1}),Fj=j("ul")({name:"List",class:"edl1h2mntg",propsAsIs:!1}),Bj=j("div")({name:"Wrapper",class:"edwkqefnd",propsAsIs:!1}),zj=j("li")({name:"Participant",class:"edp1m90lkb",propsAsIs:!1}),Uj=j("li")({name:"ParticipantPosition",class:"edplp9wkn",propsAsIs:!1}),Hj=j("div")({name:"ParticipantWrapper",class:"edpi7ekwg",propsAsIs:!1}),Wj=j("div")({name:"PointsWrapper",class:"edp8vzmbe",propsAsIs:!1}),qj=j("p")({name:"Points",class:"edpnrrx6w",propsAsIs:!1}),Vj=j("div")({name:"LoaderWrapper",class:"edli7avpg",propsAsIs:!1}),Gj=()=>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"})}),Yj=()=>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"})]}),Kj=j("ul")({name:"Container",class:"edc65edga",propsAsIs:!1}),Qj=()=>e=>e.active?"var(--accent)":"var(--popup-menu-tabs)",Xj=()=>e=>(e.active,"var(--accent)"),Jj=j("li")({name:"PaginationItem",class:"edp1cf5kvo",propsAsIs:!1,vars:{"p1cf5kvo-0":[Qj()],"p1cf5kvo-1":[Xj()]}}),Zj=j("div")({name:"Dots",class:"eddw2ykav",propsAsIs:!1}),hS=j("button")({name:"ChevronButton",class:"edcjgljwh",propsAsIs:!1}),mS=()=>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"})}),e6=({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(Kj,{children:[v.jsx(hS,{onClick:()=>t(e-1),disabled:e<2,children:v.jsx(mS,{})}),i.map((a,c)=>v.jsx(Jj,{active:a===e,children:a==="..."?v.jsx(Zj,{children:"..."}):v.jsx(U1,{title:a,onClick:()=>t(a)})},c)),v.jsx(hS,{onClick:()=>t(e+1),disabled:e>=n,children:v.jsx(mS,{})})]})},t6=j("div")({name:"Container",class:"edc1o85nbd",propsAsIs:!1}),n6=j("h1")({name:"Title",class:"edtueka45",propsAsIs:!1}),gS=({title:e})=>v.jsxs(t6,{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(n6,{children:e})]}),r6=()=>{const e=Me(_=>_.mapLeaderboard),t=Me(_=>_.setMapLeaderboard),[n,s]=C.useState(1),[i,a]=C.useState(0),[c,d]=C.useState(!1),f=We(_=>_.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),WP(_,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(Vj,{children:v.jsx(gS,{})}):v.jsxs($j,{children:[v.jsx(Fj,{children:e==null?void 0:e.map((_,x)=>{var O;const k=y+x+1;return v.jsxs(Bj,{children:[v.jsxs(Hj,{children:[v.jsx(Uj,{children:k}),v.jsx(Yj,{}),v.jsx(zj,{children:((O=_==null?void 0:_.User)==null?void 0:O.username)??f.defaultName})]}),v.jsxs(Wj,{children:[v.jsx(Gj,{}),v.jsx(qj,{children:_==null?void 0:_.allPoints})]})]},_==null?void 0:_.id)})}),i&&v.jsx(e6,{currentPage:n,handleSetCurrentPage:E,totalPages:g})]})},s6=j("div")({name:"Background",class:"edb1d6ibuo",propsAsIs:!1}),o6=j("div")({name:"Container",class:"edc9edd3f",propsAsIs:!1}),i6=j("div")({name:"PrizeBlock",class:"edpzra8fb",propsAsIs:!1}),a6=j("div")({name:"ButtonBlock",class:"edb17wiemr",propsAsIs:!1}),l6=()=>{const e=an(f=>f.prize),t=an(f=>f.isRegistrationModalOpen),n=an(f=>f.closeModalForRegistration),s=ln(f=>f.setIsRegistrationOpen),i=C.useRef(null),a=We(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(!0),n()};return t?v.jsx(s6,{children:v.jsxs(o6,{ref:i,children:[v.jsxs(A1,{children:[v.jsx(O1,{children:a.title}),v.jsx(P1,{children:a.subtitle})]}),v.jsx(i6,{children:v.jsxs(j1,{children:[v.jsx(D1,{children:v.jsx(W1,{iconId:e==null?void 0:e.iconId})}),v.jsx($1,{children:e==null?void 0:e.name})]})}),v.jsxs(a6,{children:[v.jsx(Sn,{title:a.buttonTitle,onClick:n}),v.jsx(Sn,{"data-testid":"edmap-widget__signin-popup-btn",title:a.accentButtonTitle,isAccent:!0,onClick:d})]})]})}):null};var zi=Gh();const c6=j("div")({name:"Container",class:"edc1uqjekp",propsAsIs:!1}),u6=j("div")({name:"Container",class:"edc1sokvv3",propsAsIs:!1}),d6=(e,t)=>{const n=URL.createObjectURL(e);f6(n,t),URL.revokeObjectURL(n)},yS=e=>d6(e,e.name),f6=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),n.remove()},p6=()=>typeof navigator<"u"&&typeof navigator.share=="function",h6=e=>{try{return navigator.canShare({files:[e]})}catch{return!1}},m6=e=>e?p6()&&h6(e):!1,g6=e=>navigator.share({files:[e]}).then(()=>!0).catch(t=>(yS(e),!1)),y6=()=>{const{share:e,downloadFallback:t}=We(i=>i.translations.share),n=an(i=>i.certificate.file);if(!n)return null;const s=m6(n);return v.jsx(u6,{children:s?v.jsx(Sn,{title:e,onClick:()=>g6(n),isAccent:!0}):v.jsx(Sn,{title:t,onClick:()=>yS(n),isAccent:!0})})},v6=()=>{const e=an(a=>a.isCertificateModalOpen),t=an(a=>a.closeCertificateModal),n=an(a=>a.certificate.url),s=C.useRef(null),i=a=>{var f;!s.current||(((f=a.composedPath)==null?void 0:f.call(a))||[]).includes(s.current)||t()};return C.useEffect(()=>(e?setTimeout(()=>document.addEventListener("click",i)):document.removeEventListener("click",i),()=>{document.removeEventListener("click",i)}),[e]),e?zi.createPortal(v.jsxs(c6,{ref:s,children:[v.jsx("img",{src:n}),v.jsx(y6,{})]}),document.body):null},S6=()=>{const e=ln(k=>k.isPanelModalOpen),t=ln(k=>k.setIsPanelOpen),n=ln(k=>k.isRegistrationOpen),s=ln(k=>k.setIsRegistrationOpen),[i,a]=C.useState(0),[c,d]=C.useState(!0),f=Ct(k=>k.results),h=(f==null?void 0:f.allPoints)||0,y=We(k=>k.translations.popup),g=h<10?1:Math.floor(h/10),w=C.useRef(null),E=w1(),_=[v.jsx(JN,{}),v.jsx(Tf,{quests:f==null?void 0:f.quests}),v.jsx(r6,{}),v.jsx(eM,{})],x=k=>{var $;!w.current||((($=k.composedPath)==null?void 0:$.call(k))||[]).includes(w.current)||(a(0),t(!1))};if(C.useEffect(()=>(e?setTimeout(()=>document.addEventListener("click",x)):document.removeEventListener("click",x),()=>{document.removeEventListener("click",x)}),[e]),!!e)return v.jsx(lN,{ref:w,id:"edmap-widget__popup",children:v.jsxs(cN,{children:[v.jsx(E3,{userLevel:g}),!E&&c&&v.jsx(uN,{children:v.jsx(bf,{setIsRegInfoVisible:d,openSignInModal:()=>s(!0)})}),v.jsx(SN,{data:y.menuItems,activeIndex:i,setActiveIndex:a}),v.jsx(dN,{children:_[i]}),v.jsx(iv,{isOpen:n,closeModal:()=>s(!1),setIsSocialModalVisible:()=>{},isSocialModalVisible:!0}),v.jsx(l6,{}),v.jsx(pS,{})]})})},w6=j("div")({name:"Container",class:"edc16l98jz",propsAsIs:!1}),_6=j("div")({name:"ImageWrapper",class:"edi13krnav",propsAsIs:!1}),E6=j("div")({name:"InfoWrapper",class:"edied2wr6",propsAsIs:!1}),x6=j("div")({name:"LevelWrapper",class:"edl11c2ni8",propsAsIs:!1}),k6=j("div")({name:"TextWrapper",class:"edt133co2j",propsAsIs:!1}),T6=j("img")({name:"Confetti",class:"edc1etko73",propsAsIs:!1}),b6=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(C6,{...e,children:v.jsx(b6,{})}),C6=Z("button")({name:"Button",class:"edb1b1pm51",propsAsIs:!1}),R6="https://widget.edmap.space/assets/confetti-edmap-widget.gif",A6=({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(T6,{src:R6,alt:"Confetti"})},O6=()=>{var f,h,y,g,w,E,_;const e=ln(x=>x.isPanelModalOpen),t=ln(x=>x.setIsPanelOpen),n=Ct(x=>x.results),s=Ct(x=>x.setPointsAreReceived),i=We(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(w6,{onClick:d,id:"edmap-widget__popup-bar",children:[v.jsx(_6,{children:v.jsx(xf,{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(E6,{children:[v.jsxs(x6,{children:[v.jsx(Ef,{level:kf(c)}),v.jsxs(k6,{children:[v.jsx(Is,{text:i.prizesTitle,progressValue:a??0,overallValue:((w=n==null?void 0:n.prizes)==null?void 0:w.length)??0}),v.jsx(Is,{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(Fl,{progressValue:(n==null?void 0:n.allPoints)??0,overallValue:((_=n==null?void 0:n.map)==null?void 0:_.points)??0})]}),v.jsx(A6,{points:c,setPointsAreReceived:s})]})})};Ut((e,t)=>({isOpen:!1,toggle:()=>e(n=>({isOpen:!n.isOpen})),closeModal:()=>e({isOpen:!1}),openModal:()=>e({isOpen:!0})}));const lc=Ut(e=>({popupBarStyle:{},widgetContainerStyle:{},setPopupBarStyle:t=>e({popupBarStyle:t}),setWidgetContainerStyle:t=>e({widgetContainerStyle:t})})),P6=j("div")({name:"Container",class:"edc1vap6o9",propsAsIs:!1}),N6=()=>{const e=ln(i=>i.isPanelModalOpen),t=lc(i=>i.popupBarStyle),n=Me(i=>i.quest);return(n==null?void 0:n.isMiniPanelVisible)||e?v.jsxs(P6,{style:t,children:[v.jsx(S6,{}),(n==null?void 0:n.isMiniPanelVisible)&&v.jsx(O6,{})]}):null},vS=e=>{if(!e)return{};if(e.startsWith("{"))try{e=e.slice(1,e.length-1)}catch(n){return An(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},M6=(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},L6=j("div")({name:"Container",class:"edcsc8z9h",propsAsIs:!1}),j6=j("div")({name:"HidingContainer",class:"edhc15unp",propsAsIs:!1}),SS=j("div")({name:"QuestionBlock",class:"edq12kw8l3",propsAsIs:!1}),D6=j("div")({name:"HeaderScrollableSpace",class:"edh1iwfgmu",propsAsIs:!1}),$6=j("div")({name:"SidePadding",class:"edsz53tfr",propsAsIs:!1}),F6=j("div")({name:"Container",class:"edc8gkhop",propsAsIs:!1}),B6=j("div")({name:"TitleSection",class:"edtp3l3kp",propsAsIs:!1}),z6=j("div")({name:"Wrapper",class:"edw11bk3uj",propsAsIs:!1}),wS=j("div")({name:"Divider",class:"edd1nx5xv8",propsAsIs:!1}),U6=j("div")({name:"UserContainer",class:"edu5m07eq",propsAsIs:!1}),H6=j("h2")({name:"Title",class:"edt1xyelki",propsAsIs:!1}),W6=j("div")({name:"AvatarContainer",class:"eda1j00vs7",propsAsIs:!1}),q6=j("button")({name:"AvatarButton",class:"edab6hzvg",propsAsIs:!1}),V6=j("div")({name:"LevelContainer",class:"edl8lxqvm",propsAsIs:!1}),G6=j("div")({name:"ButtonContainer",class:"edb1m2edat",propsAsIs:!1}),Y6=j("div")({name:"Container",class:"edcitwxpq",propsAsIs:!1}),K6=j("div")({name:"QuestTypeIcon",class:"edqdo840j",propsAsIs:!1}),Q6=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"})),X6=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"})),J6=()=>{const t=Me(n=>n.quest).questType==="Test"?v.jsx(X6,{}):v.jsx(Q6,{});return v.jsx(Y6,{children:v.jsx(K6,{children:t})})},Z6=({icon:e,...t})=>v.jsx(wf,{...t,children:e}),eD=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"})),tD=j("div")({name:"Container",class:"edchp8usr",propsAsIs:!1}),nD=j("span")({name:"Text",class:"edt141dyxo",propsAsIs:!1}),_S=({minutes:e,seconds:t})=>(e=Math.max(0,e),t=Math.max(0,t),v.jsxs(nD,{children:[e.toString().padStart(2,"0"),":",t.toString().padStart(2,"0")]})),rD=e=>{const t=$P(e);if(!t)return Date.now();const[n,s]=t.split("@");return Number(s)},sD=e=>Date.now()-e,oD=(e,t)=>{const n=rD(t);return iD(e,n)},iD=(e,t)=>{const n=Math.floor(sD(t)/1e3),s=e-n,i=s%60,a=Math.floor(s/60);return{seconds:i,minutes:a}},aD=j("div")({name:"Container",class:"edc1qu2wft",propsAsIs:!1}),lD=j("div")({name:"TextBlock",class:"edtoc84xr",propsAsIs:!1}),cD=j("p")({name:"RestrictionText",class:"edr6awsvd",propsAsIs:!1}),Vf=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"})),uD=({timeValues:e})=>{const{remainingTitle:t}=We(n=>n.translations.timer);return v.jsxs(aD,{children:[v.jsx(Vf,{}),v.jsxs(lD,{children:[v.jsx(cD,{children:t}),v.jsx(_S,{...e})]})]})},dD=j("div")({name:"Container",class:"edc16uhwme",propsAsIs:!1}),fD=({timeValues:e})=>v.jsxs(dD,{children:[v.jsx(Vf,{}),v.jsx(_S,{...e})]}),cc=Ut(e=>({isTimerOverlapped:!1,values:{minutes:0,seconds:0},setIsTimerOverlapped:t=>e({isTimerOverlapped:t}),setValues:t=>e({values:t})})),ES=({type:e})=>{const t=Me(h=>h.quest),n=cc(h=>h.values),s=cc(h=>h.setValues),i=Me(h=>h.setIsFinished),a=Me(h=>h.isFinished),c=Wl(h=>h.startFadeTransition),d=()=>oD(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(uD,{timeValues:n}):v.jsx(fD,{timeValues:n})},pD=()=>{const e=Me(n=>n.quest),t=cc(n=>n.isTimerOverlapped);return e.timeLimitSeconds===0||!t?null:v.jsxs(tD,{children:[v.jsx(wS,{}),v.jsx(ES,{type:"vertical"})]})},xS=Ut(e=>({height:0,width:null,setHeight:t=>e({height:t}),setWidth:t=>e({width:t}),headerShift:0,setHeaderShift:t=>e({headerShift:t})})),uc=Ut((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})})),hD=Z("div")({name:"Container",class:"edcsej1qu",propsAsIs:!1}),mD=()=>({verticalDirection:e})=>e==="down"?"100%":"unset",gD=()=>({verticalDirection:e})=>e==="up"?"100%":"unset",yD=()=>({horizontalDirection:e})=>e==="left"?"unset":"0",vD=()=>({horizontalDirection:e})=>e==="left"?"0":"unset",SD=Z("div")({name:"DropdownMenu",class:"edd146lpl0",propsAsIs:!1,vars:{"d146lpl0-0":[mD()],"d146lpl0-1":[gD()],"d146lpl0-2":[yD()],"d146lpl0-3":[vD()]}}),wD=()=>({isChosen:e})=>e?"var(--dropdown-item-bg-active)":"transparent",_D=()=>({isChosen:e})=>e?"block":"none",ED=Z("div")({name:"MenuItem",class:"edmqt74d7",propsAsIs:!1,vars:{"mqt74d7-0":[wD()],"mqt74d7-1":[_D()]}}),xD=(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},kD=({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(hD,{...d,ref:y,children:[n,i&&e.length>0&&v.jsx(SD,{ref:g,verticalDirection:f,horizontalDirection:w,children:e.map(R=>v.jsx(ED,{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))})]})},TD=Z("button")({name:"ButtonContainer",class:"edb1lpjq8r",propsAsIs:!1}),bD=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(kD,{...e,isDropdownOpen:t,setIsDropdownOpen:n,items:s,dropdownButton:v.jsx(TD,{onClick:i,children:e.dropdownButton})})},ID=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"})),CD=j("div")({name:"MenuContainer",class:"edm1b26o2n",propsAsIs:!1}),RD=({parentRef:e})=>{const{restartQuest:t}=To(),{restart:n}=We(i=>i.translations.gameMenu),s=C.useMemo(()=>[{id:"reset-session",name:n,callback:t}],[t,n]);return v.jsx(bD,{viewportRef:e,dropdownButton:v.jsx(CD,{children:v.jsx(ID,{})}),items:s})},AD=({isSticky:e,style:t,parentRef:n})=>{var R,$,H,z,M;const s=Ct(L=>L.results),i=Me(L=>L.quest),a=ln(L=>L.isPanelModalOpen),c=ln(L=>L.setIsPanelOpen),d=C.useRef(null),f=We(L=>L.translations.header),h=xS(L=>L.setHeight),y=uc(L=>L.width),g=pr(L=>L.topOffset),w=pr(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?eD:Y1,k=e?-g+w:-g,O=v.jsxs(F6,{id:"edmap-header",ref:d,style:{position:e?"fixed":"absolute",top:`${k}px`,...t,width:y??"100%"},children:[v.jsx(J6,{}),v.jsxs(B6,{children:[v.jsxs(z6,{children:[v.jsx(H6,{children:i==null?void 0:i.name}),v.jsx(Is,{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(Fl,{progressValue:(s==null?void 0:s.allPoints)??0,overallValue:(($=s==null?void 0:s.map)==null?void 0:$.points)??0})]}),v.jsx(G6,{children:v.jsx(Z6,{onMouseDown:_,onClick:E,icon:v.jsx(x,{})})}),v.jsx(wS,{}),v.jsxs(U6,{children:[v.jsx(RD,{parentRef:n}),v.jsxs(W6,{children:[v.jsx(xf,{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(q6,{onClick:E,"aria-label":"avatar-button"}),v.jsx(V6,{children:v.jsx(Ef,{level:kf(s==null?void 0:s.allPoints)})})]})]}),v.jsx(pD,{})]});return e&&typeof document<"u"?zi.createPortal(O,document.body):O},kS=Ut(e=>({top:0,bottom:0,height:0,setTop:t=>e({top:t}),setBottom:t=>e({bottom:t}),setHeight:t=>e({height:t})})),OD=(e,t,n)=>t.textAnswer.length===0,PD={[St.test]:()=>!1,[St.journey]:OD},ND=()=>{const{currentZustandHook:e,quest:t}=nv(),[n,s]=C.useState(e.getState());return C.useEffect(()=>{const i=e.subscribe(a=>{s(a)});return()=>i()},[t,e]),C.useMemo(()=>PD[t.questType](t,n,null),[n,t])},MD=()=>{const e=We(s=>s.translations.footer),{makeStep:t}=To(),n=ND();return v.jsx(Sn,{disabled:n,id:"edmap-widget__accept-btn","data-test":"button game",title:e.accentButtonTitle,isAccent:!0,onClick:t})},LD=()=>{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=kS(g=>g.setHeight),c=hr(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===ql.inputAnswerNode,y=d===St.test||h;return v.jsxs(sM,{ref:i,children:[v.jsx(tM,{children:v.jsx(G1,{})}),!n&&y&&v.jsxs(rM,{children:[f?null:v.jsx(nM,{children:v.jsx(Is,{progressValue:e,overallValue:t})}),v.jsx(rv,{children:v.jsx(MD,{})})]})]})},jD=(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},TS=j("div")({name:"Container",class:"edc12456a3",propsAsIs:!1}),DD=j(TS)({name:"BottomSensorContainer",class:"edbig50hz",propsAsIs:!0}),$D=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=jD(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(DD,{className:a??"edmap-sensor",ref:y,style:g}):w=v.jsx(TS,{className:a??"edmap-sensor",ref:y,style:g}),f?zi.createPortal(w,document.body):w}),Os=Tt.memo($D),FD=j("div")({name:"Background",class:"edb1tdpu9l",propsAsIs:!1}),BD=j(z1)({name:"Button",class:"edb16l2gyb",propsAsIs:!0}),zD=j("p")({name:"Title",class:"edt15nnhmy",propsAsIs:!1}),UD=j("p")({name:"Subtitle",class:"eds1a894cv",propsAsIs:!1}),HD=j("div")({name:"Container",class:"edczp6bkd",propsAsIs:!1}),WD=j("div")({name:"TextContainer",class:"edt1807jed",propsAsIs:!1}),qD=({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 VD extends Tt.Component{constructor(t){super(t),this.state={isError:!1}}static getDerivedStateFromError(){return{isError:!0}}componentDidCatch(t,n){An(t)}handleRefresh(){window.location.reload()}render(){return this.state.isError?v.jsx(FD,{children:v.jsxs(HD,{children:[v.jsxs(WD,{children:[v.jsx(zD,{children:this.props.translations.title}),v.jsx(UD,{children:this.props.translations.subtitle})]}),v.jsx(BD,{onClick:()=>this.handleRefresh(),children:v.jsx(qD,{width:80,height:75})})]})}):this.props.children}}const bS=({children:e})=>{const t=We(n=>n.translations.globalError);return v.jsx(VD,{translations:t,children:e})},GD=({children:e})=>{const t=Me(n=>n.quest);return t!=null&&t.id?v.jsx(v.Fragment,{children:e}):v.jsx(gS,{})},YD=j("div")({name:"Container",class:"edctzb4h8",propsAsIs:!1}),KD=j("p")({name:"Title",class:"edtg41o65",propsAsIs:!1}),Gf=e=>{if(!e)return 60;const n=new Date(e).getTime()-Date.now();return n<0?0:Math.round(n/1e3)},QD=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}`},XD=j("div")({name:"Container",class:"edc11azq9p",propsAsIs:!1}),IS=({expiresAt:e,onTimeEnds:t})=>{const[n,s]=C.useState(Gf(e)),i=We(a=>a.translations.user.ban);return C.useEffect(()=>{s(Gf(e))},[e]),C.useEffect(()=>{const a=setInterval(()=>{s(Gf(e))},1e3);return()=>{clearInterval(a)}},[e]),C.useEffect(()=>{n>0||t&&t()},[n]),v.jsxs(XD,{children:[v.jsx(Vf,{}),v.jsxs("span",{children:[i.wait," ",QD(n)]})]})},CS=async e=>{if(!ko())return!1;const{data:n}=await ut.get(`/banned-user/${ko()}/${e}`),{isBanned:s,expiresAt:i}=n;return{isBanned:s,expiresAt:i}},RS=()=>{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(()=>{CS(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}},JD=({children:e})=>{const t=We(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}=RS();return C.useEffect(()=>{c()},[n]),s?e:v.jsxs(YD,{children:[v.jsx(KD,{children:t.forbiddenQuest}),v.jsx(IS,{expiresAt:i,onTimeEnds:a})]})},ZD=(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])},e5=j("div")({name:"Background",class:"edbgw902r",propsAsIs:!1}),t5=j("div")({name:"Container",class:"edcv2zzw1",propsAsIs:!1}),n5=j("div")({name:"MessageBlock",class:"edm2b9k2r",propsAsIs:!1}),r5=j("div")({name:"Row",class:"edr4gsubj",propsAsIs:!1}),s5=j("div")({name:"Divider",class:"edd3sdabk",propsAsIs:!1}),o5=j("h1")({name:"Title",class:"edt1cvxfwm",propsAsIs:!1}),i5=j("div")({name:"QuestsContainer",class:"edq1tclzqz",propsAsIs:!1}),AS=j("div")({name:"Section",class:"eds1ce4iti",propsAsIs:!1}),OS=j("p")({name:"SectionTitle",class:"edsqdd2kx",propsAsIs:!1}),a5=j(r5)({name:"PrizesContainer",class:"edpiwm40a",propsAsIs:!0}),l5=(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):[]},c5=e=>{const t=e==null?void 0:e.prizes,n=e==null?void 0:e.allPoints;return t?t.filter(i=>i.awardPoints>n):[]},u5=async e=>{if(kr.reportQuestEnded(e.mapId,e.id),e.questType==="Test")return HP(e);if(e.questType==="Journey")return V3(e)},d5=(e,t)=>{const n=f5(e,t),s=p5(n),i=h5(n);return[s,i]},f5=(e,t)=>{var n;return(n=t==null?void 0:t.quests)==null?void 0:n.find(s=>s.id===e)},p5=e=>{var t;return((t=e==null?void 0:e.resultQuestAnswer)==null?void 0:t.points)||0},h5=e=>(e==null?void 0:e.maxPoints)||0,m5=(e,t)=>e.replace(/{(\w+)}/g,(n,s)=>{var i;return((i=t[s])==null?void 0:i.toString())??`{${s}}`}),g5=(e,t,n,s)=>e<t?n:s,y5=(e,t,n,s,i)=>{const[a,c]=d5(e,t),d=g5(n,a,s,i);return m5(d,{points:n,bestPoints:a,maxPoints:c})},v5=j("p")({name:"HighlightingContainer",class:"edh1r5zzja",propsAsIs:!1}),S5=({worstScoreTemplate:e,bestScoreTemplate:t})=>{const n=Ct(c=>c.results),s=Me(c=>c.quest),i=Me(c=>c.currentTryPoints),a=y5(s.id,n,i,e,t);return v.jsx(v5,{dangerouslySetInnerHTML:{__html:a}})},PS=({translations:e})=>{const[t,n]=C.useState(!0),{isBanExpired:s,expiresAt:i,onTimeEnds:a,refreshBanStatus:c}=RS(),d=Ct(U=>U.results),f=Ct(U=>U.refreshUserResults),h=Me(U=>U.setCurrentTryPoints),y=l5(d),g=c5(d),w=Me(U=>U.quest),E=e.successTitle,_=e.buttonTitle,x=e.prizesTitle,k=e.questsTitle,O=e.bestScoreTemplate,R=e.worstScoreTemplate,$=w1(),H=ln(U=>U.setIsPanelOpen),z=ln(U=>U.setIsRegistrationOpen),{restartQuest:M}=To(),L=()=>{H(!0),z(!0)};return C.useEffect(()=>{u5(w).then(({data:U})=>{var te;return c(),h(U.points),f((te=window.__widgetEdmap)==null?void 0:te.mapId)}).finally(()=>{S1(w.id)})},[w]),C.useEffect(()=>{w!=null&&w.id&&CS(w.id).then()},[w==null?void 0:w.id]),v.jsx(e5,{id:"edmap-widget__success",children:v.jsxs(t5,{children:[v.jsxs(n5,{children:[v.jsx(o5,{children:E}),w.isAwardPointsShowned&&v.jsx(S5,{worstScoreTemplate:R,bestScoreTemplate:O}),s?v.jsx(Sn,{id:"edmap-widget__success-btn",onClick:M,title:_,isAccent:!0}):v.jsx(IS,{expiresAt:i,onTimeEnds:a})]}),!$&&t&&v.jsx(bf,{setIsRegInfoVisible:n,openSignInModal:L}),g.length>0&&y.length>0&&v.jsx(s5,{}),g.length>0?v.jsxs(AS,{children:[v.jsx(OS,{children:x}),v.jsx(a5,{children:g.map((U,te)=>v.jsx(_f,{index:te,prizeData:U,userPoints:d==null?void 0:d.allPoints},U==null?void 0:U.id))})]}):null,y.length>0?v.jsxs(AS,{children:[v.jsx(OS,{children:k}),v.jsx(i5,{children:v.jsx(Tf,{quests:y})})]}):null]})})},w5=Z("div")({name:"Gap",class:"edg5lnmft",propsAsIs:!1}),_5=Z("div")({name:"ResourceWrapper",class:"edr1u056rp",propsAsIs:!1}),NS=Z("p")({name:"Text",class:"edtjt97q3",propsAsIs:!1}),E5=Z("div")({name:"TooltipConent",class:"edt3zaxx",propsAsIs:!1}),x5=Z("div")({name:"Container",class:"edc6pydkm",propsAsIs:!1}),k5=[...new Intl.Segmenter("en",{granularity:"grapheme"}).segment("💪🏃‍♂️🧠❤️🔥💰🪵⛏️🍖🔮👾⭐️😒😊🌈🐋🦄😎🤢🤮🤡👺💩🤥🐷👑⌛️🛢️🪙💎🗡️🧬🎁🎉🧸🪆🪩📊❗️💖❤️‍🔥💔")].map(e=>e.segment),T5=e=>[...e].map(t=>t.codePointAt(0)).join("-"),MS=Object.fromEntries(k5.map(e=>[T5(e),e])),LS=({iconId:e,text:t,...n})=>v.jsxs(x5,{...n,children:[v.jsx("span",{children:MS[e]}),t?v.jsx("span",{children:t}):null]}),b5=Z("div")({name:"TooltipContainer",class:"edtlfbks8",propsAsIs:!1}),I5=()=>({isStickLeft:e})=>e?"0":"102%",C5=()=>({isVisible:e})=>e?"visible":"hidden",R5=()=>({isVisible:e,isFading:t})=>e&&!t?"1":"0",A5=()=>({zIndex:e=100})=>e,O5=Z("div")({name:"TooltipContent",class:"edtlzs19l",propsAsIs:!1,vars:{"tlzs19l-0":[I5()],"tlzs19l-1":[C5()],"tlzs19l-2":[R5()],"tlzs19l-3":[A5()]}}),jS=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},P5=e=>e?jS(e):jS,N5=e=>e;function M5(e,t=N5){const n=Tt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Tt.useDebugValue(n),n}const DS=e=>{const t=P5(e),n=s=>M5(t,s);return Object.assign(n,t),n},$S=(e=>e?DS(e):DS)(e=>({activeTooltip:null,setActiveTooltip:t=>e({activeTooltip:t}),currentZIndex:101,getNextZIndex:()=>(e(t=>({currentZIndex:t.currentZIndex+1})),$S.getState().currentZIndex)})),FS=({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}=$S(),_=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(b5,{...s,onMouseEnter:x,onMouseLeave:k,children:[t,v.jsx(O5,{ref:_,className:"tooltip-content",isFading:c,isStickLeft:n,isVisible:i,onMouseEnter:x,onMouseLeave:k,style:{zIndex:y},children:e||""})]})},L5=({resource:e,animationClass:t,viewportRef:n})=>{const s=C.useRef(null),i=xD(s,n),a=i==="right"?"0":"unset",c=i==="right"?"unset":"-40px";return v.jsx(FS,{isStickLeft:!0,tooltipContent:v.jsx(E5,{ref:s,style:{left:a,right:c},children:v.jsx(NS,{children:e.name})}),children:v.jsxs(_5,{children:[v.jsx(LS,{style:{gap:"0"},iconId:e.iconId}),v.jsx(NS,{className:t,children:e.value})]})})},j5=({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(w5,{ref:a,children:c.map((d,f)=>v.jsx(L5,{viewportRef:a,resource:d,animationClass:s[d.name]||""},f))})},D5=e=>e.reduce((t,n)=>({...t,[n.id]:`${MS[n.iconId]} ${n.name} ${n.value}`}),{}),BS=()=>{const e=hr(t=>t.currentResources);return C.useMemo(()=>D5(e),[e])},$5=e=>{const t=BS();return v.jsx(Bi,{...e,replacements:t})},F5=e=>Array.from(new Set(e)),B5=(e,t)=>{const n=e.sourceEdges.filter(s=>!t.has(s.targetId));return F5(n.map(s=>s.targetId))},z5=(e,t)=>e.filter(n=>!t.has(n)),U5=()=>{const e=hr(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=B5(e,t.current),c=z5(a,n.current);c.forEach(f=>n.current.add(f)),i=new AbortController;const d=c.map(async f=>{const h=await J3(f,i.signal);return await K1(h.imageUrls,"low"),t.current.add(f),n.current.delete(f),h});Promise.all(d)},2e3),()=>{clearTimeout(s.current),i&&i.abort()}},[e])},zS=j("div")({name:"AnswersContainer",class:"eda1nbdv32",propsAsIs:!1}),H5=j("span")({name:"SelectBelowText",class:"eds1wn0vwj",propsAsIs:!1}),W5=j("div")({name:"Divider",class:"edd1ctwus6",propsAsIs:!1}),q5=j("button")({name:"QuestAnswerCardWrapper",class:"edqfq64oi",propsAsIs:!1}),V5=j("div")({name:"Container",class:"edcbf1r91",propsAsIs:!1}),G5=({resourceIds:e})=>{const t=hr(n=>n.currentResources);return v.jsx(V5,{children:e.map(n=>{const s=t.find(i=>i.id===n);return v.jsx(LS,{iconId:s.iconId},n)})})},Y5=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(FS,{isStickLeft:!0,style:{flex:"1 1 calc(50% - 6px)"},tooltipContent:f?null:v.jsx(G5,{resourceIds:s}),children:v.jsx(q5,{"data-test":"button game",ref:c,style:{opacity:f?1:.6},isActive:!1,disabled:!f,onClick:d,...a,children:v.jsx(Bi,{blocksArray:e,isJourneyWidgetText:!0,replacements:i})})})}),K5=Z("form")({name:"Form",class:"edf1c40yuf",propsAsIs:!1}),Q5=Z("textarea")({name:"Container",class:"edc1gf2psj",propsAsIs:!1}),X5=(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])},J5=e=>{const t=C.useRef(null),{placeholder:n}=We(s=>s.translations.input);return X5(t),v.jsx(K5,{children:v.jsx(Q5,{id:"answer",ref:t,placeholder:n,...e})})},Z5=(e,t)=>{const n=BS(),s=hr(a=>a.setTextAnswer),i=hr(a=>a.textAnswer);return C.useEffect(()=>{s("")},[e==null?void 0:e.id]),e.type===ql.inputAnswerNode?v.jsx(J5,{value:i,onChange:a=>s(a.target.value)}):e.sourceEdges.map((a,c)=>v.jsx(Y5,{isAccessable:a.isAccessable,jourenyEdgeId:a.id,failedResources:a.failedResources,replacements:n,handleClick:d=>t(d),blocksArray:a.richText.blocks,index:c},a.id))},e$=({node:e,handleAnswerClick:t})=>{const n=Z5(e,t);return v.jsxs(zS,{children:[v.jsx(W5,{}),n]})},t$=j("div")({name:"Container",class:"edc5xh5du",propsAsIs:!1}),n$=j("div")({name:"HideableContent",class:"edh89x7rh",propsAsIs:!1}),r$=j("div")({name:"Container",class:"edc170a6p7",propsAsIs:!1}),s$=j("div")({name:"TimerPadding",class:"edt1jyjufh",propsAsIs:!1}),o$=()=>{const t=Me(n=>n.quest).timeLimitSeconds===0;return v.jsx(r$,{children:t?null:v.jsx(s$,{children:v.jsx(ES,{type:"horizontal"})})})},US=({children:e})=>{const t=Wl(i=>i.isHidden),n=Wl(i=>i.setRef),s=C.useRef(null);return C.useEffect(()=>{n(s)},[]),v.jsxs(t$,{children:[v.jsx(o$,{}),v.jsx(n$,{ref:s,style:{opacity:t?0:1,transition:`all ${Hl}ms ease-out `},children:e})]})},i$=()=>{const{makeStep:e}=To(),t=Me(a=>a.isFinished),n=hr(a=>a.currentNode),s=hr(a=>a.currentResources),i=We(a=>a.translations.journeyCard);return U5(),v.jsxs(US,{children:[v.jsxs(SS,{children:[v.jsx($5,{isNodeDescription:!0,blocksArray:n.data.blocks}),s.length>0&&v.jsx(j5,{resources:s})]}),t?v.jsx(PS,{translations:i}):v.jsx(e$,{node:n,handleAnswerClick:a=>e({journeyEdgeId:a})})]})},a$=j("div")({name:"AnswersWrapper",class:"eda1vi3dgi",propsAsIs:!1}),l$=Z("label")({name:"Label",class:"edlzct43p",propsAsIs:!1}),c$=Z("input")({name:"HiddenInput",class:"edhtu66xn",propsAsIs:!1}),u$=()=>e=>e.isChecked?"var(--checkbox-bg-active)":"var(--checkbox-bg-default)",d$=Z("div")({name:"CustomInput",class:"edchq6avi",propsAsIs:!1,vars:{"chq6avi-0":[u$()]}}),f$=({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(l$,{htmlFor:t,"data-testid":`edmap-widget__test-answer-${s+1}`,children:[v.jsx(c$,{id:t,name:n,type:"checkbox",checked:a,value:!a,onChange:c}),v.jsx(d$,{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(Bi,{isAnswer:!0,blocksArray:e})]})},p$=({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(f$,{name:t,label:e,id:n,index:s,onChange:f,isInsideChecked:a||c})},h$=()=>{var d;const e=Me(f=>{var h;return(h=f.quest)==null?void 0:h.id}),t=Vl(f=>f.currentQuestion),n=Me(f=>f.isFinished),s=Vl(f=>f.addAnswer),i=We(f=>f.translations.testCard),a=Vl(f=>f.removeAnswer),c=(f,h,y)=>{y?s(e,f,h):a(f)};return v.jsx(US,{children:n?v.jsx(PS,{translations:i}):v.jsxs(v.Fragment,{children:[v.jsx(SS,{children:v.jsx(Bi,{id:"edmap-widget__test-question",blocksArray:(d=t==null?void 0:t.text)==null?void 0:d.blocks})}),v.jsxs(zS,{children:[v.jsx(H5,{children:i.chooseAnswer}),v.jsx(a$,{id:"edmap-widget__test-answers",children:t==null?void 0:t.answers.map((f,h)=>{var y;return v.jsx(p$,{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)})})]})]})})},m$=()=>{const e=Me(t=>t.quest);if(e!=null&&e.id)return e.questType==="Test"?v.jsx(h$,{test:e.test}):e.questType==="Journey"?v.jsx(i$,{data:e.journey}):null},g$=Tt.memo(m$),y$=({children:e})=>{const t=Me(n=>n.quest);return t!=null&&t.id?v.jsx("div",{children:e}):null},Yf=350,v$=1,S$=()=>{const e=Me(i=>i.quest),[t,n]=C.useState(!1);C.useEffect(()=>{if(!t)return;const i=setTimeout(()=>{kr.reportWidgetView()},v$*1e3);return()=>{clearTimeout(i)}},[t,e==null?void 0:e.id,e==null?void 0:e.mapId]),C.useEffect(()=>{kr.dropUserActivation()},[e==null?void 0:e.id,e==null?void 0:e.mapId]),C.useEffect(()=>{const i=()=>{kr.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(Os,{topOffset:-Yf,setIsSensorTriggered:s,isBottomUpTriggered:!0,color:"blue",className:"view-counter-out",isPortal:!1}),v.jsx(Os,{topOffset:-Yf,setIsSensorTriggered:n,color:"green",className:"view-counter-enter",isPortal:!1}),v.jsx(Os,{bottomOffset:Yf,setIsSensorTriggered:n,isBottomUpTriggered:!0,color:"yellow",className:"view-counter-enter",isPortal:!1,isStickToBottom:!0}),v.jsx(Os,{topOffset:0,setIsSensorTriggered:s,color:"green",className:"view-counter-out",isPortal:!1,isStickToBottom:!0})]})},w$=()=>{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},HS=()=>{const e=C.useRef(),t=lc(R=>R.widgetContainerStyle),[n,s]=C.useState(!1),[i,a]=C.useState(!1),c=xS(R=>R.height),d=pr(R=>R.marginRootTop),f=pr(R=>R.setTopOffset),h=uc(R=>R.setWidth),y=uc(R=>R.top),g=kS(R=>R.height),w=uc(R=>R.setTop),E=cc(R=>R.setIsTimerOverlapped),_=C.useRef(),x=C.useRef(),k=30;ZD(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.jsxs("edmap-view-root",{id:"edmap-view-root",children:[v.jsxs(j6,{className:"sensor root",children:[v.jsx(Os,{className:"widget-trigger-header-stick",setIsSensorTriggered:s,topOffset:`${-d}px`,ref:_,isPortal:!1}),v.jsx(Os,{setIsSensorTriggered:E,topOffset:`${O+c-k}px`}),v.jsx(S$,{}),v.jsxs(L6,{ref:e,style:{...t},children:[v.jsx(bS,{children:v.jsxs(y$,{children:[v.jsxs(D6,{children:[v.jsx(AD,{isSticky:n,parentRef:e}),v.jsx($6,{children:v.jsx(GD,{children:v.jsx(JD,{children:v.jsx(g$,{})})})})]}),v.jsx(LD,{})]})}),v.jsx(w$,{})]}),v.jsx(Os,{isPortal:!1,isStickToBottom:!0,color:"black",className:"bottom sensor",setIsSensorTriggered:a,bottomOffset:`${g+c+d}px`,isBottomUpTriggered:!1,ref:x})]}),v.jsx(v6,{})]})},_$=j("div")({name:"WrapperForStyles",class:"edw1ckr4k2",propsAsIs:!1}),E$=j("div")({name:"Container",class:"edc1moeqqj",propsAsIs:!1}),x$=j("div")({name:"Container",class:"edcrg0ist",propsAsIs:!1}),k$=j("p")({name:"EmptyQuestsMessage",class:"ede1tl4sfq",propsAsIs:!1}),T$=j("div")({name:"Container",class:"edcjx2ut5",propsAsIs:!1}),b$=j("p")({name:"Title",class:"edt75yszp",propsAsIs:!1}),WS=({title:e,children:t})=>v.jsxs(T$,{children:[v.jsx(b$,{children:e}),t]}),I$=({quests:e})=>{const t=We(s=>s.translations.questList),n=!e||e.length===0;return v.jsx(WS,{title:t.title,children:v.jsx(x$,{children:n?v.jsx(k$,{children:t.emptyQuestsWarning}):v.jsx(Tf,{quests:e})})})},C$=j("div")({name:"PrizesContainer",class:"edp1163kd8",propsAsIs:!1}),R$=()=>{const e=Ct(s=>s.results),t=We(s=>s.translations.prizeList),n=(e==null?void 0:e.prizes)||[];return!n||n.length===0?null:v.jsx(WS,{title:t.title,children:v.jsx(C$,{children:n.map((s,i)=>v.jsx(_f,{prizeData:s,userPoints:(e==null?void 0:e.allPoints)||0,index:i},s.id))})})},A$=()=>{const e=Ct(s=>s.results),t=(e==null?void 0:e.quests)||[],n=lc(s=>s.widgetContainerStyle);return v.jsx(_$,{style:n,children:v.jsx(E$,{children:v.jsxs(bS,{children:[v.jsx(I$,{quests:t}),v.jsx(R$,{}),v.jsx(iv,{}),v.jsx(pS,{})]})})})},O$=[gf,yf,I1],qS={color:{[T1]:["light"],[gf]:[],[QP]:["white","blue"]},rounded:{[b1]:["rounded"],[yf]:[]},text:{[XP]:["bold","text"],[I1]:[]},wordWrap:{[JP]:[],[ZP]:["nowrap"]}},P$=Object.keys(qS).map(e=>Object.entries(qS[e]).sort(([t,n],[s,i])=>i.length-n.length)),N$=e=>{if(!e)return O$;const t=e.split("-");return P$.map(s=>s.find(([i,a])=>a.every(c=>t.includes(c)))).map(s=>s[0])},M$={"--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"]},L$=e=>{const t={};return Object.keys(e).forEach(n=>{M$[n].forEach(s=>{t[s]=e[n]})}),t},j$=()=>{var t;const e=L$(((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")})},D$=()=>{var n;const e=((n=window.__widgetEdmap)==null?void 0:n.headerOffset)||0,t=e!==null&&typeof e=="object";return t?F$(t,e):[{width:0,value:dc(e)}]},$$=e=>Object.keys(e).sort((n,s)=>s-n).map(n=>({width:Number(n),value:e[n]})),F$=(e,t)=>{if(!e)return dc(t);const n=Object.keys(t).reduce((s,i)=>{const a=dc(i),c=dc(t[i]);return{...s,[a]:c}},{});return $$(n)},dc=e=>Number.parseFloat(e)||0,B$=()=>{const[e,t]=C.useState(window.innerWidth);z$(e),C.useEffect(()=>{const n=()=>t(window.innerWidth);n(),window.addEventListener("resize",n)},[])},z$=e=>{const t=pr(i=>i.breakPoints),n=pr(i=>i.setMarginRootTop),s=pr(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])},U$=[T1,gf,b1,yf],H$=[{id:"edmap-widget__container",Component:HS},{id:"edmap-widget-quest-picker__container",Component:A$}];console.log("Выполнен код вне корня");function W$({mode:e=null}){var R;const t=Me($=>$.setQuest),{cleanQuestInit:n}=To(),s=Ct($=>$.setUserResults),i=Ct($=>$.setPointsAreReceived),a=We($=>$.setLocale),c=pr($=>$.setBreakPoints),{setPopupBarStyle:d,setWidgetContainerStyle:f}=lc(),[h,y]=C.useState([]);B$();const g=M6(e,window.location.pathname),E=new URLSearchParams(window.location.search).get("code"),_=async($,H,z)=>{let M=null;return H==="admin"?M=await UP(z):M=await zP($,z),M},x=()=>{const $=H$.filter(({id:H})=>document.getElementById(H));y($)},k=()=>{var $;document.body.classList.remove(...U$),document.body.classList.add(...N$(($=window==null?void 0:window.__widgetEdmap)==null?void 0:$.theme)),j$()},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){An(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;$&&BP($,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(vS(H.dataset.popupBarStyle)),H.dataset.widgetContainerStyle&&f(vS(H.dataset.widgetContainerStyle)))})},[h]),C.useEffect(()=>{const $=D$();c($)},[]),e==="admin"?v.jsx(HS,{}):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?zi.createPortal(v.jsx(H,{},$+(window.location.pathname||"")),z):null}),e!=="admin"&&zi.createPortal(v.jsx(N6,{},window.location.pathname||""),document.body)]})}CP({dsn:"https://f54e3fc0fb41b6b943cd81aa16c927d3@o4508675319726080.ingest.de.sentry.io/4508676111138896",integrations:[kP(),dP()],tracesSampleRate:1,tracePropagationTargets:["localhost","https://api.edmap.space"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});const q$=e=>new Promise(t=>{setTimeout(t,e)}),V$=async e=>{let t=0;for(;t<10;){for(const n of e){const s=document.getElementById(n);if(s)return console.log(`${n} was found`),s}await q$(200+100*t),t++}return null};let Kf=!1;const VS=async()=>{if(!Kf){Kf=!0;try{await V$(["edmap-widget__container","edmap-widget-quest-picker__container"])&&G$()}finally{Kf=!1}}},G$=()=>{if(typeof window>"u"){console.log("Widget loaded in node env");return}let e=document.querySelector("#invisible-edmap-container");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 t=UE.createRoot(e);window.__edmapRoot=t,t.render(v.jsx(C.StrictMode,{children:v.jsx(W$,{})}))};function GS(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=GS(()=>{VS()},50),n=()=>{const i=window.__edmapRoot;window.__edmapRoot?Promise.resolve().then(()=>{window.__edmapRoot&&(i.unmount(),KP(),VS())}):t()},s=GS(i=>{e=i},300);window.addEventListener("edmap-routing-triggered",i=>{var c,d,f;if(document.getElementById("edmap-view-root")){console.log("routing ignored");return}const a=i.detail.type;if(a==="pushState"&&n(a,i.detail),a=="replaceState"){const h=(f=(d=(c=i.detail)==null?void 0:c.args)==null?void 0:d[0])==null?void 0:f.scrollY;if(!(typeof h=="number"&&!Number.isNaN(h)))return;e===h?n():s(h);return}if(a==="popstate"){n(),e=0;return}}),window.addEventListener(mt.unmounted,()=>{console.log("unmount triggered search for container"),n()}),n(),console.log("routing trigger loaded")})()})();
