var f7=Object.defineProperty;var MR=It=>{throw TypeError(It)};var d7=(It,Kt,ce)=>Kt in It?f7(It,Kt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):It[Kt]=ce;var Jt=(It,Kt,ce)=>d7(It,typeof Kt!="symbol"?Kt+"":Kt,ce),M0=(It,Kt,ce)=>Kt.has(It)||MR("Cannot "+ce);var A=(It,Kt,ce)=>(M0(It,Kt,"read from private field"),ce?ce.call(It):Kt.get(It)),gt=(It,Kt,ce)=>Kt.has(It)?MR("Cannot add the same private member more than once"):Kt instanceof WeakSet?Kt.add(It):Kt.set(It,ce),lt=(It,Kt,ce,ls)=>(M0(It,Kt,"write to private field"),ls?ls.call(It,ce):Kt.set(It,ce),ce),jt=(It,Kt,ce)=>(M0(It,Kt,"access private method"),ce);var Nd=(It,Kt,ce,ls)=>({set _(Ld){lt(It,Kt,Ld,ce)},get _(){return A(It,Kt,ls)}});try{(function(){var It=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Kt=new It.Error().stack;Kt&&(It._sentryDebugIds=It._sentryDebugIds||{},It._sentryDebugIds[Kt]="22365e05-35f1-40eb-8179-916c8ea558b1",It._sentryDebugIdIdentifier="sentry-dbid-22365e05-35f1-40eb-8179-916c8ea558b1")})()}catch{}(function(){"use strict";var _i,yg,_C,Ns,Ai,Va,AC,Ha,Oi,Ga,OC,Ms,RC,Ls,Ka,Fn,zs,Ie,Hl,js,ir,di,kC,hn,Vt,Gl,nn,Bs,Ya,Fr,Ri,Kl,$a,Xa,Is,Us,ki,Qa,Zt,Hu,L0,z0,j0,B0,I0,U0,P0,LR,DC,Yl,Tr,rn,Ps,Cr,os,NC,Vr,sr,$l,MC,Hr,Di,pn,Gr,Kr,Md,q0,LC,_r,zC,ve,Ni,Mi,Za,Ja,Li,Wa,to,jC,Ar,Or,ar,zi,qs,eo,ji;function It(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}},ce={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ls;function Ld(){if(ls)return ce;ls=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var f in a)f!=="key"&&(l[f]=a[f])}else l=a;return a=l.ref,{$$typeof:t,type:i,key:u,ref:a!==void 0?a:null,props:l}}return ce.Fragment=e,ce.jsx=n,ce.jsxs=n,ce}var F0;function jR(){return F0||(F0=1,Kt.exports=Ld()),Kt.exports}var M=jR(),zd={exports:{}},Ho={},jd={exports:{}},Bd={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var V0;function BR(){return V0||(V0=1,(function(t){function e(Z,G){var P=Z.length;Z.push(G);t:for(;0<P;){var dt=P-1>>>1,O=Z[dt];if(0<a(O,G))Z[dt]=G,Z[P]=O,P=dt;else break t}}function n(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var G=Z[0],P=Z.pop();if(P!==G){Z[0]=P;t:for(var dt=0,O=Z.length,xt=O>>>1;dt<xt;){var D=2*(dt+1)-1,E=Z[D],W=D+1,ct=Z[W];if(0>a(E,P))W<O&&0>a(ct,E)?(Z[dt]=ct,Z[W]=P,dt=W):(Z[dt]=E,Z[D]=P,dt=D);else if(W<O&&0>a(ct,P))Z[dt]=ct,Z[W]=P,dt=W;else break t}}return G}function a(Z,G){var P=Z.sortIndex-G.sortIndex;return P!==0?P:Z.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var d=[],h=[],m=1,y=null,b=3,v=!1,S=!1,w=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(Z){for(var G=n(h);G!==null;){if(G.callback===null)i(h);else if(G.startTime<=Z)i(h),G.sortIndex=G.expirationTime,e(d,G);else break;G=n(h)}}function K(Z){if(w=!1,B(Z),!S)if(n(d)!==null)S=!0,j||(j=!0,at());else{var G=n(h);G!==null&&it(K,G.startTime-Z)}}var j=!1,q=-1,N=5,H=-1;function Y(){return C?!0:!(t.unstable_now()-H<N)}function nt(){if(C=!1,j){var Z=t.unstable_now();H=Z;var G=!0;try{t:{S=!1,w&&(w=!1,L(q),q=-1),v=!0;var P=b;try{e:{for(B(Z),y=n(d);y!==null&&!(y.expirationTime>Z&&Y());){var dt=y.callback;if(typeof dt=="function"){y.callback=null,b=y.priorityLevel;var O=dt(y.expirationTime<=Z);if(Z=t.unstable_now(),typeof O=="function"){y.callback=O,B(Z),G=!0;break e}y===n(d)&&i(d),B(Z)}else i(d);y=n(d)}if(y!==null)G=!0;else{var xt=n(h);xt!==null&&it(K,xt.startTime-Z),G=!1}}break t}finally{y=null,b=P,v=!1}G=void 0}}finally{G?at():j=!1}}}var at;if(typeof R=="function")at=function(){R(nt)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,st=ft.port2;ft.port1.onmessage=nt,at=function(){st.postMessage(null)}}else at=function(){_(nt,0)};function it(Z,G){q=_(function(){Z(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Z){Z.callback=null},t.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<Z?Math.floor(1e3/Z):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var P=b;b=G;try{return Z()}finally{b=P}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(Z,G){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var P=b;b=Z;try{return G()}finally{b=P}},t.unstable_scheduleCallback=function(Z,G,P){var dt=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?dt+P:dt):P=dt,Z){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=P+O,Z={id:m++,callback:G,priorityLevel:Z,startTime:P,expirationTime:O,sortIndex:-1},P>dt?(Z.sortIndex=P,e(h,Z),n(d)===null&&Z===n(h)&&(w?(L(q),q=-1):w=!0,it(K,P-dt))):(Z.sortIndex=O,e(d,Z),S||v||(S=!0,j||(j=!0,at()))),Z},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(Z){var G=b;return function(){var P=b;b=G;try{return Z.apply(this,arguments)}finally{b=P}}}})(Bd)),Bd}var H0;function IR(){return H0||(H0=1,jd.exports=BR()),jd.exports}var Id={exports:{}},Ot={},G0;function UR(){if(G0)return Ot;G0=1;var t={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function L(D,E,W){this.props=D,this.context=E,this.refs=_,this.updater=W||w}L.prototype.isReactComponent={},L.prototype.setState=function(D,E){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,E,"setState")},L.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function R(){}R.prototype=L.prototype;function B(D,E,W){this.props=D,this.context=E,this.refs=_,this.updater=W||w}var K=B.prototype=new R;K.constructor=B,C(K,L.prototype),K.isPureReactComponent=!0;var j=Array.isArray;function q(){}var N={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Y(D,E,W){var ct=W.ref;return{$$typeof:e,type:D,key:E,ref:ct!==void 0?ct:null,props:W}}function nt(D,E){return Y(D.type,E,D.props)}function at(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ft(D){var E={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return E[W]})}var st=/\/+/g;function it(D,E){return typeof D=="object"&&D!==null&&D.key!=null?ft(""+D.key):E.toString(36)}function Z(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(q,q):(D.status="pending",D.then(function(E){D.status==="pending"&&(D.status="fulfilled",D.value=E)},function(E){D.status==="pending"&&(D.status="rejected",D.reason=E)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function G(D,E,W,ct,vt){var yt=typeof D;(yt==="undefined"||yt==="boolean")&&(D=null);var kt=!1;if(D===null)kt=!0;else switch(yt){case"bigint":case"string":case"number":kt=!0;break;case"object":switch(D.$$typeof){case e:case n:kt=!0;break;case y:return kt=D._init,G(kt(D._payload),E,W,ct,vt)}}if(kt)return vt=vt(D),kt=ct===""?"."+it(D,0):ct,j(vt)?(W="",kt!=null&&(W=kt.replace(st,"$&/")+"/"),G(vt,E,W,"",function(mn){return mn})):vt!=null&&(at(vt)&&(vt=nt(vt,W+(vt.key==null||D&&D.key===vt.key?"":(""+vt.key).replace(st,"$&/")+"/")+kt)),E.push(vt)),1;kt=0;var ae=ct===""?".":ct+":";if(j(D))for(var Gt=0;Gt<D.length;Gt++)ct=D[Gt],yt=ae+it(ct,Gt),kt+=G(ct,E,W,yt,vt);else if(Gt=S(D),typeof Gt=="function")for(D=Gt.call(D),Gt=0;!(ct=D.next()).done;)ct=ct.value,yt=ae+it(ct,Gt++),kt+=G(ct,E,W,yt,vt);else if(yt==="object"){if(typeof D.then=="function")return G(Z(D),E,W,ct,vt);throw E=String(D),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return kt}function P(D,E,W){if(D==null)return D;var ct=[],vt=0;return G(D,ct,"","",function(yt){return E.call(W,yt,vt++)}),ct}function dt(D){if(D._status===-1){var E=D._result;E=E(),E.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=E)}if(D._status===1)return D._result.default;throw D._result}var O=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(E))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",D);return}console.error(D)},xt={map:P,forEach:function(D,E,W){P(D,function(){E.apply(this,arguments)},W)},count:function(D){var E=0;return P(D,function(){E++}),E},toArray:function(D){return P(D,function(E){return E})||[]},only:function(D){if(!at(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ot.Activity=b,Ot.Children=xt,Ot.Component=L,Ot.Fragment=i,Ot.Profiler=l,Ot.PureComponent=B,Ot.StrictMode=a,Ot.Suspense=h,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(D){return N.H.useMemoCache(D)}},Ot.cache=function(D){return function(){return D.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(D,E,W){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ct=C({},D.props),vt=D.key;if(E!=null)for(yt in E.key!==void 0&&(vt=""+E.key),E)!H.call(E,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&E.ref===void 0||(ct[yt]=E[yt]);var yt=arguments.length-2;if(yt===1)ct.children=W;else if(1<yt){for(var kt=Array(yt),ae=0;ae<yt;ae++)kt[ae]=arguments[ae+2];ct.children=kt}return Y(D.type,vt,ct)},Ot.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ot.createElement=function(D,E,W){var ct,vt={},yt=null;if(E!=null)for(ct in E.key!==void 0&&(yt=""+E.key),E)H.call(E,ct)&&ct!=="key"&&ct!=="__self"&&ct!=="__source"&&(vt[ct]=E[ct]);var kt=arguments.length-2;if(kt===1)vt.children=W;else if(1<kt){for(var ae=Array(kt),Gt=0;Gt<kt;Gt++)ae[Gt]=arguments[Gt+2];vt.children=ae}if(D&&D.defaultProps)for(ct in kt=D.defaultProps,kt)vt[ct]===void 0&&(vt[ct]=kt[ct]);return Y(D,yt,vt)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(D){return{$$typeof:d,render:D}},Ot.isValidElement=at,Ot.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:dt}},Ot.memo=function(D,E){return{$$typeof:m,type:D,compare:E===void 0?null:E}},Ot.startTransition=function(D){var E=N.T,W={};N.T=W;try{var ct=D(),vt=N.S;vt!==null&&vt(W,ct),typeof ct=="object"&&ct!==null&&typeof ct.then=="function"&&ct.then(q,O)}catch(yt){O(yt)}finally{E!==null&&W.types!==null&&(E.types=W.types),N.T=E}},Ot.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ot.use=function(D){return N.H.use(D)},Ot.useActionState=function(D,E,W){return N.H.useActionState(D,E,W)},Ot.useCallback=function(D,E){return N.H.useCallback(D,E)},Ot.useContext=function(D){return N.H.useContext(D)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(D,E){return N.H.useDeferredValue(D,E)},Ot.useEffect=function(D,E){return N.H.useEffect(D,E)},Ot.useEffectEvent=function(D){return N.H.useEffectEvent(D)},Ot.useId=function(){return N.H.useId()},Ot.useImperativeHandle=function(D,E,W){return N.H.useImperativeHandle(D,E,W)},Ot.useInsertionEffect=function(D,E){return N.H.useInsertionEffect(D,E)},Ot.useLayoutEffect=function(D,E){return N.H.useLayoutEffect(D,E)},Ot.useMemo=function(D,E){return N.H.useMemo(D,E)},Ot.useOptimistic=function(D,E){return N.H.useOptimistic(D,E)},Ot.useReducer=function(D,E,W){return N.H.useReducer(D,E,W)},Ot.useRef=function(D){return N.H.useRef(D)},Ot.useState=function(D){return N.H.useState(D)},Ot.useSyncExternalStore=function(D,E,W){return N.H.useSyncExternalStore(D,E,W)},Ot.useTransition=function(){return N.H.useTransition()},Ot.version="19.2.0",Ot}var K0;function Ud(){return K0||(K0=1,Id.exports=UR()),Id.exports}var Pd={exports:{}},$e={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Y0;function PR(){if(Y0)return $e;Y0=1;var t=Ud();function e(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(d,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:d,containerInfo:h,implementation:m}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,$e.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return l(d,h,null,m)},$e.flushSync=function(d){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=m,i.d.f()}},$e.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},$e.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},$e.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:v}):m==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$e.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},$e.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$e.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},$e.requestFormReset=function(d){i.d.r(d)},$e.unstable_batchedUpdates=function(d,h){return d(h)},$e.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},$e.useFormStatus=function(){return u.H.useHostTransitionStatus()},$e.version="19.2.0",$e}var $0;function X0(){if($0)return Pd.exports;$0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Pd.exports=PR(),Pd.exports}var Q0;function qR(){if(Q0)return Ho;Q0=1;var t={};/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e=IR(),n=Ud(),i=X0();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function u(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function f(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function h(r){if(u(r)!==r)throw Error(a(188))}function m(r){var s=r.alternate;if(!s){if(s=u(r),s===null)throw Error(a(188));return s!==r?null:r}for(var o=r,c=s;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){o=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===o)return h(p),r;if(g===c)return h(p),s;g=g.sibling}throw Error(a(188))}if(o.return!==c.return)o=p,c=g;else{for(var x=!1,T=p.child;T;){if(T===o){x=!0,o=p,c=g;break}if(T===c){x=!0,c=p,o=g;break}T=T.sibling}if(!x){for(T=g.child;T;){if(T===o){x=!0,o=g,c=p;break}if(T===c){x=!0,c=g,o=p;break}T=T.sibling}if(!x)throw Error(a(189))}}if(o.alternate!==c)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?r:s}function y(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=y(r),s!==null)return s;r=r.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),B=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function ft(r){return r===null||typeof r!="object"?null:(r=at&&r[at]||r["@@iterator"],typeof r=="function"?r:null)}var st=Symbol.for("react.client.reference");function it(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===st?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case C:return"Fragment";case L:return"Profiler";case _:return"StrictMode";case j:return"Suspense";case q:return"SuspenseList";case Y:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case B:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case K:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case N:return s=r.displayName||null,s!==null?s:it(r.type)||"Memo";case H:s=r._payload,r=r._init;try{return it(r(s))}catch{}}return null}var Z=Array.isArray,G=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt={pending:!1,data:null,method:null,action:null},O=[],xt=-1;function D(r){return{current:r}}function E(r){0>xt||(r.current=O[xt],O[xt]=null,xt--)}function W(r,s){xt++,O[xt]=r.current,r.current=s}var ct=D(null),vt=D(null),yt=D(null),kt=D(null);function ae(r,s){switch(W(yt,s),W(vt,r),W(ct,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?nR(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=nR(s),r=rR(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}E(ct),W(ct,r)}function Gt(){E(ct),E(vt),E(yt)}function mn(r){r.memoizedState!==null&&W(kt,r);var s=ct.current,o=rR(s,r.type);s!==o&&(W(vt,r),W(ct,o))}function or(r){vt.current===r&&(E(ct),E(vt)),kt.current===r&&(E(kt),Pu._currentValue=dt)}var Xl,mf;function Rr(r){if(Xl===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);Xl=s&&s[1]||"",mf=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Xl+r+mf}var no=!1;function ro(r,s){if(!r||no)return"";no=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Q){var $=Q}Reflect.construct(r,[],rt)}else{try{rt.call()}catch(Q){$=Q}r.call(rt.prototype)}}else{try{throw Error()}catch(Q){$=Q}(rt=r())&&typeof rt.catch=="function"&&rt.catch(function(){})}}catch(Q){if(Q&&$&&typeof Q.stack=="string")return[Q.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),x=g[0],T=g[1];if(x&&T){var k=x.split(`
`),V=T.split(`
`);for(p=c=0;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;for(;p<V.length&&!V[p].includes("DetermineComponentFrameRoot");)p++;if(c===k.length||p===V.length)for(c=k.length-1,p=V.length-1;1<=c&&0<=p&&k[c]!==V[p];)p--;for(;1<=c&&0<=p;c--,p--)if(k[c]!==V[p]){if(c!==1||p!==1)do if(c--,p--,0>p||k[c]!==V[p]){var J=`
`+k[c].replace(" at new "," at ");return r.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",r.displayName)),J}while(1<=c&&0<=p);break}}}finally{no=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Rr(o):""}function bg(r,s){switch(r.tag){case 26:case 27:case 5:return Rr(r.type);case 16:return Rr("Lazy");case 13:return r.child!==s&&s!==null?Rr("Suspense Fallback"):Rr("Suspense");case 19:return Rr("SuspenseList");case 0:case 15:return ro(r.type,!1);case 11:return ro(r.type.render,!1);case 1:return ro(r.type,!0);case 31:return Rr("Activity");default:return""}}function Ql(r){try{var s="",o=null;do s+=bg(r,o),o=r,r=r.return;while(r);return s}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var io=Object.prototype.hasOwnProperty,Zl=e.unstable_scheduleCallback,Jl=e.unstable_cancelCallback,vg=e.unstable_shouldYield,xg=e.unstable_requestPaint,sn=e.unstable_now,tt=e.unstable_getCurrentPriorityLevel,ut=e.unstable_ImmediatePriority,At=e.unstable_UserBlockingPriority,zt=e.unstable_NormalPriority,Wt=e.unstable_LowPriority,gn=e.unstable_IdlePriority,Yr=e.log,lr=e.unstable_setDisableYieldValue,ur=null,je=null;function xe(r){if(typeof Yr=="function"&&lr(r),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(ur,r)}catch{}}var Re=Math.clz32?Math.clz32:ZH,cr=Math.log,QH=Math.LN2;function ZH(r){return r>>>=0,r===0?32:31-(cr(r)/QH|0)|0}var gf=256,yf=262144,bf=4194304;function Fs(r){var s=r&42;if(s!==0)return s;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vf(r,s,o){var c=r.pendingLanes;if(c===0)return 0;var p=0,g=r.suspendedLanes,x=r.pingedLanes;r=r.warmLanes;var T=c&134217727;return T!==0?(c=T&~g,c!==0?p=Fs(c):(x&=T,x!==0?p=Fs(x):o||(o=T&~r,o!==0&&(p=Fs(o))))):(T=c&~g,T!==0?p=Fs(T):x!==0?p=Fs(x):o||(o=c&~r,o!==0&&(p=Fs(o)))),p===0?0:s!==0&&s!==p&&(s&g)===0&&(g=p&-p,o=s&-s,g>=o||g===32&&(o&4194048)!==0)?s:p}function Wl(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function JH(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function BC(){var r=bf;return bf<<=1,(bf&62914560)===0&&(bf=4194304),r}function Sg(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function tu(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function WH(r,s,o,c,p,g){var x=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var T=r.entanglements,k=r.expirationTimes,V=r.hiddenUpdates;for(o=x&~o;0<o;){var J=31-Re(o),rt=1<<J;T[J]=0,k[J]=-1;var $=V[J];if($!==null)for(V[J]=null,J=0;J<$.length;J++){var Q=$[J];Q!==null&&(Q.lane&=-536870913)}o&=~rt}c!==0&&IC(r,c,0),g!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=g&~(x&~s))}function IC(r,s,o){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-Re(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function UC(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-Re(o),p=1<<c;p&s|r[c]&s&&(r[c]|=s),o&=~p}}function PC(r,s){var o=s&-s;return o=(o&42)!==0?1:wg(o),(o&(r.suspendedLanes|s))!==0?0:o}function wg(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Eg(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function qC(){var r=P.p;return r!==0?r:(r=window.event,r===void 0?32:_R(r.type))}function FC(r,s){var o=P.p;try{return P.p=r,s()}finally{P.p=o}}var Bi=Math.random().toString(36).slice(2),Ve="__reactFiber$"+Bi,yn="__reactProps$"+Bi,so="__reactContainer$"+Bi,Tg="__reactEvents$"+Bi,t8="__reactListeners$"+Bi,e8="__reactHandles$"+Bi,VC="__reactResources$"+Bi,eu="__reactMarker$"+Bi;function Cg(r){delete r[Ve],delete r[yn],delete r[Tg],delete r[t8],delete r[e8]}function ao(r){var s=r[Ve];if(s)return s;for(var o=r.parentNode;o;){if(s=o[so]||o[Ve]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=cR(r);r!==null;){if(o=r[Ve])return o;r=cR(r)}return s}r=o,o=r.parentNode}return null}function oo(r){if(r=r[Ve]||r[so]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function nu(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function lo(r){var s=r[VC];return s||(s=r[VC]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ue(r){r[eu]=!0}var HC=new Set,GC={};function Vs(r,s){uo(r,s),uo(r+"Capture",s)}function uo(r,s){for(GC[r]=s,r=0;r<s.length;r++)HC.add(s[r])}var n8=RegExp("^[: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]*$"),KC={},YC={};function r8(r){return io.call(YC,r)?!0:io.call(KC,r)?!1:n8.test(r)?YC[r]=!0:(KC[r]=!0,!1)}function xf(r,s,o){if(r8(s))if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+o)}}function Sf(r,s,o){if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+o)}}function $r(r,s,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(s,o,""+c)}}function Vn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function $C(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function i8(r,s,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return p.call(this)},set:function(x){o=""+x,g.call(this,x)}}),Object.defineProperty(r,s,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function _g(r){if(!r._valueTracker){var s=$C(r)?"checked":"value";r._valueTracker=i8(r,s,""+r[s])}}function XC(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=$C(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function wf(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}}var s8=/[\n"\\]/g;function Hn(r){return r.replace(s8,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Ag(r,s,o,c,p,g,x,T){r.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?r.type=x:r.removeAttribute("type"),s!=null?x==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+Vn(s)):r.value!==""+Vn(s)&&(r.value=""+Vn(s)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),s!=null?Og(r,x,Vn(s)):o!=null?Og(r,x,Vn(o)):c!=null&&r.removeAttribute("value"),p==null&&g!=null&&(r.defaultChecked=!!g),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.name=""+Vn(T):r.removeAttribute("name")}function QC(r,s,o,c,p,g,x,T){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),s!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||s!=null)){_g(r);return}o=o!=null?""+Vn(o):"",s=s!=null?""+Vn(s):o,T||s===r.value||(r.value=s),r.defaultValue=s}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=T?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x),_g(r)}function Og(r,s,o){s==="number"&&wf(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function co(r,s,o,c){if(r=r.options,s){s={};for(var p=0;p<o.length;p++)s["$"+o[p]]=!0;for(o=0;o<r.length;o++)p=s.hasOwnProperty("$"+r[o].value),r[o].selected!==p&&(r[o].selected=p),p&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Vn(o),s=null,p=0;p<r.length;p++){if(r[p].value===o){r[p].selected=!0,c&&(r[p].defaultSelected=!0);return}s!==null||r[p].disabled||(s=r[p])}s!==null&&(s.selected=!0)}}function ZC(r,s,o){if(s!=null&&(s=""+Vn(s),s!==r.value&&(r.value=s),o==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=o!=null?""+Vn(o):""}function JC(r,s,o,c){if(s==null){if(c!=null){if(o!=null)throw Error(a(92));if(Z(c)){if(1<c.length)throw Error(a(93));c=c[0]}o=c}o==null&&(o=""),s=o}o=Vn(s),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),_g(r)}function fo(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var a8=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function WC(r,s,o){var c=s.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":c?r.setProperty(s,o):typeof o!="number"||o===0||a8.has(s)?s==="float"?r.cssFloat=o:r[s]=(""+o).trim():r[s]=o+"px"}function t_(r,s,o){if(s!=null&&typeof s!="object")throw Error(a(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var p in s)c=s[p],s.hasOwnProperty(p)&&o[p]!==c&&WC(r,p,c)}else for(var g in s)s.hasOwnProperty(g)&&WC(r,g,s[g])}function Rg(r){if(r.indexOf("-")===-1)return!1;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 o8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),l8=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ef(r){return l8.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Xr(){}var kg=null;function Dg(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ho=null,po=null;function e_(r){var s=oo(r);if(s&&(r=s.stateNode)){var o=r[yn]||null;t:switch(r=s.stateNode,s.type){case"input":if(Ag(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Hn(""+s)+'"][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var p=c[yn]||null;if(!p)throw Error(a(90));Ag(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<o.length;s++)c=o[s],c.form===r.form&&XC(c)}break t;case"textarea":ZC(r,o.value,o.defaultValue);break t;case"select":s=o.value,s!=null&&co(r,!!o.multiple,s,!1)}}}var Ng=!1;function n_(r,s,o){if(Ng)return r(s,o);Ng=!0;try{var c=r(s);return c}finally{if(Ng=!1,(ho!==null||po!==null)&&(cd(),ho&&(s=ho,r=po,po=ho=null,e_(s),r)))for(s=0;s<r.length;s++)e_(r[s])}}function ru(r,s){var o=r.stateNode;if(o===null)return null;var c=o[yn]||null;if(c===null)return null;o=c[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break t;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(a(231,s,typeof o));return o}var Qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mg=!1;if(Qr)try{var iu={};Object.defineProperty(iu,"passive",{get:function(){Mg=!0}}),window.addEventListener("test",iu,iu),window.removeEventListener("test",iu,iu)}catch{Mg=!1}var Ii=null,Lg=null,Tf=null;function r_(){if(Tf)return Tf;var r,s=Lg,o=s.length,c,p="value"in Ii?Ii.value:Ii.textContent,g=p.length;for(r=0;r<o&&s[r]===p[r];r++);var x=o-r;for(c=1;c<=x&&s[o-c]===p[g-c];c++);return Tf=p.slice(r,1<c?1-c:void 0)}function Cf(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function _f(){return!0}function i_(){return!1}function bn(r){function s(o,c,p,g,x){this._reactName=o,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(o=r[T],this[T]=o?o(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?_f:i_,this.isPropagationStopped=i_,this}return b(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=_f)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=_f)},persist:function(){},isPersistent:_f}),s}var Hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Af=bn(Hs),su=b({},Hs,{view:0,detail:0}),u8=bn(su),zg,jg,au,Of=b({},su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,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!==au&&(au&&r.type==="mousemove"?(zg=r.screenX-au.screenX,jg=r.screenY-au.screenY):jg=zg=0,au=r),zg)},movementY:function(r){return"movementY"in r?r.movementY:jg}}),s_=bn(Of),c8=b({},Of,{dataTransfer:0}),f8=bn(c8),d8=b({},su,{relatedTarget:0}),Bg=bn(d8),h8=b({},Hs,{animationName:0,elapsedTime:0,pseudoElement:0}),p8=bn(h8),m8=b({},Hs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),g8=bn(m8),y8=b({},Hs,{data:0}),a_=bn(y8),b8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v8={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"},x8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S8(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=x8[r])?!!s[r]:!1}function Ig(){return S8}var w8=b({},su,{key:function(r){if(r.key){var s=b8[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Cf(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?v8[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ig,charCode:function(r){return r.type==="keypress"?Cf(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Cf(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),E8=bn(w8),T8=b({},Of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o_=bn(T8),C8=b({},su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),_8=bn(C8),A8=b({},Hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),O8=bn(A8),R8=b({},Of,{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}),k8=bn(R8),D8=b({},Hs,{newState:0,oldState:0}),N8=bn(D8),M8=[9,13,27,32],Ug=Qr&&"CompositionEvent"in window,ou=null;Qr&&"documentMode"in document&&(ou=document.documentMode);var L8=Qr&&"TextEvent"in window&&!ou,l_=Qr&&(!Ug||ou&&8<ou&&11>=ou),u_=" ",c_=!1;function f_(r,s){switch(r){case"keyup":return M8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d_(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var mo=!1;function z8(r,s){switch(r){case"compositionend":return d_(s);case"keypress":return s.which!==32?null:(c_=!0,u_);case"textInput":return r=s.data,r===u_&&c_?null:r;default:return null}}function j8(r,s){if(mo)return r==="compositionend"||!Ug&&f_(r,s)?(r=r_(),Tf=Lg=Ii=null,mo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return l_&&s.locale!=="ko"?null:s.data;default:return null}}var B8={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 h_(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!B8[r.type]:s==="textarea"}function p_(r,s,o,c){ho?po?po.push(c):po=[c]:ho=c,s=yd(s,"onChange"),0<s.length&&(o=new Af("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var lu=null,uu=null;function I8(r){QO(r,0)}function Rf(r){var s=nu(r);if(XC(s))return r}function m_(r,s){if(r==="change")return s}var g_=!1;if(Qr){var Pg;if(Qr){var qg="oninput"in document;if(!qg){var y_=document.createElement("div");y_.setAttribute("oninput","return;"),qg=typeof y_.oninput=="function"}Pg=qg}else Pg=!1;g_=Pg&&(!document.documentMode||9<document.documentMode)}function b_(){lu&&(lu.detachEvent("onpropertychange",v_),uu=lu=null)}function v_(r){if(r.propertyName==="value"&&Rf(uu)){var s=[];p_(s,uu,r,Dg(r)),n_(I8,s)}}function U8(r,s,o){r==="focusin"?(b_(),lu=s,uu=o,lu.attachEvent("onpropertychange",v_)):r==="focusout"&&b_()}function P8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Rf(uu)}function q8(r,s){if(r==="click")return Rf(s)}function F8(r,s){if(r==="input"||r==="change")return Rf(s)}function V8(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var An=typeof Object.is=="function"?Object.is:V8;function cu(r,s){if(An(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var p=o[c];if(!io.call(s,p)||!An(r[p],s[p]))return!1}return!0}function x_(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function S_(r,s){var o=x_(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=x_(o)}}function w_(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?w_(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function E_(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=wf(r.document);s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=wf(r.document)}return s}function Fg(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var H8=Qr&&"documentMode"in document&&11>=document.documentMode,go=null,Vg=null,fu=null,Hg=!1;function T_(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Hg||go==null||go!==wf(c)||(c=go,"selectionStart"in c&&Fg(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),fu&&cu(fu,c)||(fu=c,c=yd(Vg,"onSelect"),0<c.length&&(s=new Af("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=go)))}function Gs(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var yo={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionrun:Gs("Transition","TransitionRun"),transitionstart:Gs("Transition","TransitionStart"),transitioncancel:Gs("Transition","TransitionCancel"),transitionend:Gs("Transition","TransitionEnd")},Gg={},C_={};Qr&&(C_=document.createElement("div").style,"AnimationEvent"in window||(delete yo.animationend.animation,delete yo.animationiteration.animation,delete yo.animationstart.animation),"TransitionEvent"in window||delete yo.transitionend.transition);function Ks(r){if(Gg[r])return Gg[r];if(!yo[r])return r;var s=yo[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in C_)return Gg[r]=s[o];return r}var __=Ks("animationend"),A_=Ks("animationiteration"),O_=Ks("animationstart"),G8=Ks("transitionrun"),K8=Ks("transitionstart"),Y8=Ks("transitioncancel"),R_=Ks("transitionend"),k_=new Map,Kg="abort auxClick beforeToggle 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(" ");Kg.push("scrollEnd");function fr(r,s){k_.set(r,s),Vs(s,[r])}var kf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",r);return}console.error(r)},Gn=[],bo=0,Yg=0;function Df(){for(var r=bo,s=Yg=bo=0;s<r;){var o=Gn[s];Gn[s++]=null;var c=Gn[s];Gn[s++]=null;var p=Gn[s];Gn[s++]=null;var g=Gn[s];if(Gn[s++]=null,c!==null&&p!==null){var x=c.pending;x===null?p.next=p:(p.next=x.next,x.next=p),c.pending=p}g!==0&&D_(o,p,g)}}function Nf(r,s,o,c){Gn[bo++]=r,Gn[bo++]=s,Gn[bo++]=o,Gn[bo++]=c,Yg|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function $g(r,s,o,c){return Nf(r,s,o,c),Mf(r)}function Ys(r,s){return Nf(r,null,null,s),Mf(r)}function D_(r,s,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var p=!1,g=r.return;g!==null;)g.childLanes|=o,c=g.alternate,c!==null&&(c.childLanes|=o),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(p=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,p&&s!==null&&(p=31-Re(o),r=g.hiddenUpdates,c=r[p],c===null?r[p]=[s]:c.push(s),s.lane=o|536870912),g):null}function Mf(r){if(50<Mu)throw Mu=0,r0=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var vo={};function $8(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(r,s,o,c){return new $8(r,s,o,c)}function Xg(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Zr(r,s){var o=r.alternate;return o===null?(o=On(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function N_(r,s){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,s=o.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function Lf(r,s,o,c,p,g){var x=0;if(c=r,typeof r=="function")Xg(r)&&(x=1);else if(typeof r=="string")x=W9(r,o,ct.current)?26:r==="html"||r==="head"||r==="body"?27:5;else t:switch(r){case Y:return r=On(31,o,s,p),r.elementType=Y,r.lanes=g,r;case C:return $s(o.children,p,g,s);case _:x=8,p|=24;break;case L:return r=On(12,o,s,p|2),r.elementType=L,r.lanes=g,r;case j:return r=On(13,o,s,p),r.elementType=j,r.lanes=g,r;case q:return r=On(19,o,s,p),r.elementType=q,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case B:x=10;break t;case R:x=9;break t;case K:x=11;break t;case N:x=14;break t;case H:x=16,c=null;break t}x=29,o=Error(a(130,r===null?"null":typeof r,"")),c=null}return s=On(x,o,s,p),s.elementType=r,s.type=c,s.lanes=g,s}function $s(r,s,o,c){return r=On(7,r,c,s),r.lanes=o,r}function Qg(r,s,o){return r=On(6,r,null,s),r.lanes=o,r}function M_(r){var s=On(18,null,null,0);return s.stateNode=r,s}function Zg(r,s,o){return s=On(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var L_=new WeakMap;function Kn(r,s){if(typeof r=="object"&&r!==null){var o=L_.get(r);return o!==void 0?o:(s={value:r,source:s,stack:Ql(s)},L_.set(r,s),s)}return{value:r,source:s,stack:Ql(s)}}var xo=[],So=0,zf=null,du=0,Yn=[],$n=0,Ui=null,kr=1,Dr="";function Jr(r,s){xo[So++]=du,xo[So++]=zf,zf=r,du=s}function z_(r,s,o){Yn[$n++]=kr,Yn[$n++]=Dr,Yn[$n++]=Ui,Ui=r;var c=kr;r=Dr;var p=32-Re(c)-1;c&=~(1<<p),o+=1;var g=32-Re(s)+p;if(30<g){var x=p-p%5;g=(c&(1<<x)-1).toString(32),c>>=x,p-=x,kr=1<<32-Re(s)+p|o<<p|c,Dr=g+r}else kr=1<<g|o<<p|c,Dr=r}function Jg(r){r.return!==null&&(Jr(r,1),z_(r,1,0))}function Wg(r){for(;r===zf;)zf=xo[--So],xo[So]=null,du=xo[--So],xo[So]=null;for(;r===Ui;)Ui=Yn[--$n],Yn[$n]=null,Dr=Yn[--$n],Yn[$n]=null,kr=Yn[--$n],Yn[$n]=null}function j_(r,s){Yn[$n++]=kr,Yn[$n++]=Dr,Yn[$n++]=Ui,kr=s.id,Dr=s.overflow,Ui=r}var He=null,fe=null,Ht=!1,Pi=null,Xn=!1,ty=Error(a(519));function qi(r){var s=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hu(Kn(s,r)),ty}function B_(r){var s=r.stateNode,o=r.type,c=r.memoizedProps;switch(s[Ve]=r,s[yn]=c,o){case"dialog":Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":case"embed":Pt("load",s);break;case"video":case"audio":for(o=0;o<zu.length;o++)Pt(zu[o],s);break;case"source":Pt("error",s);break;case"img":case"image":case"link":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"input":Pt("invalid",s),QC(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pt("invalid",s);break;case"textarea":Pt("invalid",s),JC(s,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||s.textContent===""+o||c.suppressHydrationWarning===!0||tR(s.textContent,o)?(c.popover!=null&&(Pt("beforetoggle",s),Pt("toggle",s)),c.onScroll!=null&&Pt("scroll",s),c.onScrollEnd!=null&&Pt("scrollend",s),c.onClick!=null&&(s.onclick=Xr),s=!0):s=!1,s||qi(r,!0)}function I_(r){for(He=r.return;He;)switch(He.tag){case 5:case 31:case 13:Xn=!1;return;case 27:case 3:Xn=!0;return;default:He=He.return}}function wo(r){if(r!==He)return!1;if(!Ht)return I_(r),Ht=!0,!1;var s=r.tag,o;if((o=s!==3&&s!==27)&&((o=s===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||b0(r.type,r.memoizedProps)),o=!o),o&&fe&&qi(r),I_(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=uR(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=uR(r)}else s===27?(s=fe,es(r.type)?(r=E0,E0=null,fe=r):fe=s):fe=He?Zn(r.stateNode.nextSibling):null;return!0}function Xs(){fe=He=null,Ht=!1}function ey(){var r=Pi;return r!==null&&(wn===null?wn=r:wn.push.apply(wn,r),Pi=null),r}function hu(r){Pi===null?Pi=[r]:Pi.push(r)}var ny=D(null),Qs=null,Wr=null;function Fi(r,s,o){W(ny,s._currentValue),s._currentValue=o}function ti(r){r._currentValue=ny.current,E(ny)}function ry(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function iy(r,s,o,c){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var g=p.dependencies;if(g!==null){var x=p.child;g=g.firstContext;t:for(;g!==null;){var T=g;g=p;for(var k=0;k<s.length;k++)if(T.context===s[k]){g.lanes|=o,T=g.alternate,T!==null&&(T.lanes|=o),ry(g.return,o,r),c||(x=null);break t}g=T.next}}else if(p.tag===18){if(x=p.return,x===null)throw Error(a(341));x.lanes|=o,g=x.alternate,g!==null&&(g.lanes|=o),ry(x,o,r),x=null}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===r){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}}function Eo(r,s,o,c){r=null;for(var p=s,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var x=p.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var T=p.type;An(p.pendingProps.value,x.value)||(r!==null?r.push(T):r=[T])}}else if(p===kt.current){if(x=p.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(Pu):r=[Pu])}p=p.return}r!==null&&iy(s,r,o,c),s.flags|=262144}function jf(r){for(r=r.firstContext;r!==null;){if(!An(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Zs(r){Qs=r,Wr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ge(r){return U_(Qs,r)}function Bf(r,s){return Qs===null&&Zs(r),U_(r,s)}function U_(r,s){var o=s._currentValue;if(s={context:s,memoizedValue:o,next:null},Wr===null){if(r===null)throw Error(a(308));Wr=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else Wr=Wr.next=s;return o}var X8=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){s.aborted=!0,r.forEach(function(o){return o()})}},Q8=e.unstable_scheduleCallback,Z8=e.unstable_NormalPriority,ke={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sy(){return{controller:new X8,data:new Map,refCount:0}}function pu(r){r.refCount--,r.refCount===0&&Q8(Z8,function(){r.controller.abort()})}var mu=null,ay=0,To=0,Co=null;function J8(r,s){if(mu===null){var o=mu=[];ay=0,To=u0(),Co={status:"pending",value:void 0,then:function(c){o.push(c)}}}return ay++,s.then(P_,P_),s}function P_(){if(--ay===0&&mu!==null){Co!==null&&(Co.status="fulfilled");var r=mu;mu=null,To=0,Co=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function W8(r,s){var o=[],c={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return r.then(function(){c.status="fulfilled",c.value=s;for(var p=0;p<o.length;p++)(0,o[p])(s)},function(p){for(c.status="rejected",c.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),c}var q_=G.S;G.S=function(r,s){TO=sn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&J8(r,s),q_!==null&&q_(r,s)};var Js=D(null);function oy(){var r=Js.current;return r!==null?r:oe.pooledCache}function If(r,s){s===null?W(Js,Js.current):W(Js,s.pool)}function F_(){var r=oy();return r===null?null:{parent:ke._currentValue,pool:r}}var _o=Error(a(460)),ly=Error(a(474)),Uf=Error(a(542)),Pf={then:function(){}};function V_(r){return r=r.status,r==="fulfilled"||r==="rejected"}function H_(r,s,o){switch(o=r[o],o===void 0?r.push(s):o!==s&&(s.then(Xr,Xr),s=o),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,K_(r),r;default:if(typeof s.status=="string")s.then(Xr,Xr);else{if(r=oe,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=s,r.status="pending",r.then(function(c){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=c}},function(c){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,K_(r),r}throw ta=s,_o}}function Ws(r){try{var s=r._init;return s(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ta=o,_o):o}}var ta=null;function G_(){if(ta===null)throw Error(a(459));var r=ta;return ta=null,r}function K_(r){if(r===_o||r===Uf)throw Error(a(483))}var Ao=null,gu=0;function qf(r){var s=gu;return gu+=1,Ao===null&&(Ao=[]),H_(Ao,r,s)}function yu(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function Ff(r,s){throw s.$$typeof===v?Error(a(525)):(r=Object.prototype.toString.call(s),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function Y_(r){function s(U,z){if(r){var F=U.deletions;F===null?(U.deletions=[z],U.flags|=16):F.push(z)}}function o(U,z){if(!r)return null;for(;z!==null;)s(U,z),z=z.sibling;return null}function c(U){for(var z=new Map;U!==null;)U.key!==null?z.set(U.key,U):z.set(U.index,U),U=U.sibling;return z}function p(U,z){return U=Zr(U,z),U.index=0,U.sibling=null,U}function g(U,z,F){return U.index=F,r?(F=U.alternate,F!==null?(F=F.index,F<z?(U.flags|=67108866,z):F):(U.flags|=67108866,z)):(U.flags|=1048576,z)}function x(U){return r&&U.alternate===null&&(U.flags|=67108866),U}function T(U,z,F,et){return z===null||z.tag!==6?(z=Qg(F,U.mode,et),z.return=U,z):(z=p(z,F),z.return=U,z)}function k(U,z,F,et){var St=F.type;return St===C?J(U,z,F.props.children,et,F.key):z!==null&&(z.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===H&&Ws(St)===z.type)?(z=p(z,F.props),yu(z,F),z.return=U,z):(z=Lf(F.type,F.key,F.props,null,U.mode,et),yu(z,F),z.return=U,z)}function V(U,z,F,et){return z===null||z.tag!==4||z.stateNode.containerInfo!==F.containerInfo||z.stateNode.implementation!==F.implementation?(z=Zg(F,U.mode,et),z.return=U,z):(z=p(z,F.children||[]),z.return=U,z)}function J(U,z,F,et,St){return z===null||z.tag!==7?(z=$s(F,U.mode,et,St),z.return=U,z):(z=p(z,F),z.return=U,z)}function rt(U,z,F){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Qg(""+z,U.mode,F),z.return=U,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return F=Lf(z.type,z.key,z.props,null,U.mode,F),yu(F,z),F.return=U,F;case w:return z=Zg(z,U.mode,F),z.return=U,z;case H:return z=Ws(z),rt(U,z,F)}if(Z(z)||ft(z))return z=$s(z,U.mode,F,null),z.return=U,z;if(typeof z.then=="function")return rt(U,qf(z),F);if(z.$$typeof===B)return rt(U,Bf(U,z),F);Ff(U,z)}return null}function $(U,z,F,et){var St=z!==null?z.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return St!==null?null:T(U,z,""+F,et);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return F.key===St?k(U,z,F,et):null;case w:return F.key===St?V(U,z,F,et):null;case H:return F=Ws(F),$(U,z,F,et)}if(Z(F)||ft(F))return St!==null?null:J(U,z,F,et,null);if(typeof F.then=="function")return $(U,z,qf(F),et);if(F.$$typeof===B)return $(U,z,Bf(U,F),et);Ff(U,F)}return null}function Q(U,z,F,et,St){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return U=U.get(F)||null,T(z,U,""+et,St);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case S:return U=U.get(et.key===null?F:et.key)||null,k(z,U,et,St);case w:return U=U.get(et.key===null?F:et.key)||null,V(z,U,et,St);case H:return et=Ws(et),Q(U,z,F,et,St)}if(Z(et)||ft(et))return U=U.get(F)||null,J(z,U,et,St,null);if(typeof et.then=="function")return Q(U,z,F,qf(et),St);if(et.$$typeof===B)return Q(U,z,F,Bf(z,et),St);Ff(z,et)}return null}function ht(U,z,F,et){for(var St=null,Yt=null,bt=z,Lt=z=0,Ft=null;bt!==null&&Lt<F.length;Lt++){bt.index>Lt?(Ft=bt,bt=null):Ft=bt.sibling;var $t=$(U,bt,F[Lt],et);if($t===null){bt===null&&(bt=Ft);break}r&&bt&&$t.alternate===null&&s(U,bt),z=g($t,z,Lt),Yt===null?St=$t:Yt.sibling=$t,Yt=$t,bt=Ft}if(Lt===F.length)return o(U,bt),Ht&&Jr(U,Lt),St;if(bt===null){for(;Lt<F.length;Lt++)bt=rt(U,F[Lt],et),bt!==null&&(z=g(bt,z,Lt),Yt===null?St=bt:Yt.sibling=bt,Yt=bt);return Ht&&Jr(U,Lt),St}for(bt=c(bt);Lt<F.length;Lt++)Ft=Q(bt,U,Lt,F[Lt],et),Ft!==null&&(r&&Ft.alternate!==null&&bt.delete(Ft.key===null?Lt:Ft.key),z=g(Ft,z,Lt),Yt===null?St=Ft:Yt.sibling=Ft,Yt=Ft);return r&&bt.forEach(function(as){return s(U,as)}),Ht&&Jr(U,Lt),St}function wt(U,z,F,et){if(F==null)throw Error(a(151));for(var St=null,Yt=null,bt=z,Lt=z=0,Ft=null,$t=F.next();bt!==null&&!$t.done;Lt++,$t=F.next()){bt.index>Lt?(Ft=bt,bt=null):Ft=bt.sibling;var as=$(U,bt,$t.value,et);if(as===null){bt===null&&(bt=Ft);break}r&&bt&&as.alternate===null&&s(U,bt),z=g(as,z,Lt),Yt===null?St=as:Yt.sibling=as,Yt=as,bt=Ft}if($t.done)return o(U,bt),Ht&&Jr(U,Lt),St;if(bt===null){for(;!$t.done;Lt++,$t=F.next())$t=rt(U,$t.value,et),$t!==null&&(z=g($t,z,Lt),Yt===null?St=$t:Yt.sibling=$t,Yt=$t);return Ht&&Jr(U,Lt),St}for(bt=c(bt);!$t.done;Lt++,$t=F.next())$t=Q(bt,U,Lt,$t.value,et),$t!==null&&(r&&$t.alternate!==null&&bt.delete($t.key===null?Lt:$t.key),z=g($t,z,Lt),Yt===null?St=$t:Yt.sibling=$t,Yt=$t);return r&&bt.forEach(function(c7){return s(U,c7)}),Ht&&Jr(U,Lt),St}function se(U,z,F,et){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case S:t:{for(var St=F.key;z!==null;){if(z.key===St){if(St=F.type,St===C){if(z.tag===7){o(U,z.sibling),et=p(z,F.props.children),et.return=U,U=et;break t}}else if(z.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===H&&Ws(St)===z.type){o(U,z.sibling),et=p(z,F.props),yu(et,F),et.return=U,U=et;break t}o(U,z);break}else s(U,z);z=z.sibling}F.type===C?(et=$s(F.props.children,U.mode,et,F.key),et.return=U,U=et):(et=Lf(F.type,F.key,F.props,null,U.mode,et),yu(et,F),et.return=U,U=et)}return x(U);case w:t:{for(St=F.key;z!==null;){if(z.key===St)if(z.tag===4&&z.stateNode.containerInfo===F.containerInfo&&z.stateNode.implementation===F.implementation){o(U,z.sibling),et=p(z,F.children||[]),et.return=U,U=et;break t}else{o(U,z);break}else s(U,z);z=z.sibling}et=Zg(F,U.mode,et),et.return=U,U=et}return x(U);case H:return F=Ws(F),se(U,z,F,et)}if(Z(F))return ht(U,z,F,et);if(ft(F)){if(St=ft(F),typeof St!="function")throw Error(a(150));return F=St.call(F),wt(U,z,F,et)}if(typeof F.then=="function")return se(U,z,qf(F),et);if(F.$$typeof===B)return se(U,z,Bf(U,F),et);Ff(U,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,z!==null&&z.tag===6?(o(U,z.sibling),et=p(z,F),et.return=U,U=et):(o(U,z),et=Qg(F,U.mode,et),et.return=U,U=et),x(U)):o(U,z)}return function(U,z,F,et){try{gu=0;var St=se(U,z,F,et);return Ao=null,St}catch(bt){if(bt===_o||bt===Uf)throw bt;var Yt=On(29,bt,null,U.mode);return Yt.lanes=et,Yt.return=U,Yt}finally{}}}var ea=Y_(!0),$_=Y_(!1),Vi=!1;function uy(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cy(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Hi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Gi(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Qt&2)!==0){var p=c.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),c.pending=s,s=Mf(r),D_(r,null,o),s}return Nf(r,c,s,o),Mf(r)}function bu(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194048)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,UC(r,o)}}function fy(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var p=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?p=g=x:g=g.next=x,o=o.next}while(o!==null);g===null?p=g=s:g=g.next=s}else p=g=s;o={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}var dy=!1;function vu(){if(dy){var r=Co;if(r!==null)throw r}}function xu(r,s,o,c){dy=!1;var p=r.updateQueue;Vi=!1;var g=p.firstBaseUpdate,x=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var k=T,V=k.next;k.next=null,x===null?g=V:x.next=V,x=k;var J=r.alternate;J!==null&&(J=J.updateQueue,T=J.lastBaseUpdate,T!==x&&(T===null?J.firstBaseUpdate=V:T.next=V,J.lastBaseUpdate=k))}if(g!==null){var rt=p.baseState;x=0,J=V=k=null,T=g;do{var $=T.lane&-536870913,Q=$!==T.lane;if(Q?(qt&$)===$:(c&$)===$){$!==0&&$===To&&(dy=!0),J!==null&&(J=J.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});t:{var ht=r,wt=T;$=s;var se=o;switch(wt.tag){case 1:if(ht=wt.payload,typeof ht=="function"){rt=ht.call(se,rt,$);break t}rt=ht;break t;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=wt.payload,$=typeof ht=="function"?ht.call(se,rt,$):ht,$==null)break t;rt=b({},rt,$);break t;case 2:Vi=!0}}$=T.callback,$!==null&&(r.flags|=64,Q&&(r.flags|=8192),Q=p.callbacks,Q===null?p.callbacks=[$]:Q.push($))}else Q={lane:$,tag:T.tag,payload:T.payload,callback:T.callback,next:null},J===null?(V=J=Q,k=rt):J=J.next=Q,x|=$;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;Q=T,T=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);J===null&&(k=rt),p.baseState=k,p.firstBaseUpdate=V,p.lastBaseUpdate=J,g===null&&(p.shared.lanes=0),Qi|=x,r.lanes=x,r.memoizedState=rt}}function X_(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function Q_(r,s){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)X_(o[r],s)}var Oo=D(null),Vf=D(0);function Z_(r,s){r=ui,W(Vf,r),W(Oo,s),ui=r|s.baseLanes}function hy(){W(Vf,ui),W(Oo,Oo.current)}function py(){ui=Vf.current,E(Oo),E(Vf)}var Rn=D(null),Qn=null;function Ki(r){var s=r.alternate;W(Ce,Ce.current&1),W(Rn,r),Qn===null&&(s===null||Oo.current!==null||s.memoizedState!==null)&&(Qn=r)}function my(r){W(Ce,Ce.current),W(Rn,r),Qn===null&&(Qn=r)}function J_(r){r.tag===22?(W(Ce,Ce.current),W(Rn,r),Qn===null&&(Qn=r)):Yi()}function Yi(){W(Ce,Ce.current),W(Rn,Rn.current)}function kn(r){E(Rn),Qn===r&&(Qn=null),E(Ce)}var Ce=D(0);function Hf(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||S0(o)||w0(o)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ei=0,Dt=null,re=null,De=null,Gf=!1,Ro=!1,na=!1,Kf=0,Su=0,ko=null,t9=0;function Se(){throw Error(a(321))}function gy(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!An(r[o],s[o]))return!1;return!0}function yy(r,s,o,c,p,g){return ei=g,Dt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=r===null||r.memoizedState===null?zA:Ny,na=!1,g=o(c,p),na=!1,Ro&&(g=tA(s,o,c,p)),W_(r),g}function W_(r){G.H=Tu;var s=re!==null&&re.next!==null;if(ei=0,De=re=Dt=null,Gf=!1,Su=0,ko=null,s)throw Error(a(300));r===null||Ne||(r=r.dependencies,r!==null&&jf(r)&&(Ne=!0))}function tA(r,s,o,c){Dt=r;var p=0;do{if(Ro&&(ko=null),Su=0,Ro=!1,25<=p)throw Error(a(301));if(p+=1,De=re=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}G.H=jA,g=s(o,c)}while(Ro);return g}function e9(){var r=G.H,s=r.useState()[0];return s=typeof s.then=="function"?wu(s):s,r=r.useState()[0],(re!==null?re.memoizedState:null)!==r&&(Dt.flags|=1024),s}function by(){var r=Kf!==0;return Kf=0,r}function vy(r,s,o){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~o}function xy(r){if(Gf){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Gf=!1}ei=0,De=re=Dt=null,Ro=!1,Su=Kf=0,ko=null}function an(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Dt.memoizedState=De=r:De=De.next=r,De}function _e(){if(re===null){var r=Dt.alternate;r=r!==null?r.memoizedState:null}else r=re.next;var s=De===null?Dt.memoizedState:De.next;if(s!==null)De=s,re=r;else{if(r===null)throw Dt.alternate===null?Error(a(467)):Error(a(310));re=r,r={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},De===null?Dt.memoizedState=De=r:De=De.next=r}return De}function Yf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wu(r){var s=Su;return Su+=1,ko===null&&(ko=[]),r=H_(ko,r,s),s=Dt,(De===null?s.memoizedState:De.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?zA:Ny),r}function $f(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return wu(r);if(r.$$typeof===B)return Ge(r)}throw Error(a(438,String(r)))}function Sy(r){var s=null,o=Dt.updateQueue;if(o!==null&&(s=o.memoCache),s==null){var c=Dt.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),o===null&&(o=Yf(),Dt.updateQueue=o),o.memoCache=s,o=s.data[s.index],o===void 0)for(o=s.data[s.index]=Array(r),c=0;c<r;c++)o[c]=nt;return s.index++,o}function ni(r,s){return typeof s=="function"?s(r):s}function Xf(r){var s=_e();return wy(s,re,r)}function wy(r,s,o){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=o;var p=r.baseQueue,g=c.pending;if(g!==null){if(p!==null){var x=p.next;p.next=g.next,g.next=x}s.baseQueue=p=g,c.pending=null}if(g=r.baseState,p===null)r.memoizedState=g;else{s=p.next;var T=x=null,k=null,V=s,J=!1;do{var rt=V.lane&-536870913;if(rt!==V.lane?(qt&rt)===rt:(ei&rt)===rt){var $=V.revertLane;if($===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),rt===To&&(J=!0);else if((ei&$)===$){V=V.next,$===To&&(J=!0);continue}else rt={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(T=k=rt,x=g):k=k.next=rt,Dt.lanes|=$,Qi|=$;rt=V.action,na&&o(g,rt),g=V.hasEagerState?V.eagerState:o(g,rt)}else $={lane:rt,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(T=k=$,x=g):k=k.next=$,Dt.lanes|=rt,Qi|=rt;V=V.next}while(V!==null&&V!==s);if(k===null?x=g:k.next=T,!An(g,r.memoizedState)&&(Ne=!0,J&&(o=Co,o!==null)))throw o;r.memoizedState=g,r.baseState=x,r.baseQueue=k,c.lastRenderedState=g}return p===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Ey(r){var s=_e(),o=s.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=r;var c=o.dispatch,p=o.pending,g=s.memoizedState;if(p!==null){o.pending=null;var x=p=p.next;do g=r(g,x.action),x=x.next;while(x!==p);An(g,s.memoizedState)||(Ne=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),o.lastRenderedState=g}return[g,c]}function eA(r,s,o){var c=Dt,p=_e(),g=Ht;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=s();var x=!An((re||p).memoizedState,o);if(x&&(p.memoizedState=o,Ne=!0),p=p.queue,_y(iA.bind(null,c,p,r),[r]),p.getSnapshot!==s||x||De!==null&&De.memoizedState.tag&1){if(c.flags|=2048,Do(9,{destroy:void 0},rA.bind(null,c,p,o,s),null),oe===null)throw Error(a(349));g||(ei&127)!==0||nA(c,s,o)}return o}function nA(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=Dt.updateQueue,s===null?(s=Yf(),Dt.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function rA(r,s,o,c){s.value=o,s.getSnapshot=c,sA(s)&&aA(r)}function iA(r,s,o){return o(function(){sA(s)&&aA(r)})}function sA(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!An(r,o)}catch{return!0}}function aA(r){var s=Ys(r,2);s!==null&&En(s,r,2)}function Ty(r){var s=an();if(typeof r=="function"){var o=r;if(r=o(),na){xe(!0);try{o()}finally{xe(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:r},s}function oA(r,s,o,c){return r.baseState=o,wy(r,re,typeof c=="function"?c:ni)}function n9(r,s,o,c,p){if(Jf(r))throw Error(a(485));if(r=s.action,r!==null){var g={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};G.T!==null?o(!0):g.isTransition=!1,c(g),o=s.pending,o===null?(g.next=s.pending=g,lA(s,g)):(g.next=o.next,s.pending=o.next=g)}}function lA(r,s){var o=s.action,c=s.payload,p=r.state;if(s.isTransition){var g=G.T,x={};G.T=x;try{var T=o(p,c),k=G.S;k!==null&&k(x,T),uA(r,s,T)}catch(V){Cy(r,s,V)}finally{g!==null&&x.types!==null&&(g.types=x.types),G.T=g}}else try{g=o(p,c),uA(r,s,g)}catch(V){Cy(r,s,V)}}function uA(r,s,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){cA(r,s,c)},function(c){return Cy(r,s,c)}):cA(r,s,o)}function cA(r,s,o){s.status="fulfilled",s.value=o,fA(s),r.state=o,s=r.pending,s!==null&&(o=s.next,o===s?r.pending=null:(o=o.next,s.next=o,lA(r,o)))}function Cy(r,s,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=o,fA(s),s=s.next;while(s!==c)}r.action=null}function fA(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function dA(r,s){return s}function hA(r,s){if(Ht){var o=oe.formState;if(o!==null){t:{var c=Dt;if(Ht){if(fe){e:{for(var p=fe,g=Xn;p.nodeType!==8;){if(!g){p=null;break e}if(p=Zn(p.nextSibling),p===null){p=null;break e}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){fe=Zn(p.nextSibling),c=p.data==="F!";break t}}qi(c)}c=!1}c&&(s=o[0])}}return o=an(),o.memoizedState=o.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dA,lastRenderedState:s},o.queue=c,o=NA.bind(null,Dt,c),c.dispatch=o,c=Ty(!1),g=Dy.bind(null,Dt,!1,c.queue),c=an(),p={state:s,dispatch:null,action:r,pending:null},c.queue=p,o=n9.bind(null,Dt,p,g,o),p.dispatch=o,c.memoizedState=r,[s,o,!1]}function pA(r){var s=_e();return mA(s,re,r)}function mA(r,s,o){if(s=wy(r,s,dA)[0],r=Xf(ni)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=wu(s)}catch(x){throw x===_o?Uf:x}else c=s;s=_e();var p=s.queue,g=p.dispatch;return o!==s.memoizedState&&(Dt.flags|=2048,Do(9,{destroy:void 0},r9.bind(null,p,o),null)),[c,g,r]}function r9(r,s){r.action=s}function gA(r){var s=_e(),o=re;if(o!==null)return mA(s,o,r);_e(),s=s.memoizedState,o=_e();var c=o.queue.dispatch;return o.memoizedState=r,[s,c,!1]}function Do(r,s,o,c){return r={tag:r,create:o,deps:c,inst:s,next:null},s=Dt.updateQueue,s===null&&(s=Yf(),Dt.updateQueue=s),o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r),r}function yA(){return _e().memoizedState}function Qf(r,s,o,c){var p=an();Dt.flags|=r,p.memoizedState=Do(1|s,{destroy:void 0},o,c===void 0?null:c)}function Zf(r,s,o,c){var p=_e();c=c===void 0?null:c;var g=p.memoizedState.inst;re!==null&&c!==null&&gy(c,re.memoizedState.deps)?p.memoizedState=Do(s,g,o,c):(Dt.flags|=r,p.memoizedState=Do(1|s,g,o,c))}function bA(r,s){Qf(8390656,8,r,s)}function _y(r,s){Zf(2048,8,r,s)}function i9(r){Dt.flags|=4;var s=Dt.updateQueue;if(s===null)s=Yf(),Dt.updateQueue=s,s.events=[r];else{var o=s.events;o===null?s.events=[r]:o.push(r)}}function vA(r){var s=_e().memoizedState;return i9({ref:s,nextImpl:r}),function(){if((Qt&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}function xA(r,s){return Zf(4,2,r,s)}function SA(r,s){return Zf(4,4,r,s)}function wA(r,s){if(typeof s=="function"){r=r();var o=s(r);return function(){typeof o=="function"?o():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function EA(r,s,o){o=o!=null?o.concat([r]):null,Zf(4,4,wA.bind(null,s,r),o)}function Ay(){}function TA(r,s){var o=_e();s=s===void 0?null:s;var c=o.memoizedState;return s!==null&&gy(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function CA(r,s){var o=_e();s=s===void 0?null:s;var c=o.memoizedState;if(s!==null&&gy(s,c[1]))return c[0];if(c=r(),na){xe(!0);try{r()}finally{xe(!1)}}return o.memoizedState=[c,s],c}function Oy(r,s,o){return o===void 0||(ei&1073741824)!==0&&(qt&261930)===0?r.memoizedState=s:(r.memoizedState=o,r=_O(),Dt.lanes|=r,Qi|=r,o)}function _A(r,s,o,c){return An(o,s)?o:Oo.current!==null?(r=Oy(r,o,c),An(r,s)||(Ne=!0),r):(ei&42)===0||(ei&1073741824)!==0&&(qt&261930)===0?(Ne=!0,r.memoizedState=o):(r=_O(),Dt.lanes|=r,Qi|=r,s)}function AA(r,s,o,c,p){var g=P.p;P.p=g!==0&&8>g?g:8;var x=G.T,T={};G.T=T,Dy(r,!1,s,o);try{var k=p(),V=G.S;if(V!==null&&V(T,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var J=W8(k,c);Eu(r,s,J,Mn(r))}else Eu(r,s,c,Mn(r))}catch(rt){Eu(r,s,{then:function(){},status:"rejected",reason:rt},Mn())}finally{P.p=g,x!==null&&T.types!==null&&(x.types=T.types),G.T=x}}function s9(){}function Ry(r,s,o,c){if(r.tag!==5)throw Error(a(476));var p=OA(r).queue;AA(r,p,s,dt,o===null?s9:function(){return RA(r),o(c)})}function OA(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:dt,baseState:dt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:dt},next:null};var o={};return s.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:o},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function RA(r){var s=OA(r);s.next===null&&(s=r.alternate.memoizedState),Eu(r,s.next.queue,{},Mn())}function ky(){return Ge(Pu)}function kA(){return _e().memoizedState}function DA(){return _e().memoizedState}function a9(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var o=Mn();r=Hi(o);var c=Gi(s,r,o);c!==null&&(En(c,s,o),bu(c,s,o)),s={cache:sy()},r.payload=s;return}s=s.return}}function o9(r,s,o){var c=Mn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Jf(r)?MA(s,o):(o=$g(r,s,o,c),o!==null&&(En(o,r,c),LA(o,s,c)))}function NA(r,s,o){var c=Mn();Eu(r,s,o,c)}function Eu(r,s,o,c){var p={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Jf(r))MA(s,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var x=s.lastRenderedState,T=g(x,o);if(p.hasEagerState=!0,p.eagerState=T,An(T,x))return Nf(r,s,p,0),oe===null&&Df(),!1}catch{}finally{}if(o=$g(r,s,p,c),o!==null)return En(o,r,c),LA(o,s,c),!0}return!1}function Dy(r,s,o,c){if(c={lane:2,revertLane:u0(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Jf(r)){if(s)throw Error(a(479))}else s=$g(r,o,c,2),s!==null&&En(s,r,2)}function Jf(r){var s=r.alternate;return r===Dt||s!==null&&s===Dt}function MA(r,s){Ro=Gf=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function LA(r,s,o){if((o&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,UC(r,o)}}var Tu={readContext:Ge,use:$f,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se};Tu.useEffectEvent=Se;var zA={readContext:Ge,use:$f,useCallback:function(r,s){return an().memoizedState=[r,s===void 0?null:s],r},useContext:Ge,useEffect:bA,useImperativeHandle:function(r,s,o){o=o!=null?o.concat([r]):null,Qf(4194308,4,wA.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Qf(4194308,4,r,s)},useInsertionEffect:function(r,s){Qf(4,2,r,s)},useMemo:function(r,s){var o=an();s=s===void 0?null:s;var c=r();if(na){xe(!0);try{r()}finally{xe(!1)}}return o.memoizedState=[c,s],c},useReducer:function(r,s,o){var c=an();if(o!==void 0){var p=o(s);if(na){xe(!0);try{o(s)}finally{xe(!1)}}}else p=s;return c.memoizedState=c.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},c.queue=r,r=r.dispatch=o9.bind(null,Dt,r),[c.memoizedState,r]},useRef:function(r){var s=an();return r={current:r},s.memoizedState=r},useState:function(r){r=Ty(r);var s=r.queue,o=NA.bind(null,Dt,s);return s.dispatch=o,[r.memoizedState,o]},useDebugValue:Ay,useDeferredValue:function(r,s){var o=an();return Oy(o,r,s)},useTransition:function(){var r=Ty(!1);return r=AA.bind(null,Dt,r.queue,!0,!1),an().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,o){var c=Dt,p=an();if(Ht){if(o===void 0)throw Error(a(407));o=o()}else{if(o=s(),oe===null)throw Error(a(349));(qt&127)!==0||nA(c,s,o)}p.memoizedState=o;var g={value:o,getSnapshot:s};return p.queue=g,bA(iA.bind(null,c,g,r),[r]),c.flags|=2048,Do(9,{destroy:void 0},rA.bind(null,c,g,o,s),null),o},useId:function(){var r=an(),s=oe.identifierPrefix;if(Ht){var o=Dr,c=kr;o=(c&~(1<<32-Re(c)-1)).toString(32)+o,s="_"+s+"R_"+o,o=Kf++,0<o&&(s+="H"+o.toString(32)),s+="_"}else o=t9++,s="_"+s+"r_"+o.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:ky,useFormState:hA,useActionState:hA,useOptimistic:function(r){var s=an();s.memoizedState=s.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=o,s=Dy.bind(null,Dt,!0,o),o.dispatch=s,[r,s]},useMemoCache:Sy,useCacheRefresh:function(){return an().memoizedState=a9.bind(null,Dt)},useEffectEvent:function(r){var s=an(),o={impl:r};return s.memoizedState=o,function(){if((Qt&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},Ny={readContext:Ge,use:$f,useCallback:TA,useContext:Ge,useEffect:_y,useImperativeHandle:EA,useInsertionEffect:xA,useLayoutEffect:SA,useMemo:CA,useReducer:Xf,useRef:yA,useState:function(){return Xf(ni)},useDebugValue:Ay,useDeferredValue:function(r,s){var o=_e();return _A(o,re.memoizedState,r,s)},useTransition:function(){var r=Xf(ni)[0],s=_e().memoizedState;return[typeof r=="boolean"?r:wu(r),s]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:ky,useFormState:pA,useActionState:pA,useOptimistic:function(r,s){var o=_e();return oA(o,re,r,s)},useMemoCache:Sy,useCacheRefresh:DA};Ny.useEffectEvent=vA;var jA={readContext:Ge,use:$f,useCallback:TA,useContext:Ge,useEffect:_y,useImperativeHandle:EA,useInsertionEffect:xA,useLayoutEffect:SA,useMemo:CA,useReducer:Ey,useRef:yA,useState:function(){return Ey(ni)},useDebugValue:Ay,useDeferredValue:function(r,s){var o=_e();return re===null?Oy(o,r,s):_A(o,re.memoizedState,r,s)},useTransition:function(){var r=Ey(ni)[0],s=_e().memoizedState;return[typeof r=="boolean"?r:wu(r),s]},useSyncExternalStore:eA,useId:kA,useHostTransitionStatus:ky,useFormState:gA,useActionState:gA,useOptimistic:function(r,s){var o=_e();return re!==null?oA(o,re,r,s):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Sy,useCacheRefresh:DA};jA.useEffectEvent=vA;function My(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:b({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Ly={enqueueSetState:function(r,s,o){r=r._reactInternals;var c=Mn(),p=Hi(c);p.payload=s,o!=null&&(p.callback=o),s=Gi(r,p,c),s!==null&&(En(s,r,c),bu(s,r,c))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=Mn(),p=Hi(c);p.tag=1,p.payload=s,o!=null&&(p.callback=o),s=Gi(r,p,c),s!==null&&(En(s,r,c),bu(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Mn(),c=Hi(o);c.tag=2,s!=null&&(c.callback=s),s=Gi(r,c,o),s!==null&&(En(s,r,o),bu(s,r,o))}};function BA(r,s,o,c,p,g,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,x):s.prototype&&s.prototype.isPureReactComponent?!cu(o,c)||!cu(p,g):!0}function IA(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&Ly.enqueueReplaceState(s,s.state,null)}function ra(r,s){var o=s;if("ref"in s){o={};for(var c in s)c!=="ref"&&(o[c]=s[c])}if(r=r.defaultProps){o===s&&(o=b({},o));for(var p in r)o[p]===void 0&&(o[p]=r[p])}return o}function UA(r){kf(r)}function PA(r){console.error(r)}function qA(r){kf(r)}function Wf(r,s){try{var o=r.onUncaughtError;o(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function FA(r,s,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function zy(r,s,o){return o=Hi(o),o.tag=3,o.payload={element:null},o.callback=function(){Wf(r,s)},o}function VA(r){return r=Hi(r),r.tag=3,r}function HA(r,s,o,c){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var g=c.value;r.payload=function(){return p(g)},r.callback=function(){FA(s,o,c)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){FA(s,o,c),typeof p!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var T=c.stack;this.componentDidCatch(c.value,{componentStack:T!==null?T:""})})}function l9(r,s,o,c,p){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=o.alternate,s!==null&&Eo(s,o,p,!0),o=Rn.current,o!==null){switch(o.tag){case 31:case 13:return Qn===null?fd():o.alternate===null&&we===0&&(we=3),o.flags&=-257,o.flags|=65536,o.lanes=p,c===Pf?o.flags|=16384:(s=o.updateQueue,s===null?o.updateQueue=new Set([c]):s.add(c),a0(r,c,p)),!1;case 22:return o.flags|=65536,c===Pf?o.flags|=16384:(s=o.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=s):(o=s.retryQueue,o===null?s.retryQueue=new Set([c]):o.add(c)),a0(r,c,p)),!1}throw Error(a(435,o.tag))}return a0(r,c,p),fd(),!1}if(Ht)return s=Rn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,c!==ty&&(r=Error(a(422),{cause:c}),hu(Kn(r,o)))):(c!==ty&&(s=Error(a(423),{cause:c}),hu(Kn(s,o))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,c=Kn(c,o),p=zy(r.stateNode,c,p),fy(r,p),we!==4&&(we=2)),!1;var g=Error(a(520),{cause:c});if(g=Kn(g,o),Nu===null?Nu=[g]:Nu.push(g),we!==4&&(we=2),s===null)return!0;c=Kn(c,o),o=s;do{switch(o.tag){case 3:return o.flags|=65536,r=p&-p,o.lanes|=r,r=zy(o.stateNode,c,r),fy(o,r),!1;case 1:if(s=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Zi===null||!Zi.has(g))))return o.flags|=65536,p&=-p,o.lanes|=p,p=VA(p),HA(p,r,o,c),fy(o,p),!1}o=o.return}while(o!==null);return!1}var jy=Error(a(461)),Ne=!1;function Ke(r,s,o,c){s.child=r===null?$_(s,null,o,c):ea(s,r.child,o,c)}function GA(r,s,o,c,p){o=o.render;var g=s.ref;if("ref"in c){var x={};for(var T in c)T!=="ref"&&(x[T]=c[T])}else x=c;return Zs(s),c=yy(r,s,o,x,g,p),T=by(),r!==null&&!Ne?(vy(r,s,p),ri(r,s,p)):(Ht&&T&&Jg(s),s.flags|=1,Ke(r,s,c,p),s.child)}function KA(r,s,o,c,p){if(r===null){var g=o.type;return typeof g=="function"&&!Xg(g)&&g.defaultProps===void 0&&o.compare===null?(s.tag=15,s.type=g,YA(r,s,g,c,p)):(r=Lf(o.type,null,c,s,s.mode,p),r.ref=s.ref,r.return=s,s.child=r)}if(g=r.child,!Hy(r,p)){var x=g.memoizedProps;if(o=o.compare,o=o!==null?o:cu,o(x,c)&&r.ref===s.ref)return ri(r,s,p)}return s.flags|=1,r=Zr(g,c),r.ref=s.ref,r.return=s,s.child=r}function YA(r,s,o,c,p){if(r!==null){var g=r.memoizedProps;if(cu(g,c)&&r.ref===s.ref)if(Ne=!1,s.pendingProps=c=g,Hy(r,p))(r.flags&131072)!==0&&(Ne=!0);else return s.lanes=r.lanes,ri(r,s,p)}return By(r,s,o,c,p)}function $A(r,s,o,c){var p=c.children,g=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,r!==null){for(c=s.child=r.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;c=p&~g}else c=0,s.child=null;return XA(r,s,g,o,c)}if((o&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&If(s,g!==null?g.cachePool:null),g!==null?Z_(s,g):hy(),J_(s);else return c=s.lanes=536870912,XA(r,s,g!==null?g.baseLanes|o:o,o,c)}else g!==null?(If(s,g.cachePool),Z_(s,g),Yi(),s.memoizedState=null):(r!==null&&If(s,null),hy(),Yi());return Ke(r,s,p,o),s.child}function Cu(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function XA(r,s,o,c,p){var g=oy();return g=g===null?null:{parent:ke._currentValue,pool:g},s.memoizedState={baseLanes:o,cachePool:g},r!==null&&If(s,null),hy(),J_(s),r!==null&&Eo(r,s,c,!0),s.childLanes=p,null}function td(r,s){return s=nd({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function QA(r,s,o){return ea(s,r.child,null,o),r=td(s,s.pendingProps),r.flags|=2,kn(s),s.memoizedState=null,r}function u9(r,s,o){var c=s.pendingProps,p=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(Ht){if(c.mode==="hidden")return r=td(s,c),s.lanes=536870912,Cu(null,r);if(my(s),(r=fe)?(r=lR(r,Xn),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Ui!==null?{id:kr,overflow:Dr}:null,retryLane:536870912,hydrationErrors:null},o=M_(r),o.return=s,s.child=o,He=s,fe=null)):r=null,r===null)throw qi(s);return s.lanes=536870912,null}return td(s,c)}var g=r.memoizedState;if(g!==null){var x=g.dehydrated;if(my(s),p)if(s.flags&256)s.flags&=-257,s=QA(r,s,o);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(a(558));else if(Ne||Eo(r,s,o,!1),p=(o&r.childLanes)!==0,Ne||p){if(c=oe,c!==null&&(x=PC(c,o),x!==0&&x!==g.retryLane))throw g.retryLane=x,Ys(r,x),En(c,r,x),jy;fd(),s=QA(r,s,o)}else r=g.treeContext,fe=Zn(x.nextSibling),He=s,Ht=!0,Pi=null,Xn=!1,r!==null&&j_(s,r),s=td(s,c),s.flags|=4096;return s}return r=Zr(r.child,{mode:c.mode,children:c.children}),r.ref=s.ref,s.child=r,r.return=s,r}function ed(r,s){var o=s.ref;if(o===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(r===null||r.ref!==o)&&(s.flags|=4194816)}}function By(r,s,o,c,p){return Zs(s),o=yy(r,s,o,c,void 0,p),c=by(),r!==null&&!Ne?(vy(r,s,p),ri(r,s,p)):(Ht&&c&&Jg(s),s.flags|=1,Ke(r,s,o,p),s.child)}function ZA(r,s,o,c,p,g){return Zs(s),s.updateQueue=null,o=tA(s,c,o,p),W_(r),c=by(),r!==null&&!Ne?(vy(r,s,g),ri(r,s,g)):(Ht&&c&&Jg(s),s.flags|=1,Ke(r,s,o,g),s.child)}function JA(r,s,o,c,p){if(Zs(s),s.stateNode===null){var g=vo,x=o.contextType;typeof x=="object"&&x!==null&&(g=Ge(x)),g=new o(c,g),s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Ly,s.stateNode=g,g._reactInternals=s,g=s.stateNode,g.props=c,g.state=s.memoizedState,g.refs={},uy(s),x=o.contextType,g.context=typeof x=="object"&&x!==null?Ge(x):vo,g.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(My(s,o,x,c),g.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&Ly.enqueueReplaceState(g,g.state,null),xu(s,c,g,p),vu(),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){g=s.stateNode;var T=s.memoizedProps,k=ra(o,T);g.props=k;var V=g.context,J=o.contextType;x=vo,typeof J=="object"&&J!==null&&(x=Ge(J));var rt=o.getDerivedStateFromProps;J=typeof rt=="function"||typeof g.getSnapshotBeforeUpdate=="function",T=s.pendingProps!==T,J||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T||V!==x)&&IA(s,g,c,x),Vi=!1;var $=s.memoizedState;g.state=$,xu(s,c,g,p),vu(),V=s.memoizedState,T||$!==V||Vi?(typeof rt=="function"&&(My(s,o,rt,c),V=s.memoizedState),(k=Vi||BA(s,o,k,c,$,V,x))?(J||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=V),g.props=c,g.state=V,g.context=x,c=k):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{g=s.stateNode,cy(r,s),x=s.memoizedProps,J=ra(o,x),g.props=J,rt=s.pendingProps,$=g.context,V=o.contextType,k=vo,typeof V=="object"&&V!==null&&(k=Ge(V)),T=o.getDerivedStateFromProps,(V=typeof T=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==rt||$!==k)&&IA(s,g,c,k),Vi=!1,$=s.memoizedState,g.state=$,xu(s,c,g,p),vu();var Q=s.memoizedState;x!==rt||$!==Q||Vi||r!==null&&r.dependencies!==null&&jf(r.dependencies)?(typeof T=="function"&&(My(s,o,T,c),Q=s.memoizedState),(J=Vi||BA(s,o,J,c,$,Q,k)||r!==null&&r.dependencies!==null&&jf(r.dependencies))?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Q,k),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Q,k)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=Q),g.props=c,g.state=Q,g.context=k,c=J):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&$===r.memoizedState||(s.flags|=1024),c=!1)}return g=c,ed(r,s),c=(s.flags&128)!==0,g||c?(g=s.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:g.render(),s.flags|=1,r!==null&&c?(s.child=ea(s,r.child,null,p),s.child=ea(s,null,o,p)):Ke(r,s,o,p),s.memoizedState=g.state,r=s.child):r=ri(r,s,p),r}function WA(r,s,o,c){return Xs(),s.flags|=256,Ke(r,s,o,c),s.child}var Iy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uy(r){return{baseLanes:r,cachePool:F_()}}function Py(r,s,o){return r=r!==null?r.childLanes&~o:0,s&&(r|=Nn),r}function tO(r,s,o){var c=s.pendingProps,p=!1,g=(s.flags&128)!==0,x;if((x=g)||(x=r!==null&&r.memoizedState===null?!1:(Ce.current&2)!==0),x&&(p=!0,s.flags&=-129),x=(s.flags&32)!==0,s.flags&=-33,r===null){if(Ht){if(p?Ki(s):Yi(),(r=fe)?(r=lR(r,Xn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Ui!==null?{id:kr,overflow:Dr}:null,retryLane:536870912,hydrationErrors:null},o=M_(r),o.return=s,s.child=o,He=s,fe=null)):r=null,r===null)throw qi(s);return w0(r)?s.lanes=32:s.lanes=536870912,null}var T=c.children;return c=c.fallback,p?(Yi(),p=s.mode,T=nd({mode:"hidden",children:T},p),c=$s(c,p,o,null),T.return=s,c.return=s,T.sibling=c,s.child=T,c=s.child,c.memoizedState=Uy(o),c.childLanes=Py(r,x,o),s.memoizedState=Iy,Cu(null,c)):(Ki(s),qy(s,T))}var k=r.memoizedState;if(k!==null&&(T=k.dehydrated,T!==null)){if(g)s.flags&256?(Ki(s),s.flags&=-257,s=Fy(r,s,o)):s.memoizedState!==null?(Yi(),s.child=r.child,s.flags|=128,s=null):(Yi(),T=c.fallback,p=s.mode,c=nd({mode:"visible",children:c.children},p),T=$s(T,p,o,null),T.flags|=2,c.return=s,T.return=s,c.sibling=T,s.child=c,ea(s,r.child,null,o),c=s.child,c.memoizedState=Uy(o),c.childLanes=Py(r,x,o),s.memoizedState=Iy,s=Cu(null,c));else if(Ki(s),w0(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var V=x.dgst;x=V,c=Error(a(419)),c.stack="",c.digest=x,hu({value:c,source:null,stack:null}),s=Fy(r,s,o)}else if(Ne||Eo(r,s,o,!1),x=(o&r.childLanes)!==0,Ne||x){if(x=oe,x!==null&&(c=PC(x,o),c!==0&&c!==k.retryLane))throw k.retryLane=c,Ys(r,c),En(x,r,c),jy;S0(T)||fd(),s=Fy(r,s,o)}else S0(T)?(s.flags|=192,s.child=r.child,s=null):(r=k.treeContext,fe=Zn(T.nextSibling),He=s,Ht=!0,Pi=null,Xn=!1,r!==null&&j_(s,r),s=qy(s,c.children),s.flags|=4096);return s}return p?(Yi(),T=c.fallback,p=s.mode,k=r.child,V=k.sibling,c=Zr(k,{mode:"hidden",children:c.children}),c.subtreeFlags=k.subtreeFlags&65011712,V!==null?T=Zr(V,T):(T=$s(T,p,o,null),T.flags|=2),T.return=s,c.return=s,c.sibling=T,s.child=c,Cu(null,c),c=s.child,T=r.child.memoizedState,T===null?T=Uy(o):(p=T.cachePool,p!==null?(k=ke._currentValue,p=p.parent!==k?{parent:k,pool:k}:p):p=F_(),T={baseLanes:T.baseLanes|o,cachePool:p}),c.memoizedState=T,c.childLanes=Py(r,x,o),s.memoizedState=Iy,Cu(r.child,c)):(Ki(s),o=r.child,r=o.sibling,o=Zr(o,{mode:"visible",children:c.children}),o.return=s,o.sibling=null,r!==null&&(x=s.deletions,x===null?(s.deletions=[r],s.flags|=16):x.push(r)),s.child=o,s.memoizedState=null,o)}function qy(r,s){return s=nd({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function nd(r,s){return r=On(22,r,null,s),r.lanes=0,r}function Fy(r,s,o){return ea(s,r.child,null,o),r=qy(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function eO(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),ry(r.return,s,o)}function Vy(r,s,o,c,p,g){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:p,treeForkCount:g}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=o,x.tailMode=p,x.treeForkCount=g)}function nO(r,s,o){var c=s.pendingProps,p=c.revealOrder,g=c.tail;c=c.children;var x=Ce.current,T=(x&2)!==0;if(T?(x=x&1|2,s.flags|=128):x&=1,W(Ce,x),Ke(r,s,c,o),c=Ht?du:0,!T&&r!==null&&(r.flags&128)!==0)t:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&eO(r,o,s);else if(r.tag===19)eO(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break t;for(;r.sibling===null;){if(r.return===null||r.return===s)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case"forwards":for(o=s.child,p=null;o!==null;)r=o.alternate,r!==null&&Hf(r)===null&&(p=o),o=o.sibling;o=p,o===null?(p=s.child,s.child=null):(p=o.sibling,o.sibling=null),Vy(s,!1,p,o,g,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=s.child,s.child=null;p!==null;){if(r=p.alternate,r!==null&&Hf(r)===null){s.child=p;break}r=p.sibling,p.sibling=o,o=p,p=r}Vy(s,!0,o,null,g,c);break;case"together":Vy(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}function ri(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Qi|=s.lanes,(o&s.childLanes)===0)if(r!==null){if(Eo(r,s,o,!1),(o&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(a(153));if(s.child!==null){for(r=s.child,o=Zr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=Zr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function Hy(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&jf(r)))}function c9(r,s,o){switch(s.tag){case 3:ae(s,s.stateNode.containerInfo),Fi(s,ke,r.memoizedState.cache),Xs();break;case 27:case 5:mn(s);break;case 4:ae(s,s.stateNode.containerInfo);break;case 10:Fi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,my(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Ki(s),s.flags|=128,null):(o&s.child.childLanes)!==0?tO(r,s,o):(Ki(s),r=ri(r,s,o),r!==null?r.sibling:null);Ki(s);break;case 19:var p=(r.flags&128)!==0;if(c=(o&s.childLanes)!==0,c||(Eo(r,s,o,!1),c=(o&s.childLanes)!==0),p){if(c)return nO(r,s,o);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),W(Ce,Ce.current),c)break;return null;case 22:return s.lanes=0,$A(r,s,o,s.pendingProps);case 24:Fi(s,ke,r.memoizedState.cache)}return ri(r,s,o)}function rO(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps)Ne=!0;else{if(!Hy(r,o)&&(s.flags&128)===0)return Ne=!1,c9(r,s,o);Ne=(r.flags&131072)!==0}else Ne=!1,Ht&&(s.flags&1048576)!==0&&z_(s,du,s.index);switch(s.lanes=0,s.tag){case 16:t:{var c=s.pendingProps;if(r=Ws(s.elementType),s.type=r,typeof r=="function")Xg(r)?(c=ra(r,c),s.tag=1,s=JA(null,s,r,c,o)):(s.tag=0,s=By(null,s,r,c,o));else{if(r!=null){var p=r.$$typeof;if(p===K){s.tag=11,s=GA(null,s,r,c,o);break t}else if(p===N){s.tag=14,s=KA(null,s,r,c,o);break t}}throw s=it(r)||r,Error(a(306,s,""))}}return s;case 0:return By(r,s,s.type,s.pendingProps,o);case 1:return c=s.type,p=ra(c,s.pendingProps),JA(r,s,c,p,o);case 3:t:{if(ae(s,s.stateNode.containerInfo),r===null)throw Error(a(387));c=s.pendingProps;var g=s.memoizedState;p=g.element,cy(r,s),xu(s,c,null,o);var x=s.memoizedState;if(c=x.cache,Fi(s,ke,c),c!==g.cache&&iy(s,[ke],o,!0),vu(),c=x.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:x.cache},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){s=WA(r,s,c,o);break t}else if(c!==p){p=Kn(Error(a(424)),s),hu(p),s=WA(r,s,c,o);break t}else{switch(r=s.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(fe=Zn(r.firstChild),He=s,Ht=!0,Pi=null,Xn=!0,o=$_(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Xs(),c===p){s=ri(r,s,o);break t}Ke(r,s,c,o)}s=s.child}return s;case 26:return ed(r,s),r===null?(o=pR(s.type,null,s.pendingProps,null))?s.memoizedState=o:Ht||(o=s.type,r=s.pendingProps,c=bd(yt.current).createElement(o),c[Ve]=s,c[yn]=r,Ye(c,o,r),Ue(c),s.stateNode=c):s.memoizedState=pR(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return mn(s),r===null&&Ht&&(c=s.stateNode=fR(s.type,s.pendingProps,yt.current),He=s,Xn=!0,p=fe,es(s.type)?(E0=p,fe=Zn(c.firstChild)):fe=p),Ke(r,s,s.pendingProps.children,o),ed(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&Ht&&((p=c=fe)&&(c=P9(c,s.type,s.pendingProps,Xn),c!==null?(s.stateNode=c,He=s,fe=Zn(c.firstChild),Xn=!1,p=!0):p=!1),p||qi(s)),mn(s),p=s.type,g=s.pendingProps,x=r!==null?r.memoizedProps:null,c=g.children,b0(p,g)?c=null:x!==null&&b0(p,x)&&(s.flags|=32),s.memoizedState!==null&&(p=yy(r,s,e9,null,null,o),Pu._currentValue=p),ed(r,s),Ke(r,s,c,o),s.child;case 6:return r===null&&Ht&&((r=o=fe)&&(o=q9(o,s.pendingProps,Xn),o!==null?(s.stateNode=o,He=s,fe=null,r=!0):r=!1),r||qi(s)),null;case 13:return tO(r,s,o);case 4:return ae(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=ea(s,null,c,o):Ke(r,s,c,o),s.child;case 11:return GA(r,s,s.type,s.pendingProps,o);case 7:return Ke(r,s,s.pendingProps,o),s.child;case 8:return Ke(r,s,s.pendingProps.children,o),s.child;case 12:return Ke(r,s,s.pendingProps.children,o),s.child;case 10:return c=s.pendingProps,Fi(s,s.type,c.value),Ke(r,s,c.children,o),s.child;case 9:return p=s.type._context,c=s.pendingProps.children,Zs(s),p=Ge(p),c=c(p),s.flags|=1,Ke(r,s,c,o),s.child;case 14:return KA(r,s,s.type,s.pendingProps,o);case 15:return YA(r,s,s.type,s.pendingProps,o);case 19:return nO(r,s,o);case 31:return u9(r,s,o);case 22:return $A(r,s,o,s.pendingProps);case 24:return Zs(s),c=Ge(ke),r===null?(p=oy(),p===null&&(p=oe,g=sy(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),s.memoizedState={parent:c,cache:p},uy(s),Fi(s,ke,p)):((r.lanes&o)!==0&&(cy(r,s),xu(s,null,null,o),vu()),p=r.memoizedState,g=s.memoizedState,p.parent!==c?(p={parent:c,cache:c},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Fi(s,ke,c)):(c=g.cache,Fi(s,ke,c),c!==p.cache&&iy(s,[ke],o,!0))),Ke(r,s,s.pendingProps.children,o),s.child;case 29:throw s.pendingProps}throw Error(a(156,s.tag))}function ii(r){r.flags|=4}function Gy(r,s,o,c,p){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(kO())r.flags|=8192;else throw ta=Pf,ly}else r.flags&=-16777217}function iO(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!vR(s))if(kO())r.flags|=8192;else throw ta=Pf,ly}function rd(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?BC():536870912,r.lanes|=s,zo|=s)}function _u(r,s){if(!Ht)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function de(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var p=r.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function f9(r,s,o){var c=s.pendingProps;switch(Wg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(s),null;case 1:return de(s),null;case 3:return o=s.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),ti(ke),Gt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(wo(s)?ii(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ey())),de(s),null;case 26:var p=s.type,g=s.memoizedState;return r===null?(ii(s),g!==null?(de(s),iO(s,g)):(de(s),Gy(s,p,null,c,o))):g?g!==r.memoizedState?(ii(s),de(s),iO(s,g)):(de(s),s.flags&=-16777217):(r=r.memoizedProps,r!==c&&ii(s),de(s),Gy(s,p,r,c,o)),null;case 27:if(or(s),o=yt.current,p=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&ii(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return de(s),null}r=ct.current,wo(s)?B_(s):(r=fR(p,c,o),s.stateNode=r,ii(s))}return de(s),null;case 5:if(or(s),p=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&ii(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return de(s),null}if(g=ct.current,wo(s))B_(s);else{var x=bd(yt.current);switch(g){case 1:g=x.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=x.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=x.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?x.createElement("select",{is:c.is}):x.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?x.createElement(p,{is:c.is}):x.createElement(p)}}g[Ve]=s,g[yn]=c;t:for(x=s.child;x!==null;){if(x.tag===5||x.tag===6)g.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===s)break t;for(;x.sibling===null;){if(x.return===null||x.return===s)break t;x=x.return}x.sibling.return=x.return,x=x.sibling}s.stateNode=g;t:switch(Ye(g,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}c&&ii(s)}}return de(s),Gy(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,o),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==c&&ii(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(a(166));if(r=yt.current,wo(s)){if(r=s.stateNode,o=s.memoizedProps,c=null,p=He,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}r[Ve]=s,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||tR(r.nodeValue,o)),r||qi(s,!0)}else r=bd(r).createTextNode(c),r[Ve]=s,s.stateNode=r}return de(s),null;case 31:if(o=s.memoizedState,r===null||r.memoizedState!==null){if(c=wo(s),o!==null){if(r===null){if(!c)throw Error(a(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Ve]=s}else Xs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),r=!1}else o=ey(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return s.flags&256?(kn(s),s):(kn(s),null);if((s.flags&128)!==0)throw Error(a(558))}return de(s),null;case 13:if(c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=wo(s),c!==null&&c.dehydrated!==null){if(r===null){if(!p)throw Error(a(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[Ve]=s}else Xs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),p=!1}else p=ey(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(kn(s),s):(kn(s),null)}return kn(s),(s.flags&128)!==0?(s.lanes=o,s):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=s.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==p&&(c.flags|=2048)),o!==r&&o&&(s.child.flags|=8192),rd(s,s.updateQueue),de(s),null);case 4:return Gt(),r===null&&h0(s.stateNode.containerInfo),de(s),null;case 10:return ti(s.type),de(s),null;case 19:if(E(Ce),c=s.memoizedState,c===null)return de(s),null;if(p=(s.flags&128)!==0,g=c.rendering,g===null)if(p)_u(c,!1);else{if(we!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(g=Hf(r),g!==null){for(s.flags|=128,_u(c,!1),r=g.updateQueue,s.updateQueue=r,rd(s,r),s.subtreeFlags=0,r=o,o=s.child;o!==null;)N_(o,r),o=o.sibling;return W(Ce,Ce.current&1|2),Ht&&Jr(s,c.treeForkCount),s.child}r=r.sibling}c.tail!==null&&sn()>ld&&(s.flags|=128,p=!0,_u(c,!1),s.lanes=4194304)}else{if(!p)if(r=Hf(g),r!==null){if(s.flags|=128,p=!0,r=r.updateQueue,s.updateQueue=r,rd(s,r),_u(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Ht)return de(s),null}else 2*sn()-c.renderingStartTime>ld&&o!==536870912&&(s.flags|=128,p=!0,_u(c,!1),s.lanes=4194304);c.isBackwards?(g.sibling=s.child,s.child=g):(r=c.last,r!==null?r.sibling=g:s.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=sn(),r.sibling=null,o=Ce.current,W(Ce,p?o&1|2:o&1),Ht&&Jr(s,c.treeForkCount),r):(de(s),null);case 22:case 23:return kn(s),py(),c=s.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(o&536870912)!==0&&(s.flags&128)===0&&(de(s),s.subtreeFlags&6&&(s.flags|=8192)):de(s),o=s.updateQueue,o!==null&&rd(s,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048),r!==null&&E(Js),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),ti(ke),de(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function d9(r,s){switch(Wg(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return ti(ke),Gt(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return or(s),null;case 31:if(s.memoizedState!==null){if(kn(s),s.alternate===null)throw Error(a(340));Xs()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(kn(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(a(340));Xs()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return E(Ce),null;case 4:return Gt(),null;case 10:return ti(s.type),null;case 22:case 23:return kn(s),py(),r!==null&&E(Js),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return ti(ke),null;case 25:return null;default:return null}}function sO(r,s){switch(Wg(s),s.tag){case 3:ti(ke),Gt();break;case 26:case 27:case 5:or(s);break;case 4:Gt();break;case 31:s.memoizedState!==null&&kn(s);break;case 13:kn(s);break;case 19:E(Ce);break;case 10:ti(s.type);break;case 22:case 23:kn(s),py(),r!==null&&E(Js);break;case 24:ti(ke)}}function Au(r,s){try{var o=s.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&r)===r){c=void 0;var g=o.create,x=o.inst;c=g(),x.destroy=c}o=o.next}while(o!==p)}}catch(T){ee(s,s.return,T)}}function $i(r,s,o){try{var c=s.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next;c=g;do{if((c.tag&r)===r){var x=c.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,p=s;var k=o,V=T;try{V()}catch(J){ee(p,k,J)}}}c=c.next}while(c!==g)}}catch(J){ee(s,s.return,J)}}function aO(r){var s=r.updateQueue;if(s!==null){var o=r.stateNode;try{Q_(s,o)}catch(c){ee(r,r.return,c)}}}function oO(r,s,o){o.props=ra(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){ee(r,s,c)}}function Ou(r,s){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(p){ee(r,s,p)}}function Nr(r,s){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(p){ee(r,s,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ee(r,s,p)}else o.current=null}function lO(r){var s=r.type,o=r.memoizedProps,c=r.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break t;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(p){ee(r,r.return,p)}}function Ky(r,s,o){try{var c=r.stateNode;L9(c,r.type,o,s),c[yn]=s}catch(p){ee(r,r.return,p)}}function uO(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&es(r.type)||r.tag===4}function Yy(r){t:for(;;){for(;r.sibling===null;){if(r.return===null||uO(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.tag===27&&es(r.type)||r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function $y(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,s):(s=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.appendChild(r),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Xr));else if(c!==4&&(c===27&&es(r.type)&&(o=r.stateNode,s=null),r=r.child,r!==null))for($y(r,s,o),r=r.sibling;r!==null;)$y(r,s,o),r=r.sibling}function id(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(c===27&&es(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(id(r,s,o),r=r.sibling;r!==null;)id(r,s,o),r=r.sibling}function cO(r){var s=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);Ye(s,c,o),s[Ve]=r,s[yn]=o}catch(g){ee(r,r.return,g)}}var si=!1,Me=!1,Xy=!1,fO=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function h9(r,s){if(r=r.containerInfo,g0=Cd,r=E_(r),Fg(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else t:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break t}var x=0,T=-1,k=-1,V=0,J=0,rt=r,$=null;e:for(;;){for(var Q;rt!==o||p!==0&&rt.nodeType!==3||(T=x+p),rt!==g||c!==0&&rt.nodeType!==3||(k=x+c),rt.nodeType===3&&(x+=rt.nodeValue.length),(Q=rt.firstChild)!==null;)$=rt,rt=Q;for(;;){if(rt===r)break e;if($===o&&++V===p&&(T=x),$===g&&++J===c&&(k=x),(Q=rt.nextSibling)!==null)break;rt=$,$=rt.parentNode}rt=Q}o=T===-1||k===-1?null:{start:T,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(y0={focusedElem:r,selectionRange:o},Cd=!1,Pe=s;Pe!==null;)if(s=Pe,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Pe=r;else for(;Pe!==null;){switch(s=Pe,g=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)p=r[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,o=s,p=g.memoizedProps,g=g.memoizedState,c=o.stateNode;try{var ht=ra(o.type,p);r=c.getSnapshotBeforeUpdate(ht,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(wt){ee(o,o.return,wt)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,o=r.nodeType,o===9)x0(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":x0(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=s.sibling,r!==null){r.return=s.return,Pe=r;break}Pe=s.return}}function dO(r,s,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:oi(r,o),c&4&&Au(5,o);break;case 1:if(oi(r,o),c&4)if(r=o.stateNode,s===null)try{r.componentDidMount()}catch(x){ee(o,o.return,x)}else{var p=ra(o.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(p,s,r.__reactInternalSnapshotBeforeUpdate)}catch(x){ee(o,o.return,x)}}c&64&&aO(o),c&512&&Ou(o,o.return);break;case 3:if(oi(r,o),c&64&&(r=o.updateQueue,r!==null)){if(s=null,o.child!==null)switch(o.child.tag){case 27:case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}try{Q_(r,s)}catch(x){ee(o,o.return,x)}}break;case 27:s===null&&c&4&&cO(o);case 26:case 5:oi(r,o),s===null&&c&4&&lO(o),c&512&&Ou(o,o.return);break;case 12:oi(r,o);break;case 31:oi(r,o),c&4&&mO(r,o);break;case 13:oi(r,o),c&4&&gO(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=w9.bind(null,o),F9(r,o))));break;case 22:if(c=o.memoizedState!==null||si,!c){s=s!==null&&s.memoizedState!==null||Me,p=si;var g=Me;si=c,(Me=s)&&!g?li(r,o,(o.subtreeFlags&8772)!==0):oi(r,o),si=p,Me=g}break;case 30:break;default:oi(r,o)}}function hO(r){var s=r.alternate;s!==null&&(r.alternate=null,hO(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&Cg(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var pe=null,vn=!1;function ai(r,s,o){for(o=o.child;o!==null;)pO(r,s,o),o=o.sibling}function pO(r,s,o){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(ur,o)}catch{}switch(o.tag){case 26:Me||Nr(o,s),ai(r,s,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Me||Nr(o,s);var c=pe,p=vn;es(o.type)&&(pe=o.stateNode,vn=!1),ai(r,s,o),Bu(o.stateNode),pe=c,vn=p;break;case 5:Me||Nr(o,s);case 6:if(c=pe,p=vn,pe=null,ai(r,s,o),pe=c,vn=p,pe!==null)if(vn)try{(pe.nodeType===9?pe.body:pe.nodeName==="HTML"?pe.ownerDocument.body:pe).removeChild(o.stateNode)}catch(g){ee(o,s,g)}else try{pe.removeChild(o.stateNode)}catch(g){ee(o,s,g)}break;case 18:pe!==null&&(vn?(r=pe,aR(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Vo(r)):aR(pe,o.stateNode));break;case 4:c=pe,p=vn,pe=o.stateNode.containerInfo,vn=!0,ai(r,s,o),pe=c,vn=p;break;case 0:case 11:case 14:case 15:$i(2,o,s),Me||$i(4,o,s),ai(r,s,o);break;case 1:Me||(Nr(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"&&oO(o,s,c)),ai(r,s,o);break;case 21:ai(r,s,o);break;case 22:Me=(c=Me)||o.memoizedState!==null,ai(r,s,o),Me=c;break;default:ai(r,s,o)}}function mO(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Vo(r)}catch(o){ee(s,s.return,o)}}}function gO(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Vo(r)}catch(o){ee(s,s.return,o)}}function p9(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new fO),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new fO),s;default:throw Error(a(435,r.tag))}}function sd(r,s){var o=p9(r);s.forEach(function(c){if(!o.has(c)){o.add(c);var p=E9.bind(null,r,c);c.then(p,p)}})}function xn(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var p=o[c],g=r,x=s,T=x;t:for(;T!==null;){switch(T.tag){case 27:if(es(T.type)){pe=T.stateNode,vn=!1;break t}break;case 5:pe=T.stateNode,vn=!1;break t;case 3:case 4:pe=T.stateNode.containerInfo,vn=!0;break t}T=T.return}if(pe===null)throw Error(a(160));pO(g,x,p),pe=null,vn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)yO(s,r),s=s.sibling}var dr=null;function yO(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:xn(s,r),Sn(r),c&4&&($i(3,r,r.return),Au(3,r),$i(5,r,r.return));break;case 1:xn(s,r),Sn(r),c&512&&(Me||o===null||Nr(o,o.return)),c&64&&si&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var p=dr;if(xn(s,r),Sn(r),c&512&&(Me||o===null||Nr(o,o.return)),c&4){var g=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){t:{c=r.type,o=r.memoizedProps,p=p.ownerDocument||p;e:switch(c){case"title":g=p.getElementsByTagName("title")[0],(!g||g[eu]||g[Ve]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"))),Ye(g,c,o),g[Ve]=r,Ue(g),c=g;break t;case"link":var x=yR("link","href",p).get(c+(o.href||""));if(x){for(var T=0;T<x.length;T++)if(g=x[T],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){x.splice(T,1);break e}}g=p.createElement(c),Ye(g,c,o),p.head.appendChild(g);break;case"meta":if(x=yR("meta","content",p).get(c+(o.content||""))){for(T=0;T<x.length;T++)if(g=x[T],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){x.splice(T,1);break e}}g=p.createElement(c),Ye(g,c,o),p.head.appendChild(g);break;default:throw Error(a(468,c))}g[Ve]=r,Ue(g),c=g}r.stateNode=c}else bR(p,r.type,r.stateNode);else r.stateNode=gR(p,c,r.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?bR(p,r.type,r.stateNode):gR(p,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Ky(r,r.memoizedProps,o.memoizedProps)}break;case 27:xn(s,r),Sn(r),c&512&&(Me||o===null||Nr(o,o.return)),o!==null&&c&4&&Ky(r,r.memoizedProps,o.memoizedProps);break;case 5:if(xn(s,r),Sn(r),c&512&&(Me||o===null||Nr(o,o.return)),r.flags&32){p=r.stateNode;try{fo(p,"")}catch(ht){ee(r,r.return,ht)}}c&4&&r.stateNode!=null&&(p=r.memoizedProps,Ky(r,p,o!==null?o.memoizedProps:p)),c&1024&&(Xy=!0);break;case 6:if(xn(s,r),Sn(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(ht){ee(r,r.return,ht)}}break;case 3:if(Sd=null,p=dr,dr=vd(s.containerInfo),xn(s,r),dr=p,Sn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Vo(s.containerInfo)}catch(ht){ee(r,r.return,ht)}Xy&&(Xy=!1,bO(r));break;case 4:c=dr,dr=vd(r.stateNode.containerInfo),xn(s,r),Sn(r),dr=c;break;case 12:xn(s,r),Sn(r);break;case 31:xn(s,r),Sn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,sd(r,c)));break;case 13:xn(s,r),Sn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(od=sn()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,sd(r,c)));break;case 22:p=r.memoizedState!==null;var k=o!==null&&o.memoizedState!==null,V=si,J=Me;if(si=V||p,Me=J||k,xn(s,r),Me=J,si=V,Sn(r),c&8192)t:for(s=r.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(o===null||k||si||Me||ia(r)),o=null,s=r;;){if(s.tag===5||s.tag===26){if(o===null){k=o=s;try{if(g=k.stateNode,p)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=k.stateNode;var rt=k.memoizedProps.style,$=rt!=null&&rt.hasOwnProperty("display")?rt.display:null;T.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(ht){ee(k,k.return,ht)}}}else if(s.tag===6){if(o===null){k=s;try{k.stateNode.nodeValue=p?"":k.memoizedProps}catch(ht){ee(k,k.return,ht)}}}else if(s.tag===18){if(o===null){k=s;try{var Q=k.stateNode;p?oR(Q,!0):oR(k.stateNode,!1)}catch(ht){ee(k,k.return,ht)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break t;for(;s.sibling===null;){if(s.return===null||s.return===r)break t;o===s&&(o=null),s=s.return}o===s&&(o=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,sd(r,o))));break;case 19:xn(s,r),Sn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,sd(r,c)));break;case 30:break;case 21:break;default:xn(s,r),Sn(r)}}function Sn(r){var s=r.flags;if(s&2){try{for(var o,c=r.return;c!==null;){if(uO(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var p=o.stateNode,g=Yy(r);id(r,g,p);break;case 5:var x=o.stateNode;o.flags&32&&(fo(x,""),o.flags&=-33);var T=Yy(r);id(r,T,x);break;case 3:case 4:var k=o.stateNode.containerInfo,V=Yy(r);$y(r,V,k);break;default:throw Error(a(161))}}catch(J){ee(r,r.return,J)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function bO(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;bO(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function oi(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)dO(r,s.alternate,s),s=s.sibling}function ia(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:$i(4,s,s.return),ia(s);break;case 1:Nr(s,s.return);var o=s.stateNode;typeof o.componentWillUnmount=="function"&&oO(s,s.return,o),ia(s);break;case 27:Bu(s.stateNode);case 26:case 5:Nr(s,s.return),ia(s);break;case 22:s.memoizedState===null&&ia(s);break;case 30:ia(s);break;default:ia(s)}r=r.sibling}}function li(r,s,o){for(o=o&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,p=r,g=s,x=g.flags;switch(g.tag){case 0:case 11:case 15:li(p,g,o),Au(4,g);break;case 1:if(li(p,g,o),c=g,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(V){ee(c,c.return,V)}if(c=g,p=c.updateQueue,p!==null){var T=c.stateNode;try{var k=p.shared.hiddenCallbacks;if(k!==null)for(p.shared.hiddenCallbacks=null,p=0;p<k.length;p++)X_(k[p],T)}catch(V){ee(c,c.return,V)}}o&&x&64&&aO(g),Ou(g,g.return);break;case 27:cO(g);case 26:case 5:li(p,g,o),o&&c===null&&x&4&&lO(g),Ou(g,g.return);break;case 12:li(p,g,o);break;case 31:li(p,g,o),o&&x&4&&mO(p,g);break;case 13:li(p,g,o),o&&x&4&&gO(p,g);break;case 22:g.memoizedState===null&&li(p,g,o),Ou(g,g.return);break;case 30:break;default:li(p,g,o)}s=s.sibling}}function Qy(r,s){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&pu(o))}function Zy(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&pu(r))}function hr(r,s,o,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)vO(r,s,o,c),s=s.sibling}function vO(r,s,o,c){var p=s.flags;switch(s.tag){case 0:case 11:case 15:hr(r,s,o,c),p&2048&&Au(9,s);break;case 1:hr(r,s,o,c);break;case 3:hr(r,s,o,c),p&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&pu(r)));break;case 12:if(p&2048){hr(r,s,o,c),r=s.stateNode;try{var g=s.memoizedProps,x=g.id,T=g.onPostCommit;typeof T=="function"&&T(x,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){ee(s,s.return,k)}}else hr(r,s,o,c);break;case 31:hr(r,s,o,c);break;case 13:hr(r,s,o,c);break;case 23:break;case 22:g=s.stateNode,x=s.alternate,s.memoizedState!==null?g._visibility&2?hr(r,s,o,c):Ru(r,s):g._visibility&2?hr(r,s,o,c):(g._visibility|=2,No(r,s,o,c,(s.subtreeFlags&10256)!==0||!1)),p&2048&&Qy(x,s);break;case 24:hr(r,s,o,c),p&2048&&Zy(s.alternate,s);break;default:hr(r,s,o,c)}}function No(r,s,o,c,p){for(p=p&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var g=r,x=s,T=o,k=c,V=x.flags;switch(x.tag){case 0:case 11:case 15:No(g,x,T,k,p),Au(8,x);break;case 23:break;case 22:var J=x.stateNode;x.memoizedState!==null?J._visibility&2?No(g,x,T,k,p):Ru(g,x):(J._visibility|=2,No(g,x,T,k,p)),p&&V&2048&&Qy(x.alternate,x);break;case 24:No(g,x,T,k,p),p&&V&2048&&Zy(x.alternate,x);break;default:No(g,x,T,k,p)}s=s.sibling}}function Ru(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var o=r,c=s,p=c.flags;switch(c.tag){case 22:Ru(o,c),p&2048&&Qy(c.alternate,c);break;case 24:Ru(o,c),p&2048&&Zy(c.alternate,c);break;default:Ru(o,c)}s=s.sibling}}var ku=8192;function Mo(r,s,o){if(r.subtreeFlags&ku)for(r=r.child;r!==null;)xO(r,s,o),r=r.sibling}function xO(r,s,o){switch(r.tag){case 26:Mo(r,s,o),r.flags&ku&&r.memoizedState!==null&&t7(o,dr,r.memoizedState,r.memoizedProps);break;case 5:Mo(r,s,o);break;case 3:case 4:var c=dr;dr=vd(r.stateNode.containerInfo),Mo(r,s,o),dr=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=ku,ku=16777216,Mo(r,s,o),ku=c):Mo(r,s,o));break;default:Mo(r,s,o)}}function SO(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function Du(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Pe=c,EO(c,r)}SO(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)wO(r),r=r.sibling}function wO(r){switch(r.tag){case 0:case 11:case 15:Du(r),r.flags&2048&&$i(9,r,r.return);break;case 3:Du(r);break;case 12:Du(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,ad(r)):Du(r);break;default:Du(r)}}function ad(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Pe=c,EO(c,r)}SO(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:$i(8,s,s.return),ad(s);break;case 22:o=s.stateNode,o._visibility&2&&(o._visibility&=-3,ad(s));break;default:ad(s)}r=r.sibling}}function EO(r,s){for(;Pe!==null;){var o=Pe;switch(o.tag){case 0:case 11:case 15:$i(8,o,s);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:pu(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Pe=c;else t:for(o=r;Pe!==null;){c=Pe;var p=c.sibling,g=c.return;if(hO(c),c===o){Pe=null;break t}if(p!==null){p.return=g,Pe=p;break t}Pe=g}}}var m9={getCacheForType:function(r){var s=Ge(ke),o=s.data.get(r);return o===void 0&&(o=r(),s.data.set(r,o)),o},cacheSignal:function(){return Ge(ke).controller.signal}},g9=typeof WeakMap=="function"?WeakMap:Map,Qt=0,oe=null,Ut=null,qt=0,te=0,Dn=null,Xi=!1,Lo=!1,Jy=!1,ui=0,we=0,Qi=0,sa=0,Wy=0,Nn=0,zo=0,Nu=null,wn=null,t0=!1,od=0,TO=0,ld=1/0,ud=null,Zi=null,Be=0,Ji=null,jo=null,ci=0,e0=0,n0=null,CO=null,Mu=0,r0=null;function Mn(){return(Qt&2)!==0&&qt!==0?qt&-qt:G.T!==null?u0():qC()}function _O(){if(Nn===0)if((qt&536870912)===0||Ht){var r=yf;yf<<=1,(yf&3932160)===0&&(yf=262144),Nn=r}else Nn=536870912;return r=Rn.current,r!==null&&(r.flags|=32),Nn}function En(r,s,o){(r===oe&&(te===2||te===9)||r.cancelPendingCommit!==null)&&(Bo(r,0),Wi(r,qt,Nn,!1)),tu(r,o),((Qt&2)===0||r!==oe)&&(r===oe&&((Qt&2)===0&&(sa|=o),we===4&&Wi(r,qt,Nn,!1)),Mr(r))}function AO(r,s,o){if((Qt&6)!==0)throw Error(a(327));var c=!o&&(s&127)===0&&(s&r.expiredLanes)===0||Wl(r,s),p=c?v9(r,s):s0(r,s,!0),g=c;do{if(p===0){Lo&&!c&&Wi(r,s,0,!1);break}else{if(o=r.current.alternate,g&&!y9(o)){p=s0(r,s,!1),g=!1;continue}if(p===2){if(g=s,r.errorRecoveryDisabledLanes&g)var x=0;else x=r.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){s=x;t:{var T=r;p=Nu;var k=T.current.memoizedState.isDehydrated;if(k&&(Bo(T,x).flags|=256),x=s0(T,x,!1),x!==2){if(Jy&&!k){T.errorRecoveryDisabledLanes|=g,sa|=g,p=4;break t}g=wn,wn=p,g!==null&&(wn===null?wn=g:wn.push.apply(wn,g))}p=x}if(g=!1,p!==2)continue}}if(p===1){Bo(r,0),Wi(r,s,0,!0);break}t:{switch(c=r,g=p,g){case 0:case 1:throw Error(a(345));case 4:if((s&4194048)!==s)break;case 6:Wi(c,s,Nn,!Xi);break t;case 2:wn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(p=od+300-sn(),10<p)){if(Wi(c,s,Nn,!Xi),vf(c,0,!0)!==0)break t;ci=s,c.timeoutHandle=iR(OO.bind(null,c,o,wn,ud,t0,s,Nn,sa,zo,Xi,g,"Throttled",-0,0),p);break t}OO(c,o,wn,ud,t0,s,Nn,sa,zo,Xi,g,null,-0,0)}}break}while(!0);Mr(r)}function OO(r,s,o,c,p,g,x,T,k,V,J,rt,$,Q){if(r.timeoutHandle=-1,rt=s.subtreeFlags,rt&8192||(rt&16785408)===16785408){rt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xr},xO(s,g,rt);var ht=(g&62914560)===g?od-sn():(g&4194048)===g?TO-sn():0;if(ht=e7(rt,ht),ht!==null){ci=g,r.cancelPendingCommit=ht(jO.bind(null,r,s,g,o,c,p,x,T,k,J,rt,null,$,Q)),Wi(r,g,x,!V);return}}jO(r,s,g,o,c,p,x,T,k)}function y9(r){for(var s=r;;){var o=s.tag;if((o===0||o===11||o===15)&&s.flags&16384&&(o=s.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var p=o[c],g=p.getSnapshot;p=p.value;try{if(!An(g(),p))return!1}catch{return!1}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Wi(r,s,o,c){s&=~Wy,s&=~sa,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var p=s;0<p;){var g=31-Re(p),x=1<<g;c[g]=-1,p&=~x}o!==0&&IC(r,o,s)}function cd(){return(Qt&6)===0?(Lu(0),!1):!0}function i0(){if(Ut!==null){if(te===0)var r=Ut.return;else r=Ut,Wr=Qs=null,xy(r),Ao=null,gu=0,r=Ut;for(;r!==null;)sO(r.alternate,r),r=r.return;Ut=null}}function Bo(r,s){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,B9(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),ci=0,i0(),oe=r,Ut=o=Zr(r.current,null),qt=s,te=0,Dn=null,Xi=!1,Lo=Wl(r,s),Jy=!1,zo=Nn=Wy=sa=Qi=we=0,wn=Nu=null,t0=!1,(s&8)!==0&&(s|=s&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=s;0<c;){var p=31-Re(c),g=1<<p;s|=r[p],c&=~g}return ui=s,Df(),o}function RO(r,s){Dt=null,G.H=Tu,s===_o||s===Uf?(s=G_(),te=3):s===ly?(s=G_(),te=4):te=s===jy?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Dn=s,Ut===null&&(we=1,Wf(r,Kn(s,r.current)))}function kO(){var r=Rn.current;return r===null?!0:(qt&4194048)===qt?Qn===null:(qt&62914560)===qt||(qt&536870912)!==0?r===Qn:!1}function DO(){var r=G.H;return G.H=Tu,r===null?Tu:r}function NO(){var r=G.A;return G.A=m9,r}function fd(){we=4,Xi||(qt&4194048)!==qt&&Rn.current!==null||(Lo=!0),(Qi&134217727)===0&&(sa&134217727)===0||oe===null||Wi(oe,qt,Nn,!1)}function s0(r,s,o){var c=Qt;Qt|=2;var p=DO(),g=NO();(oe!==r||qt!==s)&&(ud=null,Bo(r,s)),s=!1;var x=we;t:do try{if(te!==0&&Ut!==null){var T=Ut,k=Dn;switch(te){case 8:i0(),x=6;break t;case 3:case 2:case 9:case 6:Rn.current===null&&(s=!0);var V=te;if(te=0,Dn=null,Io(r,T,k,V),o&&Lo){x=0;break t}break;default:V=te,te=0,Dn=null,Io(r,T,k,V)}}b9(),x=we;break}catch(J){RO(r,J)}while(!0);return s&&r.shellSuspendCounter++,Wr=Qs=null,Qt=c,G.H=p,G.A=g,Ut===null&&(oe=null,qt=0,Df()),x}function b9(){for(;Ut!==null;)MO(Ut)}function v9(r,s){var o=Qt;Qt|=2;var c=DO(),p=NO();oe!==r||qt!==s?(ud=null,ld=sn()+500,Bo(r,s)):Lo=Wl(r,s);t:do try{if(te!==0&&Ut!==null){s=Ut;var g=Dn;e:switch(te){case 1:te=0,Dn=null,Io(r,s,g,1);break;case 2:case 9:if(V_(g)){te=0,Dn=null,LO(s);break}s=function(){te!==2&&te!==9||oe!==r||(te=7),Mr(r)},g.then(s,s);break t;case 3:te=7;break t;case 4:te=5;break t;case 7:V_(g)?(te=0,Dn=null,LO(s)):(te=0,Dn=null,Io(r,s,g,7));break;case 5:var x=null;switch(Ut.tag){case 26:x=Ut.memoizedState;case 5:case 27:var T=Ut;if(x?vR(x):T.stateNode.complete){te=0,Dn=null;var k=T.sibling;if(k!==null)Ut=k;else{var V=T.return;V!==null?(Ut=V,dd(V)):Ut=null}break e}}te=0,Dn=null,Io(r,s,g,5);break;case 6:te=0,Dn=null,Io(r,s,g,6);break;case 8:i0(),we=6;break t;default:throw Error(a(462))}}x9();break}catch(J){RO(r,J)}while(!0);return Wr=Qs=null,G.H=c,G.A=p,Qt=o,Ut!==null?0:(oe=null,qt=0,Df(),we)}function x9(){for(;Ut!==null&&!vg();)MO(Ut)}function MO(r){var s=rO(r.alternate,r,ui);r.memoizedProps=r.pendingProps,s===null?dd(r):Ut=s}function LO(r){var s=r,o=s.alternate;switch(s.tag){case 15:case 0:s=ZA(o,s,s.pendingProps,s.type,void 0,qt);break;case 11:s=ZA(o,s,s.pendingProps,s.type.render,s.ref,qt);break;case 5:xy(s);default:sO(o,s),s=Ut=N_(s,ui),s=rO(o,s,ui)}r.memoizedProps=r.pendingProps,s===null?dd(r):Ut=s}function Io(r,s,o,c){Wr=Qs=null,xy(s),Ao=null,gu=0;var p=s.return;try{if(l9(r,p,s,o,qt)){we=1,Wf(r,Kn(o,r.current)),Ut=null;return}}catch(g){if(p!==null)throw Ut=p,g;we=1,Wf(r,Kn(o,r.current)),Ut=null;return}s.flags&32768?(Ht||c===1?r=!0:Lo||(qt&536870912)!==0?r=!1:(Xi=r=!0,(c===2||c===9||c===3||c===6)&&(c=Rn.current,c!==null&&c.tag===13&&(c.flags|=16384))),zO(s,r)):dd(s)}function dd(r){var s=r;do{if((s.flags&32768)!==0){zO(s,Xi);return}r=s.return;var o=f9(s.alternate,s,ui);if(o!==null){Ut=o;return}if(s=s.sibling,s!==null){Ut=s;return}Ut=s=r}while(s!==null);we===0&&(we=5)}function zO(r,s){do{var o=d9(r.alternate,r);if(o!==null){o.flags&=32767,Ut=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!s&&(r=r.sibling,r!==null)){Ut=r;return}Ut=r=o}while(r!==null);we=6,Ut=null}function jO(r,s,o,c,p,g,x,T,k){r.cancelPendingCommit=null;do hd();while(Be!==0);if((Qt&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(g=s.lanes|s.childLanes,g|=Yg,WH(r,o,g,x,T,k),r===oe&&(Ut=oe=null,qt=0),jo=s,Ji=r,ci=o,e0=g,n0=p,CO=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,T9(zt,function(){return qO(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=G.T,G.T=null,p=P.p,P.p=2,x=Qt,Qt|=4;try{h9(r,s,o)}finally{Qt=x,P.p=p,G.T=c}}Be=1,BO(),IO(),UO()}}function BO(){if(Be===1){Be=0;var r=Ji,s=jo,o=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var c=P.p;P.p=2;var p=Qt;Qt|=4;try{yO(s,r);var g=y0,x=E_(r.containerInfo),T=g.focusedElem,k=g.selectionRange;if(x!==T&&T&&T.ownerDocument&&w_(T.ownerDocument.documentElement,T)){if(k!==null&&Fg(T)){var V=k.start,J=k.end;if(J===void 0&&(J=V),"selectionStart"in T)T.selectionStart=V,T.selectionEnd=Math.min(J,T.value.length);else{var rt=T.ownerDocument||document,$=rt&&rt.defaultView||window;if($.getSelection){var Q=$.getSelection(),ht=T.textContent.length,wt=Math.min(k.start,ht),se=k.end===void 0?wt:Math.min(k.end,ht);!Q.extend&&wt>se&&(x=se,se=wt,wt=x);var U=S_(T,wt),z=S_(T,se);if(U&&z&&(Q.rangeCount!==1||Q.anchorNode!==U.node||Q.anchorOffset!==U.offset||Q.focusNode!==z.node||Q.focusOffset!==z.offset)){var F=rt.createRange();F.setStart(U.node,U.offset),Q.removeAllRanges(),wt>se?(Q.addRange(F),Q.extend(z.node,z.offset)):(F.setEnd(z.node,z.offset),Q.addRange(F))}}}}for(rt=[],Q=T;Q=Q.parentNode;)Q.nodeType===1&&rt.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<rt.length;T++){var et=rt[T];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}Cd=!!g0,y0=g0=null}finally{Qt=p,P.p=c,G.T=o}}r.current=s,Be=2}}function IO(){if(Be===2){Be=0;var r=Ji,s=jo,o=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var c=P.p;P.p=2;var p=Qt;Qt|=4;try{dO(r,s.alternate,s)}finally{Qt=p,P.p=c,G.T=o}}Be=3}}function UO(){if(Be===4||Be===3){Be=0,xg();var r=Ji,s=jo,o=ci,c=CO;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Be=5:(Be=0,jo=Ji=null,PO(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(Zi=null),Eg(o),s=s.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(ur,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=G.T,p=P.p,P.p=2,G.T=null;try{for(var g=r.onRecoverableError,x=0;x<c.length;x++){var T=c[x];g(T.value,{componentStack:T.stack})}}finally{G.T=s,P.p=p}}(ci&3)!==0&&hd(),Mr(r),p=r.pendingLanes,(o&261930)!==0&&(p&42)!==0?r===r0?Mu++:(Mu=0,r0=r):Mu=0,Lu(0)}}function PO(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,pu(s)))}function hd(){return BO(),IO(),UO(),qO()}function qO(){if(Be!==5)return!1;var r=Ji,s=e0;e0=0;var o=Eg(ci),c=G.T,p=P.p;try{P.p=32>o?32:o,G.T=null,o=n0,n0=null;var g=Ji,x=ci;if(Be=0,jo=Ji=null,ci=0,(Qt&6)!==0)throw Error(a(331));var T=Qt;if(Qt|=4,wO(g.current),vO(g,g.current,x,o),Qt=T,Lu(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(ur,g)}catch{}return!0}finally{P.p=p,G.T=c,PO(r,s)}}function FO(r,s,o){s=Kn(o,s),s=zy(r.stateNode,s,2),r=Gi(r,s,2),r!==null&&(tu(r,2),Mr(r))}function ee(r,s,o){if(r.tag===3)FO(r,r,o);else for(;s!==null;){if(s.tag===3){FO(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Zi===null||!Zi.has(c))){r=Kn(o,r),o=VA(2),c=Gi(s,o,2),c!==null&&(HA(o,c,s,r),tu(c,2),Mr(c));break}}s=s.return}}function a0(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new g9;var p=new Set;c.set(s,p)}else p=c.get(s),p===void 0&&(p=new Set,c.set(s,p));p.has(o)||(Jy=!0,p.add(o),r=S9.bind(null,r,s,o),s.then(r,r))}function S9(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,oe===r&&(qt&o)===o&&(we===4||we===3&&(qt&62914560)===qt&&300>sn()-od?(Qt&2)===0&&Bo(r,0):Wy|=o,zo===qt&&(zo=0)),Mr(r)}function VO(r,s){s===0&&(s=BC()),r=Ys(r,s),r!==null&&(tu(r,s),Mr(r))}function w9(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),VO(r,o)}function E9(r,s){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,p=r.memoizedState;p!==null&&(o=p.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(s),VO(r,o)}function T9(r,s){return Zl(r,s)}var pd=null,Uo=null,o0=!1,md=!1,l0=!1,ts=0;function Mr(r){r!==Uo&&r.next===null&&(Uo===null?pd=Uo=r:Uo=Uo.next=r),md=!0,o0||(o0=!0,_9())}function Lu(r,s){if(!l0&&md){l0=!0;do for(var o=!1,c=pd;c!==null;){if(r!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var x=c.suspendedLanes,T=c.pingedLanes;g=(1<<31-Re(42|r)+1)-1,g&=p&~(x&~T),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,YO(c,g))}else g=qt,g=vf(c,c===oe?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||Wl(c,g)||(o=!0,YO(c,g));c=c.next}while(o);l0=!1}}function C9(){HO()}function HO(){md=o0=!1;var r=0;ts!==0&&j9()&&(r=ts);for(var s=sn(),o=null,c=pd;c!==null;){var p=c.next,g=GO(c,s);g===0?(c.next=null,o===null?pd=p:o.next=p,p===null&&(Uo=o)):(o=c,(r!==0||(g&3)!==0)&&(md=!0)),c=p}Be!==0&&Be!==5||Lu(r),ts!==0&&(ts=0)}function GO(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var x=31-Re(g),T=1<<x,k=p[x];k===-1?((T&o)===0||(T&c)!==0)&&(p[x]=JH(T,s)):k<=s&&(r.expiredLanes|=T),g&=~T}if(s=oe,o=qt,o=vf(r,r===s?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===s&&(te===2||te===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Jl(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||Wl(r,o)){if(s=o&-o,s===r.callbackPriority)return s;switch(c!==null&&Jl(c),Eg(o)){case 2:case 8:o=At;break;case 32:o=zt;break;case 268435456:o=gn;break;default:o=zt}return c=KO.bind(null,r),o=Zl(o,c),r.callbackPriority=s,r.callbackNode=o,s}return c!==null&&c!==null&&Jl(c),r.callbackPriority=2,r.callbackNode=null,2}function KO(r,s){if(Be!==0&&Be!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(hd()&&r.callbackNode!==o)return null;var c=qt;return c=vf(r,r===oe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(AO(r,c,s),GO(r,sn()),r.callbackNode!=null&&r.callbackNode===o?KO.bind(null,r):null)}function YO(r,s){if(hd())return null;AO(r,s,!0)}function _9(){I9(function(){(Qt&6)!==0?Zl(ut,C9):HO()})}function u0(){if(ts===0){var r=To;r===0&&(r=gf,gf<<=1,(gf&261888)===0&&(gf=256)),ts=r}return ts}function $O(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Ef(""+r)}function XO(r,s){var o=s.ownerDocument.createElement("input");return o.name=s.name,o.value=s.value,r.id&&o.setAttribute("form",r.id),s.parentNode.insertBefore(o,s),r=new FormData(r),o.parentNode.removeChild(o),r}function A9(r,s,o,c,p){if(s==="submit"&&o&&o.stateNode===p){var g=$O((p[yn]||null).action),x=c.submitter;x&&(s=(s=x[yn]||null)?$O(s.formAction):x.getAttribute("formAction"),s!==null&&(g=s,x=null));var T=new Af("action","action",null,c,p);r.push({event:T,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ts!==0){var k=x?XO(p,x):new FormData(p);Ry(o,{pending:!0,data:k,method:p.method,action:g},null,k)}}else typeof g=="function"&&(T.preventDefault(),k=x?XO(p,x):new FormData(p),Ry(o,{pending:!0,data:k,method:p.method,action:g},g,k))},currentTarget:p}]})}}for(var c0=0;c0<Kg.length;c0++){var f0=Kg[c0],O9=f0.toLowerCase(),R9=f0[0].toUpperCase()+f0.slice(1);fr(O9,"on"+R9)}fr(__,"onAnimationEnd"),fr(A_,"onAnimationIteration"),fr(O_,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(G8,"onTransitionRun"),fr(K8,"onTransitionStart"),fr(Y8,"onTransitionCancel"),fr(R_,"onTransitionEnd"),uo("onMouseEnter",["mouseout","mouseover"]),uo("onMouseLeave",["mouseout","mouseover"]),uo("onPointerEnter",["pointerout","pointerover"]),uo("onPointerLeave",["pointerout","pointerover"]),Vs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zu="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(" "),k9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zu));function QO(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],p=c.event;c=c.listeners;t:{var g=void 0;if(s)for(var x=c.length-1;0<=x;x--){var T=c[x],k=T.instance,V=T.currentTarget;if(T=T.listener,k!==g&&p.isPropagationStopped())break t;g=T,p.currentTarget=V;try{g(p)}catch(J){kf(J)}p.currentTarget=null,g=k}else for(x=0;x<c.length;x++){if(T=c[x],k=T.instance,V=T.currentTarget,T=T.listener,k!==g&&p.isPropagationStopped())break t;g=T,p.currentTarget=V;try{g(p)}catch(J){kf(J)}p.currentTarget=null,g=k}}}}function Pt(r,s){var o=s[Tg];o===void 0&&(o=s[Tg]=new Set);var c=r+"__bubble";o.has(c)||(ZO(s,r,2,!1),o.add(c))}function d0(r,s,o){var c=0;s&&(c|=4),ZO(o,r,c,s)}var gd="_reactListening"+Math.random().toString(36).slice(2);function h0(r){if(!r[gd]){r[gd]=!0,HC.forEach(function(o){o!=="selectionchange"&&(k9.has(o)||d0(o,!1,r),d0(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[gd]||(s[gd]=!0,d0("selectionchange",!1,s))}}function ZO(r,s,o,c){switch(_R(s)){case 2:var p=i7;break;case 8:p=s7;break;default:p=O0}o=p.bind(null,s,o,r),p=void 0,!Mg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),c?p!==void 0?r.addEventListener(s,o,{capture:!0,passive:p}):r.addEventListener(s,o,!0):p!==void 0?r.addEventListener(s,o,{passive:p}):r.addEventListener(s,o,!1)}function p0(r,s,o,c,p){var g=c;if((s&1)===0&&(s&2)===0&&c!==null)t:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var T=c.stateNode.containerInfo;if(T===p)break;if(x===4)for(x=c.return;x!==null;){var k=x.tag;if((k===3||k===4)&&x.stateNode.containerInfo===p)return;x=x.return}for(;T!==null;){if(x=ao(T),x===null)return;if(k=x.tag,k===5||k===6||k===26||k===27){c=g=x;continue t}T=T.parentNode}}c=c.return}n_(function(){var V=g,J=Dg(o),rt=[];t:{var $=k_.get(r);if($!==void 0){var Q=Af,ht=r;switch(r){case"keypress":if(Cf(o)===0)break t;case"keydown":case"keyup":Q=E8;break;case"focusin":ht="focus",Q=Bg;break;case"focusout":ht="blur",Q=Bg;break;case"beforeblur":case"afterblur":Q=Bg;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=s_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=f8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=_8;break;case __:case A_:case O_:Q=p8;break;case R_:Q=O8;break;case"scroll":case"scrollend":Q=u8;break;case"wheel":Q=k8;break;case"copy":case"cut":case"paste":Q=g8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=o_;break;case"toggle":case"beforetoggle":Q=N8}var wt=(s&4)!==0,se=!wt&&(r==="scroll"||r==="scrollend"),U=wt?$!==null?$+"Capture":null:$;wt=[];for(var z=V,F;z!==null;){var et=z;if(F=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||F===null||U===null||(et=ru(z,U),et!=null&&wt.push(ju(z,et,F))),se)break;z=z.return}0<wt.length&&($=new Q($,ht,null,o,J),rt.push({event:$,listeners:wt}))}}if((s&7)===0){t:{if($=r==="mouseover"||r==="pointerover",Q=r==="mouseout"||r==="pointerout",$&&o!==kg&&(ht=o.relatedTarget||o.fromElement)&&(ao(ht)||ht[so]))break t;if((Q||$)&&($=J.window===J?J:($=J.ownerDocument)?$.defaultView||$.parentWindow:window,Q?(ht=o.relatedTarget||o.toElement,Q=V,ht=ht?ao(ht):null,ht!==null&&(se=u(ht),wt=ht.tag,ht!==se||wt!==5&&wt!==27&&wt!==6)&&(ht=null)):(Q=null,ht=V),Q!==ht)){if(wt=s_,et="onMouseLeave",U="onMouseEnter",z="mouse",(r==="pointerout"||r==="pointerover")&&(wt=o_,et="onPointerLeave",U="onPointerEnter",z="pointer"),se=Q==null?$:nu(Q),F=ht==null?$:nu(ht),$=new wt(et,z+"leave",Q,o,J),$.target=se,$.relatedTarget=F,et=null,ao(J)===V&&(wt=new wt(U,z+"enter",ht,o,J),wt.target=F,wt.relatedTarget=se,et=wt),se=et,Q&&ht)e:{for(wt=D9,U=Q,z=ht,F=0,et=U;et;et=wt(et))F++;et=0;for(var St=z;St;St=wt(St))et++;for(;0<F-et;)U=wt(U),F--;for(;0<et-F;)z=wt(z),et--;for(;F--;){if(U===z||z!==null&&U===z.alternate){wt=U;break e}U=wt(U),z=wt(z)}wt=null}else wt=null;Q!==null&&JO(rt,$,Q,wt,!1),ht!==null&&se!==null&&JO(rt,se,ht,wt,!0)}}t:{if($=V?nu(V):window,Q=$.nodeName&&$.nodeName.toLowerCase(),Q==="select"||Q==="input"&&$.type==="file")var Yt=m_;else if(h_($))if(g_)Yt=F8;else{Yt=P8;var bt=U8}else Q=$.nodeName,!Q||Q.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?V&&Rg(V.elementType)&&(Yt=m_):Yt=q8;if(Yt&&(Yt=Yt(r,V))){p_(rt,Yt,o,J);break t}bt&&bt(r,$,V),r==="focusout"&&V&&$.type==="number"&&V.memoizedProps.value!=null&&Og($,"number",$.value)}switch(bt=V?nu(V):window,r){case"focusin":(h_(bt)||bt.contentEditable==="true")&&(go=bt,Vg=V,fu=null);break;case"focusout":fu=Vg=go=null;break;case"mousedown":Hg=!0;break;case"contextmenu":case"mouseup":case"dragend":Hg=!1,T_(rt,o,J);break;case"selectionchange":if(H8)break;case"keydown":case"keyup":T_(rt,o,J)}var Lt;if(Ug)t:{switch(r){case"compositionstart":var Ft="onCompositionStart";break t;case"compositionend":Ft="onCompositionEnd";break t;case"compositionupdate":Ft="onCompositionUpdate";break t}Ft=void 0}else mo?f_(r,o)&&(Ft="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Ft="onCompositionStart");Ft&&(l_&&o.locale!=="ko"&&(mo||Ft!=="onCompositionStart"?Ft==="onCompositionEnd"&&mo&&(Lt=r_()):(Ii=J,Lg="value"in Ii?Ii.value:Ii.textContent,mo=!0)),bt=yd(V,Ft),0<bt.length&&(Ft=new a_(Ft,r,null,o,J),rt.push({event:Ft,listeners:bt}),Lt?Ft.data=Lt:(Lt=d_(o),Lt!==null&&(Ft.data=Lt)))),(Lt=L8?z8(r,o):j8(r,o))&&(Ft=yd(V,"onBeforeInput"),0<Ft.length&&(bt=new a_("onBeforeInput","beforeinput",null,o,J),rt.push({event:bt,listeners:Ft}),bt.data=Lt)),A9(rt,r,V,o,J)}QO(rt,s)})}function ju(r,s,o){return{instance:r,listener:s,currentTarget:o}}function yd(r,s){for(var o=s+"Capture",c=[];r!==null;){var p=r,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=ru(r,o),p!=null&&c.unshift(ju(r,p,g)),p=ru(r,s),p!=null&&c.push(ju(r,p,g))),r.tag===3)return c;r=r.return}return[]}function D9(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function JO(r,s,o,c,p){for(var g=s._reactName,x=[];o!==null&&o!==c;){var T=o,k=T.alternate,V=T.stateNode;if(T=T.tag,k!==null&&k===c)break;T!==5&&T!==26&&T!==27||V===null||(k=V,p?(V=ru(o,g),V!=null&&x.unshift(ju(o,V,k))):p||(V=ru(o,g),V!=null&&x.push(ju(o,V,k)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var N9=/\r\n?/g,M9=/\u0000|\uFFFD/g;function WO(r){return(typeof r=="string"?r:""+r).replace(N9,`
`).replace(M9,"")}function tR(r,s){return s=WO(s),WO(r)===s}function ie(r,s,o,c,p,g){switch(o){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||fo(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&fo(r,""+c);break;case"className":Sf(r,"class",c);break;case"tabIndex":Sf(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Sf(r,o,c);break;case"style":t_(r,c,g);break;case"data":if(s!=="object"){Sf(r,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Ef(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(s!=="input"&&ie(r,s,"name",p.name,p,null),ie(r,s,"formEncType",p.formEncType,p,null),ie(r,s,"formMethod",p.formMethod,p,null),ie(r,s,"formTarget",p.formTarget,p,null)):(ie(r,s,"encType",p.encType,p,null),ie(r,s,"method",p.method,p,null),ie(r,s,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Ef(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Xr);break;case"onScroll":c!=null&&Pt("scroll",r);break;case"onScrollEnd":c!=null&&Pt("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=Ef(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":Pt("beforetoggle",r),Pt("toggle",r),xf(r,"popover",c);break;case"xlinkActuate":$r(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":$r(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":$r(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":$r(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":$r(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":$r(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":$r(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":$r(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":$r(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":xf(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=o8.get(o)||o,xf(r,o,c))}}function m0(r,s,o,c,p,g){switch(o){case"style":t_(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"children":typeof c=="string"?fo(r,c):(typeof c=="number"||typeof c=="bigint")&&fo(r,""+c);break;case"onScroll":c!=null&&Pt("scroll",r);break;case"onScrollEnd":c!=null&&Pt("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!GC.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),s=o.slice(2,p?o.length-7:void 0),g=r[yn]||null,g=g!=null?g[o]:null,typeof g=="function"&&r.removeEventListener(s,g,p),typeof c=="function")){typeof g!="function"&&g!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(s,c,p);break t}o in r?r[o]=c:c===!0?r.setAttribute(o,""):xf(r,o,c)}}}function Ye(r,s,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",r),Pt("load",r);var c=!1,p=!1,g;for(g in o)if(o.hasOwnProperty(g)){var x=o[g];if(x!=null)switch(g){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:ie(r,s,g,x,o,null)}}p&&ie(r,s,"srcSet",o.srcSet,o,null),c&&ie(r,s,"src",o.src,o,null);return;case"input":Pt("invalid",r);var T=g=x=p=null,k=null,V=null;for(c in o)if(o.hasOwnProperty(c)){var J=o[c];if(J!=null)switch(c){case"name":p=J;break;case"type":x=J;break;case"checked":k=J;break;case"defaultChecked":V=J;break;case"value":g=J;break;case"defaultValue":T=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,s));break;default:ie(r,s,c,J,o,null)}}QC(r,g,T,k,V,x,p,!1);return;case"select":Pt("invalid",r),c=x=g=null;for(p in o)if(o.hasOwnProperty(p)&&(T=o[p],T!=null))switch(p){case"value":g=T;break;case"defaultValue":x=T;break;case"multiple":c=T;default:ie(r,s,p,T,o,null)}s=g,o=x,r.multiple=!!c,s!=null?co(r,!!c,s,!1):o!=null&&co(r,!!c,o,!0);return;case"textarea":Pt("invalid",r),g=p=c=null;for(x in o)if(o.hasOwnProperty(x)&&(T=o[x],T!=null))switch(x){case"value":c=T;break;case"defaultValue":p=T;break;case"children":g=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:ie(r,s,x,T,o,null)}JC(r,c,p,g);return;case"option":for(k in o)if(o.hasOwnProperty(k)&&(c=o[k],c!=null))switch(k){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ie(r,s,k,c,o,null)}return;case"dialog":Pt("beforetoggle",r),Pt("toggle",r),Pt("cancel",r),Pt("close",r);break;case"iframe":case"object":Pt("load",r);break;case"video":case"audio":for(c=0;c<zu.length;c++)Pt(zu[c],r);break;case"image":Pt("error",r),Pt("load",r);break;case"details":Pt("toggle",r);break;case"embed":case"source":case"link":Pt("error",r),Pt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in o)if(o.hasOwnProperty(V)&&(c=o[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:ie(r,s,V,c,o,null)}return;default:if(Rg(s)){for(J in o)o.hasOwnProperty(J)&&(c=o[J],c!==void 0&&m0(r,s,J,c,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(c=o[T],c!=null&&ie(r,s,T,c,o,null))}function L9(r,s,o,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,x=null,T=null,k=null,V=null,J=null;for(Q in o){var rt=o[Q];if(o.hasOwnProperty(Q)&&rt!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":k=rt;default:c.hasOwnProperty(Q)||ie(r,s,Q,null,c,rt)}}for(var $ in c){var Q=c[$];if(rt=o[$],c.hasOwnProperty($)&&(Q!=null||rt!=null))switch($){case"type":g=Q;break;case"name":p=Q;break;case"checked":V=Q;break;case"defaultChecked":J=Q;break;case"value":x=Q;break;case"defaultValue":T=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,s));break;default:Q!==rt&&ie(r,s,$,Q,c,rt)}}Ag(r,x,T,k,V,J,g,p);return;case"select":Q=x=T=$=null;for(g in o)if(k=o[g],o.hasOwnProperty(g)&&k!=null)switch(g){case"value":break;case"multiple":Q=k;default:c.hasOwnProperty(g)||ie(r,s,g,null,c,k)}for(p in c)if(g=c[p],k=o[p],c.hasOwnProperty(p)&&(g!=null||k!=null))switch(p){case"value":$=g;break;case"defaultValue":T=g;break;case"multiple":x=g;default:g!==k&&ie(r,s,p,g,c,k)}s=T,o=x,c=Q,$!=null?co(r,!!o,$,!1):!!c!=!!o&&(s!=null?co(r,!!o,s,!0):co(r,!!o,o?[]:"",!1));return;case"textarea":Q=$=null;for(T in o)if(p=o[T],o.hasOwnProperty(T)&&p!=null&&!c.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:ie(r,s,T,null,c,p)}for(x in c)if(p=c[x],g=o[x],c.hasOwnProperty(x)&&(p!=null||g!=null))switch(x){case"value":$=p;break;case"defaultValue":Q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==g&&ie(r,s,x,p,c,g)}ZC(r,$,Q);return;case"option":for(var ht in o)if($=o[ht],o.hasOwnProperty(ht)&&$!=null&&!c.hasOwnProperty(ht))switch(ht){case"selected":r.selected=!1;break;default:ie(r,s,ht,null,c,$)}for(k in c)if($=c[k],Q=o[k],c.hasOwnProperty(k)&&$!==Q&&($!=null||Q!=null))switch(k){case"selected":r.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:ie(r,s,k,$,c,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var wt in o)$=o[wt],o.hasOwnProperty(wt)&&$!=null&&!c.hasOwnProperty(wt)&&ie(r,s,wt,null,c,$);for(V in c)if($=c[V],Q=o[V],c.hasOwnProperty(V)&&$!==Q&&($!=null||Q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,s));break;default:ie(r,s,V,$,c,Q)}return;default:if(Rg(s)){for(var se in o)$=o[se],o.hasOwnProperty(se)&&$!==void 0&&!c.hasOwnProperty(se)&&m0(r,s,se,void 0,c,$);for(J in c)$=c[J],Q=o[J],!c.hasOwnProperty(J)||$===Q||$===void 0&&Q===void 0||m0(r,s,J,$,c,Q);return}}for(var U in o)$=o[U],o.hasOwnProperty(U)&&$!=null&&!c.hasOwnProperty(U)&&ie(r,s,U,null,c,$);for(rt in c)$=c[rt],Q=o[rt],!c.hasOwnProperty(rt)||$===Q||$==null&&Q==null||ie(r,s,rt,$,c,Q)}function eR(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function z9(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var p=o[c],g=p.transferSize,x=p.initiatorType,T=p.duration;if(g&&T&&eR(x)){for(x=0,T=p.responseEnd,c+=1;c<o.length;c++){var k=o[c],V=k.startTime;if(V>T)break;var J=k.transferSize,rt=k.initiatorType;J&&eR(rt)&&(k=k.responseEnd,x+=J*(k<T?1:(T-V)/(k-V)))}if(--c,s+=8*(g+x)/(p.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var g0=null,y0=null;function bd(r){return r.nodeType===9?r:r.ownerDocument}function nR(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rR(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function b0(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var v0=null;function j9(){var r=window.event;return r&&r.type==="popstate"?r===v0?!1:(v0=r,!0):(v0=null,!1)}var iR=typeof setTimeout=="function"?setTimeout:void 0,B9=typeof clearTimeout=="function"?clearTimeout:void 0,sR=typeof Promise=="function"?Promise:void 0,I9=typeof queueMicrotask=="function"?queueMicrotask:typeof sR<"u"?function(r){return sR.resolve(null).then(r).catch(U9)}:iR;function U9(r){setTimeout(function(){throw r})}function es(r){return r==="head"}function aR(r,s){var o=s,c=0;do{var p=o.nextSibling;if(r.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(p),Vo(s);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Bu(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,Bu(o);for(var g=o.firstChild;g;){var x=g.nextSibling,T=g.nodeName;g[eu]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=x}}else o==="body"&&Bu(r.ownerDocument.body);o=p}while(o);Vo(s)}function oR(r,s){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?s?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(s?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function x0(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var o=s;switch(s=s.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":x0(o),Cg(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function P9(r,s,o,c){for(;r.nodeType===1;){var p=o;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[eu])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=Zn(r.nextSibling),r===null)break}return null}function q9(r,s,o){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Zn(r.nextSibling),r===null))return null;return r}function lR(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Zn(r.nextSibling),r===null))return null;return r}function S0(r){return r.data==="$?"||r.data==="$~"}function w0(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function F9(r,s){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||o.readyState!=="loading")s();else{var c=function(){s(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function Zn(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var E0=null;function uR(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(s===0)return Zn(r.nextSibling);s--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||s++}r=r.nextSibling}return null}function cR(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(s===0)return r;s--}else o!=="/$"&&o!=="/&"||s++}r=r.previousSibling}return null}function fR(r,s,o){switch(s=bd(o),r){case"html":if(r=s.documentElement,!r)throw Error(a(452));return r;case"head":if(r=s.head,!r)throw Error(a(453));return r;case"body":if(r=s.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Bu(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);Cg(r)}var Jn=new Map,dR=new Set;function vd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var fi=P.d;P.d={f:V9,r:H9,D:G9,C:K9,L:Y9,m:$9,X:Q9,S:X9,M:Z9};function V9(){var r=fi.f(),s=cd();return r||s}function H9(r){var s=oo(r);s!==null&&s.tag===5&&s.type==="form"?RA(s):fi.r(r)}var Po=typeof document>"u"?null:document;function hR(r,s,o){var c=Po;if(c&&typeof s=="string"&&s){var p=Hn(s);p='link[rel="'+r+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),dR.has(p)||(dR.add(p),r={rel:r,crossOrigin:o,href:s},c.querySelector(p)===null&&(s=c.createElement("link"),Ye(s,"link",r),Ue(s),c.head.appendChild(s)))}}function G9(r){fi.D(r),hR("dns-prefetch",r,null)}function K9(r,s){fi.C(r,s),hR("preconnect",r,s)}function Y9(r,s,o){fi.L(r,s,o);var c=Po;if(c&&r&&s){var p='link[rel="preload"][as="'+Hn(s)+'"]';s==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Hn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Hn(o.imageSizes)+'"]')):p+='[href="'+Hn(r)+'"]';var g=p;switch(s){case"style":g=qo(r);break;case"script":g=Fo(r)}Jn.has(g)||(r=b({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:r,as:s},o),Jn.set(g,r),c.querySelector(p)!==null||s==="style"&&c.querySelector(Iu(g))||s==="script"&&c.querySelector(Uu(g))||(s=c.createElement("link"),Ye(s,"link",r),Ue(s),c.head.appendChild(s)))}}function $9(r,s){fi.m(r,s);var o=Po;if(o&&r){var c=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Hn(c)+'"][href="'+Hn(r)+'"]',g=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Fo(r)}if(!Jn.has(g)&&(r=b({rel:"modulepreload",href:r},s),Jn.set(g,r),o.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Uu(g)))return}c=o.createElement("link"),Ye(c,"link",r),Ue(c),o.head.appendChild(c)}}}function X9(r,s,o){fi.S(r,s,o);var c=Po;if(c&&r){var p=lo(c).hoistableStyles,g=qo(r);s=s||"default";var x=p.get(g);if(!x){var T={loading:0,preload:null};if(x=c.querySelector(Iu(g)))T.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":s},o),(o=Jn.get(g))&&T0(r,o);var k=x=c.createElement("link");Ue(k),Ye(k,"link",r),k._p=new Promise(function(V,J){k.onload=V,k.onerror=J}),k.addEventListener("load",function(){T.loading|=1}),k.addEventListener("error",function(){T.loading|=2}),T.loading|=4,xd(x,s,c)}x={type:"stylesheet",instance:x,count:1,state:T},p.set(g,x)}}}function Q9(r,s){fi.X(r,s);var o=Po;if(o&&r){var c=lo(o).hoistableScripts,p=Fo(r),g=c.get(p);g||(g=o.querySelector(Uu(p)),g||(r=b({src:r,async:!0},s),(s=Jn.get(p))&&C0(r,s),g=o.createElement("script"),Ue(g),Ye(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function Z9(r,s){fi.M(r,s);var o=Po;if(o&&r){var c=lo(o).hoistableScripts,p=Fo(r),g=c.get(p);g||(g=o.querySelector(Uu(p)),g||(r=b({src:r,async:!0,type:"module"},s),(s=Jn.get(p))&&C0(r,s),g=o.createElement("script"),Ue(g),Ye(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function pR(r,s,o,c){var p=(p=yt.current)?vd(p):null;if(!p)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(s=qo(o.href),o=lo(p).hoistableStyles,c=o.get(s),c||(c={type:"style",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=qo(o.href);var g=lo(p).hoistableStyles,x=g.get(r);if(x||(p=p.ownerDocument||p,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,x),(g=p.querySelector(Iu(r)))&&!g._p&&(x.instance=g,x.state.loading=5),Jn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Jn.set(r,o),g||J9(p,r,o,x.state))),s&&c===null)throw Error(a(528,""));return x}if(s&&c!==null)throw Error(a(529,""));return null;case"script":return s=o.async,o=o.src,typeof o=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Fo(o),o=lo(p).hoistableScripts,c=o.get(s),c||(c={type:"script",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function qo(r){return'href="'+Hn(r)+'"'}function Iu(r){return'link[rel="stylesheet"]['+r+"]"}function mR(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function J9(r,s,o,c){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=r.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),Ye(s,"link",o),Ue(s),r.head.appendChild(s))}function Fo(r){return'[src="'+Hn(r)+'"]'}function Uu(r){return"script[async]"+r}function gR(r,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+Hn(o.href)+'"]');if(c)return s.instance=c,Ue(c),c;var p=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Ue(c),Ye(c,"style",p),xd(c,o.precedence,r),s.instance=c;case"stylesheet":p=qo(o.href);var g=r.querySelector(Iu(p));if(g)return s.state.loading|=4,s.instance=g,Ue(g),g;c=mR(o),(p=Jn.get(p))&&T0(c,p),g=(r.ownerDocument||r).createElement("link"),Ue(g);var x=g;return x._p=new Promise(function(T,k){x.onload=T,x.onerror=k}),Ye(g,"link",c),s.state.loading|=4,xd(g,o.precedence,r),s.instance=g;case"script":return g=Fo(o.src),(p=r.querySelector(Uu(g)))?(s.instance=p,Ue(p),p):(c=o,(p=Jn.get(g))&&(c=b({},o),C0(c,p)),r=r.ownerDocument||r,p=r.createElement("script"),Ue(p),Ye(p,"link",c),r.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(a(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,xd(c,o.precedence,r));return s.instance}function xd(r,s,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,g=p,x=0;x<c.length;x++){var T=c[x];if(T.dataset.precedence===s)g=T;else if(g!==p)break}g?g.parentNode.insertBefore(r,g.nextSibling):(s=o.nodeType===9?o.head:o,s.insertBefore(r,s.firstChild))}function T0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function C0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var Sd=null;function yR(r,s,o){if(Sd===null){var c=new Map,p=Sd=new Map;p.set(o,c)}else p=Sd,c=p.get(o),c||(c=new Map,p.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),p=0;p<o.length;p++){var g=o[p];if(!(g[eu]||g[Ve]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(s)||"";x=r+x;var T=c.get(x);T?T.push(g):c.set(x,[g])}}return c}function bR(r,s,o){r=r.ownerDocument||r,r.head.insertBefore(o,s==="title"?r.querySelector("head > title"):null)}function W9(r,s,o){if(o===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function vR(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function t7(r,s,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=qo(c.href),g=s.querySelector(Iu(p));if(g){s=g._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=wd.bind(r),s.then(r,r)),o.state.loading|=4,o.instance=g,Ue(g);return}g=s.ownerDocument||s,c=mR(c),(p=Jn.get(p))&&T0(c,p),g=g.createElement("link"),Ue(g);var x=g;x._p=new Promise(function(T,k){x.onload=T,x.onerror=k}),Ye(g,"link",c),o.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=wd.bind(r),s.addEventListener("load",o),s.addEventListener("error",o))}}var _0=0;function e7(r,s){return r.stylesheets&&r.count===0&&Td(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&Td(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+s);0<r.imgBytes&&_0===0&&(_0=62500*z9());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Td(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>_0?50:800)+s);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Td(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Ed=null;function Td(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Ed=new Map,s.forEach(n7,r),Ed=null,wd.call(r))}function n7(r,s){if(!(s.state.loading&4)){var o=Ed.get(r);if(o)var c=o.get(null);else{o=new Map,Ed.set(r,o);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var x=p[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(o.set(x.dataset.precedence,x),c=x)}c&&o.set(null,c)}p=s.instance,x=p.getAttribute("data-precedence"),g=o.get(x)||c,g===c&&o.set(null,p),o.set(x,p),this.count++,c=wd.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),g?g.parentNode.insertBefore(p,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),s.state.loading|=4}}var Pu={$$typeof:B,Provider:null,Consumer:null,_currentValue:dt,_currentValue2:dt,_threadCount:0};function r7(r,s,o,c,p,g,x,T,k){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sg(0),this.hiddenUpdates=Sg(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function xR(r,s,o,c,p,g,x,T,k,V,J,rt){return r=new r7(r,s,o,x,k,V,J,rt,T),s=1,g===!0&&(s|=24),g=On(3,null,null,s),r.current=g,g.stateNode=r,s=sy(),s.refCount++,r.pooledCache=s,s.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:s},uy(g),r}function SR(r){return r?(r=vo,r):vo}function wR(r,s,o,c,p,g){p=SR(p),c.context===null?c.context=p:c.pendingContext=p,c=Hi(s),c.payload={element:o},g=g===void 0?null:g,g!==null&&(c.callback=g),o=Gi(r,c,s),o!==null&&(En(o,r,s),bu(o,r,s))}function ER(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function A0(r,s){ER(r,s),(r=r.alternate)&&ER(r,s)}function TR(r){if(r.tag===13||r.tag===31){var s=Ys(r,67108864);s!==null&&En(s,r,67108864),A0(r,67108864)}}function CR(r){if(r.tag===13||r.tag===31){var s=Mn();s=wg(s);var o=Ys(r,s);o!==null&&En(o,r,s),A0(r,s)}}var Cd=!0;function i7(r,s,o,c){var p=G.T;G.T=null;var g=P.p;try{P.p=2,O0(r,s,o,c)}finally{P.p=g,G.T=p}}function s7(r,s,o,c){var p=G.T;G.T=null;var g=P.p;try{P.p=8,O0(r,s,o,c)}finally{P.p=g,G.T=p}}function O0(r,s,o,c){if(Cd){var p=R0(c);if(p===null)p0(r,s,c,_d,o),AR(r,c);else if(o7(p,r,s,o,c))c.stopPropagation();else if(AR(r,c),s&4&&-1<a7.indexOf(r)){for(;p!==null;){var g=oo(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=Fs(g.pendingLanes);if(x!==0){var T=g;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var k=1<<31-Re(x);T.entanglements[1]|=k,x&=~k}Mr(g),(Qt&6)===0&&(ld=sn()+500,Lu(0))}}break;case 31:case 13:T=Ys(g,2),T!==null&&En(T,g,2),cd(),A0(g,2)}if(g=R0(c),g===null&&p0(r,s,c,_d,o),g===p)break;p=g}p!==null&&c.stopPropagation()}else p0(r,s,c,null,o)}}function R0(r){return r=Dg(r),k0(r)}var _d=null;function k0(r){if(_d=null,r=ao(r),r!==null){var s=u(r);if(s===null)r=null;else{var o=s.tag;if(o===13){if(r=f(s),r!==null)return r;r=null}else if(o===31){if(r=d(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return _d=r,null}function _R(r){switch(r){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tt()){case ut:return 2;case At:return 8;case zt:case Wt:return 32;case gn:return 268435456;default:return 32}default:return 32}}var D0=!1,ns=null,rs=null,is=null,qu=new Map,Fu=new Map,ss=[],a7="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".split(" ");function AR(r,s){switch(r){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":qu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fu.delete(s.pointerId)}}function Vu(r,s,o,c,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},s!==null&&(s=oo(s),s!==null&&TR(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),r)}function o7(r,s,o,c,p){switch(s){case"focusin":return ns=Vu(ns,r,s,o,c,p),!0;case"dragenter":return rs=Vu(rs,r,s,o,c,p),!0;case"mouseover":return is=Vu(is,r,s,o,c,p),!0;case"pointerover":var g=p.pointerId;return qu.set(g,Vu(qu.get(g)||null,r,s,o,c,p)),!0;case"gotpointercapture":return g=p.pointerId,Fu.set(g,Vu(Fu.get(g)||null,r,s,o,c,p)),!0}return!1}function OR(r){var s=ao(r.target);if(s!==null){var o=u(s);if(o!==null){if(s=o.tag,s===13){if(s=f(o),s!==null){r.blockedOn=s,FC(r.priority,function(){CR(o)});return}}else if(s===31){if(s=d(o),s!==null){r.blockedOn=s,FC(r.priority,function(){CR(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ad(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=R0(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);kg=c,o.target.dispatchEvent(c),kg=null}else return s=oo(o),s!==null&&TR(s),r.blockedOn=o,!1;s.shift()}return!0}function RR(r,s,o){Ad(r)&&o.delete(s)}function l7(){D0=!1,ns!==null&&Ad(ns)&&(ns=null),rs!==null&&Ad(rs)&&(rs=null),is!==null&&Ad(is)&&(is=null),qu.forEach(RR),Fu.forEach(RR)}function Od(r,s){r.blockedOn===s&&(r.blockedOn=null,D0||(D0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l7)))}var Rd=null;function kR(r){Rd!==r&&(Rd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rd===r&&(Rd=null);for(var s=0;s<r.length;s+=3){var o=r[s],c=r[s+1],p=r[s+2];if(typeof c!="function"){if(k0(c||o)===null)continue;break}var g=oo(o);g!==null&&(r.splice(s,3),s-=3,Ry(g,{pending:!0,data:p,method:o.method,action:c},c,p))}}))}function Vo(r){function s(k){return Od(k,r)}ns!==null&&Od(ns,r),rs!==null&&Od(rs,r),is!==null&&Od(is,r),qu.forEach(s),Fu.forEach(s);for(var o=0;o<ss.length;o++){var c=ss[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<ss.length&&(o=ss[0],o.blockedOn===null);)OR(o),o.blockedOn===null&&ss.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var p=o[c],g=o[c+1],x=p[yn]||null;if(typeof g=="function")x||kR(o);else if(x){var T=null;if(g&&g.hasAttribute("formAction")){if(p=g,x=g[yn]||null)T=x.formAction;else if(k0(p)!==null)continue}else T=x.action;typeof T=="function"?o[c+1]=T:(o.splice(c,3),c-=3),kR(o)}}}function DR(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(x){return p=x})},focusReset:"manual",scroll:"manual"})}function s(){p!==null&&(p(),p=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,p=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),p!==null&&(p(),p=null)}}}function N0(r){this._internalRoot=r}kd.prototype.render=N0.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var o=s.current,c=Mn();wR(o,c,r,s,null,null)},kd.prototype.unmount=N0.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;wR(r.current,2,null,r,null,null),cd(),s[so]=null}};function kd(r){this._internalRoot=r}kd.prototype.unstable_scheduleHydration=function(r){if(r){var s=qC();r={blockedOn:null,target:r,priority:s};for(var o=0;o<ss.length&&s!==0&&s<ss[o].priority;o++);ss.splice(o,0,r),o===0&&OR(r)}};var NR=n.version;if(NR!=="19.2.0")throw Error(a(527,NR,"19.2.0"));P.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=m(s),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var u7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dd.isDisabled&&Dd.supportsFiber)try{ur=Dd.inject(u7),je=Dd}catch{}}return Ho.createRoot=function(r,s){if(!l(r))throw Error(a(299));var o=!1,c="",p=UA,g=PA,x=qA;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),s=xR(r,1,!1,null,null,o,c,null,p,g,x,DR),r[so]=s.current,h0(r),new N0(s)},Ho.hydrateRoot=function(r,s,o){if(!l(r))throw Error(a(299));var c=!1,p="",g=UA,x=PA,T=qA,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.formState!==void 0&&(k=o.formState)),s=xR(r,1,!0,s,o??null,c,p,k,g,x,T,DR),s.context=SR(null),o=s.current,c=Mn(),c=wg(c),p=Hi(c),p.callback=null,Gi(o,p,c),o=c,s.current.lanes=o,tu(s,o),Mr(s),r[so]=s.current,h0(r),new kd(s)},Ho.version="19.2.0",Ho}var Z0;function FR(){if(Z0)return zd.exports;Z0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),zd.exports=qR(),zd.exports}var VR=FR();const _t=t=>typeof t=="string",Go=()=>{let t,e;const n=new Promise((i,a)=>{t=i,e=a});return n.resolve=t,n.reject=e,n},J0=t=>t==null?"":""+t,HR=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},GR=/###/g,W0=t=>t&&t.indexOf("###")>-1?t.replace(GR,"."):t,tb=t=>!t||_t(t),Ko=(t,e,n)=>{const i=_t(e)?e.split("."):e;let a=0;for(;a<i.length-1;){if(tb(t))return{};const l=W0(i[a]);!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={},++a}return tb(t)?{}:{obj:t,k:W0(i[a])}},eb=(t,e,n)=>{const{obj:i,k:a}=Ko(t,e,Object);if(i!==void 0||e.length===1){i[a]=n;return}let l=e[e.length-1],u=e.slice(0,e.length-1),f=Ko(t,u,Object);for(;f.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),f=Ko(t,u,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=n},KR=(t,e,n,i)=>{const{obj:a,k:l}=Ko(t,e,Object);a[l]=a[l]||[],a[l].push(n)},Gu=(t,e)=>{const{obj:n,k:i}=Ko(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},YR=(t,e,n)=>{const i=Gu(t,n);return i!==void 0?i:Gu(e,n)},nb=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?_t(t[i])||t[i]instanceof String||_t(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):nb(t[i],e[i],n):t[i]=e[i]);return t},aa=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var $R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const XR=t=>_t(t)?t.replace(/[&<>"'\/]/g,e=>$R[e]):t;class QR{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const ZR=[" ",",","?","!",";"],JR=new QR(20),WR=(t,e,n)=>{e=e||"",n=n||"";const i=ZR.filter(u=>e.indexOf(u)<0&&n.indexOf(u)<0);if(i.length===0)return!0;const a=JR.getRegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!a.test(t);if(!l){const u=t.indexOf(n);u>0&&!a.test(t.substring(0,u))&&(l=!0)}return l},qd=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let a=t;for(let l=0;l<i.length;){if(!a||typeof a!="object")return;let u,f="";for(let d=l;d<i.length;++d)if(d!==l&&(f+=n),f+=i[d],u=a[f],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&d<i.length-1)continue;l+=d-l+1;break}a=u}return a},Yo=t=>t==null?void 0:t.replace("_","-"),tk={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,i;(i=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||i.call(n,console,e)}};class Ku{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||tk,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,a){return a&&!this.debug?null:(_t(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Ku(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ku(this.logger,e)}}var pr=new Ku;class Yu{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(n)||0;this.observers[i].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a.apply(a,[e,...n])})}}class rb extends Yu{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i,a={}){var h,m;const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;e.indexOf(".")>-1?f=e.split("."):(f=[e,n],i&&(Array.isArray(i)?f.push(...i):_t(i)&&l?f.push(...i.split(l)):f.push(i)));const d=Gu(this.data,f);return!d&&!n&&!i&&e.indexOf(".")>-1&&(e=f[0],n=f[1],i=f.slice(2).join(".")),d||!u||!_t(i)?d:qd((m=(h=this.data)==null?void 0:h[e])==null?void 0:m[n],i,l)}addResource(e,n,i,a,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[e,n];i&&(f=f.concat(u?i.split(u):i)),e.indexOf(".")>-1&&(f=e.split("."),a=n,n=f[1]),this.addNamespaces(n),eb(this.data,f,a),l.silent||this.emit("added",e,n,i,a)}addResources(e,n,i,a={silent:!1}){for(const l in i)(_t(i[l])||Array.isArray(i[l]))&&this.addResource(e,n,l,i[l],{silent:!0});a.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,a,l,u={silent:!1,skipCopy:!1}){let f=[e,n];e.indexOf(".")>-1&&(f=e.split("."),a=i,i=n,n=f[1]),this.addNamespaces(n);let d=Gu(this.data,f)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?nb(d,i,l):d={...d,...i},eb(this.data,f,d),u.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var ib={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,a){return t.forEach(l=>{var u;e=((u=this.processors[l])==null?void 0:u.process(e,n,i,a))??e}),e}};const sb=Symbol("i18next/PATH_KEY");function ek(){const t=[],e=Object.create(null);let n;return e.get=(i,a)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),a===sb?t:(t.push(a),n=Proxy.revocable(i,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function Fd(t,e){const{[sb]:n}=t(ek());return n.join((e==null?void 0:e.keySeparator)??".")}const ab={},Vd=t=>!_t(t)&&typeof t!="boolean"&&typeof t!="number";class $u extends Yu{constructor(e,n={}){super(),HR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pr.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const a=this.resolve(e,i);if((a==null?void 0:a.res)===void 0)return!1;const l=Vd(a.res);return!(i.returnObjects===!1&&l)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const u=i&&e.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!WR(e,i,a);if(u&&!f){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:_t(l)?[l]:l};const h=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(h[0])>-1)&&(l=h.shift()),e=h.join(a)}return{key:e,namespaces:_t(l)?[l]:l}}translate(e,n,i){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),e==null)return"";typeof e=="function"&&(e=Fd(e,{...this.options,...a})),Array.isArray(e)||(e=[String(e)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:f,namespaces:d}=this.extractFromKey(e[e.length-1],a),h=d[d.length-1];let m=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const y=a.lng||this.language,b=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return b?l?{res:`${h}${m}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${m}${f}`:l?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:f;const v=this.resolve(e,a);let S=v==null?void 0:v.res;const w=(v==null?void 0:v.usedKey)||f,C=(v==null?void 0:v.exactUsedKey)||f,_=["[object Number]","[object Function]","[object RegExp]"],L=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,B=a.count!==void 0&&!_t(a.count),K=$u.hasDefaultValue(a),j=B?this.pluralResolver.getSuffix(y,a.count,a):"",q=a.ordinal&&B?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",N=B&&!a.ordinal&&a.count===0,H=N&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${j}`]||a[`defaultValue${q}`]||a.defaultValue;let Y=S;R&&!S&&K&&(Y=H);const nt=Vd(Y),at=Object.prototype.toString.apply(Y);if(R&&Y&&nt&&_.indexOf(at)<0&&!(_t(L)&&Array.isArray(Y))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ft=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,Y,{...a,ns:d}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(v.res=ft,v.usedParams=this.getUsedParamsDetails(a),v):ft}if(u){const ft=Array.isArray(Y),st=ft?[]:{},it=ft?C:w;for(const Z in Y)if(Object.prototype.hasOwnProperty.call(Y,Z)){const G=`${it}${u}${Z}`;K&&!S?st[Z]=this.translate(G,{...a,defaultValue:Vd(H)?H[Z]:void 0,joinArrays:!1,ns:d}):st[Z]=this.translate(G,{...a,joinArrays:!1,ns:d}),st[Z]===G&&(st[Z]=Y[Z])}S=st}}else if(R&&_t(L)&&Array.isArray(S))S=S.join(L),S&&(S=this.extendTranslation(S,e,a,i));else{let ft=!1,st=!1;!this.isValidLookup(S)&&K&&(ft=!0,S=H),this.isValidLookup(S)||(st=!0,S=f);const Z=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&st?void 0:S,G=K&&H!==S&&this.options.updateMissing;if(st||ft||G){if(this.logger.log(G?"updateKey":"missingKey",y,h,f,G?H:S),u){const xt=this.resolve(f,{...a,keySeparator:!1});xt&&xt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let P=[];const dt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&dt&&dt[0])for(let xt=0;xt<dt.length;xt++)P.push(dt[xt]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(a.lng||this.language):P.push(a.lng||this.language);const O=(xt,D,E)=>{var ct;const W=K&&E!==S?E:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(xt,h,D,W,G,a):(ct=this.backendConnector)!=null&&ct.saveMissing&&this.backendConnector.saveMissing(xt,h,D,W,G,a),this.emit("missingKey",xt,h,D,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?P.forEach(xt=>{const D=this.pluralResolver.getSuffixes(xt,a);N&&a[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(E=>{O([xt],f+E,a[`defaultValue${E}`]||H)})}):O(P,f,H))}S=this.extendTranslation(S,e,a,v,i),st&&S===f&&this.options.appendNamespaceToMissingKey&&(S=`${h}${m}${f}`),(st||ft)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${m}${f}`:f,ft?S:void 0,a))}return l?(v.res=S,v.usedParams=this.getUsedParamsDetails(a),v):S}extendTranslation(e,n,i,a,l){var d,h;if((d=this.i18nFormat)!=null&&d.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const m=_t(e)&&(((h=i==null?void 0:i.interpolation)==null?void 0:h.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(m){const v=e.match(this.interpolator.nestingRegexp);y=v&&v.length}let b=i.replace&&!_t(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),e=this.interpolator.interpolate(e,b,i.lng||this.language||a.usedLng,i),m){const v=e.match(this.interpolator.nestingRegexp),S=v&&v.length;y<S&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,(...v)=>(l==null?void 0:l[0])===v[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):this.translate(...v,n),i)),i.interpolation&&this.interpolator.reset()}const u=i.postProcess||this.options.postProcess,f=_t(u)?[u]:u;return e!=null&&(f!=null&&f.length)&&i.applyPostProcessor!==!1&&(e=ib.handle(f,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,a,l,u,f;return _t(e)&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(i))return;const h=this.extractFromKey(d,n),m=h.key;a=m;let y=h.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const b=n.count!==void 0&&!_t(n.count),v=b&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(_t(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);y.forEach(C=>{var _,L;this.isValidLookup(i)||(f=C,!ab[`${w[0]}-${C}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((L=this.utils)!=null&&L.hasLoadedNamespace(f))&&(ab[`${w[0]}-${C}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(R=>{var j;if(this.isValidLookup(i))return;u=R;const B=[m];if((j=this.i18nFormat)!=null&&j.addLookupKeys)this.i18nFormat.addLookupKeys(B,m,R,C,n);else{let q;b&&(q=this.pluralResolver.getSuffix(R,n.count,n));const N=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(n.ordinal&&q.indexOf(H)===0&&B.push(m+q.replace(H,this.options.pluralSeparator)),B.push(m+q),v&&B.push(m+N)),S){const Y=`${m}${this.options.contextSeparator||"_"}${n.context}`;B.push(Y),b&&(n.ordinal&&q.indexOf(H)===0&&B.push(Y+q.replace(H,this.options.pluralSeparator)),B.push(Y+q),v&&B.push(Y+N))}}let K;for(;K=B.pop();)this.isValidLookup(i)||(l=K,i=this.getResource(R,C,K,n))}))})}),{res:i,usedKey:a,exactUsedKey:l,usedLng:u,usedNS:f}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,a={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(e,n,i,a):this.resourceStore.getResource(e,n,i,a)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!_t(e.replace);let a=i?e.replace:e;if(i&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const l of n)delete a[l]}return a}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class ob{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pr.create("languageUtils")}getScriptPartFromCode(e){if(e=Yo(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Yo(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(_t(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const a=this.getScriptPartFromCode(i);if(this.isSupportedCode(a))return n=a;const l=this.getLanguagePartFromCode(i);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(u=>{if(u===l)return u;if(!(u.indexOf("-")<0&&l.indexOf("-")<0)&&(u.indexOf("-")>0&&l.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===l||u.indexOf(l)===0&&l.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),_t(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),a=[],l=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return _t(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(e))):_t(e)&&l(this.formatLanguageCode(e)),i.forEach(u=>{a.indexOf(u)<0&&l(this.formatLanguageCode(u))}),a}}const lb={zero:0,one:1,two:2,few:3,many:4,other:5},ub={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class nk{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=pr.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=Yo(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:i,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ub;if(!e.match(/-|_/))return ub;const d=this.languageUtils.getLanguagePartFromCode(e);u=this.getRule(d,n)}return this.pluralRulesCache[l]=u,u}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(a=>`${n}${a}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((a,l)=>lb[a]-lb[l]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n,i={}){const a=this.getRule(e,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const cb=(t,e,n,i=".",a=!0)=>{let l=YR(t,e,n);return!l&&a&&_t(n)&&(l=qd(t,n,i),l===void 0&&(l=qd(e,n,i))),l},Hd=t=>t.replace(/\$/g,"$$$$");class rk{constructor(e={}){var n;this.logger=pr.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(i=>i),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:a,prefix:l,prefixEscaped:u,suffix:f,suffixEscaped:d,formatSeparator:h,unescapeSuffix:m,unescapePrefix:y,nestingPrefix:b,nestingPrefixEscaped:v,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:C,maxReplaces:_,alwaysFormat:L}=e.interpolation;this.escape=n!==void 0?n:XR,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?aa(l):u||"{{",this.suffix=f?aa(f):d||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=b?aa(b):v||aa("$t("),this.nestingSuffix=S?aa(S):w||aa(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=_||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,i,a){var v;let l,u,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=S=>{if(S.indexOf(this.formatSeparator)<0){const L=cb(n,d,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,i,{...a,...n,interpolationkey:S}):L}const w=S.split(this.formatSeparator),C=w.shift().trim(),_=w.join(this.formatSeparator).trim();return this.format(cb(n,d,C,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...a,...n,interpolationkey:C})};this.resetRegExp();const m=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((v=a==null?void 0:a.interpolation)==null?void 0:v.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>Hd(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?Hd(this.escape(S)):Hd(S)}].forEach(S=>{for(f=0;l=S.regex.exec(e);){const w=l[1].trim();if(u=h(w),u===void 0)if(typeof m=="function"){const _=m(e,l,a);u=_t(_)?_:""}else if(a&&Object.prototype.hasOwnProperty.call(a,w))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`),u="";else!_t(u)&&!this.useRawValueToEscape&&(u=J0(u));const C=S.safeValue(u);if(e=e.replace(l[0],C),y?(S.regex.lastIndex+=u.length,S.regex.lastIndex-=l[0].length):S.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),e}nest(e,n,i={}){let a,l,u;const f=(d,h)=>{const m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;const y=d.split(new RegExp(`${m}[ ]*{`));let b=`{${y[1]}`;d=y[0],b=this.interpolate(b,u);const v=b.match(/'/g),S=b.match(/"/g);(((v==null?void 0:v.length)??0)%2===0&&!S||S.length%2!==0)&&(b=b.replace(/'/g,'"'));try{u=JSON.parse(b),h&&(u={...h,...u})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,w),`${d}${m}${b}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,d};for(;a=this.nestingRegexp.exec(e);){let d=[];u={...i},u=u.replace&&!_t(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const h=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(h!==-1&&(d=a[1].slice(h).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),a[1]=a[1].slice(0,h)),l=n(f.call(this,a[1].trim(),u),u),l&&a[0]===e&&!_t(l))return l;_t(l)||(l=J0(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),l=""),d.length&&(l=d.reduce((m,y)=>this.format(m,y,i.lng,{...i,interpolationkey:a[1].trim()}),l.trim())),e=e.replace(a[0],l),this.regexp.lastIndex=0}return e}}const ik=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(u=>{if(u){const[f,...d]=u.split(":"),h=d.join(":").trim().replace(/^'+|'+$/g,""),m=f.trim();n[m]||(n[m]=h),h==="false"&&(n[m]=!1),h==="true"&&(n[m]=!0),isNaN(h)||(n[m]=parseInt(h,10))}})}return{formatName:e,formatOptions:n}},fb=t=>{const e={};return(n,i,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const u=i+JSON.stringify(l);let f=e[u];return f||(f=t(Yo(i),a),e[u]=f),f(n)}},sk=t=>(e,n,i)=>t(Yo(n),i)(e);class ak{constructor(e={}){this.logger=pr.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?fb:sk;this.formats={number:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l});return f=>u.format(f)}),currency:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l,style:"currency"});return f=>u.format(f)}),datetime:i((a,l)=>{const u=new Intl.DateTimeFormat(a,{...l});return f=>u.format(f)}),relativetime:i((a,l)=>{const u=new Intl.RelativeTimeFormat(a,{...l});return f=>u.format(f,l.range||"day")}),list:i((a,l)=>{const u=new Intl.ListFormat(a,{...l});return f=>u.format(f)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=fb(n)}format(e,n,i,a={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(f=>f.indexOf(")")>-1)){const f=l.findIndex(d=>d.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,f)].join(this.formatSeparator)}return l.reduce((f,d)=>{var y;const{formatName:h,formatOptions:m}=ik(d);if(this.formats[h]){let b=f;try{const v=((y=a==null?void 0:a.formatParams)==null?void 0:y[a.interpolationkey])||{},S=v.locale||v.lng||a.locale||a.lng||i;b=this.formats[h](f,S,{...m,...a,...v})}catch(v){this.logger.warn(v)}return b}else this.logger.warn(`there was no format function for ${h}`);return f},e)}}const ok=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class lk extends Yu{constructor(e,n,i,a={}){var l,u;super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=pr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(u=(l=this.backend)==null?void 0:l.init)==null||u.call(l,i,a.backend,a)}queueLoad(e,n,i,a){const l={},u={},f={},d={};return e.forEach(h=>{let m=!0;n.forEach(y=>{const b=`${h}|${y}`;!i.reload&&this.store.hasResourceBundle(h,y)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?u[b]===void 0&&(u[b]=!0):(this.state[b]=1,m=!1,u[b]===void 0&&(u[b]=!0),l[b]===void 0&&(l[b]=!0),d[y]===void 0&&(d[y]=!0)))}),m||(f[h]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(e,n,i){const a=e.split("|"),l=a[0],u=a[1];n&&this.emit("failedLoading",l,u,n),!n&&i&&this.store.addResourceBundle(l,u,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const f={};this.queue.forEach(d=>{KR(d.loaded,[l],u),ok(d,e),n&&d.errors.push(n),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(h=>{f[h]||(f[h]={});const m=d.loaded[h];m.length&&m.forEach(y=>{f[h][y]===void 0&&(f[h][y]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(e,n,i,a=0,l=this.retryTimeout,u){if(!e.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:a,wait:l,callback:u});return}this.readingCalls++;const f=(h,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(h&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,a+1,l*2,u)},l);return}u(h,m)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const h=d(e,n);h&&typeof h.then=="function"?h.then(m=>f(null,m)).catch(f):f(null,h)}catch(h){f(h)}return}return d(e,n,f)}prepareLoading(e,n,i={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();_t(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_t(n)&&(n=[n]);const l=this.queueLoad(e,n,i,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),a=i[0],l=i[1];this.read(a,l,"read",void 0,void 0,(u,f)=>{u&&this.logger.warn(`${n}loading namespace ${l} for language ${a} failed`,u),!u&&f&&this.logger.log(`${n}loaded namespace ${l} for language ${a}`,f),this.loaded(e,u,f)})}saveMissing(e,n,i,a,l,u={},f=()=>{}){var d,h,m,y,b;if((h=(d=this.services)==null?void 0:d.utils)!=null&&h.hasLoadedNamespace&&!((y=(m=this.services)==null?void 0:m.utils)!=null&&y.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((b=this.backend)!=null&&b.create){const v={...u,isUpdate:l},S=this.backend.create.bind(this.backend);if(S.length<6)try{let w;S.length===5?w=S(e,n,i,a,v):w=S(e,n,i,a),w&&typeof w.then=="function"?w.then(C=>f(null,C)).catch(f):f(null,w)}catch(w){f(w)}else S(e,n,i,a,f,v)}!e||!e[0]||this.store.addResource(e[0],n,i,a)}}}const db=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),_t(t[1])&&(e.defaultValue=t[1]),_t(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hb=t=>{var e,n;return _t(t.ns)&&(t.ns=[t.ns]),_t(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),_t(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},Xu=()=>{},uk=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class $o extends Yu{constructor(e={},n){if(super(),this.options=hb(e),this.services={},this.logger=pr,this.modules={external:[]},uk(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(_t(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=db();this.options={...i,...this.options,...hb(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?pr.init(a(this.modules.logger),this.options):pr.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=ak;const m=new ob(this.options);this.store=new rb(this.options.resources,this.options);const y=this.services;y.logger=pr,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new nk(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=a(h),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new rk(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new lk(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(v,...S)=>{this.emit(v,...S)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new $u(this.services,this.options),this.translator.on("*",(v,...S)=>{this.emit(v,...S)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Xu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=(...m)=>this.store[h](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...m)=>(this.store[h](...m),this)});const f=Go(),d=()=>{const h=(m,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(y),n(m,y)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),f}loadResources(e,n=Xu){var l,u;let i=n;const a=_t(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const f=[],d=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(y=>{y!=="cimode"&&f.indexOf(y)<0&&f.push(y)})};a?d(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>d(m)),(u=(l=this.options.preload)==null?void 0:l.forEach)==null||u.call(l,h=>d(h)),this.services.backendConnector.load(f,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(e,n,i){const a=Go();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=Xu),this.services.backendConnector.reload(e,n,l=>{a.resolve(),i(l)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&ib.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=Go();this.emit("languageChanging",e);const a=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,d)=>{d?this.isLanguageChangingTo===e&&(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve((...h)=>this.t(...h)),n&&n(f,(...h)=>this.t(...h))},u=f=>{var m,y;!e&&!f&&this.services.languageDetector&&(f=[]);const d=_t(f)?f:f&&f[0],h=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(_t(f)?[f]:f);h&&(this.language||a(h),this.translator.language||this.translator.changeLanguage(h),(y=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||y.call(m,h)),this.loadResources(h,b=>{l(b,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),i}getFixedT(e,n,i){const a=(l,u,...f)=>{let d;typeof u!="object"?d=this.options.overloadTranslationOptionHandler([l,u].concat(f)):d={...u},d.lng=d.lng||a.lng,d.lngs=d.lngs||a.lngs,d.ns=d.ns||a.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||a.keyPrefix);const h=this.options.keySeparator||".";let m;return d.keyPrefix&&Array.isArray(l)?m=l.map(y=>(typeof y=="function"&&(y=Fd(y,{...this.options,...u})),`${d.keyPrefix}${h}${y}`)):(typeof l=="function"&&(l=Fd(l,{...this.options,...u})),m=d.keyPrefix?`${d.keyPrefix}${h}${l}`:l),this.t(m,d)};return _t(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=i,a}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(f,d)=>{const h=this.services.backendConnector.state[`${f}|${d}`];return h===-1||h===0||h===2};if(n.precheck){const f=n.precheck(this,u);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,e)&&(!a||u(l,e)))}loadNamespaces(e,n){const i=Go();return this.options.ns?(_t(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=Go();_t(e)&&(e=[e]);const a=this.options.preload||[],l=e.filter(u=>a.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=a.concat(l),this.loadResources(u=>{i.resolve(),n&&n(u)}),i):(n&&n(),Promise.resolve())}dir(e){var a,l;if(e||(e=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const u=new Intl.Locale(e);if(u&&u.getTextInfo){const f=u.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((l=this.services)==null?void 0:l.languageUtils)||new ob(db());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new $o(e,n);return i.createInstance=$o.createInstance,i}cloneInstance(e={},n=Xu){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},l=new $o(a);if((e.debug!==void 0||e.prefix!==void 0)&&(l.logger=l.logger.clone(e)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},i){const f=Object.keys(this.store.data).reduce((d,h)=>(d[h]={...this.store.data[h]},d[h]=Object.keys(d[h]).reduce((m,y)=>(m[y]={...d[h][y]},m),d[h]),d),{});l.store=new rb(f,a),l.services.resourceStore=l.store}return l.translator=new $u(l.services,a),l.translator.on("*",(f,...d)=>{l.emit(f,...d)}),l.init(a,n),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const qe=$o.createInstance();qe.createInstance,qe.dir,qe.init,qe.loadResources,qe.reloadResources,qe.use,qe.changeLanguage,qe.getFixedT,qe.t,qe.exists,qe.setDefaultNamespace,qe.hasLoadedNamespace,qe.loadNamespaces,qe.loadLanguages;/*! js-cookie v3.0.5 | MIT */function Qu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}var ck={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Gd(t,e){function n(a,l,u){if(!(typeof document>"u")){u=Qu({},e,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var d in u)u[d]&&(f+="; "+d,u[d]!==!0&&(f+="="+u[d].split(";")[0]));return document.cookie=a+"="+t.write(l,a)+f}}function i(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var l=document.cookie?document.cookie.split("; "):[],u={},f=0;f<l.length;f++){var d=l[f].split("="),h=d.slice(1).join("=");try{var m=decodeURIComponent(d[0]);if(u[m]=t.read(h,m),a===m)break}catch{}}return a?u[a]:u}}return Object.create({set:n,get:i,remove:function(a,l){n(a,"",Qu({},l,{expires:-1}))},withAttributes:function(a){return Gd(this.converter,Qu({},this.attributes,a))},withConverter:function(a){return Gd(Qu({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var pb=Gd(ck,{path:"/"}),I=Ud();const Xo=It(I),fk=(t,e,n,i)=>{var l,u,f,d;const a=[n,{code:e,...i||{}}];if((u=(l=t==null?void 0:t.services)==null?void 0:l.logger)!=null&&u.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);us(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(d=(f=t==null?void 0:t.services)==null?void 0:f.logger)!=null&&d.warn?t.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},mb={},Kd=(t,e,n,i)=>{us(n)&&mb[n]||(us(n)&&(mb[n]=new Date),fk(t,e,n,i))},gb=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Yd=(t,e,n)=>{t.loadNamespaces(e,gb(t,n))},yb=(t,e,n,i)=>{if(us(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return Yd(t,n,i);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,gb(t,i))},dk=(t,e,n={})=>!e.languages||!e.languages.length?(Kd(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,t))return!1}}),us=t=>typeof t=="string",hk=t=>typeof t=="object"&&t!==null,pk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mk={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},gk=t=>mk[t];let $d={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(pk,gk)};const yk=(t={})=>{$d={...$d,...t}},bk=()=>$d;let bb;const vk=t=>{bb=t},xk=()=>bb,Sk={type:"3rdParty",init(t){yk(t.options.react),vk(t)}},wk=I.createContext();class Ek{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Tk=(t,e)=>{const n=I.useRef();return I.useEffect(()=>{n.current=t},[t,e]),n.current},vb=(t,e,n,i)=>t.getFixedT(e,n,i),Ck=(t,e,n,i)=>I.useCallback(vb(t,e,n,i),[t,e,n,i]),mr=(t,e={})=>{var B,K,j,q;const{i18n:n}=e,{i18n:i,defaultNS:a}=I.useContext(wk)||{},l=n||i||xk();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new Ek),!l){Kd(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const N=(Y,nt)=>us(nt)?nt:hk(nt)&&us(nt.defaultValue)?nt.defaultValue:Array.isArray(Y)?Y[Y.length-1]:Y,H=[N,{},!1];return H.t=N,H.i18n={},H.ready=!1,H}(B=l.options.react)!=null&&B.wait&&Kd(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...bk(),...l.options.react,...e},{useSuspense:f,keyPrefix:d}=u;let h=a||((K=l.options)==null?void 0:K.defaultNS);h=us(h)?[h]:h||["translation"],(q=(j=l.reportNamespaces).addUsedNamespaces)==null||q.call(j,h);const m=(l.isInitialized||l.initializedStoreOnce)&&h.every(N=>dk(N,l,u)),y=Ck(l,e.lng||null,u.nsMode==="fallback"?h:h[0],d),b=()=>y,v=()=>vb(l,e.lng||null,u.nsMode==="fallback"?h:h[0],d),[S,w]=I.useState(b);let C=h.join();e.lng&&(C=`${e.lng}${C}`);const _=Tk(C),L=I.useRef(!0);I.useEffect(()=>{const{bindI18n:N,bindI18nStore:H}=u;L.current=!0,!m&&!f&&(e.lng?yb(l,e.lng,h,()=>{L.current&&w(v)}):Yd(l,h,()=>{L.current&&w(v)})),m&&_&&_!==C&&L.current&&w(v);const Y=()=>{L.current&&w(v)};return N&&(l==null||l.on(N,Y)),H&&(l==null||l.store.on(H,Y)),()=>{L.current=!1,l&&N&&(N==null||N.split(" ").forEach(nt=>l.off(nt,Y))),H&&l&&H.split(" ").forEach(nt=>l.store.off(nt,Y))}},[l,C]),I.useEffect(()=>{L.current&&m&&w(b)},[l,d,m]);const R=[S,l,m];if(R.t=S,R.i18n=l,R.ready=m,m||!m&&!f)return R;throw new Promise(N=>{e.lng?yb(l,e.lng,h,()=>N()):Yd(l,h,()=>N())})},_k={bezvabot:{headerDropdown:{reloadChat:"Nový chat"},chatMessageInputForm:{placeholder:"Napiště svůj dotaz"},errors:{offline:"Offline. Připojuji zpět…",general:{title:"Něco se pokazilo",description:"Něco se pokazilo, zkuste to prosím později.",buttonReload:"Zkusit znovu"}},contactSavedWidget:{title:"Kontakt zaznamenán!",subtitle:"Děkujeme!, brzy se vám ozveme."},poweredByBezvabot:"Powered by",startChatButton:"Zahájit chat",demo:{chatSessionDebugModeSwitch:{label:"Zobrazovat v dashboardu?"}},common:{confirm:"Potvrdit"},typingIndicator:{a:"Pracuji na tom…",b:"Ještě chvilku…",c:"Přemýšlím…",d:"Už to bude…"}}},xb="bezvabot-language",Ak=["cs","en"],Ok="cs",Rk="bezvabot",kk=pb.get(xb)||"cs";qe.use(Sk).init({lng:kk,fallbackNS:Rk,supportedLngs:Ak,fallbackLng:Ok,debug:!0,interpolation:{escapeValue:!1},resources:{cs:{..._k}}}),qe.on("languageChanged",()=>{pb.set(xb,qe.language)});var oa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dk={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Nk=(_C=class{constructor(){gt(this,_i,Dk);gt(this,yg,!1)}setTimeoutProvider(t){lt(this,_i,t)}setTimeout(t,e){return A(this,_i).setTimeout(t,e)}clearTimeout(t){A(this,_i).clearTimeout(t)}setInterval(t,e){return A(this,_i).setInterval(t,e)}clearInterval(t){A(this,_i).clearInterval(t)}},_i=new WeakMap,yg=new WeakMap,_C),cs=new Nk;function Mk(t){setTimeout(t,0)}var fs=typeof window>"u"||"Deno"in globalThis;function Je(){}function Lk(t,e){return typeof t=="function"?t(e):t}function Xd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Sb(t,e){return Math.max(t+(e||0)-Date.now(),0)}function hi(t,e){return typeof t=="function"?t(e):t}function Ln(t,e){return typeof t=="function"?t(e):t}function wb(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:f}=t;if(u){if(i){if(e.queryHash!==Qd(u,e.options))return!1}else if(!Qo(e.queryKey,u))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||a&&a!==e.state.fetchStatus||l&&!l(e))}function Eb(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(ds(e.options.mutationKey)!==ds(l))return!1}else if(!Qo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Qd(t,e){return((e==null?void 0:e.queryKeyHashFn)||ds)(t)}function ds(t){return JSON.stringify(t,(e,n)=>Zd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Qo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Qo(t[n],e[n])):!1}var zk=Object.prototype.hasOwnProperty;function Tb(t,e){if(t===e)return t;const n=Cb(t)&&Cb(e);if(!n&&!(Zd(t)&&Zd(e)))return e;const a=(n?t:Object.keys(t)).length,l=n?e:Object.keys(e),u=l.length,f=n?new Array(u):{};let d=0;for(let h=0;h<u;h++){const m=n?h:l[h],y=t[m],b=e[m];if(y===b){f[m]=y,(n?h<a:zk.call(t,m))&&d++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[m]=b;continue}const v=Tb(y,b);f[m]=v,v===y&&d++}return a===u&&d===a?t:f}function Zu(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Cb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Zd(t){if(!_b(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!_b(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function _b(t){return Object.prototype.toString.call(t)==="[object Object]"}function jk(t){return new Promise(e=>{cs.setTimeout(e,t)})}function Jd(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Tb(t,e):e}function Bk(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function Ik(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var Wd=Symbol();function Ab(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Wd?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Ob(t,e){return typeof t=="function"?t(...e):!!t}var Uk=(AC=class extends oa{constructor(){super();gt(this,Ns);gt(this,Ai);gt(this,Va);lt(this,Va,e=>{if(!fs&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Ai)||this.setEventListener(A(this,Va))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Ai))==null||e.call(this),lt(this,Ai,void 0))}setEventListener(e){var n;lt(this,Va,e),(n=A(this,Ai))==null||n.call(this),lt(this,Ai,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){A(this,Ns)!==e&&(lt(this,Ns,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,Ns)=="boolean"?A(this,Ns):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ns=new WeakMap,Ai=new WeakMap,Va=new WeakMap,AC),th=new Uk;function eh(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var Pk=Mk;function qk(){let t=[],e=0,n=f=>{f()},i=f=>{f()},a=Pk;const l=f=>{e?t.push(f):a(()=>{n(f)})},u=()=>{const f=t;t=[],f.length&&a(()=>{i(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;e++;try{d=f()}finally{e--,e||u()}return d},batchCalls:f=>(...d)=>{l(()=>{f(...d)})},schedule:l,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{a=f}}}var Le=qk(),Fk=(OC=class extends oa{constructor(){super();gt(this,Ha,!0);gt(this,Oi);gt(this,Ga);lt(this,Ga,e=>{if(!fs&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){A(this,Oi)||this.setEventListener(A(this,Ga))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Oi))==null||e.call(this),lt(this,Oi,void 0))}setEventListener(e){var n;lt(this,Ga,e),(n=A(this,Oi))==null||n.call(this),lt(this,Oi,e(this.setOnline.bind(this)))}setOnline(e){A(this,Ha)!==e&&(lt(this,Ha,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return A(this,Ha)}},Ha=new WeakMap,Oi=new WeakMap,Ga=new WeakMap,OC),Ju=new Fk;function Vk(t){return Math.min(1e3*2**t,3e4)}function Rb(t){return(t??"online")==="online"?Ju.isOnline():!0}var nh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function kb(t){let e=!1,n=0,i;const a=eh(),l=()=>a.status!=="pending",u=w=>{var C;if(!l()){const _=new nh(w);b(_),(C=t.onCancel)==null||C.call(t,_)}},f=()=>{e=!0},d=()=>{e=!1},h=()=>th.isFocused()&&(t.networkMode==="always"||Ju.isOnline())&&t.canRun(),m=()=>Rb(t.networkMode)&&t.canRun(),y=w=>{l()||(i==null||i(),a.resolve(w))},b=w=>{l()||(i==null||i(),a.reject(w))},v=()=>new Promise(w=>{var C;i=_=>{(l()||h())&&w(_)},(C=t.onPause)==null||C.call(t)}).then(()=>{var w;i=void 0,l()||(w=t.onContinue)==null||w.call(t)}),S=()=>{if(l())return;let w;const C=n===0?t.initialPromise:void 0;try{w=C??t.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(y).catch(_=>{var j;if(l())return;const L=t.retry??(fs?0:3),R=t.retryDelay??Vk,B=typeof R=="function"?R(n,_):R,K=L===!0||typeof L=="number"&&n<L||typeof L=="function"&&L(n,_);if(e||!K){b(_);return}n++,(j=t.onFail)==null||j.call(t,n,_),jk(B).then(()=>h()?void 0:v()).then(()=>{e?b(_):S()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(i==null||i(),a),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?S():v().then(S),a)}}var Db=(RC=class{constructor(){gt(this,Ms)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xd(this.gcTime)&&lt(this,Ms,cs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(fs?1/0:300*1e3))}clearGcTimeout(){A(this,Ms)&&(cs.clearTimeout(A(this,Ms)),lt(this,Ms,void 0))}},Ms=new WeakMap,RC),Hk=(kC=class extends Db{constructor(e){super();gt(this,ir);gt(this,Ls);gt(this,Ka);gt(this,Fn);gt(this,zs);gt(this,Ie);gt(this,Hl);gt(this,js);lt(this,js,!1),lt(this,Hl,e.defaultOptions),this.setOptions(e.options),this.observers=[],lt(this,zs,e.client),lt(this,Fn,A(this,zs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,lt(this,Ls,Lb(this.options)),this.state=e.state??A(this,Ls),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,Ie))==null?void 0:e.promise}setOptions(e){if(this.options={...A(this,Hl),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Lb(this.options);n.data!==void 0&&(this.setState(Mb(n.data,n.dataUpdatedAt)),lt(this,Ls,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,Fn).remove(this)}setData(e,n){const i=Jd(this.state.data,e,this.options);return jt(this,ir,di).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){jt(this,ir,di).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=A(this,Ie))==null?void 0:i.promise;return(a=A(this,Ie))==null||a.cancel(e),n?n.then(Je).catch(Je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Ls))}isActive(){return this.observers.some(e=>Ln(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Sb(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ie))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ie))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,Fn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,Ie)&&(A(this,js)?A(this,Ie).cancel({revert:!0}):A(this,Ie).cancelRetry()),this.scheduleGc()),A(this,Fn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,ir,di).call(this,{type:"invalidate"})}async fetch(e,n){var d,h,m,y,b,v,S,w,C,_,L,R;if(this.state.fetchStatus!=="idle"&&((d=A(this,Ie))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Ie))return A(this,Ie).continueRetry(),A(this,Ie).promise}if(e&&this.setOptions(e),!this.options.queryFn){const B=this.observers.find(K=>K.options.queryFn);B&&this.setOptions(B.options)}const i=new AbortController,a=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(lt(this,js,!0),i.signal)})},l=()=>{const B=Ab(this.options,n),j=(()=>{const q={client:A(this,zs),queryKey:this.queryKey,meta:this.meta};return a(q),q})();return lt(this,js,!1),this.options.persister?this.options.persister(B,j,this):B(j)},f=(()=>{const B={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,zs),state:this.state,fetchFn:l};return a(B),B})();(h=this.options.behavior)==null||h.onFetch(f,this),lt(this,Ka,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=f.fetchOptions)==null?void 0:m.meta))&&jt(this,ir,di).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta}),lt(this,Ie,kb({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:B=>{B instanceof nh&&B.revert&&this.setState({...A(this,Ka),fetchStatus:"idle"}),i.abort()},onFail:(B,K)=>{jt(this,ir,di).call(this,{type:"failed",failureCount:B,error:K})},onPause:()=>{jt(this,ir,di).call(this,{type:"pause"})},onContinue:()=>{jt(this,ir,di).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const B=await A(this,Ie).start();if(B===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(B),(v=(b=A(this,Fn).config).onSuccess)==null||v.call(b,B,this),(w=(S=A(this,Fn).config).onSettled)==null||w.call(S,B,this.state.error,this),B}catch(B){if(B instanceof nh){if(B.silent)return A(this,Ie).promise;if(B.revert){if(this.state.data===void 0)throw B;return this.state.data}}throw jt(this,ir,di).call(this,{type:"error",error:B}),(_=(C=A(this,Fn).config).onError)==null||_.call(C,B,this),(R=(L=A(this,Fn).config).onSettled)==null||R.call(L,this.state.data,B,this),B}finally{this.scheduleGc()}}},Ls=new WeakMap,Ka=new WeakMap,Fn=new WeakMap,zs=new WeakMap,Ie=new WeakMap,Hl=new WeakMap,js=new WeakMap,ir=new WeakSet,di=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Nb(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Mb(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return lt(this,Ka,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,Fn).notify({query:this,type:"updated",action:e})})},kC);function Nb(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Mb(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Lb(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gk=(DC=class extends oa{constructor(e,n){super();gt(this,Zt);gt(this,hn);gt(this,Vt);gt(this,Gl);gt(this,nn);gt(this,Bs);gt(this,Ya);gt(this,Fr);gt(this,Ri);gt(this,Kl);gt(this,$a);gt(this,Xa);gt(this,Is);gt(this,Us);gt(this,ki);gt(this,Qa,new Set);this.options=n,lt(this,hn,e),lt(this,Ri,null),lt(this,Fr,eh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,Vt).addObserver(this),zb(A(this,Vt),this.options)?jt(this,Zt,Hu).call(this):this.updateResult(),jt(this,Zt,B0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rh(A(this,Vt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rh(A(this,Vt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,Zt,I0).call(this),jt(this,Zt,U0).call(this),A(this,Vt).removeObserver(this)}setOptions(e){const n=this.options,i=A(this,Vt);if(this.options=A(this,hn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,A(this,Vt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,Zt,P0).call(this),A(this,Vt).setOptions(this.options),n._defaulted&&!Zu(this.options,n)&&A(this,hn).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,Vt),observer:this});const a=this.hasListeners();a&&jb(A(this,Vt),i,this.options,n)&&jt(this,Zt,Hu).call(this),this.updateResult(),a&&(A(this,Vt)!==i||Ln(this.options.enabled,A(this,Vt))!==Ln(n.enabled,A(this,Vt))||hi(this.options.staleTime,A(this,Vt))!==hi(n.staleTime,A(this,Vt)))&&jt(this,Zt,L0).call(this);const l=jt(this,Zt,z0).call(this);a&&(A(this,Vt)!==i||Ln(this.options.enabled,A(this,Vt))!==Ln(n.enabled,A(this,Vt))||l!==A(this,ki))&&jt(this,Zt,j0).call(this,l)}getOptimisticResult(e){const n=A(this,hn).getQueryCache().build(A(this,hn),e),i=this.createResult(n,e);return Yk(this,i)&&(lt(this,nn,i),lt(this,Ya,this.options),lt(this,Bs,A(this,Vt).state)),i}getCurrentResult(){return A(this,nn)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&A(this,Fr).status==="pending"&&A(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){A(this,Qa).add(e)}getCurrentQuery(){return A(this,Vt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=A(this,hn).defaultQueryOptions(e),i=A(this,hn).getQueryCache().build(A(this,hn),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return jt(this,Zt,Hu).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,nn)))}createResult(e,n){var H;const i=A(this,Vt),a=this.options,l=A(this,nn),u=A(this,Bs),f=A(this,Ya),h=e!==i?e.state:A(this,Gl),{state:m}=e;let y={...m},b=!1,v;if(n._optimisticResults){const Y=this.hasListeners(),nt=!Y&&zb(e,n),at=Y&&jb(e,i,n,a);(nt||at)&&(y={...y,...Nb(m.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:C}=y;v=y.data;let _=!1;if(n.placeholderData!==void 0&&v===void 0&&C==="pending"){let Y;l!=null&&l.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(Y=l.data,_=!0):Y=typeof n.placeholderData=="function"?n.placeholderData((H=A(this,Xa))==null?void 0:H.state.data,A(this,Xa)):n.placeholderData,Y!==void 0&&(C="success",v=Jd(l==null?void 0:l.data,Y,n),b=!0)}if(n.select&&v!==void 0&&!_)if(l&&v===(u==null?void 0:u.data)&&n.select===A(this,Kl))v=A(this,$a);else try{lt(this,Kl,n.select),v=n.select(v),v=Jd(l==null?void 0:l.data,v,n),lt(this,$a,v),lt(this,Ri,null)}catch(Y){lt(this,Ri,Y)}A(this,Ri)&&(S=A(this,Ri),v=A(this,$a),w=Date.now(),C="error");const L=y.fetchStatus==="fetching",R=C==="pending",B=C==="error",K=R&&L,j=v!==void 0,N={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:B,isInitialLoading:K,isLoading:K,data:v,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:L,isRefetching:L&&!R,isLoadingError:B&&!j,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:B&&j,isStale:ih(e,n),refetch:this.refetch,promise:A(this,Fr),isEnabled:Ln(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Y=ft=>{N.status==="error"?ft.reject(N.error):N.data!==void 0&&ft.resolve(N.data)},nt=()=>{const ft=lt(this,Fr,N.promise=eh());Y(ft)},at=A(this,Fr);switch(at.status){case"pending":e.queryHash===i.queryHash&&Y(at);break;case"fulfilled":(N.status==="error"||N.data!==at.value)&&nt();break;case"rejected":(N.status!=="error"||N.error!==at.reason)&&nt();break}}return N}updateResult(){const e=A(this,nn),n=this.createResult(A(this,Vt),this.options);if(lt(this,Bs,A(this,Vt).state),lt(this,Ya,this.options),A(this,Bs).data!==void 0&&lt(this,Xa,A(this,Vt)),Zu(n,e))return;lt(this,nn,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!A(this,Qa).size)return!0;const u=new Set(l??A(this,Qa));return this.options.throwOnError&&u.add("error"),Object.keys(A(this,nn)).some(f=>{const d=f;return A(this,nn)[d]!==e[d]&&u.has(d)})};jt(this,Zt,LR).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,Zt,B0).call(this)}},hn=new WeakMap,Vt=new WeakMap,Gl=new WeakMap,nn=new WeakMap,Bs=new WeakMap,Ya=new WeakMap,Fr=new WeakMap,Ri=new WeakMap,Kl=new WeakMap,$a=new WeakMap,Xa=new WeakMap,Is=new WeakMap,Us=new WeakMap,ki=new WeakMap,Qa=new WeakMap,Zt=new WeakSet,Hu=function(e){jt(this,Zt,P0).call(this);let n=A(this,Vt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Je)),n},L0=function(){jt(this,Zt,I0).call(this);const e=hi(this.options.staleTime,A(this,Vt));if(fs||A(this,nn).isStale||!Xd(e))return;const i=Sb(A(this,nn).dataUpdatedAt,e)+1;lt(this,Is,cs.setTimeout(()=>{A(this,nn).isStale||this.updateResult()},i))},z0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,Vt)):this.options.refetchInterval)??!1},j0=function(e){jt(this,Zt,U0).call(this),lt(this,ki,e),!(fs||Ln(this.options.enabled,A(this,Vt))===!1||!Xd(A(this,ki))||A(this,ki)===0)&&lt(this,Us,cs.setInterval(()=>{(this.options.refetchIntervalInBackground||th.isFocused())&&jt(this,Zt,Hu).call(this)},A(this,ki)))},B0=function(){jt(this,Zt,L0).call(this),jt(this,Zt,j0).call(this,jt(this,Zt,z0).call(this))},I0=function(){A(this,Is)&&(cs.clearTimeout(A(this,Is)),lt(this,Is,void 0))},U0=function(){A(this,Us)&&(cs.clearInterval(A(this,Us)),lt(this,Us,void 0))},P0=function(){const e=A(this,hn).getQueryCache().build(A(this,hn),this.options);if(e===A(this,Vt))return;const n=A(this,Vt);lt(this,Vt,e),lt(this,Gl,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},LR=function(e){Le.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(A(this,nn))}),A(this,hn).getQueryCache().notify({query:A(this,Vt),type:"observerResultsUpdated"})})},DC);function Kk(t,e){return Ln(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function zb(t,e){return Kk(t,e)||t.state.data!==void 0&&rh(t,e,e.refetchOnMount)}function rh(t,e,n){if(Ln(e.enabled,t)!==!1&&hi(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&ih(t,e)}return!1}function jb(t,e,n,i){return(t!==e||Ln(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&ih(t,n)}function ih(t,e){return Ln(e.enabled,t)!==!1&&t.isStaleByTime(hi(e.staleTime,t))}function Yk(t,e){return!Zu(t.getCurrentResult(),e)}function Bb(t){return{onFetch:(e,n)=>{var m,y,b,v,S;const i=e.options,a=(b=(y=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,l=((v=e.state.data)==null?void 0:v.pages)||[],u=((S=e.state.data)==null?void 0:S.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let w=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(e.signal.aborted?w=!0:e.signal.addEventListener("abort",()=>{w=!0}),e.signal)})},_=Ab(e.options,e.fetchOptions),L=async(R,B,K)=>{if(w)return Promise.reject();if(B==null&&R.pages.length)return Promise.resolve(R);const q=(()=>{const nt={client:e.client,queryKey:e.queryKey,pageParam:B,direction:K?"backward":"forward",meta:e.options.meta};return C(nt),nt})(),N=await _(q),{maxPages:H}=e.options,Y=K?Ik:Bk;return{pages:Y(R.pages,N,H),pageParams:Y(R.pageParams,B,H)}};if(a&&l.length){const R=a==="backward",B=R?$k:Ib,K={pages:l,pageParams:u},j=B(i,K);f=await L(K,j,R)}else{const R=t??l.length;do{const B=d===0?u[0]??i.initialPageParam:Ib(i,f);if(d>0&&B==null)break;f=await L(f,B),d++}while(d<R)}return f};e.options.persister?e.fetchFn=()=>{var w,C;return(C=(w=e.options).persister)==null?void 0:C.call(w,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function Ib(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function $k(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Xk=(NC=class extends Db{constructor(e){super();gt(this,Cr);gt(this,Yl);gt(this,Tr);gt(this,rn);gt(this,Ps);lt(this,Yl,e.client),this.mutationId=e.mutationId,lt(this,rn,e.mutationCache),lt(this,Tr,[]),this.state=e.state||Ub(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,Tr).includes(e)||(A(this,Tr).push(e),this.clearGcTimeout(),A(this,rn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){lt(this,Tr,A(this,Tr).filter(n=>n!==e)),this.scheduleGc(),A(this,rn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,Tr).length||(this.state.status==="pending"?this.scheduleGc():A(this,rn).remove(this))}continue(){var e;return((e=A(this,Ps))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,f,d,h,m,y,b,v,S,w,C,_,L,R,B,K,j,q,N,H;const n=()=>{jt(this,Cr,os).call(this,{type:"continue"})},i={client:A(this,Yl),meta:this.options.meta,mutationKey:this.options.mutationKey};lt(this,Ps,kb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(Y,nt)=>{jt(this,Cr,os).call(this,{type:"failed",failureCount:Y,error:nt})},onPause:()=>{jt(this,Cr,os).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,rn).canRun(this)}));const a=this.state.status==="pending",l=!A(this,Ps).canStart();try{if(a)n();else{jt(this,Cr,os).call(this,{type:"pending",variables:e,isPaused:l}),await((f=(u=A(this,rn).config).onMutate)==null?void 0:f.call(u,e,this,i));const nt=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,e,i));nt!==this.state.context&&jt(this,Cr,os).call(this,{type:"pending",context:nt,variables:e,isPaused:l})}const Y=await A(this,Ps).start();return await((y=(m=A(this,rn).config).onSuccess)==null?void 0:y.call(m,Y,e,this.state.context,this,i)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,Y,e,this.state.context,i)),await((w=(S=A(this,rn).config).onSettled)==null?void 0:w.call(S,Y,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,Y,null,e,this.state.context,i)),jt(this,Cr,os).call(this,{type:"success",data:Y}),Y}catch(Y){try{throw await((R=(L=A(this,rn).config).onError)==null?void 0:R.call(L,Y,e,this.state.context,this,i)),await((K=(B=this.options).onError)==null?void 0:K.call(B,Y,e,this.state.context,i)),await((q=(j=A(this,rn).config).onSettled)==null?void 0:q.call(j,void 0,Y,this.state.variables,this.state.context,this,i)),await((H=(N=this.options).onSettled)==null?void 0:H.call(N,void 0,Y,e,this.state.context,i)),Y}finally{jt(this,Cr,os).call(this,{type:"error",error:Y})}}finally{A(this,rn).runNext(this)}}},Yl=new WeakMap,Tr=new WeakMap,rn=new WeakMap,Ps=new WeakMap,Cr=new WeakSet,os=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{A(this,Tr).forEach(i=>{i.onMutationUpdate(e)}),A(this,rn).notify({mutation:this,type:"updated",action:e})})},NC);function Ub(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qk=(MC=class extends oa{constructor(e={}){super();gt(this,Vr);gt(this,sr);gt(this,$l);this.config=e,lt(this,Vr,new Set),lt(this,sr,new Map),lt(this,$l,0)}build(e,n,i){const a=new Xk({client:e,mutationCache:this,mutationId:++Nd(this,$l)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){A(this,Vr).add(e);const n=Wu(e);if(typeof n=="string"){const i=A(this,sr).get(n);i?i.push(e):A(this,sr).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,Vr).delete(e)){const n=Wu(e);if(typeof n=="string"){const i=A(this,sr).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&A(this,sr).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Wu(e);if(typeof n=="string"){const i=A(this,sr).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=Wu(e);if(typeof n=="string"){const a=(i=A(this,sr).get(n))==null?void 0:i.find(l=>l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{A(this,Vr).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,Vr).clear(),A(this,sr).clear()})}getAll(){return Array.from(A(this,Vr))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Eb(n,i))}findAll(e={}){return this.getAll().filter(n=>Eb(e,n))}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(e.map(n=>n.continue().catch(Je))))}},Vr=new WeakMap,sr=new WeakMap,$l=new WeakMap,MC);function Wu(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Zk=(LC=class extends oa{constructor(e,n){super();gt(this,Kr);gt(this,Hr);gt(this,Di);gt(this,pn);gt(this,Gr);lt(this,Hr,e),this.setOptions(n),this.bindMethods(),jt(this,Kr,Md).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var i;const n=this.options;this.options=A(this,Hr).defaultMutationOptions(e),Zu(this.options,n)||A(this,Hr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,pn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ds(n.mutationKey)!==ds(this.options.mutationKey)?this.reset():((i=A(this,pn))==null?void 0:i.state.status)==="pending"&&A(this,pn).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=A(this,pn))==null||e.removeObserver(this)}onMutationUpdate(e){jt(this,Kr,Md).call(this),jt(this,Kr,q0).call(this,e)}getCurrentResult(){return A(this,Di)}reset(){var e;(e=A(this,pn))==null||e.removeObserver(this),lt(this,pn,void 0),jt(this,Kr,Md).call(this),jt(this,Kr,q0).call(this)}mutate(e,n){var i;return lt(this,Gr,n),(i=A(this,pn))==null||i.removeObserver(this),lt(this,pn,A(this,Hr).getMutationCache().build(A(this,Hr),this.options)),A(this,pn).addObserver(this),A(this,pn).execute(e)}},Hr=new WeakMap,Di=new WeakMap,pn=new WeakMap,Gr=new WeakMap,Kr=new WeakSet,Md=function(){var n;const e=((n=A(this,pn))==null?void 0:n.state)??Ub();lt(this,Di,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},q0=function(e){Le.batch(()=>{var n,i,a,l,u,f,d,h;if(A(this,Gr)&&this.hasListeners()){const m=A(this,Di).variables,y=A(this,Di).context,b={client:A(this,Hr),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((i=(n=A(this,Gr)).onSuccess)==null||i.call(n,e.data,m,y,b),(l=(a=A(this,Gr)).onSettled)==null||l.call(a,e.data,null,m,y,b)):(e==null?void 0:e.type)==="error"&&((f=(u=A(this,Gr)).onError)==null||f.call(u,e.error,m,y,b),(h=(d=A(this,Gr)).onSettled)==null||h.call(d,void 0,e.error,m,y,b))}this.listeners.forEach(m=>{m(A(this,Di))})})},LC),Jk=(zC=class extends oa{constructor(e={}){super();gt(this,_r);this.config=e,lt(this,_r,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Qd(a,n);let u=this.get(l);return u||(u=new Hk({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){A(this,_r).has(e.queryHash)||(A(this,_r).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,_r).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,_r).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Le.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,_r).get(e)}getAll(){return[...A(this,_r).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>wb(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>wb(e,i)):n}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_r=new WeakMap,zC),Wk=(jC=class{constructor(t={}){gt(this,ve);gt(this,Ni);gt(this,Mi);gt(this,Za);gt(this,Ja);gt(this,Li);gt(this,Wa);gt(this,to);lt(this,ve,t.queryCache||new Jk),lt(this,Ni,t.mutationCache||new Qk),lt(this,Mi,t.defaultOptions||{}),lt(this,Za,new Map),lt(this,Ja,new Map),lt(this,Li,0)}mount(){Nd(this,Li)._++,A(this,Li)===1&&(lt(this,Wa,th.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,ve).onFocus())})),lt(this,to,Ju.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,ve).onOnline())})))}unmount(){var t,e;Nd(this,Li)._--,A(this,Li)===0&&((t=A(this,Wa))==null||t.call(this),lt(this,Wa,void 0),(e=A(this,to))==null||e.call(this),lt(this,to,void 0))}isFetching(t){return A(this,ve).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Ni).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,ve).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,ve).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(hi(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return A(this,ve).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=A(this,ve).get(i.queryHash),l=a==null?void 0:a.state.data,u=Lk(e,l);if(u!==void 0)return A(this,ve).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Le.batch(()=>A(this,ve).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,ve).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,ve);Le.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,ve);return Le.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=Le.batch(()=>A(this,ve).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Je).catch(Je)}invalidateQueries(t,e={}){return Le.batch(()=>(A(this,ve).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=Le.batch(()=>A(this,ve).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Je)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Je)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,ve).build(this,e);return n.isStaleByTime(hi(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Je).catch(Je)}fetchInfiniteQuery(t){return t.behavior=Bb(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Je).catch(Je)}ensureInfiniteQueryData(t){return t.behavior=Bb(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ju.isOnline()?A(this,Ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ve)}getMutationCache(){return A(this,Ni)}getDefaultOptions(){return A(this,Mi)}setDefaultOptions(t){lt(this,Mi,t)}setQueryDefaults(t,e){A(this,Za).set(ds(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,Za).values()],n={};return e.forEach(i=>{Qo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){A(this,Ja).set(ds(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,Ja).values()],n={};return e.forEach(i=>{Qo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,Mi).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Qd(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Wd&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,Mi).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,ve).clear(),A(this,Ni).clear()}},ve=new WeakMap,Ni=new WeakMap,Mi=new WeakMap,Za=new WeakMap,Ja=new WeakMap,Li=new WeakMap,Wa=new WeakMap,to=new WeakMap,jC),Pb=I.createContext(void 0),la=t=>{const e=I.useContext(Pb);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},tD=({client:t,children:e})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),M.jsx(Pb.Provider,{value:t,children:e})),qb=I.createContext(!1),eD=()=>I.useContext(qb);qb.Provider;function nD(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rD=I.createContext(nD()),Fb=()=>I.useContext(rD),iD=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},sD=t=>{I.useEffect(()=>{t.clearReset()},[t])},aD=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||Ob(n,[t.error,i])),oD=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},lD=(t,e)=>t.isLoading&&t.isFetching&&!e,uD=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Vb=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function cD(t,e,n){var y,b,v,S,w;const i=eD(),a=Fb(),l=la(),u=l.defaultQueryOptions(t);(b=(y=l.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,u),u._optimisticResults=i?"isRestoring":"optimistic",oD(u),iD(u,a),sD(a);const f=!l.getQueryCache().get(u.queryHash),[d]=I.useState(()=>new e(l,u)),h=d.getOptimisticResult(u),m=!i&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(C=>{const _=m?d.subscribe(Le.batchCalls(C)):Je;return d.updateResult(),_},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),I.useEffect(()=>{d.setOptions(u)},[u,d]),uD(u,h))throw Vb(u,d,a);if(aD({result:h,errorResetBoundary:a,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((S=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||S.call(v,u,h),u.experimental_prefetchInRender&&!fs&&lD(h,i)){const C=f?Vb(u,d,a):(w=l.getQueryCache().get(u.queryHash))==null?void 0:w.promise;C==null||C.catch(Je).finally(()=>{d.updateResult()})}return u.notifyOnChangeProps?h:d.trackResult(h)}function tc(t,e){return cD(t,Gk)}function ec(t,e){const n=la(),[i]=I.useState(()=>new Zk(n,t));I.useEffect(()=>{i.setOptions(t)},[i,t]);const a=I.useSyncExternalStore(I.useCallback(u=>i.subscribe(Le.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=I.useCallback((u,f)=>{i.mutate(u,f).catch(Je)},[i]);if(a.error&&Ob(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}class Hb{constructor(e){this.config=e}}function Gb(t,e){return function(){return t.apply(e,arguments)}}var Kb={};const{toString:fD}=Object.prototype,{getPrototypeOf:sh}=Object,{iterator:nc,toStringTag:Yb}=Symbol,rc=(t=>e=>{const n=fD.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wn=t=>(t=t.toLowerCase(),e=>rc(e)===t),ic=t=>e=>typeof e===t,{isArray:ua}=Array,ca=ic("undefined");function Zo(t){return t!==null&&!ca(t)&&t.constructor!==null&&!ca(t.constructor)&&on(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $b=Wn("ArrayBuffer");function dD(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$b(t.buffer),e}const hD=ic("string"),on=ic("function"),Xb=ic("number"),Jo=t=>t!==null&&typeof t=="object",pD=t=>t===!0||t===!1,sc=t=>{if(rc(t)!=="object")return!1;const e=sh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Yb in t)&&!(nc in t)},mD=t=>{if(!Jo(t)||Zo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},gD=Wn("Date"),yD=Wn("File"),bD=Wn("Blob"),vD=Wn("FileList"),xD=t=>Jo(t)&&on(t.pipe),SD=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||on(t.append)&&((e=rc(t))==="formdata"||e==="object"&&on(t.toString)&&t.toString()==="[object FormData]"))},wD=Wn("URLSearchParams"),[ED,TD,CD,_D]=["ReadableStream","Request","Response","Headers"].map(Wn),AD=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),ua(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Zo(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let f;for(i=0;i<u;i++)f=l[i],e.call(null,t[f],f,t)}}function Qb(t,e){if(Zo(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zb=t=>!ca(t)&&t!==hs;function ah(){const{caseless:t,skipUndefined:e}=Zb(this)&&this||{},n={},i=(a,l)=>{const u=t&&Qb(n,l)||l;sc(n[u])&&sc(a)?n[u]=ah(n[u],a):sc(a)?n[u]=ah({},a):ua(a)?n[u]=a.slice():(!e||!ca(a))&&(n[u]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&Wo(arguments[a],i);return n}const OD=(t,e,n,{allOwnKeys:i}={})=>(Wo(e,(a,l)=>{n&&on(a)?t[l]=Gb(a,n):t[l]=a},{allOwnKeys:i}),t),RD=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),kD=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},DD=(t,e,n,i)=>{let a,l,u;const f={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)u=a[l],(!i||i(u,t,e))&&!f[u]&&(e[u]=t[u],f[u]=!0);t=n!==!1&&sh(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ND=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},MD=t=>{if(!t)return null;if(ua(t))return t;let e=t.length;if(!Xb(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},LD=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sh(Uint8Array)),zD=(t,e)=>{const i=(t&&t[nc]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},jD=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},BD=Wn("HTMLFormElement"),ID=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),Jb=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),UD=Wn("RegExp"),Wb=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Wo(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},PD=t=>{Wb(t,(e,n)=>{if(on(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(on(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qD=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return ua(t)?i(t):i(String(t).split(e)),n},FD=()=>{},VD=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function HD(t){return!!(t&&on(t.append)&&t[Yb]==="FormData"&&t[nc])}const GD=t=>{const e=new Array(10),n=(i,a)=>{if(Jo(i)){if(e.indexOf(i)>=0)return;if(Zo(i))return i;if(!("toJSON"in i)){e[a]=i;const l=ua(i)?[]:{};return Wo(i,(u,f)=>{const d=n(u,a+1);!ca(d)&&(l[f]=d)}),e[a]=void 0,l}}return i};return n(t,0)},KD=Wn("AsyncFunction"),YD=t=>t&&(Jo(t)||on(t))&&on(t.then)&&on(t.catch),tv=((t,e)=>t?setImmediate:e?((n,i)=>(hs.addEventListener("message",({source:a,data:l})=>{a===hs&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),hs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",on(hs.postMessage)),$D=typeof queueMicrotask<"u"?queueMicrotask.bind(hs):typeof Kb<"u"&&Kb.nextTick||tv,X={isArray:ua,isArrayBuffer:$b,isBuffer:Zo,isFormData:SD,isArrayBufferView:dD,isString:hD,isNumber:Xb,isBoolean:pD,isObject:Jo,isPlainObject:sc,isEmptyObject:mD,isReadableStream:ED,isRequest:TD,isResponse:CD,isHeaders:_D,isUndefined:ca,isDate:gD,isFile:yD,isBlob:bD,isRegExp:UD,isFunction:on,isStream:xD,isURLSearchParams:wD,isTypedArray:LD,isFileList:vD,forEach:Wo,merge:ah,extend:OD,trim:AD,stripBOM:RD,inherits:kD,toFlatObject:DD,kindOf:rc,kindOfTest:Wn,endsWith:ND,toArray:MD,forEachEntry:zD,matchAll:jD,isHTMLForm:BD,hasOwnProperty:Jb,hasOwnProp:Jb,reduceDescriptors:Wb,freezeMethods:PD,toObjectSet:qD,toCamelCase:ID,noop:FD,toFiniteNumber:VD,findKey:Qb,global:hs,isContextDefined:Zb,isSpecCompliantForm:HD,toJSONObject:GD,isAsyncFn:KD,isThenable:YD,setImmediate:tv,asap:$D,isIterable:t=>t!=null&&on(t[nc])};function Rt(t,e,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status?a.status:null)}X.inherits(Rt,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const ev=Rt.prototype,nv={};["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(t=>{nv[t]={value:t}}),Object.defineProperties(Rt,nv),Object.defineProperty(ev,"isAxiosError",{value:!0}),Rt.from=(t,e,n,i,a,l)=>{const u=Object.create(ev);X.toFlatObject(t,u,function(m){return m!==Error.prototype},h=>h!=="isAxiosError");const f=t&&t.message?t.message:"Error",d=e==null&&t?t.code:e;return Rt.call(u,f,d,n,i,a),t&&u.cause==null&&Object.defineProperty(u,"cause",{value:t,configurable:!0}),u.name=t&&t.name||"Error",l&&Object.assign(u,l),u};const XD=null;function oh(t){return X.isPlainObject(t)||X.isArray(t)}function rv(t){return X.endsWith(t,"[]")?t.slice(0,-2):t}function iv(t,e,n){return t?t.concat(e).map(function(a,l){return a=rv(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function QD(t){return X.isArray(t)&&!t.some(oh)}const ZD=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function ac(t,e,n){if(!X.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,C){return!X.isUndefined(C[w])});const i=n.metaTokens,a=n.visitor||m,l=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(e);if(!X.isFunction(a))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(X.isDate(S))return S.toISOString();if(X.isBoolean(S))return S.toString();if(!d&&X.isBlob(S))throw new Rt("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(S)||X.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,w,C){let _=S;if(S&&!C&&typeof S=="object"){if(X.endsWith(w,"{}"))w=i?w:w.slice(0,-2),S=JSON.stringify(S);else if(X.isArray(S)&&QD(S)||(X.isFileList(S)||X.endsWith(w,"[]"))&&(_=X.toArray(S)))return w=rv(w),_.forEach(function(R,B){!(X.isUndefined(R)||R===null)&&e.append(u===!0?iv([w],B,l):u===null?w:w+"[]",h(R))}),!1}return oh(S)?!0:(e.append(iv(C,w,l),h(S)),!1)}const y=[],b=Object.assign(ZD,{defaultVisitor:m,convertValue:h,isVisitable:oh});function v(S,w){if(!X.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+w.join("."));y.push(S),X.forEach(S,function(_,L){(!(X.isUndefined(_)||_===null)&&a.call(e,_,X.isString(L)?L.trim():L,w,b))===!0&&v(_,w?w.concat(L):[L])}),y.pop()}}if(!X.isObject(t))throw new TypeError("data must be an object");return v(t),e}function sv(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function lh(t,e){this._pairs=[],t&&ac(t,this,e)}const av=lh.prototype;av.append=function(e,n){this._pairs.push([e,n])},av.toString=function(e){const n=e?function(i){return e.call(this,i,sv)}:sv;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function JD(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ov(t,e,n){if(!e)return t;const i=n&&n.encode||JD;X.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let l;if(a?l=a(e,n):l=X.isURLSearchParams(e)?e.toString():new lh(e,n).toString(i),l){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class lv{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(i){i!==null&&e(i)})}}const uv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WD={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:lh,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},uh=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,tN=uh&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),eN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nN=uh&&window.location.href||"http://localhost",Xe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uh,hasStandardBrowserEnv:tN,hasStandardBrowserWebWorkerEnv:eN,navigator:ch,origin:nN},Symbol.toStringTag,{value:"Module"})),...WD};function rN(t,e){return ac(t,new Xe.classes.URLSearchParams,{visitor:function(n,i,a,l){return Xe.isNode&&X.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}function iN(t){return X.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sN(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function cv(t){function e(n,i,a,l){let u=n[l++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=l>=n.length;return u=!u&&X.isArray(a)?a.length:u,d?(X.hasOwnProp(a,u)?a[u]=[a[u],i]:a[u]=i,!f):((!a[u]||!X.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&X.isArray(a[u])&&(a[u]=sN(a[u])),!f)}if(X.isFormData(t)&&X.isFunction(t.entries)){const n={};return X.forEachEntry(t,(i,a)=>{e(iN(i),a,n,0)}),n}return null}function aN(t,e,n){if(X.isString(t))try{return(e||JSON.parse)(t),X.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const tl={transitional:uv,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=X.isObject(e);if(l&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return a?JSON.stringify(cv(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return rN(e,this.formSerializer).toString();if((f=X.isFileList(e))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ac(f?{"files[]":e}:e,d&&new d,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),aN(e)):e}],transformResponse:[function(e){const n=this.transitional||tl.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(i&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?Rt.from(f,Rt.ERR_BAD_RESPONSE,this,null,this.response):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],t=>{tl.headers[t]={}});const oN=X.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"]),lN=t=>{const e={};let n,i,a;return t&&t.split(`
`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||e[n]&&oN[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},fv=Symbol("internals");function el(t){return t&&String(t).trim().toLowerCase()}function oc(t){return t===!1||t==null?t:X.isArray(t)?t.map(oc):String(t)}function uN(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const cN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fh(t,e,n,i,a){if(X.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!X.isString(e)){if(X.isString(i))return e.indexOf(i)!==-1;if(X.isRegExp(i))return i.test(e)}}function fN(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function dN(t,e){const n=X.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(a,l,u){return this[i].call(this,e,a,l,u)},configurable:!0})})}let ln=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(f,d,h){const m=el(d);if(!m)throw new Error("header name must be a non-empty string");const y=X.findKey(a,m);(!y||a[y]===void 0||h===!0||h===void 0&&a[y]!==!1)&&(a[y||d]=oc(f))}const u=(f,d)=>X.forEach(f,(h,m)=>l(h,m,d));if(X.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(X.isString(e)&&(e=e.trim())&&!cN(e))u(lN(e),n);else if(X.isObject(e)&&X.isIterable(e)){let f={},d,h;for(const m of e){if(!X.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[h=m[0]]=(d=f[h])?X.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}u(f,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=el(e),e){const i=X.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return uN(a);if(X.isFunction(n))return n.call(this,a,i);if(X.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=el(e),e){const i=X.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||fh(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=el(u),u){const f=X.findKey(i,u);f&&(!n||fh(i,i[f],f,n))&&(delete i[f],a=!0)}}return X.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||fh(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return X.forEach(this,(a,l)=>{const u=X.findKey(i,l);if(u){n[u]=oc(a),delete n[l];return}const f=e?fN(l):String(l).trim();f!==l&&delete n[l],n[f]=oc(a),i[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return X.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&X.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[fv]=this[fv]={accessors:{}}).accessors,a=this.prototype;function l(u){const f=el(u);i[f]||(dN(a,u),i[f]=!0)}return X.isArray(e)?e.forEach(l):l(e),this}};ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(ln.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),X.freezeMethods(ln);function dh(t,e){const n=this||tl,i=e||n,a=ln.from(i.headers);let l=i.data;return X.forEach(t,function(f){l=f.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function dv(t){return!!(t&&t.__CANCEL__)}function fa(t,e,n){Rt.call(this,t??"canceled",Rt.ERR_CANCELED,e,n),this.name="CanceledError"}X.inherits(fa,Rt,{__CANCEL__:!0});function hv(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hN(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pN(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,u;return e=e!==void 0?e:1e3,function(d){const h=Date.now(),m=i[l];u||(u=h),n[a]=d,i[a]=h;let y=l,b=0;for(;y!==a;)b+=n[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),h-u<e)return;const v=m&&h-m;return v?Math.round(b*1e3/v):void 0}}function mN(t,e){let n=0,i=1e3/e,a,l;const u=(h,m=Date.now())=>{n=m,a=null,l&&(clearTimeout(l),l=null),t(...h)};return[(...h)=>{const m=Date.now(),y=m-n;y>=i?u(h,m):(a=h,l||(l=setTimeout(()=>{l=null,u(a)},i-y)))},()=>a&&u(a)]}const lc=(t,e,n=3)=>{let i=0;const a=pN(50,250);return mN(l=>{const u=l.loaded,f=l.lengthComputable?l.total:void 0,d=u-i,h=a(d),m=u<=f;i=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&m?(f-u)/h:void 0,event:l,lengthComputable:f!=null,[e?"download":"upload"]:!0};t(y)},n)},pv=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},mv=t=>(...e)=>X.asap(()=>t(...e)),gN=Xe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Xe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,yN=Xe.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const f=[`${t}=${encodeURIComponent(e)}`];X.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),X.isString(i)&&f.push(`path=${i}`),X.isString(a)&&f.push(`domain=${a}`),l===!0&&f.push("secure"),X.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bN(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vN(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function gv(t,e,n){let i=!bN(e);return t&&(i||n==!1)?vN(t,e):e}const yv=t=>t instanceof ln?{...t}:t;function ps(t,e){e=e||{};const n={};function i(h,m,y,b){return X.isPlainObject(h)&&X.isPlainObject(m)?X.merge.call({caseless:b},h,m):X.isPlainObject(m)?X.merge({},m):X.isArray(m)?m.slice():m}function a(h,m,y,b){if(X.isUndefined(m)){if(!X.isUndefined(h))return i(void 0,h,y,b)}else return i(h,m,y,b)}function l(h,m){if(!X.isUndefined(m))return i(void 0,m)}function u(h,m){if(X.isUndefined(m)){if(!X.isUndefined(h))return i(void 0,h)}else return i(void 0,m)}function f(h,m,y){if(y in e)return i(h,m);if(y in t)return i(void 0,h)}const d={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,m,y)=>a(yv(h),yv(m),y,!0)};return X.forEach(Object.keys({...t,...e}),function(m){const y=d[m]||a,b=y(t[m],e[m],m);X.isUndefined(b)&&y!==f||(n[m]=b)}),n}const bv=t=>{const e=ps({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:l,headers:u,auth:f}=e;if(e.headers=u=ln.from(u),e.url=ov(gv(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),X.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(X.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([m,y])=>{h.includes(m.toLowerCase())&&u.set(m,y)})}}if(Xe.hasStandardBrowserEnv&&(i&&X.isFunction(i)&&(i=i(e)),i||i!==!1&&gN(e.url))){const d=a&&l&&yN.read(l);d&&u.set(a,d)}return e},xN=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,i){const a=bv(t);let l=a.data;const u=ln.from(a.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=a,m,y,b,v,S;function w(){v&&v(),S&&S(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function _(){if(!C)return;const R=ln.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),K={data:!f||f==="text"||f==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:R,config:t,request:C};hv(function(q){n(q),w()},function(q){i(q),w()},K),C=null}"onloadend"in C?C.onloadend=_:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(_)},C.onabort=function(){C&&(i(new Rt("Request aborted",Rt.ECONNABORTED,t,C)),C=null)},C.onerror=function(B){const K=B&&B.message?B.message:"Network Error",j=new Rt(K,Rt.ERR_NETWORK,t,C);j.event=B||null,i(j),C=null},C.ontimeout=function(){let B=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const K=a.transitional||uv;a.timeoutErrorMessage&&(B=a.timeoutErrorMessage),i(new Rt(B,K.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,t,C)),C=null},l===void 0&&u.setContentType(null),"setRequestHeader"in C&&X.forEach(u.toJSON(),function(B,K){C.setRequestHeader(K,B)}),X.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),f&&f!=="json"&&(C.responseType=a.responseType),h&&([b,S]=lc(h,!0),C.addEventListener("progress",b)),d&&C.upload&&([y,v]=lc(d),C.upload.addEventListener("progress",y),C.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(m=R=>{C&&(i(!R||R.type?new fa(null,t,C):R),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const L=hN(a.url);if(L&&Xe.protocols.indexOf(L)===-1){i(new Rt("Unsupported protocol "+L+":",Rt.ERR_BAD_REQUEST,t));return}C.send(l||null)})},SN=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,a;const l=function(h){if(!a){a=!0,f();const m=h instanceof Error?h:this.reason;i.abort(m instanceof Rt?m:new fa(m instanceof Error?m.message:m))}};let u=e&&setTimeout(()=>{u=null,l(new Rt(`timeout ${e} of ms exceeded`,Rt.ETIMEDOUT))},e);const f=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),t=null)};t.forEach(h=>h.addEventListener("abort",l));const{signal:d}=i;return d.unsubscribe=()=>X.asap(f),d}},wN=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},EN=async function*(t,e){for await(const n of TN(t))yield*wN(n,e)},TN=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},vv=(t,e,n,i)=>{const a=EN(t,e);let l=0,u,f=d=>{u||(u=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await a.next();if(h){f(),d.close();return}let y=m.byteLength;if(n){let b=l+=y;n(b)}d.enqueue(new Uint8Array(m))}catch(h){throw f(h),h}},cancel(d){return f(d),a.return()}},{highWaterMark:2})},xv=64*1024,{isFunction:uc}=X,CN=(({Request:t,Response:e})=>({Request:t,Response:e}))(X.global),{ReadableStream:Sv,TextEncoder:wv}=X.global,Ev=(t,...e)=>{try{return!!t(...e)}catch{return!1}},_N=t=>{t=X.merge.call({skipUndefined:!0},CN,t);const{fetch:e,Request:n,Response:i}=t,a=e?uc(e):typeof fetch=="function",l=uc(n),u=uc(i);if(!a)return!1;const f=a&&uc(Sv),d=a&&(typeof wv=="function"?(S=>w=>S.encode(w))(new wv):async S=>new Uint8Array(await new n(S).arrayBuffer())),h=l&&f&&Ev(()=>{let S=!1;const w=new n(Xe.origin,{body:new Sv,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!w}),m=u&&f&&Ev(()=>X.isReadableStream(new i("").body)),y={stream:m&&(S=>S.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(w,C)=>{let _=w&&w[S];if(_)return _.call(w);throw new Rt(`Response type '${S}' is not supported`,Rt.ERR_NOT_SUPPORT,C)})});const b=async S=>{if(S==null)return 0;if(X.isBlob(S))return S.size;if(X.isSpecCompliantForm(S))return(await new n(Xe.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(X.isArrayBufferView(S)||X.isArrayBuffer(S))return S.byteLength;if(X.isURLSearchParams(S)&&(S=S+""),X.isString(S))return(await d(S)).byteLength},v=async(S,w)=>{const C=X.toFiniteNumber(S.getContentLength());return C??b(w)};return async S=>{let{url:w,method:C,data:_,signal:L,cancelToken:R,timeout:B,onDownloadProgress:K,onUploadProgress:j,responseType:q,headers:N,withCredentials:H="same-origin",fetchOptions:Y}=bv(S),nt=e||fetch;q=q?(q+"").toLowerCase():"text";let at=SN([L,R&&R.toAbortSignal()],B),ft=null;const st=at&&at.unsubscribe&&(()=>{at.unsubscribe()});let it;try{if(j&&h&&C!=="get"&&C!=="head"&&(it=await v(N,_))!==0){let xt=new n(w,{method:"POST",body:_,duplex:"half"}),D;if(X.isFormData(_)&&(D=xt.headers.get("content-type"))&&N.setContentType(D),xt.body){const[E,W]=pv(it,lc(mv(j)));_=vv(xt.body,xv,E,W)}}X.isString(H)||(H=H?"include":"omit");const Z=l&&"credentials"in n.prototype,G={...Y,signal:at,method:C.toUpperCase(),headers:N.normalize().toJSON(),body:_,duplex:"half",credentials:Z?H:void 0};ft=l&&new n(w,G);let P=await(l?nt(ft,Y):nt(w,G));const dt=m&&(q==="stream"||q==="response");if(m&&(K||dt&&st)){const xt={};["status","statusText","headers"].forEach(ct=>{xt[ct]=P[ct]});const D=X.toFiniteNumber(P.headers.get("content-length")),[E,W]=K&&pv(D,lc(mv(K),!0))||[];P=new i(vv(P.body,xv,E,()=>{W&&W(),st&&st()}),xt)}q=q||"text";let O=await y[X.findKey(y,q)||"text"](P,S);return!dt&&st&&st(),await new Promise((xt,D)=>{hv(xt,D,{data:O,headers:ln.from(P.headers),status:P.status,statusText:P.statusText,config:S,request:ft})})}catch(Z){throw st&&st(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,S,ft),{cause:Z.cause||Z}):Rt.from(Z,Z&&Z.code,S,ft)}}},AN=new Map,Tv=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let u=l.length,f=u,d,h,m=AN;for(;f--;)d=l[f],h=m.get(d),h===void 0&&m.set(d,h=f?new Map:_N(e)),m=h;return h};Tv();const hh={http:XD,xhr:xN,fetch:{get:Tv}};X.forEach(hh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Cv=t=>`- ${t}`,ON=t=>X.isFunction(t)||t===null||t===!1;function RN(t,e){t=X.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let u=0;u<n;u++){i=t[u];let f;if(a=i,!ON(i)&&(a=hh[(f=String(i)).toLowerCase()],a===void 0))throw new Rt(`Unknown adapter '${f}'`);if(a&&(X.isFunction(a)||(a=a.get(e))))break;l[f||"#"+u]=a}if(!a){const u=Object.entries(l).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(Cv).join(`
`):" "+Cv(u[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const _v={getAdapter:RN,adapters:hh};function ph(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fa(null,t)}function Av(t){return ph(t),t.headers=ln.from(t.headers),t.data=dh.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),_v.getAdapter(t.adapter||tl.adapter,t)(t).then(function(i){return ph(t),i.data=dh.call(t,t.transformResponse,i),i.headers=ln.from(i.headers),i},function(i){return dv(i)||(ph(t),i&&i.response&&(i.response.data=dh.call(t,t.transformResponse,i.response),i.response.headers=ln.from(i.response.headers))),Promise.reject(i)})}const Ov="1.13.2",cc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{cc[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Rv={};cc.transitional=function(e,n,i){function a(l,u){return"[Axios v"+Ov+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,f)=>{if(e===!1)throw new Rt(a(u," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!Rv[u]&&(Rv[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,f):!0}},cc.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function kN(t,e,n){if(typeof t!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],u=e[l];if(u){const f=t[l],d=f===void 0||u(f,l,t);if(d!==!0)throw new Rt("option "+l+" must be "+d,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+l,Rt.ERR_BAD_OPTION)}}const fc={assertOptions:kN,validators:cc},gr=fc.validators;let ms=class{constructor(e){this.defaults=e||{},this.interceptors={request:new lv,response:new lv}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+l):i.stack=l}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ps(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&fc.assertOptions(i,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},!1),a!=null&&(X.isFunction(a)?n.paramsSerializer={serialize:a}:fc.assertOptions(a,{encode:gr.function,serialize:gr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),fc.assertOptions(n,{baseUrl:gr.spelling("baseURL"),withXsrfToken:gr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&X.merge(l.common,l[n.method]);l&&X.forEach(["delete","get","head","post","put","patch","common"],S=>{delete l[S]}),n.headers=ln.concat(u,l);const f=[];let d=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(d=d&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});const h=[];this.interceptors.response.forEach(function(w){h.push(w.fulfilled,w.rejected)});let m,y=0,b;if(!d){const S=[Av.bind(this),void 0];for(S.unshift(...f),S.push(...h),b=S.length,m=Promise.resolve(n);y<b;)m=m.then(S[y++],S[y++]);return m}b=f.length;let v=n;for(;y<b;){const S=f[y++],w=f[y++];try{v=S(v)}catch(C){w.call(this,C);break}}try{m=Av.call(this,v)}catch(S){return Promise.reject(S)}for(y=0,b=h.length;y<b;)m=m.then(h[y++],h[y++]);return m}getUri(e){e=ps(this.defaults,e);const n=gv(e.baseURL,e.url,e.allowAbsoluteUrls);return ov(n,e.params,e.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(e){ms.prototype[e]=function(n,i){return this.request(ps(i||{},{method:e,url:n,data:(i||{}).data}))}}),X.forEach(["post","put","patch"],function(e){function n(i){return function(l,u,f){return this.request(ps(f||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}ms.prototype[e]=n(),ms.prototype[e+"Form"]=n(!0)});let DN=class zR{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const u=new Promise(f=>{i.subscribe(f),l=f}).then(a);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,f){i.reason||(i.reason=new fa(l,u,f),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new zR(function(a){e=a}),cancel:e}}};function NN(t){return function(n){return t.apply(null,n)}}function MN(t){return X.isObject(t)&&t.isAxiosError===!0}const mh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mh).forEach(([t,e])=>{mh[e]=t});function kv(t){const e=new ms(t),n=Gb(ms.prototype.request,e);return X.extend(n,ms.prototype,e,{allOwnKeys:!0}),X.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return kv(ps(t,a))},n}const me=kv(tl);me.Axios=ms,me.CanceledError=fa,me.CancelToken=DN,me.isCancel=dv,me.VERSION=Ov,me.toFormData=ac,me.AxiosError=Rt,me.Cancel=me.CanceledError,me.all=function(e){return Promise.all(e)},me.spread=NN,me.isAxiosError=MN,me.mergeConfig=ps,me.AxiosHeaders=ln,me.formToJSON=t=>cv(X.isHTMLForm(t)?new FormData(t):t),me.getAdapter=_v.getAdapter,me.HttpStatusCode=mh,me.default=me;const{Axios:x7,AxiosError:S7,CanceledError:w7,isCancel:E7,CancelToken:T7,VERSION:C7,all:_7,Cancel:A7,isAxiosError:O7,spread:R7,toFormData:k7,AxiosHeaders:D7,HttpStatusCode:N7,formToJSON:M7,getAdapter:L7,mergeConfig:z7}=me;var gh,Dv;function LN(){return Dv||(Dv=1,gh=typeof self=="object"?self.FormData:window.FormData),gh}var zN=LN();const Nv=It(zN);class Mv extends Error{constructor(n,i,a){super(a);Jt(this,"url");Jt(this,"status");Jt(this,"statusText");Jt(this,"body");Jt(this,"request");this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=n}}class jN extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class BN{constructor(e){gt(this,Ar);gt(this,Or);gt(this,ar);gt(this,zi);gt(this,qs);gt(this,eo);gt(this,ji);lt(this,Ar,!1),lt(this,Or,!1),lt(this,ar,!1),lt(this,zi,[]),lt(this,qs,new Promise((n,i)=>{lt(this,eo,n),lt(this,ji,i);const a=f=>{A(this,Ar)||A(this,Or)||A(this,ar)||(lt(this,Ar,!0),A(this,eo)&&A(this,eo).call(this,f))},l=f=>{A(this,Ar)||A(this,Or)||A(this,ar)||(lt(this,Or,!0),A(this,ji)&&A(this,ji).call(this,f))},u=f=>{A(this,Ar)||A(this,Or)||A(this,ar)||A(this,zi).push(f)};return Object.defineProperty(u,"isResolved",{get:()=>A(this,Ar)}),Object.defineProperty(u,"isRejected",{get:()=>A(this,Or)}),Object.defineProperty(u,"isCancelled",{get:()=>A(this,ar)}),e(a,l,u)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,n){return A(this,qs).then(e,n)}catch(e){return A(this,qs).catch(e)}finally(e){return A(this,qs).finally(e)}cancel(){if(!(A(this,Ar)||A(this,Or)||A(this,ar))){if(lt(this,ar,!0),A(this,zi).length)try{for(const e of A(this,zi))e()}catch(e){console.warn("Cancellation threw an error",e);return}A(this,zi).length=0,A(this,ji)&&A(this,ji).call(this,new jN("Request aborted"))}}get isCancelled(){return A(this,ar)}}Ar=new WeakMap,Or=new WeakMap,ar=new WeakMap,zi=new WeakMap,qs=new WeakMap,eo=new WeakMap,ji=new WeakMap;const yh=t=>t!=null,dc=t=>typeof t=="string",bh=t=>dc(t)&&t!=="",Lv=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),IN=t=>t instanceof Nv,UN=t=>t>=200&&t<300,PN=t=>{try{return btoa(t)}catch{return Buffer.from(t).toString("base64")}},qN=t=>{const e=[],n=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},i=(a,l)=>{yh(l)&&(Array.isArray(l)?l.forEach(u=>{i(a,u)}):typeof l=="object"?Object.entries(l).forEach(([u,f])=>{i(`${a}[${u}]`,f)}):n(a,l))};return Object.entries(t).forEach(([a,l])=>{i(a,l)}),e.length>0?`?${e.join("&")}`:""},FN=(t,e)=>{const n=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,u)=>{var f;return(f=e.path)!=null&&f.hasOwnProperty(u)?n(String(e.path[u])):l}),a=`${t.BASE}${i}`;return e.query?`${a}${qN(e.query)}`:a},VN=t=>{if(t.formData){const e=new Nv,n=(i,a)=>{dc(a)||Lv(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(t.formData).filter(([i,a])=>yh(a)).forEach(([i,a])=>{Array.isArray(a)?a.forEach(l=>n(i,l)):n(i,a)}),e}},hc=async(t,e)=>typeof e=="function"?e(t):e,HN=async(t,e,n)=>{const[i,a,l,u]=await Promise.all([hc(e,t.TOKEN),hc(e,t.USERNAME),hc(e,t.PASSWORD),hc(e,t.HEADERS)]),f=typeof(n==null?void 0:n.getHeaders)=="function"&&(n==null?void 0:n.getHeaders())||{},d=Object.entries({Accept:"application/json",...u,...e.headers,...f}).filter(([h,m])=>yh(m)).reduce((h,[m,y])=>({...h,[m]:String(y)}),{});if(bh(i)&&(d.Authorization=`Bearer ${i}`),bh(a)&&bh(l)){const h=PN(`${a}:${l}`);d.Authorization=`Basic ${h}`}return e.body!==void 0&&(e.mediaType?d["Content-Type"]=e.mediaType:Lv(e.body)?d["Content-Type"]=e.body.type||"application/octet-stream":dc(e.body)?d["Content-Type"]="text/plain":IN(e.body)||(d["Content-Type"]="application/json")),d},GN=t=>{if(t.body)return t.body},KN=async(t,e,n,i,a,l,u,f)=>{const d=me.CancelToken.source(),h={url:n,headers:l,data:i??a,method:e.method,withCredentials:t.WITH_CREDENTIALS,withXSRFToken:t.CREDENTIALS==="include"?t.WITH_CREDENTIALS:!1,cancelToken:d.token};u(()=>d.cancel("The user aborted a request."));try{return await f.request(h)}catch(m){const y=m;if(y.response)return y.response;throw m}},YN=(t,e)=>{if(e){const n=t.headers[e];if(dc(n))return n}},$N=t=>{if(t.status!==204)return t.data},XN=(t,e)=>{const i={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...t.errors}[e.status];if(i)throw new Mv(t,e,i);if(!e.ok){const a=e.status??"unknown",l=e.statusText??"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new Mv(t,e,`Generic Error: status: ${a}; status text: ${l}; body: ${u}`)}},zv=(t,e,n=me)=>new BN(async(i,a,l)=>{try{const u=FN(t,e),f=VN(e),d=GN(e),h=await HN(t,e,f);if(!l.isCancelled){const m=await KN(t,e,u,d,f,h,l,n),y=$N(m),b=YN(m,e.responseHeader),v={url:u,ok:UN(m.status),status:m.status,statusText:m.statusText,body:b??y};XN(e,v),i(v.body)}}catch(u){a(u)}});class QN extends Hb{constructor(e){super(e)}request(e){return zv(this.config,e)}}class ZN{constructor(e){this.httpRequest=e}adminChatSessionsControllerGetById({id:e}){return this.httpRequest.request({method:"GET",url:"/chat-sessions/admin/{id}",path:{id:e}})}adminChatSessionsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/chat-sessions/admin/{id}",path:{id:e},errors:{403:"Access denied",404:"Chat session not found"}})}adminChatSessionsControllerGetByTenantId({id:e,page:n=1,limit:i=10}){return this.httpRequest.request({method:"GET",url:"/chat-sessions/admin/byTenantId/{id}",path:{id:e},query:{page:n,limit:i}})}}class JN{constructor(e){this.httpRequest=e}adminFlowDefinitionsControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/flow-definitions",path:{tenantId:e},body:n,mediaType:"application/json",errors:{409:"Code name already exists"}})}adminFlowDefinitionsControllerFindAll({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/flow-definitions",path:{tenantId:e}})}adminFlowDefinitionsControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-definitions/{id}",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-definitions/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Code name already exists"}})}adminFlowDefinitionsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-definitions/{id}",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerPublish({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/publish",path:{id:e},errors:{404:"Flow definition not found",422:"Flow validation failed"}})}adminFlowDefinitionsControllerUnpublish({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/unpublish",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerArchive({id:e}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/archive",path:{id:e},errors:{404:"Flow definition not found"}})}adminFlowDefinitionsControllerDuplicateToTenant({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/duplicate",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Code name already exists on target tenant"}})}adminFlowDefinitionsControllerCreateNode({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-definitions/{id}/nodes",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Flow definition not found",409:"Conflict (e.g., duplicate START node)"}})}adminFlowDefinitionsControllerFindNodes({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-definitions/{id}/nodes",path:{id:e}})}adminFlowDefinitionsControllerFindNode({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-nodes/{id}",path:{id:e},errors:{404:"Node not found"}})}adminFlowDefinitionsControllerUpdateNode({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Node not found"}})}adminFlowDefinitionsControllerRemoveNode({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{id}",path:{id:e},errors:{404:"Node not found"}})}adminFlowDefinitionsControllerCreateTransition({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/transitions",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid transition (e.g., from END node)",404:"Node not found"}})}adminFlowDefinitionsControllerFindTransitions({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/{id}/transitions",path:{id:e}})}adminFlowDefinitionsControllerFindTransition({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/flow-transitions/{id}",path:{id:e},errors:{404:"Transition not found"}})}adminFlowDefinitionsControllerUpdateTransition({id:e,requestBody:n}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-transitions/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid update (e.g., to START node)",404:"Transition not found"}})}adminFlowDefinitionsControllerRemoveTransition({id:e}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-transitions/{id}",path:{id:e},errors:{404:"Transition not found"}})}adminFlowDefinitionsControllerCreateCategory({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/categories",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid (e.g., node is not a CLASSIFY type)",404:"Node not found"}})}adminFlowDefinitionsControllerUpdateCategory({id:e,nodeId:n,requestBody:i}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{nodeId}/categories/{id}",path:{id:e,nodeId:n},body:i,mediaType:"application/json",errors:{404:"Category not found"}})}adminFlowDefinitionsControllerRemoveCategory({id:e,nodeId:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{nodeId}/categories/{id}",path:{id:e,nodeId:n},errors:{404:"Category not found"}})}adminFlowDefinitionsControllerCreateCondition({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/flow-nodes/{id}/conditions",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Invalid (e.g., node is not an IFELSE type)",404:"Node not found"}})}adminFlowDefinitionsControllerUpdateCondition({id:e,nodeId:n,requestBody:i}){return this.httpRequest.request({method:"PUT",url:"/admin/flow-nodes/{nodeId}/conditions/{id}",path:{id:e,nodeId:n},body:i,mediaType:"application/json",errors:{404:"Condition not found"}})}adminFlowDefinitionsControllerRemoveCondition({id:e,nodeId:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/flow-nodes/{nodeId}/conditions/{id}",path:{id:e,nodeId:n},errors:{404:"Condition not found"}})}}class WN{constructor(e){this.httpRequest=e}adminTenantsControllerSetProductAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{id}/product-agent",path:{id:e},body:n,mediaType:"application/json"})}adminTenantsControllerGetProductAgent({id:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{id}/product-agent",path:{id:e},errors:{404:"Tenant not found or no product agent set."}})}}class tM{constructor(e){this.httpRequest=e}agentsControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/agents/{id}",path:{id:e},errors:{401:"Unauthorized.",404:"Agent not found."}})}agentsControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/agents/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",404:"Agent not found."}})}agentsControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/agents/{id}",path:{id:e},errors:{401:"Unauthorized.",404:"Agent not found."}})}}class eM{constructor(e){this.httpRequest=e}agentTemplatesControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/agent-templates",body:e,mediaType:"application/json"})}agentTemplatesControllerFindAll(){return this.httpRequest.request({method:"GET",url:"/agent-templates"})}agentTemplatesControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/agent-templates/{id}",path:{id:e},body:n,mediaType:"application/json"})}agentTemplatesControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/agent-templates/{id}/private",path:{id:e}})}agentTemplatesControllerGetAgentTemplateTools({id:e}){return this.httpRequest.request({method:"GET",url:"/agent-templates/{id}/tools",path:{id:e}})}agentTemplatesControllerAddTool({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/agent-templates/{id}/tools",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized."}})}agentTemplatesControllerRemoveTool({id:e,requestBody:n}){return this.httpRequest.request({method:"DELETE",url:"/agent-templates/{id}/tools",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized."}})}}class nM{constructor(e){this.httpRequest=e}agentToolsControllerGetAvailableTools(){return this.httpRequest.request({method:"GET",url:"/agent-tools"})}}class rM{constructor(e){this.httpRequest=e}appControllerGetHello(){return this.httpRequest.request({method:"GET",url:"/"})}}class iM{constructor(e){this.httpRequest=e}authControllerLogin({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/email/login",body:e,mediaType:"application/json"})}authControllerRefresh(){return this.httpRequest.request({method:"POST",url:"/auth/refresh"})}authControllerLogout(){return this.httpRequest.request({method:"POST",url:"/auth/logout"})}authControllerMe(){return this.httpRequest.request({method:"GET",url:"/auth/me"})}authControllerUpdateMe({requestBody:e}){return this.httpRequest.request({method:"PUT",url:"/auth/me",body:e,mediaType:"application/json"})}authControllerForgotPassword({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/forgot/password",body:e,mediaType:"application/json"})}authControllerResetPassword({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/reset/password",body:e,mediaType:"application/json"})}authControllerRegisterFromInvitation({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/auth/register-from-invitation",body:e,mediaType:"application/json",errors:{400:"Bad request - invitation already accepted or invalid data",404:"Tenant invitation not found",409:"User with this email already exists"}})}}class sM{constructor(e){this.httpRequest=e}chatSessionsControllerGetAiResponse({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions",body:e,mediaType:"application/json"})}chatSessionsControllerInit({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions/init",body:e,mediaType:"application/json"})}chatSessionsControllerGetBySession(){return this.httpRequest.request({method:"GET",url:"/chat-sessions/current"})}chatSessionsControllerPutCurrent({requestBody:e}){return this.httpRequest.request({method:"PUT",url:"/chat-sessions/current",body:e,mediaType:"application/json"})}chatSessionsControllerResolveFromMessageTemplates({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/chat-sessions/resolveFromMessageTemplates",body:e,mediaType:"application/json"})}chatSessionsControllerGetUnusedMessageTemplates(){return this.httpRequest.request({method:"GET",url:"/chat-sessions/unusedMessageTemplates"})}}class aM{constructor(e){this.httpRequest=e}crawlKnowledgeBasesControllerFindByTenantId({id:e}){return this.httpRequest.request({method:"GET",url:"/knowledge-bases/tenant/{id}",path:{id:e},errors:{404:"Knowledge base not found."}})}crawlKnowledgeBasesControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/knowledge-bases/{id}",path:{id:e},errors:{404:"Knowledge base not found."}})}crawlKnowledgeBasesControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/knowledge-bases/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Knowledge base not found."}})}crawlKnowledgeBasesControllerCrawlAndGenerateKnowledgeBase({id:e}){return this.httpRequest.request({method:"GET",url:"/knowledge-bases/{id}/generateCrawlKnowledgeBase",path:{id:e},errors:{404:"Knowledge base not found."}})}}class oM{constructor(e){this.httpRequest=e}externalApiControllerGetUnprocessedLeadsV1(){return this.httpRequest.request({method:"GET",url:"/v1/leads/unprocessed/tenant/{id}"})}externalApiControllerMarkLeadAsProcessedV1({id:e}){return this.httpRequest.request({method:"POST",url:"/v1/leads/{id}/markAsProcessed",path:{id:e},errors:{403:"Access to this lead denied.",404:"Lead not found."}})}}class lM{constructor(e){this.httpRequest=e}fileControllerUpload(){return this.httpRequest.request({method:"POST",url:"/files/upload"})}fileControllerGetMetadata({id:e}){return this.httpRequest.request({method:"GET",url:"/files/{id}/metadata",path:{id:e}})}fileControllerDownloadFile({id:e}){return this.httpRequest.request({method:"GET",url:"/files/{id}/download",path:{id:e}})}}class uM{constructor(e){this.httpRequest=e}flowToolsControllerListTools(){return this.httpRequest.request({method:"GET",url:"/admin/flow-tools"})}}class cM{constructor(e){this.httpRequest=e}productsControllerDuplicate({id:e}){return this.httpRequest.request({method:"POST",url:"/products/{id}/duplicate",path:{id:e}})}productsControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/products/tenant/{tenantId}",path:{tenantId:e},body:n,mediaType:"application/json"})}productsControllerFindAll({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/products/tenant/{tenantId}",path:{tenantId:e}})}productsControllerGetProductByDetailUrl({tenantId:e,detailUrl:n}){return this.httpRequest.request({method:"GET",url:"/products/public/tenant/{tenantId}/by-detail-url",path:{tenantId:e},query:{detailUrl:n}})}productsControllerFindOne({tenantId:e,id:n}){return this.httpRequest.request({method:"GET",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n}})}productsControllerUpdate({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}productsControllerRemove({tenantId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/products/tenant/{tenantId}/{id}",path:{tenantId:e,id:n}})}}class fM{constructor(e){this.httpRequest=e}promptBlocksControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/prompt-blocks",body:e,mediaType:"application/json",errors:{400:"Bad request.",401:"Unauthorized.",403:"Forbidden. System admin access required.",409:"A prompt block with this name already exists."}})}promptBlocksControllerFindAll(){return this.httpRequest.request({method:"GET",url:"/prompt-blocks",errors:{401:"Unauthorized.",403:"Forbidden. System admin access required."}})}promptBlocksControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/prompt-blocks/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found."}})}promptBlocksControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/prompt-blocks/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad request.",401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found.",409:"A prompt block with this name already exists."}})}promptBlocksControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/prompt-blocks/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden. System admin access required.",404:"Prompt block not found."}})}}class dM{constructor(e){this.httpRequest=e}questionAnswersControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/question-answers",body:e,mediaType:"application/json",errors:{400:"Bad Request.",404:"Tenant not found."}})}questionAnswersControllerFindByTenantId({id:e}){return this.httpRequest.request({method:"GET",url:"/question-answers/tenant/{id}",path:{id:e}})}questionAnswersControllerFindOne({id:e}){return this.httpRequest.request({method:"GET",url:"/question-answers/{id}",path:{id:e},errors:{404:"Question-answer not found."}})}questionAnswersControllerUpdate({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/question-answers/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{404:"Question-answer not found."}})}questionAnswersControllerRemove({id:e}){return this.httpRequest.request({method:"DELETE",url:"/question-answers/{id}",path:{id:e},errors:{404:"Question-answer not found."}})}}class hM{constructor(e){this.httpRequest=e}statisticsControllerCreate({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/statistics",body:e,mediaType:"application/json"})}statisticsControllerGetAggregatedStats({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/statistics/tenants/{id}/aggregated",path:{id:e},body:n,mediaType:"application/json"})}statisticsControllerGetByChatSession({tenantId:e,chatSessionId:n}){return this.httpRequest.request({method:"GET",url:"/statistics/tenants/{tenantId}/chat-sessions",path:{tenantId:e},query:{chatSessionId:n}})}}class pM{constructor(e){this.httpRequest=e}tenantApiKeysControllerList({tenantId:e,includeRevoked:n}){return this.httpRequest.request({method:"GET",url:"/tenant-api-keys/tenant/{tenantId}/api-keys",path:{tenantId:e},query:{includeRevoked:n}})}tenantApiKeysControllerCreate({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenant-api-keys/tenant/{tenantId}/api-keys",path:{tenantId:e},body:n,mediaType:"application/json"})}tenantApiKeysControllerRevoke({tenantId:e,keyId:n}){return this.httpRequest.request({method:"DELETE",url:"/tenant-api-keys/tenant/{tenantId}/api-keys/{keyId}",path:{tenantId:e,keyId:n}})}}class mM{constructor(e){this.httpRequest=e}tenantInvitationsControllerGetTenantInvitation({id:e}){return this.httpRequest.request({method:"GET",url:"/tenant-invitations/{id}",path:{id:e},errors:{404:"Tenant invitation not found"}})}tenantInvitationsControllerAcceptTenantInvitation({id:e}){return this.httpRequest.request({method:"POST",url:"/tenant-invitations/accept/{id}",path:{id:e},errors:{400:"Bad request - invitation already accepted or invalid data",404:"Tenant invitation not found or user not found",409:"Conflict - invitation already accepted "}})}}class gM{constructor(e){this.httpRequest=e}tenantsControllerGetByTenantCode({tenantCode:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{tenantCode}",path:{tenantCode:e}})}tenantsControllerGetByIdAdmin({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/admin/{id}",path:{id:e}})}tenantsControllerGetKnowledgeBase({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/admin/{id}/knowledge-base",path:{id:e}})}tenantsControllerUpdateKnowledgeBase({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/admin/{id}/knowledge-base",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerUpdateByTenantId({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerDeleteTenant({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenants/{id}",path:{id:e},errors:{401:"Unauthorized.",403:"Forbidden - Admin access required.",404:"Tenant not found."}})}tenantsControllerCreateAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/agents",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request.",401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerFindAgentsByTenantId({id:e,isActive:n}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/agents",path:{id:e},query:{isActive:n},errors:{401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerSetDefaultAgent({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}/default-agent",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request.",401:"Unauthorized.",404:"Tenant or Agent not found."}})}tenantsControllerGetDefaultAgent({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/default-agent",path:{id:e},errors:{401:"Unauthorized.",404:"Tenant not found or no default agent set."}})}tenantsControllerDuplicateTenant({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/duplicate",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request - Tenant code already exists or invalid data.",401:"Unauthorized.",404:"Source tenant not found."}})}tenantsControllerGetTenantUsersByTenantId({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/tenantUsers",path:{id:e},errors:{401:"Unauthorized.",404:"Tenant not found."}})}tenantsControllerCreateTenantInvitation({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/invitations",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",403:"Forbidden - Admin access required.",404:"Tenant not found.",409:"Conflict - Invitation already exists for this email."}})}}class yM{constructor(e){this.httpRequest=e}tenantUsersControllerGetMyTenantUsers(){return this.httpRequest.request({method:"GET",url:"/tenant-users/my"})}tenantUsersControllerUpdateTenantUser({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenant-users/{id}",path:{id:e},body:n,mediaType:"application/json",errors:{400:"Bad Request - Cannot change role of last owner.",401:"Unauthorized.",403:"Forbidden - Owner access required.",404:"Tenant user not found."}})}tenantUsersControllerDeleteTenantUser({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenant-users/{id}",path:{id:e},errors:{400:"Bad Request - Cannot delete last owner.",401:"Unauthorized.",403:"Forbidden - Owner access required.",404:"Tenant user not found."}})}}class bM{constructor(e){this.httpRequest=e}vectorStoreControllerStoreText(){return this.httpRequest.request({method:"POST",url:"/vector-store/resource"})}}class vM{constructor(e,n=QN){Jt(this,"adminChatSessions");Jt(this,"adminFlowDefinitions");Jt(this,"adminTenants");Jt(this,"agents");Jt(this,"agentTemplates");Jt(this,"agentTools");Jt(this,"app");Jt(this,"auth");Jt(this,"chatSessions");Jt(this,"crawlKnowledgeBases");Jt(this,"externalApi");Jt(this,"file");Jt(this,"flowTools");Jt(this,"products");Jt(this,"promptBlocks");Jt(this,"questionAnswers");Jt(this,"statistics");Jt(this,"tenantApiKeys");Jt(this,"tenantInvitations");Jt(this,"tenants");Jt(this,"tenantUsers");Jt(this,"vectorStore");Jt(this,"request");this.request=new n({BASE:(e==null?void 0:e.BASE)??"",VERSION:(e==null?void 0:e.VERSION)??"1.0",WITH_CREDENTIALS:(e==null?void 0:e.WITH_CREDENTIALS)??!1,CREDENTIALS:(e==null?void 0:e.CREDENTIALS)??"include",TOKEN:e==null?void 0:e.TOKEN,USERNAME:e==null?void 0:e.USERNAME,PASSWORD:e==null?void 0:e.PASSWORD,HEADERS:e==null?void 0:e.HEADERS,ENCODE_PATH:e==null?void 0:e.ENCODE_PATH}),this.adminChatSessions=new ZN(this.request),this.adminFlowDefinitions=new JN(this.request),this.adminTenants=new WN(this.request),this.agents=new tM(this.request),this.agentTemplates=new eM(this.request),this.agentTools=new nM(this.request),this.app=new rM(this.request),this.auth=new iM(this.request),this.chatSessions=new sM(this.request),this.crawlKnowledgeBases=new aM(this.request),this.externalApi=new oM(this.request),this.file=new lM(this.request),this.flowTools=new uM(this.request),this.products=new cM(this.request),this.promptBlocks=new fM(this.request),this.questionAnswers=new dM(this.request),this.statistics=new hM(this.request),this.tenantApiKeys=new pM(this.request),this.tenantInvitations=new mM(this.request),this.tenants=new gM(this.request),this.tenantUsers=new yM(this.request),this.vectorStore=new bM(this.request)}}var jv;(t=>{(e=>{e.STRING="string",e.VERIFICATION_CODE="verificationCode",e.DATE="date",e.CODE="code"})(t.inputType||(t.inputType={}))})(jv||(jv={}));var Bv;(t=>{(e=>{e.NO_START_NODE="NO_START_NODE",e.MULTIPLE_START_NODES="MULTIPLE_START_NODES",e.NO_END_NODE="NO_END_NODE",e.START_NODE_NOT_SET="START_NODE_NOT_SET",e.DEAD_END_NODE="DEAD_END_NODE",e.MULTIPLE_TRANSITIONS_NOT_ALLOWED="MULTIPLE_TRANSITIONS_NOT_ALLOWED",e.PATH_WITHOUT_END="PATH_WITHOUT_END",e.INFINITE_LOOP="INFINITE_LOOP",e.INVALID_TRANSITION_TARGET="INVALID_TRANSITION_TARGET",e.MESSAGE_NO_CONTENT="MESSAGE_NO_CONTENT",e.FIELD_NO_MESSAGE="FIELD_NO_MESSAGE",e.FIELD_NO_CONTEXT_KEY="FIELD_NO_CONTEXT_KEY",e.FIELD_NO_OPTIONS="FIELD_NO_OPTIONS",e.CLASSIFY_NO_INPUT="CLASSIFY_NO_INPUT",e.CLASSIFY_NO_CATEGORIES="CLASSIFY_NO_CATEGORIES",e.CLASSIFY_CATEGORY_NO_TRANSITION="CLASSIFY_CATEGORY_NO_TRANSITION",e.IFELSE_NO_CONDITIONS="IFELSE_NO_CONDITIONS",e.IFELSE_CONDITION_NO_TRANSITION="IFELSE_CONDITION_NO_TRANSITION",e.TOOL_NO_TOOL_ID="TOOL_NO_TOOL_ID",e.TOOL_INVALID_TOOL_ID="TOOL_INVALID_TOOL_ID",e.TOOL_MISSING_REQUIRED_ARG="TOOL_MISSING_REQUIRED_ARG",e.TOOL_NO_SUCCESS_TRANSITION="TOOL_NO_SUCCESS_TRANSITION",e.TOOL_DUPLICATE_ERROR_CODE="TOOL_DUPLICATE_ERROR_CODE",e.TOOL_MULTIPLE_CATCH_ALL="TOOL_MULTIPLE_CATCH_ALL",e.IFELSE_NO_ELSE="IFELSE_NO_ELSE",e.TOOL_NO_CATCH_ALL="TOOL_NO_CATCH_ALL",e.END_NODE_HAS_TRANSITIONS="END_NODE_HAS_TRANSITIONS"})(t.code||(t.code={})),(e=>{e.ERROR="error",e.WARNING="warning"})(t.severity||(t.severity={}))})(Bv||(Bv={}));var tr=(t=>(t.USER="user",t.ASSISTANT="assistant",t))(tr||{}),Iv;(t=>{(e=>{e.TEXT="TEXT",e.OPTIONS_SELECT="OPTIONS_SELECT",e.MESSAGE_TEMPLATE="MESSAGE_TEMPLATE",e.CODE_INPUT="CODE_INPUT",e.CONTACT_SAVED_INFOBOX="CONTACT_SAVED_INFOBOX"})(t.type||(t.type={}))})(Iv||(Iv={}));var vh;(t=>{(e=>{e.TEXT="TEXT",e.OPTIONS_SELECT="OPTIONS_SELECT",e.MESSAGE_TEMPLATE="MESSAGE_TEMPLATE",e.CODE_INPUT="CODE_INPUT",e.CONTACT_SAVED_INFOBOX="CONTACT_SAVED_INFOBOX"})(t.type||(t.type={}))})(vh||(vh={}));var pc=(t=>(t.STYLE1="STYLE1",t.STYLE2="STYLE2",t))(pc||{}),Uv;(t=>{(e=>{e.STRING="string",e.NUMBER="number",e.BOOLEAN="boolean",e.ARRAY="array",e.OBJECT="object"})(t.type||(t.type={})),(e=>{e.STRING="string",e.NUMBER="number",e.BOOLEAN="boolean",e.OBJECT="object"})(t.itemType||(t.itemType={}))})(Uv||(Uv={}));var xh=(t=>(t.NONE="NONE",t.MESSAGE_TEMPLATES="MESSAGE_TEMPLATES",t.ACTION_BUTTONS="ACTION_BUTTONS",t))(xh||{});const xM=t=>{var e;return((e=t==null?void 0:t.response)==null?void 0:e.status)||(t==null?void 0:t.status)||0},Pv=t=>![400,403,409,422,404,401].includes(xM(t)),SM=new Wk({defaultOptions:{queries:{retry:!1,throwOnError:Pv},mutations:{retry:!1,throwOnError:Pv}}}),wM=I.createContext(null),Sh={didCatch:!1,error:null};class EM extends I.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Sh}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:l,reason:"imperative-api"}),this.setState(Sh)}}componentDidCatch(e,n){var i,a;(i=(a=this.props).onError)===null||i===void 0||i.call(a,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:a}=this.props;if(i&&n.error!==null&&TM(e.resetKeys,a)){var l,u;(l=(u=this.props).onReset)===null||l===void 0||l.call(u,{next:a,prev:e.resetKeys,reason:"keys"}),this.setState(Sh)}}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:a}=this.props,{didCatch:l,error:u}=this.state;let f=e;if(l){const d={error:u,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")f=n(d);else if(i)f=I.createElement(i,d);else if(a!==void 0)f=a;else throw u}return I.createElement(wM.Provider,{value:{didCatch:l,error:u,resetErrorBoundary:this.resetErrorBoundary}},f)}}function TM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,i)=>!Object.is(n,e[i]))}const Nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ne=globalThis,gs="10.29.0";function mc(){return gc(ne),ne}function gc(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||gs,e[gs]=e[gs]||{}}function da(t,e,n=ne){const i=n.__SENTRY__=n.__SENTRY__||{},a=i[gs]=i[gs]||{};return a[t]||(a[t]=e())}const CM=["debug","info","warn","error","log","assert","trace"],_M="Sentry Logger ",yc={};function ha(t){if(!("console"in ne))return t();const e=ne.console,n={},i=Object.keys(yc);i.forEach(a=>{const l=yc[a];n[a]=e[a],e[a]=l});try{return t()}finally{i.forEach(a=>{e[a]=n[a]})}}function AM(){Eh().enabled=!0}function OM(){Eh().enabled=!1}function qv(){return Eh().enabled}function RM(...t){wh("log",...t)}function kM(...t){wh("warn",...t)}function DM(...t){wh("error",...t)}function wh(t,...e){Nt&&qv()&&ha(()=>{ne.console[t](`${_M}[${t}]:`,...e)})}function Eh(){return Nt?da("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Tt={enable:AM,disable:OM,isEnabled:qv,log:RM,warn:kM,error:DM},Fv=50,ys="?",Vv=/\(error: (.*)\)/,Hv=/captureMessage|captureException/;function Gv(...t){const e=t.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,a=0)=>{const l=[],u=n.split(`
`);for(let f=i;f<u.length;f++){let d=u[f];d.length>1024&&(d=d.slice(0,1024));const h=Vv.test(d)?d.replace(Vv,"$1"):d;if(!h.match(/\S*Error: /)){for(const m of e){const y=m(h);if(y){l.push(y);break}}if(l.length>=Fv+a)break}}return MM(l.slice(a))}}function NM(t){return Array.isArray(t)?Gv(...t):t}function MM(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(bc(e).function||"")&&e.pop(),e.reverse(),Hv.test(bc(e).function||"")&&(e.pop(),Hv.test(bc(e).function||"")&&e.pop()),e.slice(0,Fv).map(n=>({...n,filename:n.filename||bc(e).filename,function:n.function||ys}))}function bc(t){return t[t.length-1]||{}}const Th="<anonymous>";function pi(t){try{return!t||typeof t!="function"?Th:t.name||Th}catch{return Th}}function Kv(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}function Yv(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const vc={},$v={};function bs(t,e){vc[t]=vc[t]||[],vc[t].push(e)}function vs(t,e){if(!$v[t]){$v[t]=!0;try{e()}catch(n){Nt&&Tt.error(`Error while instrumenting ${t}`,n)}}}function er(t,e){const n=t&&vc[t];if(n)for(const i of n)try{i(e)}catch(a){Nt&&Tt.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${pi(i)}
Error:`,a)}}let Ch=null;function LM(t){const e="error";bs(e,t),vs(e,zM)}function zM(){Ch=ne.onerror,ne.onerror=function(t,e,n,i,a){return er("error",{column:i,error:a,line:n,msg:t,url:e}),Ch?Ch.apply(this,arguments):!1},ne.onerror.__SENTRY_INSTRUMENTED__=!0}let _h=null;function jM(t){const e="unhandledrejection";bs(e,t),vs(e,BM)}function BM(){_h=ne.onunhandledrejection,ne.onunhandledrejection=function(t){return er("unhandledrejection",t),_h?_h.apply(this,arguments):!0},ne.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Xv=Object.prototype.toString;function Ah(t){switch(Xv.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return mi(t,Error)}}function pa(t,e){return Xv.call(t)===`[object ${e}]`}function Qv(t){return pa(t,"ErrorEvent")}function Zv(t){return pa(t,"DOMError")}function IM(t){return pa(t,"DOMException")}function Lr(t){return pa(t,"String")}function Oh(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function xc(t){return t===null||Oh(t)||typeof t!="object"&&typeof t!="function"}function nl(t){return pa(t,"Object")}function Sc(t){return typeof Event<"u"&&mi(t,Event)}function UM(t){return typeof Element<"u"&&mi(t,Element)}function PM(t){return pa(t,"RegExp")}function rl(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function qM(t){return nl(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function mi(t,e){try{return t instanceof e}catch{return!1}}function Jv(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function FM(t){return typeof Request<"u"&&mi(t,Request)}const Rh=ne,VM=80;function Wv(t,e={}){if(!t)return"<unknown>";try{let n=t;const i=5,a=[];let l=0,u=0;const f=" > ",d=f.length;let h;const m=Array.isArray(e)?e:e.keyAttrs,y=!Array.isArray(e)&&e.maxStringLength||VM;for(;n&&l++<i&&(h=HM(n,m),!(h==="html"||l>1&&u+a.length*d+h.length>=y));)a.push(h),u+=h.length,n=n.parentNode;return a.reverse().join(f)}catch{return"<unknown>"}}function HM(t,e){const n=t,i=[];if(!(n!=null&&n.tagName))return"";if(Rh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const a=e!=null&&e.length?e.filter(u=>n.getAttribute(u)).map(u=>[u,n.getAttribute(u)]):null;if(a!=null&&a.length)a.forEach(u=>{i.push(`[${u[0]}="${u[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const u=n.className;if(u&&Lr(u)){const f=u.split(/\s+/);for(const d of f)i.push(`.${d}`)}}const l=["aria-label","type","name","title","alt"];for(const u of l){const f=n.getAttribute(u);f&&i.push(`[${u}="${f}"]`)}return i.join("")}function kh(){try{return Rh.document.location.href}catch{return""}}function GM(t){if(!Rh.HTMLElement)return null;let e=t;const n=5;for(let i=0;i<n;i++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function Tn(t,e,n){if(!(e in t))return;const i=t[e];if(typeof i!="function")return;const a=n(i);typeof a=="function"&&tx(a,i);try{t[e]=a}catch{Nt&&Tt.log(`Failed to replace method "${e}" in object`,t)}}function xs(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Nt&&Tt.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function tx(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,xs(t,"__sentry_original__",e)}catch{}}function Dh(t){return t.__sentry_original__}function ex(t){if(Ah(t))return{message:t.message,name:t.name,stack:t.stack,...rx(t)};if(Sc(t)){const e={type:t.type,target:nx(t.target),currentTarget:nx(t.currentTarget),...rx(t)};return typeof CustomEvent<"u"&&mi(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function nx(t){try{return UM(t)?Wv(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function rx(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function KM(t){const e=Object.keys(ex(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}function Nh(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function ix(t,e){if(!Array.isArray(t))return"";const n=[];for(let i=0;i<t.length;i++){const a=t[i];try{Jv(a)?n.push(Yv(a)):n.push(String(a))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function wc(t,e,n=!1){return Lr(t)?PM(e)?e.test(t):Lr(e)?n?t===e:t.includes(e):!1:!1}function Ec(t,e=[],n=!1){return e.some(i=>wc(t,i,n))}function YM(){const t=ne;return t.crypto||t.msCrypto}let Mh;function $M(){return Math.random()*16}function zn(t=YM()){try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return Mh||(Mh="10000000100040008000"+1e11),Mh.replace(/[018]/g,e=>(e^($M()&15)>>e/4).toString(16))}function sx(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function Ss(t){const{message:e,event_id:n}=t;if(e)return e;const i=sx(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Lh(t,e,n){const i=t.exception=t.exception||{},a=i.values=i.values||[],l=a[0]=a[0]||{};l.value||(l.value=e||""),l.type||(l.type="Error")}function ma(t,e){const n=sx(t);if(!n)return;const i={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism={...i,...a,...e},e&&"data"in e){const l={...a==null?void 0:a.data,...e.data};n.mechanism.data=l}}function ax(t){if(XM(t))return!0;try{xs(t,"__sentry_captured__",!0)}catch{}return!1}function XM(t){try{return t.__sentry_captured__}catch{}}const ox=1e3;function il(){return Date.now()/ox}function QM(){const{performance:t}=ne;if(!(t!=null&&t.now)||!t.timeOrigin)return il;const e=t.timeOrigin;return()=>(e+t.now())/ox}let lx;function zr(){return(lx??(lx=QM()))()}function ZM(t){const e=zr(),n={sid:zn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>WM(n)};return t&&ga(n,t),n}function ga(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||zr(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:zn()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function JM(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),ga(t,n)}function WM(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function sl(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const i={...t};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=sl(i[a],e[a],n-1));return i}function ux(){return zn()}function cx(){return zn().substring(16)}const zh="_sentrySpan";function fx(t,e){e?xs(t,zh,e):delete t[zh]}function dx(t){return t[zh]}const tL=100;class yr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ux(),sampleRand:Math.random()}}clone(){const e=new yr;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,fx(e,dx(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ga(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,i=n instanceof yr?n.getScopeData():nl(n)?e:void 0,{tags:a,attributes:l,extra:u,user:f,contexts:d,level:h,fingerprint:m=[],propagationContext:y}=i||{};return this._tags={...this._tags,...a},this._attributes={...this._attributes,...l},this._extra={...this._extra,...u},this._contexts={...this._contexts,...d},f&&Object.keys(f).length&&(this._user=f),h&&(this._level=h),m.length&&(this._fingerprint=m),y&&(this._propagationContext=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,fx(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ux(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var l;const i=typeof n=="number"?n:tL;if(i<=0)return this;const a={timestamp:il(),...e,message:e.message?Nh(e.message,2048):e.message};return this._breadcrumbs.push(a),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),(l=this._client)==null||l.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:dx(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=sl(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const i=(n==null?void 0:n.event_id)||zn();if(!this._client)return Nt&&Tt.warn("No client configured on scope - will not capture exception!"),i;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureMessage(e,n,i){const a=(i==null?void 0:i.event_id)||zn();if(!this._client)return Nt&&Tt.warn("No client configured on scope - will not capture message!"),a;const l=(i==null?void 0:i.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:l,...i,event_id:a},this),a}captureEvent(e,n){const i=(n==null?void 0:n.event_id)||zn();return this._client?(this._client.captureEvent(e,{...n,event_id:i},this),i):(Nt&&Tt.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function eL(){return da("defaultCurrentScope",()=>new yr)}function nL(){return da("defaultIsolationScope",()=>new yr)}class rL{constructor(e,n){let i;e?i=e:i=new yr;let a;n?a=n:a=new yr,this._stack=[{scope:i}],this._isolationScope=a}withScope(e){const n=this._pushScope();let i;try{i=e(n)}catch(a){throw this._popScope(),a}return rl(i)?i.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ya(){const t=mc(),e=gc(t);return e.stack=e.stack||new rL(eL(),nL())}function iL(t){return ya().withScope(t)}function sL(t,e){const n=ya();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function hx(t){return ya().withScope(()=>t(ya().getIsolationScope()))}function aL(){return{withIsolationScope:hx,withScope:iL,withSetScope:sL,withSetIsolationScope:(t,e)=>hx(e),getCurrentScope:()=>ya().getScope(),getIsolationScope:()=>ya().getIsolationScope()}}function jh(t){const e=gc(t);return e.acs?e.acs:aL()}function gi(){const t=mc();return jh(t).getCurrentScope()}function ba(){const t=mc();return jh(t).getIsolationScope()}function oL(){return da("globalScope",()=>new yr)}function lL(...t){const e=mc(),n=jh(e);if(t.length===2){const[i,a]=t;return i?n.withSetScope(i,a):n.withScope(a)}return n.withScope(t[0])}function We(){return gi().getClient()}function uL(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:a}=e,l={trace_id:n,span_id:a||cx()};return i&&(l.parent_span_id=i),l}const cL="sentry.source",fL="sentry.sample_rate",dL="sentry.previous_trace_sample_rate",hL="sentry.op",pL="sentry.origin",px="sentry.profile_id",mx="sentry.exclusive_time",mL=0,gL=1,yL="_sentryScope",bL="_sentryIsolationScope";function vL(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function gx(t){const e=t;return{scope:e[yL],isolationScope:vL(e[bL])}}const xL="sentry-",SL=/^sentry-/;function wL(t){const e=EL(t);if(!e)return;const n=Object.entries(e).reduce((i,[a,l])=>{if(a.match(SL)){const u=a.slice(xL.length);i[u]=l}return i},{});if(Object.keys(n).length>0)return n}function EL(t){if(!(!t||!Lr(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const i=yx(n);return Object.entries(i).forEach(([a,l])=>{e[a]=l}),e},{}):yx(t)}function yx(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const i=e.slice(0,n),a=e.slice(n+1);return[i,a].map(l=>{try{return decodeURIComponent(l.trim())}catch{return}})}).reduce((e,[n,i])=>(n&&i&&(e[n]=i),e),{})}const TL=/^o(\d+)\./,CL=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _L(t){return t==="http"||t==="https"}function al(t,e=!1){const{host:n,path:i,pass:a,port:l,projectId:u,protocol:f,publicKey:d}=t;return`${f}://${d}${e&&a?`:${a}`:""}@${n}${l?`:${l}`:""}/${i&&`${i}/`}${u}`}function AL(t){const e=CL.exec(t);if(!e){ha(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,i,a="",l="",u="",f=""]=e.slice(1);let d="",h=f;const m=h.split("/");if(m.length>1&&(d=m.slice(0,-1).join("/"),h=m.pop()),h){const y=h.match(/^\d+/);y&&(h=y[0])}return bx({host:l,pass:a,path:d,projectId:h,port:u,protocol:n,publicKey:i})}function bx(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function OL(t){if(!Nt)return!0;const{port:e,projectId:n,protocol:i}=t;return["protocol","publicKey","host","projectId"].find(u=>t[u]?!1:(Tt.error(`Invalid Sentry Dsn: ${u} missing`),!0))?!1:n.match(/^\d+$/)?_L(i)?e&&isNaN(parseInt(e,10))?(Tt.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Tt.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(Tt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function RL(t){const e=t.match(TL);return e==null?void 0:e[1]}function kL(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let i;return e.orgId?i=String(e.orgId):n&&(i=RL(n)),i}function DL(t){const e=typeof t=="string"?AL(t):bx(t);if(!(!e||!OL(e)))return e}function NL(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const vx=1;let xx=!1;function ML(t){const{spanId:e,traceId:n,isRemote:i}=t.spanContext(),a=i?e:Bh(t).parent_span_id,l=gx(t).scope,u=i?(l==null?void 0:l.getPropagationContext().propagationSpanId)||cx():e;return{parent_span_id:a,span_id:u,trace_id:n}}function LL(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:i,...a},attributes:l})=>({span_id:e,trace_id:n,sampled:i===vx,attributes:l,...a}))}function Sx(t){return typeof t=="number"?wx(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?wx(t.getTime()):zr()}function wx(t){return t>9999999999?t/1e3:t}function Bh(t){var i;if(jL(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(zL(t)){const{attributes:a,startTime:l,name:u,endTime:f,status:d,links:h}=t,m="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(i=t.parentSpanContext)==null?void 0:i.spanId:void 0;return{span_id:e,trace_id:n,data:a,description:u,parent_span_id:m,start_timestamp:Sx(l),timestamp:Sx(f)||void 0,status:IL(d),op:a[hL],origin:a[pL],links:LL(h)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function zL(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function jL(t){return typeof t.getSpanJSON=="function"}function BL(t){const{traceFlags:e}=t.spanContext();return e===vx}function IL(t){if(!(!t||t.code===mL))return t.code===gL?"ok":t.message||"internal_error"}const UL="_sentryRootSpan";function Ex(t){return t[UL]||t}function Tx(){xx||(ha(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),xx=!0)}function PL(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=(n=We())==null?void 0:n.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Cx(t){Tt.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function _x(t,e){if(!(e!=null&&e.length)||!t.description)return!1;for(const n of e){if(FL(n)){if(wc(t.description,n))return Nt&&Cx(t),!0;continue}if(!n.name&&!n.op)continue;const i=n.name?wc(t.description,n.name):!0,a=n.op?t.op&&wc(t.op,n.op):!0;if(i&&a)return Nt&&Cx(t),!0}return!1}function qL(t,e){const n=e.parent_span_id,i=e.span_id;if(n)for(const a of t)a.parent_span_id===i&&(a.parent_span_id=n)}function FL(t){return typeof t=="string"||t instanceof RegExp}const Ih="production",VL="_frozenDsc";function Ax(t,e){const n=e.getOptions(),{publicKey:i}=e.getDsn()||{},a={environment:n.environment||Ih,release:n.release,public_key:i,trace_id:t,org_id:kL(e)};return e.emit("createDsc",a),a}function HL(t,e){const n=e.getPropagationContext();return n.dsc||Ax(n.traceId,t)}function GL(t){var S;const e=We();if(!e)return{};const n=Ex(t),i=Bh(n),a=i.data,l=n.spanContext().traceState,u=(l==null?void 0:l.get("sentry.sample_rate"))??a[fL]??a[dL];function f(w){return(typeof u=="number"||typeof u=="string")&&(w.sample_rate=`${u}`),w}const d=n[VL];if(d)return f(d);const h=l==null?void 0:l.get("sentry.dsc"),m=h&&wL(h);if(m)return f(m);const y=Ax(t.spanContext().traceId,e),b=a[cL],v=i.description;return b!=="url"&&v&&(y.transaction=v),PL()&&(y.sampled=String(BL(n)),y.sample_rand=(l==null?void 0:l.get("sentry.sample_rand"))??((S=gx(n).scope)==null?void 0:S.getPropagationContext().sampleRand.toString())),f(y),e.emit("createDsc",y,n),y}function jr(t,e=100,n=1/0){try{return Uh("",t,e,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function Ox(t,e=3,n=100*1024){const i=jr(t,e);return XL(i)>n?Ox(t,e-1,n):i}function Uh(t,e,n=1/0,i=1/0,a=QL()){const[l,u]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const f=KL(t,e);if(!f.startsWith("[object "))return f;if(e.__sentry_skip_normalization__)return e;const d=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(d===0)return f.replace("object ","");if(l(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const v=h.toJSON();return Uh("",v,d-1,i,a)}catch{}const m=Array.isArray(e)?[]:{};let y=0;const b=ex(e);for(const v in b){if(!Object.prototype.hasOwnProperty.call(b,v))continue;if(y>=i){m[v]="[MaxProperties ~]";break}const S=b[v];m[v]=Uh(v,S,d-1,i,a),y++}return u(e),m}function KL(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Jv(e))return Yv(e);if(qM(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${pi(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=YL(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function YL(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function $L(t){return~-encodeURI(t).split(/%..|./).length}function XL(t){return $L(JSON.stringify(t))}function QL(){const t=new WeakSet;function e(i){return t.has(i)?!0:(t.add(i),!1)}function n(i){t.delete(i)}return[e,n]}function va(t,e=[]){return[t,e]}function ZL(t,e){const[n,i]=t;return[n,[...i,e]]}function Rx(t,e){const n=t[1];for(const i of n){const a=i[0].type;if(e(i,a))return!0}return!1}function Ph(t){const e=gc(ne);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function JL(t){const[e,n]=t;let i=JSON.stringify(e);function a(l){typeof i=="string"?i=typeof l=="string"?i+l:[Ph(i),l]:i.push(typeof l=="string"?Ph(l):l)}for(const l of n){const[u,f]=l;if(a(`
${JSON.stringify(u)}
`),typeof f=="string"||f instanceof Uint8Array)a(f);else{let d;try{d=JSON.stringify(f)}catch{d=JSON.stringify(jr(f))}a(d)}}return typeof i=="string"?i:WL(i)}function WL(t){const e=t.reduce((a,l)=>a+l.length,0),n=new Uint8Array(e);let i=0;for(const a of t)n.set(a,i),i+=a.length;return n}function t4(t){const e=typeof t.data=="string"?Ph(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const e4={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function kx(t){return e4[t]}function Dx(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function n4(t,e,n,i){var l;const a=(l=t.sdkProcessingMetadata)==null?void 0:l.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&i&&{dsn:al(i)},...a&&{trace:a}}}function r4(t,e){var i,a,l,u;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((i=t.sdk)==null?void 0:i.integrations)||[],...e.integrations||[]],packages:[...((a=t.sdk)==null?void 0:a.packages)||[],...e.packages||[]],settings:(l=t.sdk)!=null&&l.settings||e.settings?{...(u=t.sdk)==null?void 0:u.settings,...e.settings}:void 0},t}function i4(t,e,n,i){const a=Dx(n),l={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!i&&e&&{dsn:al(e)}},u="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return va(l,[u])}function s4(t,e,n,i){const a=Dx(n),l=t.type&&t.type!=="replay_event"?t.type:"event";r4(t,n==null?void 0:n.sdk);const u=n4(t,a,i,e);return delete t.sdkProcessingMetadata,va(u,[[{type:l},t]])}const qh=0,Nx=1,Mx=2;function Tc(t){return new ol(e=>{e(t)})}function Fh(t){return new ol((e,n)=>{n(t)})}class ol{constructor(e){this._state=qh,this._handlers=[],this._runExecutor(e)}then(e,n){return new ol((i,a)=>{this._handlers.push([!1,l=>{if(!e)i(l);else try{i(e(l))}catch(u){a(u)}},l=>{if(!n)a(l);else try{i(n(l))}catch(u){a(u)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new ol((n,i)=>{let a,l;return this.then(u=>{l=!1,a=u,e&&e()},u=>{l=!0,a=u,e&&e()}).then(()=>{if(l){i(a);return}n(a)})})}_executeHandlers(){if(this._state===qh)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Nx&&n[1](this._value),this._state===Mx&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(l,u)=>{if(this._state===qh){if(rl(u)){u.then(i,a);return}this._state=l,this._value=u,this._executeHandlers()}},i=l=>{n(Nx,l)},a=l=>{n(Mx,l)};try{e(i,a)}catch(l){a(l)}}}function a4(t,e,n,i=0){try{const a=Vh(e,n,t,i);return rl(a)?a:Tc(a)}catch(a){return Fh(a)}}function Vh(t,e,n,i){const a=n[i];if(!t||!a)return t;const l=a({...t},e);return Nt&&l===null&&Tt.log(`Event processor "${a.id||"?"}" dropped event`),rl(l)?l.then(u=>Vh(u,e,n,i+1)):Vh(l,e,n,i+1)}function o4(t,e){const{fingerprint:n,span:i,breadcrumbs:a,sdkProcessingMetadata:l}=e;l4(t,e),i&&f4(t,i),d4(t,n),u4(t,a),c4(t,l)}function Lx(t,e){const{extra:n,tags:i,user:a,contexts:l,level:u,sdkProcessingMetadata:f,breadcrumbs:d,fingerprint:h,eventProcessors:m,attachments:y,propagationContext:b,transactionName:v,span:S}=e;Cc(t,"extra",n),Cc(t,"tags",i),Cc(t,"user",a),Cc(t,"contexts",l),t.sdkProcessingMetadata=sl(t.sdkProcessingMetadata,f,2),u&&(t.level=u),v&&(t.transactionName=v),S&&(t.span=S),d.length&&(t.breadcrumbs=[...t.breadcrumbs,...d]),h.length&&(t.fingerprint=[...t.fingerprint,...h]),m.length&&(t.eventProcessors=[...t.eventProcessors,...m]),y.length&&(t.attachments=[...t.attachments,...y]),t.propagationContext={...t.propagationContext,...b}}function Cc(t,e,n){t[e]=sl(t[e],n,1)}function l4(t,e){const{extra:n,tags:i,user:a,contexts:l,level:u,transactionName:f}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(i).length&&(t.tags={...i,...t.tags}),Object.keys(a).length&&(t.user={...a,...t.user}),Object.keys(l).length&&(t.contexts={...l,...t.contexts}),u&&(t.level=u),f&&t.type!=="transaction"&&(t.transaction=f)}function u4(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function c4(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function f4(t,e){t.contexts={trace:ML(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:GL(e),...t.sdkProcessingMetadata};const n=Ex(e),i=Bh(n).description;i&&!t.transaction&&t.type==="transaction"&&(t.transaction=i)}function d4(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let Br,zx,jx,yi;function h4(t){const e=ne._sentryDebugIds,n=ne._debugIds;if(!e&&!n)return{};const i=e?Object.keys(e):[],a=n?Object.keys(n):[];if(yi&&i.length===zx&&a.length===jx)return yi;zx=i.length,jx=a.length,yi={},Br||(Br={});const l=(u,f)=>{for(const d of u){const h=f[d],m=Br==null?void 0:Br[d];if(m&&yi&&h)yi[m[0]]=h,Br&&(Br[d]=[m[0],h]);else if(h){const y=t(d);for(let b=y.length-1;b>=0;b--){const v=y[b],S=v==null?void 0:v.filename;if(S&&yi&&Br){yi[S]=h,Br[d]=[S,h];break}}}}};return e&&l(i,e),n&&l(a,n),yi}function p4(t,e,n,i,a,l){const{normalizeDepth:u=3,normalizeMaxBreadth:f=1e3}=t,d={...e,event_id:e.event_id||n.event_id||zn(),timestamp:e.timestamp||il()},h=n.integrations||t.integrations.map(C=>C.name);m4(d,t),b4(d,h),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&g4(d,t.stackParser);const m=x4(i,n.captureContext);n.mechanism&&ma(d,n.mechanism);const y=a?a.getEventProcessors():[],b=oL().getScopeData();if(l){const C=l.getScopeData();Lx(b,C)}if(m){const C=m.getScopeData();Lx(b,C)}const v=[...n.attachments||[],...b.attachments];v.length&&(n.attachments=v),o4(d,b);const S=[...y,...b.eventProcessors];return a4(S,d,n).then(C=>(C&&y4(C),typeof u=="number"&&u>0?v4(C,u,f):C))}function m4(t,e){var f,d;const{environment:n,release:i,dist:a,maxValueLength:l}=e;t.environment=t.environment||n||Ih,!t.release&&i&&(t.release=i),!t.dist&&a&&(t.dist=a);const u=t.request;u!=null&&u.url&&l&&(u.url=Nh(u.url,l)),l&&((d=(f=t.exception)==null?void 0:f.values)==null||d.forEach(h=>{h.value&&(h.value=Nh(h.value,l))}))}function g4(t,e){var i,a;const n=h4(e);(a=(i=t.exception)==null?void 0:i.values)==null||a.forEach(l=>{var u,f;(f=(u=l.stacktrace)==null?void 0:u.frames)==null||f.forEach(d=>{d.filename&&(d.debug_id=n[d.filename])})})}function y4(t){var i,a;const e={};if((a=(i=t.exception)==null?void 0:i.values)==null||a.forEach(l=>{var u,f;(f=(u=l.stacktrace)==null?void 0:u.frames)==null||f.forEach(d=>{d.debug_id&&(d.abs_path?e[d.abs_path]=d.debug_id:d.filename&&(e[d.filename]=d.debug_id),delete d.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([l,u])=>{n.push({type:"sourcemap",code_file:l,debug_id:u})})}function b4(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function v4(t,e,n){var a,l;if(!t)return null;const i={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(u=>({...u,...u.data&&{data:jr(u.data,e,n)}}))},...t.user&&{user:jr(t.user,e,n)},...t.contexts&&{contexts:jr(t.contexts,e,n)},...t.extra&&{extra:jr(t.extra,e,n)}};return(a=t.contexts)!=null&&a.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=jr(t.contexts.trace.data,e,n))),t.spans&&(i.spans=t.spans.map(u=>({...u,...u.data&&{data:jr(u.data,e,n)}}))),(l=t.contexts)!=null&&l.flags&&i.contexts&&(i.contexts.flags=jr(t.contexts.flags,3,n)),i}function x4(t,e){if(!e)return t;const n=t?t.clone():new yr;return n.update(e),n}function S4(t){if(t)return w4(t)?{captureContext:t}:T4(t)?{captureContext:t}:t}function w4(t){return t instanceof yr||typeof t=="function"}const E4=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function T4(t){return Object.keys(t).some(e=>E4.includes(e))}function _c(t,e){return gi().captureException(t,S4(e))}function Bx(t,e){return gi().captureEvent(t,e)}function C4(t,e){ba().setContext(t,e)}function Ix(t){const e=ba(),n=gi(),{userAgent:i}=ne.navigator||{},a=ZM({user:n.getUser()||e.getUser(),...i&&{userAgent:i},...t}),l=e.getSession();return(l==null?void 0:l.status)==="ok"&&ga(l,{status:"exited"}),Ux(),e.setSession(a),a}function Ux(){const t=ba(),n=gi().getSession()||t.getSession();n&&JM(n),Px(),t.setSession()}function Px(){const t=ba(),e=We(),n=t.getSession();n&&e&&e.captureSession(n)}function qx(t=!1){if(t){Ux();return}Px()}const _4="7";function A4(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function O4(t){return`${A4(t)}${t.projectId}/envelope/`}function R4(t,e){const n={sentry_version:_4};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function k4(t,e,n){return e||`${O4(t)}?${R4(t,n)}`}const Fx=[];function D4(t){const e={};return t.forEach(n=>{const{name:i}=n,a=e[i];a&&!a.isDefaultInstance&&n.isDefaultInstance||(e[i]=n)}),Object.values(e)}function N4(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...e,...n];else if(typeof n=="function"){const a=n(e);i=Array.isArray(a)?a:[a]}else i=e;return D4(i)}function M4(t,e){const n={};return e.forEach(i=>{i&&Hx(t,i,n)}),n}function Vx(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function Hx(t,e,n){if(n[e.name]){Nt&&Tt.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!Fx.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),Fx.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const i=e.preprocessEvent.bind(e);t.on("preprocessEvent",(a,l)=>i(a,l,t))}if(typeof e.processEvent=="function"){const i=e.processEvent.bind(e),a=Object.assign((l,u)=>i(l,u,t),{id:e.name});t.addEventProcessor(a)}Nt&&Tt.log(`Integration installed: ${e.name}`)}function j7(t){return t}function L4(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function z4(t,e,n,i){const a={};return e!=null&&e.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),n&&i&&(a.dsn=al(i)),va(a,[L4(t)])}function Gx(t,e){const n=e??j4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=z4(n,i._metadata,i.tunnel,t.getDsn());Kx().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(a)}function j4(t){return Kx().get(t)}function Kx(){return da("clientToLogBufferMap",()=>new WeakMap)}function B4(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function I4(t,e,n,i){const a={};return e!=null&&e.sdk&&(a.sdk={name:e.sdk.name,version:e.sdk.version}),n&&i&&(a.dsn=al(i)),va(a,[B4(t)])}function Yx(t,e){const n=e??U4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=I4(n,i._metadata,i.tunnel,t.getDsn());$x().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(a)}function U4(t){return $x().get(t)}function $x(){return da("clientToMetricBufferMap",()=>new WeakMap)}const Hh=Symbol.for("SentryBufferFullError");function Gh(t=100){const e=new Set;function n(){return e.size<t}function i(u){e.delete(u)}function a(u){if(!n())return Fh(Hh);const f=u();return e.add(f),f.then(()=>i(f),()=>i(f)),f}function l(u){if(!e.size)return Tc(!0);const f=Promise.allSettled(Array.from(e)).then(()=>!0);if(!u)return f;const d=[f,new Promise(h=>setTimeout(()=>h(!1),u))];return Promise.race(d)}return{get $(){return Array.from(e)},add:a,drain:l}}const P4=60*1e3;function q4(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${t}`);return isNaN(i)?P4:i-e}function F4(t,e){return t[e]||t.all||0}function V4(t,e,n=Date.now()){return F4(t,e)>n}function H4(t,{statusCode:e,headers:n},i=Date.now()){const a={...t},l=n==null?void 0:n["x-sentry-rate-limits"],u=n==null?void 0:n["retry-after"];if(l)for(const f of l.trim().split(",")){const[d,h,,,m]=f.split(":",5),y=parseInt(d,10),b=(isNaN(y)?60:y)*1e3;if(!h)a.all=i+b;else for(const v of h.split(";"))v==="metric_bucket"?(!m||m.split(";").includes("custom"))&&(a[v]=i+b):a[v]=i+b}else u?a.all=i+q4(u,i):e===429&&(a.all=i+60*1e3);return a}const Xx=64;function G4(t,e,n=Gh(t.bufferSize||Xx)){let i={};const a=u=>n.drain(u);function l(u){const f=[];if(Rx(u,(y,b)=>{const v=kx(b);V4(i,v)?t.recordDroppedEvent("ratelimit_backoff",v):f.push(y)}),f.length===0)return Promise.resolve({});const d=va(u[0],f),h=y=>{Rx(d,(b,v)=>{t.recordDroppedEvent(y,kx(v))})},m=()=>e({body:JL(d)}).then(y=>(y.statusCode!==void 0&&(y.statusCode<200||y.statusCode>=300)&&Nt&&Tt.warn(`Sentry responded with status code ${y.statusCode} to sent event.`),i=H4(i,y),y),y=>{throw h("network_error"),Nt&&Tt.error("Encountered error running transport request:",y),y});return n.add(m).then(y=>y,y=>{if(y===Hh)return Nt&&Tt.error("Skipped sending event because buffer is full."),h("queue_overflow"),Promise.resolve({});throw y})}return{send:l,flush:a}}function K4(t,e,n){const i=[{type:"client_report"},{timestamp:il(),discarded_events:t}];return va(e?{dsn:e}:{},[i])}function Qx(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function Y4(t){var d;const{trace_id:e,parent_span_id:n,span_id:i,status:a,origin:l,data:u,op:f}=((d=t.contexts)==null?void 0:d.trace)??{};return{data:u??{},description:t.transaction,op:f,parent_span_id:n,span_id:i??"",start_timestamp:t.start_timestamp??0,status:a,timestamp:t.timestamp,trace_id:e??"",origin:l,profile_id:u==null?void 0:u[px],exclusive_time:u==null?void 0:u[mx],measurements:t.measurements,is_segment:!0}}function $4(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[px]:t.profile_id},...t.exclusive_time&&{[mx]:t.exclusive_time}}}},measurements:t.measurements}}const Zx="Not capturing exception because it's already been captured.",Jx="Discarded session because of missing or non-string release",Wx=Symbol.for("SentryInternalError"),tS=Symbol.for("SentryDoNotSendEventError"),X4=5e3;function Ac(t){return{message:t,[Wx]:!0}}function Kh(t){return{message:t,[tS]:!0}}function eS(t){return!!t&&typeof t=="object"&&Wx in t}function nS(t){return!!t&&typeof t=="object"&&tS in t}function rS(t,e,n,i,a){let l=0,u,f=!1;t.on(n,()=>{l=0,clearTimeout(u),f=!1}),t.on(e,d=>{l+=i(d),l>=8e5?a(t):f||(f=!0,u=setTimeout(()=>{a(t)},X4))}),t.on("flush",()=>{a(t)})}class Q4{constructor(e){var i,a,l;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Gh(((i=e.transportOptions)==null?void 0:i.bufferSize)??Xx),e.dsn?this._dsn=DL(e.dsn):Nt&&Tt.warn("No DSN provided, client will not send events."),this._dsn){const u=k4(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:u})}this._options.enableLogs=this._options.enableLogs??((a=this._options._experiments)==null?void 0:a.enableLogs),this._options.enableLogs&&rS(this,"afterCaptureLog","flushLogs",t5,Gx),(this._options.enableMetrics??((l=this._options._experiments)==null?void 0:l.enableMetrics)??!0)&&rS(this,"afterCaptureMetric","flushMetrics",W4,Yx)}captureException(e,n,i){const a=zn();if(ax(e))return Nt&&Tt.log(Zx),a;const l={event_id:a,...n};return this._process(()=>this.eventFromException(e,l).then(u=>this._captureEvent(u,l,i)).then(u=>u),"error"),l.event_id}captureMessage(e,n,i,a){const l={event_id:zn(),...i},u=Oh(e)?e:String(e),f=xc(e),d=f?this.eventFromMessage(u,n,l):this.eventFromException(e,l);return this._process(()=>d.then(h=>this._captureEvent(h,l,a)),f?"unknown":"error"),l.event_id}captureEvent(e,n,i){const a=zn();if(n!=null&&n.originalException&&ax(n.originalException))return Nt&&Tt.log(Zx),a;const l={event_id:a,...n},u=e.sdkProcessingMetadata||{},f=u.capturedSpanScope,d=u.capturedSpanIsolationScope,h=iS(e.type);return this._process(()=>this._captureEvent(e,l,f||i,d),h),l.event_id}captureSession(e){this.sendSession(e),ga(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;this.emit("flush");const i=await this._isClientDoneProcessing(e),a=await n.flush(e);return i&&a}async close(e){const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];Hx(this,e,this._integrations),n||Vx(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let i=s4(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])i=ZL(i,t4(a));this.sendEnvelope(i).then(a=>this.emit("afterSendEvent",e,a))}sendSession(e){const{release:n,environment:i=Ih}=this._options;if("aggregates"in e){const l=e.attrs||{};if(!l.release&&!n){Nt&&Tt.warn(Jx);return}l.release=l.release||n,l.environment=l.environment||i,e.attrs=l}else{if(!e.release&&!n){Nt&&Tt.warn(Jx);return}e.release=e.release||n,e.environment=e.environment||i}this.emit("beforeSendSession",e);const a=i4(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(a)}recordDroppedEvent(e,n,i=1){if(this._options.sendClientReports){const a=`${e}:${n}`;Nt&&Tt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(e,n){const i=this._hooks[e]=this._hooks[e]||new Set,a=(...l)=>n(...l);return i.add(a),()=>{i.delete(a)}}emit(e,...n){const i=this._hooks[e];i&&i.forEach(a=>a(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return Nt&&Tt.error("Error while sending envelope:",n),{}}return Nt&&Tt.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=M4(this,e),Vx(this,e)}_updateSessionFromEvent(e,n){var d,h;let i=n.level==="fatal",a=!1;const l=(d=n.exception)==null?void 0:d.values;if(l){a=!0,i=!1;for(const m of l)if(((h=m.mechanism)==null?void 0:h.handled)===!1){i=!0;break}}const u=e.status==="ok";(u&&e.errors===0||u&&i)&&(ga(e,{...i&&{status:"crashed"},errors:e.errors||Number(a||i)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(i=>setTimeout(i,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,i,a){const l=this.getOptions(),u=Object.keys(this._integrations);return!n.integrations&&(u!=null&&u.length)&&(n.integrations=u),this.emit("preprocessEvent",e,n),e.type||a.setLastEventId(e.event_id||n.event_id),p4(l,e,n,i,this,a).then(f=>{if(f===null)return f;this.emit("postprocessEvent",f,n),f.contexts={trace:uL(i),...f.contexts};const d=HL(this,i);return f.sdkProcessingMetadata={dynamicSamplingContext:d,...f.sdkProcessingMetadata},f})}_captureEvent(e,n={},i=gi(),a=ba()){return Nt&&Yh(e)&&Tt.log(`Captured error event \`${Qx(e)[0]||"<unknown>"}\``),this._processEvent(e,n,i,a).then(l=>l.event_id,l=>{Nt&&(nS(l)?Tt.log(l.message):eS(l)?Tt.warn(l.message):Tt.warn(l))})}_processEvent(e,n,i,a){const l=this.getOptions(),{sampleRate:u}=l,f=sS(e),d=Yh(e),m=`before send for type \`${e.type||"error"}\``,y=typeof u>"u"?void 0:NL(u);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error"),Fh(Kh(`Discarding event because it's not included in the random sample (sampling rate = ${u})`));const b=iS(e.type);return this._prepareEvent(e,n,i,a).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",b),Kh("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;const w=J4(this,l,v,n);return Z4(w,m)}).then(v=>{var C;if(v===null){if(this.recordDroppedEvent("before_send",b),f){const L=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",L)}throw Kh(`${m} returned \`null\`, will not send event.`)}const S=i.getSession()||a.getSession();if(d&&S&&this._updateSessionFromEvent(S,v),f){const _=((C=v.sdkProcessingMetadata)==null?void 0:C.spanCountBeforeProcessing)||0,L=v.spans?v.spans.length:0,R=_-L;R>0&&this.recordDroppedEvent("before_send","span",R)}const w=v.transaction_info;if(f&&w&&v.transaction!==e.transaction){const _="custom";v.transaction_info={...w,source:_}}return this.sendEvent(v,n),v}).then(null,v=>{throw nS(v)||eS(v)?v:(this.captureException(v,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:v}),Ac(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${v}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(i=>(this._numProcessing--,i),i=>(this._numProcessing--,i===Hh&&this.recordDroppedEvent("queue_overflow",n),i))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,i])=>{const[a,l]=n.split(":");return{reason:a,category:l,quantity:i}})}_flushOutcomes(){Nt&&Tt.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Nt&&Tt.log("No outcomes to send");return}if(!this._dsn){Nt&&Tt.log("No dsn provided, will not send outcomes");return}Nt&&Tt.log("Sending outcomes:",e);const n=K4(e,this._options.tunnel&&al(this._dsn));this.sendEnvelope(n)}}function iS(t){return t==="replay_event"?"replay":t||"error"}function Z4(t,e){const n=`${e} must return \`null\` or a valid event.`;if(rl(t))return t.then(i=>{if(!nl(i)&&i!==null)throw Ac(n);return i},i=>{throw Ac(`${e} rejected with ${i}`)});if(!nl(t)&&t!==null)throw Ac(n);return t}function J4(t,e,n,i){const{beforeSend:a,beforeSendTransaction:l,beforeSendSpan:u,ignoreSpans:f}=e;let d=n;if(Yh(d)&&a)return a(d,i);if(sS(d)){if(u||f){const h=Y4(d);if(f!=null&&f.length&&_x(h,f))return null;if(u){const m=u(h);m?d=sl(n,$4(m)):Tx()}if(d.spans){const m=[],y=d.spans;for(const v of y){if(f!=null&&f.length&&_x(v,f)){qL(y,v);continue}if(u){const S=u(v);S?m.push(S):(Tx(),m.push(v))}else m.push(v)}const b=d.spans.length-m.length;b&&t.recordDroppedEvent("before_send","span",b),d.spans=m}}if(l){if(d.spans){const h=d.spans.length;d.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return l(d,i)}}return d}function Yh(t){return t.type===void 0}function sS(t){return t.type==="transaction"}function W4(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+aS(t.attributes)}function t5(t){let e=0;return t.message&&(e+=t.message.length*2),e+aS(t.attributes)}function aS(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*oS(n[0]):xc(n)?e+=oS(n):e+=100}),e}function oS(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function e5(t,e){e.debug===!0&&(Nt?Tt.enable():ha(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),gi().update(e.initialScope);const i=new t(e);return n5(i),i.init(),i}function n5(t){gi().setClient(t)}function $h(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:i,relative:e[5]+n+i}}function r5(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function lS(t,e,n=[e],i="npm"){const a=t._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${e}`,packages:n.map(l=>({name:`${i}:@sentry/${l}`,version:gs})),version:gs}),t._metadata=a}const i5=100;function ws(t,e){const n=We(),i=ba();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:l=i5}=n.getOptions();if(l<=0)return;const f={timestamp:il(),...t},d=a?ha(()=>a(f,e)):f;d!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",d,e),i.addBreadcrumb(d,l))}let uS;const s5="FunctionToString",cS=new WeakMap,a5=(()=>({name:s5,setupOnce(){uS=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Dh(this),n=cS.has(We())&&e!==void 0?e:this;return uS.apply(n,t)}}catch{}},setup(t){cS.set(t,!0)}})),o5=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],l5="EventFilters",u5=(t={})=>{let e;return{name:l5,setup(n){const i=n.getOptions();e=fS(t,i)},processEvent(n,i,a){if(!e){const l=a.getOptions();e=fS(t,l)}return f5(n,e)?null:n}}},c5=((t={})=>({...u5(t),name:"InboundFilters"}));function fS(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:o5],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function f5(t,e){if(t.type){if(t.type==="transaction"&&h5(t,e.ignoreTransactions))return Nt&&Tt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ss(t)}`),!0}else{if(d5(t,e.ignoreErrors))return Nt&&Tt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ss(t)}`),!0;if(y5(t))return Nt&&Tt.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ss(t)}`),!0;if(p5(t,e.denyUrls))return Nt&&Tt.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ss(t)}.
Url: ${Oc(t)}`),!0;if(!m5(t,e.allowUrls))return Nt&&Tt.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ss(t)}.
Url: ${Oc(t)}`),!0}return!1}function d5(t,e){return e!=null&&e.length?Qx(t).some(n=>Ec(n,e)):!1}function h5(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?Ec(n,e):!1}function p5(t,e){if(!(e!=null&&e.length))return!1;const n=Oc(t);return n?Ec(n,e):!1}function m5(t,e){if(!(e!=null&&e.length))return!0;const n=Oc(t);return n?Ec(n,e):!0}function g5(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Oc(t){var e,n;try{const i=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(l=>{var u,f,d;return((u=l.mechanism)==null?void 0:u.parent_id)===void 0&&((d=(f=l.stacktrace)==null?void 0:f.frames)==null?void 0:d.length)}),a=(n=i==null?void 0:i.stacktrace)==null?void 0:n.frames;return a?g5(a):null}catch{return Nt&&Tt.error(`Cannot extract url for event ${Ss(t)}`),null}}function y5(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(i=>i.stacktrace||i.type&&i.type!=="Error"||i.value):!1}function b5(t,e,n,i,a,l){var f;if(!((f=a.exception)!=null&&f.values)||!l||!mi(l.originalException,Error))return;const u=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;u&&(a.exception.values=Xh(t,e,i,l.originalException,n,a.exception.values,u,0))}function Xh(t,e,n,i,a,l,u,f){if(l.length>=n+1)return l;let d=[...l];if(mi(i[a],Error)){dS(u,f);const h=t(e,i[a]),m=d.length;hS(h,a,m,f),d=Xh(t,e,n,i[a],a,[h,...d],h,m)}return Array.isArray(i.errors)&&i.errors.forEach((h,m)=>{if(mi(h,Error)){dS(u,f);const y=t(e,h),b=d.length;hS(y,`errors[${m}]`,b,f),d=Xh(t,e,n,h,a,[y,...d],y,b)}}),d}function dS(t,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function hS(t,e,n,i){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:i}}function v5(t){const e="console";bs(e,t),vs(e,x5)}function x5(){"console"in ne&&CM.forEach(function(t){t in ne.console&&Tn(ne.console,t,function(e){return yc[t]=e,function(...n){er("console",{args:n,level:t});const a=yc[t];a==null||a.apply(ne.console,n)}})})}function S5(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const w5="Dedupe",E5=(()=>{let t;return{name:w5,processEvent(e){if(e.type)return e;try{if(T5(e,t))return Nt&&Tt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function T5(t,e){return e?!!(C5(t,e)||_5(t,e)):!1}function C5(t,e){const n=t.message,i=e.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!mS(t,e)||!pS(t,e))}function _5(t,e){const n=gS(e),i=gS(t);return!(!n||!i||n.type!==i.type||n.value!==i.value||!mS(t,e)||!pS(t,e))}function pS(t,e){let n=Kv(t),i=Kv(e);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let a=0;a<i.length;a++){const l=i[a],u=n[a];if(l.filename!==u.filename||l.lineno!==u.lineno||l.colno!==u.colno||l.function!==u.function)return!1}return!0}function mS(t,e){let n=t.fingerprint,i=e.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function gS(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function yS(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const ll=ne;function A5(){return"history"in ll&&!!ll.history}function O5(){if(!("fetch"in ll))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Qh(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function R5(){var n;if(typeof EdgeRuntime=="string")return!0;if(!O5())return!1;if(Qh(ll.fetch))return!0;let t=!1;const e=ll.document;if(e&&typeof e.createElement=="function")try{const i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),(n=i.contentWindow)!=null&&n.fetch&&(t=Qh(i.contentWindow.fetch)),e.head.removeChild(i)}catch(i){Nt&&Tt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}function k5(t,e){const n="fetch";bs(n,t),vs(n,()=>D5(void 0,e))}function D5(t,e=!1){e&&!R5()||Tn(ne,"fetch",function(n){return function(...i){const a=new Error,{method:l,url:u}=N5(i),f={args:i,fetchData:{method:l,url:u},startTimestamp:zr()*1e3,virtualError:a,headers:M5(i)};return er("fetch",{...f}),n.apply(ne,i).then(async d=>(er("fetch",{...f,endTimestamp:zr()*1e3,response:d}),d),d=>{if(er("fetch",{...f,endTimestamp:zr()*1e3,error:d}),Ah(d)&&d.stack===void 0&&(d.stack=a.stack,xs(d,"framesToPop",1)),d instanceof TypeError&&(d.message==="Failed to fetch"||d.message==="Load failed"||d.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(f.fetchData.url);d.message=`${d.message} (${h.host})`}catch{}throw d})}})}function Zh(t,e){return!!t&&typeof t=="object"&&!!t[e]}function bS(t){return typeof t=="string"?t:t?Zh(t,"url")?t.url:t.toString?t.toString():"":""}function N5(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,i]=t;return{url:bS(n),method:Zh(i,"method")?String(i.method).toUpperCase():"GET"}}const e=t[0];return{url:bS(e),method:Zh(e,"method")?String(e.method).toUpperCase():"GET"}}function M5(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(FM(e))return new Headers(e.headers)}catch{}}function L5(){return"npm"}const Ee=ne;let Jh=0;function vS(){return Jh>0}function z5(){Jh++,setTimeout(()=>{Jh--})}function xa(t,e={}){function n(a){return typeof a=="function"}if(!n(t))return t;try{const a=t.__sentry_wrapped__;if(a)return typeof a=="function"?a:t;if(Dh(t))return t}catch{return t}const i=function(...a){try{const l=a.map(u=>xa(u,e));return t.apply(this,l)}catch(l){throw z5(),lL(u=>{u.addEventProcessor(f=>(e.mechanism&&(Lh(f,void 0),ma(f,e.mechanism)),f.extra={...f.extra,arguments:a},f)),_c(l)}),l}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a])}catch{}tx(i,t),xs(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return t.name}})}catch{}return i}function j5(){const t=kh(),{referrer:e}=Ee.document||{},{userAgent:n}=Ee.navigator||{},i={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:i}}function Wh(t,e){const n=ep(t,e),i={type:q5(e),value:F5(e)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function B5(t,e,n,i){const a=We(),l=a==null?void 0:a.getOptions().normalizeDepth,u=Y5(e),f={__serialized__:Ox(e,l)};if(u)return{exception:{values:[Wh(t,u)]},extra:f};const d={exception:{values:[{type:Sc(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:G5(e,{isUnhandledRejection:i})}]},extra:f};if(n){const h=ep(t,n);h.length&&(d.exception.values[0].stacktrace={frames:h})}return d}function tp(t,e){return{exception:{values:[Wh(t,e)]}}}function ep(t,e){const n=e.stacktrace||e.stack||"",i=U5(e),a=P5(e);try{return t(n,i,a)}catch{}return[]}const I5=/Minified React error #\d+;/i;function U5(t){return t&&I5.test(t.message)?1:0}function P5(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function xS(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function q5(t){const e=t==null?void 0:t.name;return!e&&xS(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function F5(t){const e=t==null?void 0:t.message;return xS(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function V5(t,e,n,i){const a=(n==null?void 0:n.syntheticException)||void 0,l=np(t,e,a,i);return ma(l),l.level="error",n!=null&&n.event_id&&(l.event_id=n.event_id),Tc(l)}function H5(t,e,n="info",i,a){const l=(i==null?void 0:i.syntheticException)||void 0,u=rp(t,e,l,a);return u.level=n,i!=null&&i.event_id&&(u.event_id=i.event_id),Tc(u)}function np(t,e,n,i,a){let l;if(Qv(e)&&e.error)return tp(t,e.error);if(Zv(e)||IM(e)){const u=e;if("stack"in e)l=tp(t,e);else{const f=u.name||(Zv(u)?"DOMError":"DOMException"),d=u.message?`${f}: ${u.message}`:f;l=rp(t,d,n,i),Lh(l,d)}return"code"in u&&(l.tags={...l.tags,"DOMException.code":`${u.code}`}),l}return Ah(e)?tp(t,e):nl(e)||Sc(e)?(l=B5(t,e,n,a),ma(l,{synthetic:!0}),l):(l=rp(t,e,n,i),Lh(l,`${e}`),ma(l,{synthetic:!0}),l)}function rp(t,e,n,i){const a={};if(i&&n){const l=ep(t,n);l.length&&(a.exception={values:[{value:e,stacktrace:{frames:l}}]}),ma(a,{synthetic:!0})}if(Oh(e)){const{__sentry_template_string__:l,__sentry_template_values__:u}=e;return a.logentry={message:l,params:u},a}return a.message=e,a}function G5(t,{isUnhandledRejection:e}){const n=KM(t),i=e?"promise rejection":"exception";return Qv(t)?`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``:Sc(t)?`Event \`${K5(t)}\` (type=${t.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function K5(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Y5(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}class $5 extends Q4{constructor(e){var m;const n=X5(e),i=Ee.SENTRY_SDK_SOURCE||L5();lS(n,"browser",["browser"],i),(m=n._metadata)!=null&&m.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:a,sendClientReports:l,enableLogs:u,_experiments:f,enableMetrics:d}=this._options,h=d??(f==null?void 0:f.enableMetrics)??!0;Ee.document&&(l||u||h)&&Ee.document.addEventListener("visibilitychange",()=>{Ee.document.visibilityState==="hidden"&&(l&&this._flushOutcomes(),u&&Gx(this),h&&Yx(this))}),a&&this.on("beforeSendSession",r5)}eventFromException(e,n){return V5(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",i){return H5(this._options.stackParser,e,n,i,this._options.attachStacktrace)}_prepareEvent(e,n,i,a){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,i,a)}}function X5(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=Ee.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const Q5=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tn=ne,Z5=1e3;let SS,ip,sp;function J5(t){bs("dom",t),vs("dom",W5)}function W5(){if(!tn.document)return;const t=er.bind(null,"dom"),e=wS(t,!0);tn.document.addEventListener("click",e,!1),tn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var l,u;const a=(l=tn[n])==null?void 0:l.prototype;(u=a==null?void 0:a.hasOwnProperty)!=null&&u.call(a,"addEventListener")&&(Tn(a,"addEventListener",function(f){return function(d,h,m){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},b=y[d]=y[d]||{refCount:0};if(!b.handler){const v=wS(t);b.handler=v,f.call(this,d,v,m)}b.refCount++}catch{}return f.call(this,d,h,m)}}),Tn(a,"removeEventListener",function(f){return function(d,h,m){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},b=y[d];b&&(b.refCount--,b.refCount<=0&&(f.call(this,d,b.handler,m),b.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return f.call(this,d,h,m)}}))})}function tz(t){if(t.type!==ip)return!1;try{if(!t.target||t.target._sentryId!==sp)return!1}catch{}return!0}function ez(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function wS(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const i=nz(n);if(ez(n.type,i))return;xs(n,"_sentryCaptured",!0),i&&!i._sentryId&&xs(i,"_sentryId",zn());const a=n.type==="keypress"?"input":n.type;tz(n)||(t({event:n,name:a,global:e}),ip=n.type,sp=i?i._sentryId:void 0),clearTimeout(SS),SS=tn.setTimeout(()=>{sp=void 0,ip=void 0},Z5)}}function nz(t){try{return t.target}catch{return null}}let Rc;function ES(t){const e="history";bs(e,t),vs(e,rz)}function rz(){if(tn.addEventListener("popstate",()=>{const e=tn.location.href,n=Rc;if(Rc=e,n===e)return;er("history",{from:n,to:e})}),!A5())return;function t(e){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=Rc,l=iz(String(i));if(Rc=l,a===l)return e.apply(this,n);er("history",{from:a,to:l})}return e.apply(this,n)}}Tn(tn.history,"pushState",t),Tn(tn.history,"replaceState",t)}function iz(t){try{return new URL(t,tn.location.origin).toString()}catch{return t}}const kc={};function sz(t){const e=kc[t];if(e)return e;let n=tn[t];if(Qh(n))return kc[t]=n.bind(tn);const i=tn.document;if(i&&typeof i.createElement=="function")try{const a=i.createElement("iframe");a.hidden=!0,i.head.appendChild(a);const l=a.contentWindow;l!=null&&l[t]&&(n=l[t]),i.head.removeChild(a)}catch(a){Q5&&Tt.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,a)}return n&&(kc[t]=n.bind(tn))}function az(t){kc[t]=void 0}const ul="__sentry_xhr_v3__";function oz(t){bs("xhr",t),vs("xhr",lz)}function lz(){if(!tn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,i){const a=new Error,l=zr()*1e3,u=Lr(i[0])?i[0].toUpperCase():void 0,f=uz(i[1]);if(!u||!f)return e.apply(n,i);n[ul]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const h=n[ul];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const m={endTimestamp:zr()*1e3,startTimestamp:l,xhr:n,virtualError:a};er("xhr",m)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,m,y){return d(),h.apply(m,y)}}):n.addEventListener("readystatechange",d),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,m,y){const[b,v]=y,S=m[ul];return S&&Lr(b)&&Lr(v)&&(S.request_headers[b.toLowerCase()]=v),h.apply(m,y)}}),e.apply(n,i)}}),t.send=new Proxy(t.send,{apply(e,n,i){const a=n[ul];if(!a)return e.apply(n,i);i[0]!==void 0&&(a.body=i[0]);const l={startTimestamp:zr()*1e3,xhr:n};return er("xhr",l),e.apply(n,i)}})}function uz(t){if(Lr(t))return t;try{return t.toString()}catch{}}const cz=40;function fz(t,e=sz("fetch")){let n=0,i=0;async function a(l){const u=l.body.length;n+=u,i++;const f={body:l.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&i<15,...t.fetchOptions};try{const d=await e(t.url,f);return{statusCode:d.status,headers:{"x-sentry-rate-limits":d.headers.get("X-Sentry-Rate-Limits"),"retry-after":d.headers.get("Retry-After")}}}catch(d){throw az("fetch"),d}finally{n-=u,i--}}return G4(t,a,Gh(t.bufferSize||cz))}const Dc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dz=30,hz=50;function ap(t,e,n,i){const a={filename:t,function:e==="<anonymous>"?ys:e,in_app:!0};return n!==void 0&&(a.lineno=n),i!==void 0&&(a.colno=i),a}const pz=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mz=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gz=/\((\S*)(?::(\d+))(?::(\d+))\)/,yz=/at (.+?) ?\(data:(.+?),/,bz=[dz,t=>{const e=t.match(yz);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=pz.exec(t);if(n){const[,a,l,u]=n;return ap(a,ys,+l,+u)}const i=mz.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){const f=gz.exec(i[2]);f&&(i[2]=f[1],i[3]=f[2],i[4]=f[3])}const[l,u]=TS(i[1]||ys,i[2]);return ap(u,l,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],vz=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xz=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Sz=Gv(...[bz,[hz,t=>{const e=vz.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const l=xz.exec(e[3]);l&&(e[1]=e[1]||"eval",e[3]=l[1],e[4]=l[2],e[5]="")}let i=e[3],a=e[1]||ys;return[a,i]=TS(a,i),ap(i,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),TS=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,i=t.indexOf("safari-web-extension")!==-1;return n||i?[t.indexOf("@")!==-1?t.split("@")[0]:ys,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Nc=1024,wz="Breadcrumbs",Ez=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:wz,setup(n){e.console&&v5(_z(n)),e.dom&&J5(Cz(n,e.dom)),e.xhr&&oz(Az(n)),e.fetch&&k5(Oz(n)),e.history&&ES(Rz(n)),e.sentry&&n.on("beforeSendEvent",Tz(n))}}});function Tz(t){return function(n){We()===t&&ws({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ss(n)},{event:n})}}function Cz(t,e){return function(i){if(We()!==t)return;let a,l,u=typeof e=="object"?e.serializeAttribute:void 0,f=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;f&&f>Nc&&(Dc&&Tt.warn(`\`dom.maxStringLength\` cannot exceed ${Nc}, but a value of ${f} was configured. Sentry will use ${Nc} instead.`),f=Nc),typeof u=="string"&&(u=[u]);try{const h=i.event,m=kz(h)?h.target:h;a=Wv(m,{keyAttrs:u,maxStringLength:f}),l=GM(m)}catch{a="<unknown>"}if(a.length===0)return;const d={category:`ui.${i.name}`,message:a};l&&(d.data={"ui.component_name":l}),ws(d,{event:i.event,name:i.name,global:i.global})}}function _z(t){return function(n){if(We()!==t)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:S5(n.level),message:ix(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${ix(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ws(i,{input:n.args,level:n.level})}}function Az(t){return function(n){if(We()!==t)return;const{startTimestamp:i,endTimestamp:a}=n,l=n.xhr[ul];if(!i||!a||!l)return;const{method:u,url:f,status_code:d,body:h}=l,m={method:u,url:f,status_code:d},y={xhr:n.xhr,input:h,startTimestamp:i,endTimestamp:a},b={category:"xhr",data:m,type:"http",level:yS(d)};t.emit("beforeOutgoingRequestBreadcrumb",b,y),ws(b,y)}}function Oz(t){return function(n){if(We()!==t)return;const{startTimestamp:i,endTimestamp:a}=n;if(a&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const l=n.fetchData,u={data:n.error,input:n.args,startTimestamp:i,endTimestamp:a},f={category:"fetch",data:l,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",f,u),ws(f,u)}else{const l=n.response,u={...n.fetchData,status_code:l==null?void 0:l.status};n.fetchData.request_body_size,n.fetchData.response_body_size,l==null||l.status;const f={input:n.args,response:l,startTimestamp:i,endTimestamp:a},d={category:"fetch",data:u,type:"http",level:yS(u.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",d,f),ws(d,f)}}}function Rz(t){return function(n){if(We()!==t)return;let i=n.from,a=n.to;const l=$h(Ee.location.href);let u=i?$h(i):void 0;const f=$h(a);u!=null&&u.path||(u=l),l.protocol===f.protocol&&l.host===f.host&&(a=f.relative),l.protocol===u.protocol&&l.host===u.host&&(i=u.relative),ws({category:"navigation",data:{from:i,to:a}})}}function kz(t){return!!t&&!!t.target}const Dz=["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"],Nz="BrowserApiErrors",Mz=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Nz,setupOnce(){e.setTimeout&&Tn(Ee,"setTimeout",CS),e.setInterval&&Tn(Ee,"setInterval",CS),e.requestAnimationFrame&&Tn(Ee,"requestAnimationFrame",Lz),e.XMLHttpRequest&&"XMLHttpRequest"in Ee&&Tn(XMLHttpRequest.prototype,"send",zz);const n=e.eventTarget;n&&(Array.isArray(n)?n:Dz).forEach(a=>jz(a,e))}}});function CS(t){return function(...e){const n=e[0];return e[0]=xa(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${pi(t)}`}}),t.apply(this,e)}}function Lz(t){return function(e){return t.apply(this,[xa(e,{mechanism:{data:{handler:pi(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function zz(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(a=>{a in n&&typeof n[a]=="function"&&Tn(n,a,function(l){const u={mechanism:{data:{handler:pi(l)},handled:!1,type:`auto.browser.browserapierrors.xhr.${a}`}},f=Dh(l);return f&&(u.mechanism.data.handler=pi(f)),xa(l,u)})}),t.apply(this,e)}}function jz(t,e){var a,l;const i=(a=Ee[t])==null?void 0:a.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(Tn(i,"addEventListener",function(u){return function(f,d,h){try{Bz(d)&&(d.handleEvent=xa(d.handleEvent,{mechanism:{data:{handler:pi(d),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&Iz(this,f,d),u.apply(this,[f,xa(d,{mechanism:{data:{handler:pi(d),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),h])}}),Tn(i,"removeEventListener",function(u){return function(f,d,h){try{const m=d.__sentry_wrapped__;m&&u.call(this,f,m,h)}catch{}return u.call(this,f,d,h)}}))}function Bz(t){return typeof t.handleEvent=="function"}function Iz(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Uz=()=>({name:"BrowserSession",setupOnce(){if(typeof Ee.document>"u"){Dc&&Tt.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Ix({ignoreDuration:!0}),qx(),ES(({from:t,to:e})=>{t!==void 0&&t!==e&&(Ix({ignoreDuration:!0}),qx())})}}),Pz="GlobalHandlers",qz=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Pz,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Fz(n),_S("onerror")),e.onunhandledrejection&&(Vz(n),_S("onunhandledrejection"))}}});function Fz(t){LM(e=>{const{stackParser:n,attachStacktrace:i}=AS();if(We()!==t||vS())return;const{msg:a,url:l,line:u,column:f,error:d}=e,h=Kz(np(n,d||a,void 0,i,!1),l,u,f);h.level="error",Bx(h,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Vz(t){jM(e=>{const{stackParser:n,attachStacktrace:i}=AS();if(We()!==t||vS())return;const a=Hz(e),l=xc(a)?Gz(a):np(n,a,void 0,i,!0);l.level="error",Bx(l,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Hz(t){if(xc(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Gz(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Kz(t,e,n,i){const a=t.exception=t.exception||{},l=a.values=a.values||[],u=l[0]=l[0]||{},f=u.stacktrace=u.stacktrace||{},d=f.frames=f.frames||[],h=i,m=n,y=Yz(e)??kh();return d.length===0&&d.push({colno:h,filename:y,function:ys,in_app:!0,lineno:m}),t}function _S(t){Dc&&Tt.log(`Global Handler attached: ${t}`)}function AS(){const t=We();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Yz(t){if(!(!Lr(t)||t.length===0)){if(t.startsWith("data:")){const e=t.match(/^data:([^;]+)/),n=e?e[1]:"text/javascript",i=t.includes("base64,");return`<data:${n}${i?",base64":""}>`}return t}}const $z=()=>({name:"HttpContext",preprocessEvent(t){var i;if(!Ee.navigator&&!Ee.location&&!Ee.document)return;const e=j5(),n={...e.headers,...(i=t.request)==null?void 0:i.headers};t.request={...e,...t.request,headers:n}}}),Xz="cause",Qz=5,Zz="LinkedErrors",Jz=((t={})=>{const e=t.limit||Qz,n=t.key||Xz;return{name:Zz,preprocessEvent(i,a,l){const u=l.getOptions();b5(Wh,u.stackParser,n,e,i,a)}}});function Wz(){return tj()?(Dc&&ha(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function tj(){var l;if(typeof Ee.window>"u")return!1;const t=Ee;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((l=e==null?void 0:e.runtime)!=null&&l.id))return!1;const n=kh(),i=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Ee===Ee.top&&i.some(u=>n.startsWith(`${u}://`)))}function ej(t){return[c5(),a5(),Mz(),Ez(),qz(),Jz(),E5(),$z(),Uz()]}function nj(t={}){const e=!t.skipBrowserExtensionCheck&&Wz();let n=t.defaultIntegrations==null?ej():t.defaultIntegrations;const i={...t,enabled:e?!1:t.enabled,stackParser:NM(t.stackParser||Sz),integrations:N4({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||fz};return e5($5,i)}function rj(t){const e={...t};return lS(e,"react"),C4("react",{version:I.version}),nj(e)}const ij=({children:t})=>{const{reset:e}=Fb();return M.jsx(EM,{onReset:e,fallback:M.jsx(M.Fragment,{}),onError:n=>{_c(n,{tags:{embed:!0}})},children:t})},cl={APP_URL:"https://fe.chatbot.bezvabot.cz",BASE_URL:"https://be.chatbot.bezvabot.cz"},Es=me.create({baseURL:cl.BASE_URL,withCredentials:!0});class sj extends Hb{constructor(n){super(n);Jt(this,"axiosInstance",Es)}request(n){return zv(this.config,n,this.axiosInstance)}}const bi=new vM({BASE:cl.BASE_URL,WITH_CREDENTIALS:!0},sj),OS=t=>{let e;const n=new Set,i=(h,m)=>{const y=typeof h=="function"?h(e):h;if(!Object.is(y,e)){const b=e;e=m??(typeof y!="object"||y===null)?y:Object.assign({},e,y),n.forEach(v=>v(e,b))}},a=()=>e,f={setState:i,getState:a,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=e=t(i,a,f);return f},aj=(t=>t?OS(t):OS),oj=t=>t;function lj(t,e=oj){const n=Xo.useSyncExternalStore(t.subscribe,Xo.useCallback(()=>e(t.getState()),[t,e]),Xo.useCallback(()=>e(t.getInitialState()),[t,e]));return Xo.useDebugValue(n),n}const RS=t=>{const e=aj(t),n=i=>lj(e,i);return Object.assign(n,e),n},kS=(t=>t?RS(t):RS);function DS(t,e){let n;try{n=t()}catch{return}return{getItem:a=>{var l;const u=d=>d===null?null:JSON.parse(d,void 0),f=(l=n.getItem(a))!=null?l:null;return f instanceof Promise?f.then(u):u(f)},setItem:(a,l)=>n.setItem(a,JSON.stringify(l,void 0)),removeItem:a=>n.removeItem(a)}}const op=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(i){return op(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return op(i)(n)}}}},fl=kS(((t,e)=>(n,i,a)=>{let l={storage:DS(()=>localStorage),partialize:w=>w,version:0,merge:(w,C)=>({...C,...w}),...e},u=!1;const f=new Set,d=new Set;let h=l.storage;if(!h)return t((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...w)},i,a);const m=()=>{const w=l.partialize({...i()});return h.setItem(l.name,{state:w,version:l.version})},y=a.setState;a.setState=(w,C)=>(y(w,C),m());const b=t((...w)=>(n(...w),m()),i,a);a.getInitialState=()=>b;let v;const S=()=>{var w,C;if(!h)return;u=!1,f.forEach(L=>{var R;return L((R=i())!=null?R:b)});const _=((C=l.onRehydrateStorage)==null?void 0:C.call(l,(w=i())!=null?w:b))||void 0;return op(h.getItem.bind(h))(l.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==l.version){if(l.migrate){const R=l.migrate(L.state,L.version);return R instanceof Promise?R.then(B=>[!0,B]):[!0,R]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,L.state];return[!1,void 0]}).then(L=>{var R;const[B,K]=L;if(v=l.merge(K,(R=i())!=null?R:b),n(v,!0),B)return m()}).then(()=>{_==null||_(v,void 0),v=i(),u=!0,d.forEach(L=>L(v))}).catch(L=>{_==null||_(void 0,L)})};return a.persist={setOptions:w=>{l={...l,...w},w.storage&&(h=w.storage)},clearStorage:()=>{h==null||h.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>S(),hasHydrated:()=>u,onHydrate:w=>(f.add(w),()=>{f.delete(w)}),onFinishHydration:w=>(d.add(w),()=>{d.delete(w)})},l.skipHydration||S(),v||b})(t=>({data:void 0,setSession:e=>t({data:e})}),{name:"bezvabot-session-store",storage:DS(()=>localStorage),partialize:t=>{if(!t.data)return{setSession:t.setSession};const{...e}=t.data;return{data:e,setSession:t.setSession}}})),NS=kS((t,e)=>({data:void 0,actions:{setTenantCode:n=>t(()=>({tenantCode:n})),getTenantCode:()=>e().tenantCode}}));function Mc(){const t=NS(n=>n.tenantCode),e=new URLSearchParams(window.location.search);return t||e.get("tenantCode")}function MS(){const[t,e]=I.useState(!1);I.useEffect(()=>{if(typeof window>"u")return;const a=new URLSearchParams(window.location.search).get("bezvabot-debug");e(a==="true")},[]);const n=I.useCallback(i=>{if(typeof window>"u")return;const a=new URL(window.location.href);a.searchParams.set("bezvabot-debug",String(i)),window.history.replaceState({},"",a);try{localStorage.removeItem("bezvabot-session-store")}catch(l){console.warn("Nepodařilo se smazat localStorage položku:",l)}window.location.reload()},[]);return{isDebugMode:t,setIsDebugMode:n}}const uj=()=>ec({mutationKey:["statsEventCreate"],mutationFn:async t=>bi.statistics.statisticsControllerCreate(t)}),dl=()=>{const t=Mc(),{mutate:e}=uj(),{isDebugMode:n}=MS();return{fireEvent:(a,l={})=>{n||e({requestBody:{eventType:a,tenantCode:t,properties:{...l,source:window.location.href}}})}}},LS=t=>({role:tr.USER,messageBlocks:[{type:vh.type.TEXT,content:{text:t},order:0}]}),zS=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:[...(n==null?void 0:n.messages)??[],e]}))},jS=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:e}))},BS=(t,e)=>{e&&t.setQueryData(["chat"],e)},cj=()=>{const t=Mc(),e=la(),n=fl(l=>l.setSession),{isDebugMode:i}=MS(),{fireEvent:a}=dl();return ec({mutationKey:["chat-session-init"],mutationFn:async()=>bi.chatSessions.chatSessionsControllerInit({requestBody:{tenantCode:t,isDebugMode:i}}),onSuccess:l=>{e.invalidateQueries({queryKey:["chat"]}),n({token:l.token}),a("fe.chatSession.init")}})},IS=()=>{const{fireEvent:t}=dl(),e=I.useRef(!1),n=tc({queryKey:["chat"],queryFn:async()=>bi.chatSessions.chatSessionsControllerPutCurrent({requestBody:{currentPageUrl:window.location.href}}),staleTime:6e4});return I.useEffect(()=>{!e.current&&n.isSuccess&&(e.current=!0,t("fe.chatSession.loaded"))},[n.isSuccess,t]),n},fj=()=>{const t=la();return ec({mutationKey:["resolve-from-message-templates"],mutationFn:async e=>bi.chatSessions.chatSessionsControllerResolveFromMessageTemplates({requestBody:{messageTemplateId:e.messageTemplateId}}),onMutate:async e=>{await t.cancelQueries({queryKey:["chat"]}),await t.cancelQueries({queryKey:["unused-message-templates"]});const n=t.getQueryData(["chat"]),i=t.getQueryData(["unused-message-templates"]);return zS(t,LS(e.content)),t.setQueryData(["unused-message-templates"],(a=[])=>a.filter(l=>l.id!==e.messageTemplateId)),{previousData:n,previousTemplates:i}},onSuccess:e=>{jS(t,e)},onError:(e,n,i)=>{BS(t,i==null?void 0:i.previousData),i!=null&&i.previousTemplates&&t.setQueryData(["unused-message-templates"],i.previousTemplates),_c(e,{tags:{embed:!0}})}})},dj=()=>({...tc({queryKey:["unused-message-templates"],queryFn:async()=>bi.chatSessions.chatSessionsControllerGetUnusedMessageTemplates(),staleTime:6e4})}),hj=()=>{const t=la();return ec({mutationKey:["send-message"],mutationFn:async e=>bi.chatSessions.chatSessionsControllerGetAiResponse({requestBody:e}),onMutate:async e=>{await t.cancelQueries({queryKey:["chat"]});const n=t.getQueryData(["chat"]);return zS(t,LS(e.message)),{previousData:n}},onSuccess:e=>{jS(t,e),t.invalidateQueries({queryKey:["chat"]})},onError:(e,n,i)=>{BS(t,i==null?void 0:i.previousData),_c(e,{tags:{embed:!0}})}})},br=()=>{const t=Mc(),{fireEvent:e}=dl();return{...tc({queryKey:["tenant",t],queryFn:async()=>{const i=await bi.tenants.tenantsControllerGetByTenantCode({tenantCode:t});return e("fe.tenant.loaded"),i},staleTime:1/0})}};function pj(){const{data:t,isLoading:e}=br();return I.useEffect(()=>{const n=document.getElementById("chatbot-widget-container"),i=document.getElementById("bezvabot-container");t!=null&&t.chatbotThemeVariables&&n&&Object.entries(t.chatbotThemeVariables).forEach(([a,l])=>{n.style.setProperty(a,l)}),t!=null&&t.chatbotThemeVariables&&i&&Object.entries(t.chatbotThemeVariables).forEach(([a,l])=>{i.style.setProperty(a,l)})},[t==null?void 0:t.chatbotThemeVariables]),{isLoading:e}}let lp=null,up=[];function US(t){up.push(t)}function PS(t){up.forEach(e=>e(t)),up=[]}const mj=({children:t})=>{const{mutateAsync:e}=cj(),n=fl(u=>{var f;return(f=u.data)==null?void 0:f.token}),{data:i,isLoading:a}=br(),{isLoading:l}=pj();return I.useEffect(()=>{const u=Es.interceptors.request.use(h=>{var y;const m=(y=fl.getState().data)==null?void 0:y.token;return m&&(h.headers=h.headers||{},h.headers.Authorization=`Bearer ${m}`),h},h=>Promise.reject(h)),f=async h=>{var v,S;const m=(v=h.response)==null?void 0:v.status,y=h.config;return!y||((S=y.url)==null?void 0:S.includes("/init"))||m!==401||y._retry?Promise.reject(h):(y._retry=!0,lp?new Promise((w,C)=>{US(_=>{if(!_)return C(h);y.headers=y.headers||{},y.headers.Authorization=`Bearer ${_}`,w(Es(y))})}):(lp=(async()=>{var w;try{await e();const C=((w=fl.getState().data)==null?void 0:w.token)??null;PS(C)}catch(C){throw PS(null),C}finally{lp=null}})(),new Promise((w,C)=>{US(_=>{if(!_)return C(h);y.headers=y.headers||{},y.headers.Authorization=`Bearer ${_}`,w(Es(y))})})))},d=Es.interceptors.response.use(h=>h,f);return()=>{Es.interceptors.request.eject(u),Es.interceptors.response.eject(d)}},[e,n]),!i||a||l?null:t},gj=({tenantCode:t,children:e})=>{const n=NS(a=>a.actions.setTenantCode),i=Mc();return I.useEffect(()=>{n(t)},[t,n]),i?e:null},yj=(t,e=!0)=>({...tc({queryKey:["product",t],queryFn:async()=>bi.products.productsControllerGetProductByDetailUrl(t),staleTime:1/0,enabled:!!t&&e})});function qS(){const{data:t}=br();return yj(t?{tenantId:t.id,detailUrl:window.location.href}:void 0,t==null?void 0:t.productEnabled)}function FS(t){return t<0?0:t>1?1:t}function bj(){var l;if(typeof window>"u")return 0;const t=document.documentElement,e=window.scrollY??t.scrollTop??0,n=t.scrollHeight??((l=document.body)==null?void 0:l.scrollHeight)??0,i=t.clientHeight??window.innerHeight??0,a=n-i;return a<=0?1:FS(e/a)}function VS({storageKey:t,enabled:e=!0,delayMs:n,onFire:i,cancelRef:a,cooldownMs:l,scrollRatio:u,coordinateAcrossTabs:f=!0}){const d=I.useRef(null),h=I.useRef(i);h.current=i;const m=I.useRef(!1),y=`${t}_last_shown_at`,b=`${t}_scheduled_at`,v=typeof u=="number"&&!Number.isNaN(u)?FS(u):null,S=()=>{d.current&&(clearTimeout(d.current),d.current=null)},w=()=>{try{typeof window<"u"&&(window.localStorage.setItem(y,String(Date.now())),window.localStorage.removeItem(b))}catch{}m.current=!0,S()},C=()=>{try{typeof window<"u"&&window.localStorage.removeItem(b)}catch{}S()},_=()=>{if(!(typeof l=="number"&&l>0))return!1;try{const H=typeof window<"u"?window.localStorage.getItem(y):null,Y=H?parseInt(H,10):NaN;return Number.isFinite(Y)&&Date.now()-Y<l}catch{return!1}},L=()=>{try{if(typeof window>"u")return null;const H=window.localStorage.getItem(b),Y=H?parseInt(H,10):NaN;return Number.isFinite(Y)?Y:null}catch{return null}},R=()=>{const H=L();if(H!=null)return H;const Y=Date.now();try{typeof window<"u"&&window.localStorage.setItem(b,String(Y))}catch{}return Y},B=()=>{try{typeof window<"u"&&(window.localStorage.setItem(y,String(Date.now())),window.localStorage.removeItem(b))}catch{}},K=()=>{if(!(typeof n=="number"&&n>=0))return!1;const H=L();return H==null?!1:Date.now()-H>=n},j=()=>v==null?!1:bj()>=v,q=()=>{!e||m.current||a!=null&&a.current||_()||!(K()||j())||(m.current=!0,B(),S(),h.current())},N=()=>{if(!e||m.current||!(typeof n=="number"&&n>=0)||_())return;const H=R(),Y=Math.max(0,n-(Date.now()-H));S(),d.current=setTimeout(()=>{q()},Y)};return I.useEffect(()=>{if(m.current=!1,!e){C();return}return N(),q(),()=>S()},[e,t,n,l,v]),I.useEffect(()=>{if(typeof window>"u"||!e||v==null)return;let H=null;const Y=()=>{H==null&&(H=window.requestAnimationFrame(()=>{H=null,q()}))};return window.addEventListener("scroll",Y,{passive:!0}),window.addEventListener("resize",Y),q(),()=>{H!=null&&window.cancelAnimationFrame(H),window.removeEventListener("scroll",Y),window.removeEventListener("resize",Y)}},[e,v,t,l,n]),I.useEffect(()=>{if(!f||typeof window>"u")return;const H=Y=>{(Y.key===y||Y.key===b)&&(N(),q())};return window.addEventListener("storage",H),()=>window.removeEventListener("storage",H)},[e,t,n,l,v,f]),{blockForCooldown:w,clearSchedule:C,reschedule:N}}var jn=(t=>(t.WELCOME_NOTIFICATION="WELCOME_NOTIFICATION",t.PRODUCT_DETAIL_NOTIFICATION="PRODUCT_DETAIL_NOTIFICATION",t.CHAT_OPENED="CHAT_OPENED",t.CHAT_CLOSED="CHAT_CLOSED",t))(jn||{});const vj=1440*60*1e3,xj="welcome_notification",Sj="product_notification",wj=()=>{var _,L;const{data:t}=br(),[e,n]=I.useState("CHAT_CLOSED"),i=I.useRef(!1),[a,l]=I.useState(void 0),[u,f]=I.useState(void 0),{fireEvent:d}=dl(),{data:h}=qS();VS({delayMs:(t==null?void 0:t.welcomeNotificationDelayMs)??null,cancelRef:i,onFire:()=>{C("WELCOME_NOTIFICATION");try{new Audio("/notification.mp3").play().catch(()=>{})}catch{}},coordinateAcrossTabs:!1,cooldownMs:vj,storageKey:xj,enabled:!(h!=null&&h.notificationSettings)}),VS({delayMs:(_=h==null?void 0:h.notificationSettings)==null?void 0:_.notificationDelayMs,scrollRatio:(L=h==null?void 0:h.notificationSettings)==null?void 0:L.notificationShowAfterScrollRatio,cancelRef:i,onFire:()=>{C("PRODUCT_DETAIL_NOTIFICATION");try{new Audio("/notification.mp3").play().catch(()=>{})}catch{}},coordinateAcrossTabs:!1,storageKey:Sj,enabled:!!(h!=null&&h.notificationSettings)});const m=R=>{l(R),d("fe.chat.welcomeMessage.message-template.click",{messageTemplate:R}),C("CHAT_OPENED")},y=R=>{const{label:B,icon:K}=R;f((K?K+" ":"")+B),C("CHAT_OPENED")},b=R=>{d("fe.chat.welcomeMessage.action-button.click",{actionButton:R}),y(R)},v=R=>{d("fe.chat.productNotification.action-button.click",{actionButton:R}),y(R)},S=()=>l(void 0),w=()=>f(void 0),C=R=>{if(R==="CHAT_OPENED"){i.current=!0;try{typeof window<"u"&&(localStorage.setItem("welcome_notification_last_shown_at",String(Date.now())),localStorage.removeItem("welcome_notification_scheduled_at"))}catch{}}n(R),d("fe.chat.state.change",{state:R})};return I.useEffect(()=>{},[t==null?void 0:t.welcomeNotificationDelayMs]),{chatState:e,onChatStateChange:C,onInitMessageTemplateSelect:m,selectedInitMessageTemplate:a,clearInitMessageTemplateSelect:S,initUserTextMessage:u,clearInitUserMessage:w,onWelcomeMessageActionButtonSelect:b,onProductNotificationButtonSelect:v}},Ej=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},Tj=(t,e)=>({classGroupId:t,validator:e}),HS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Lc="-",GS=[],Cj="arbitrary..",_j=t=>{const e=Oj(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Aj(u);const f=u.split(Lc),d=f[0]===""&&f.length>1?1:0;return KS(f,d,e)},getConflictingClassGroupIds:(u,f)=>{if(f){const d=i[u],h=n[u];return d?h?Ej(h,d):d:h||GS}return n[u]||GS}}},KS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const h=KS(t,e+1,l);if(h)return h}const u=n.validators;if(u===null)return;const f=e===0?t.join(Lc):t.slice(e).join(Lc),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(f))return m.classGroupId}},Aj=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?Cj+i:void 0})(),Oj=t=>{const{theme:e,classGroups:n}=t;return Rj(n,e)},Rj=(t,e)=>{const n=HS();for(const i in t){const a=t[i];cp(a,n,i,e)}return n},cp=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];kj(u,e,n,i)}},kj=(t,e,n,i)=>{if(typeof t=="string"){Dj(t,e,n);return}if(typeof t=="function"){Nj(t,e,n,i);return}Mj(t,e,n,i)},Dj=(t,e,n)=>{const i=t===""?e:YS(e,t);i.classGroupId=n},Nj=(t,e,n,i)=>{if(Lj(t)){cp(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Tj(n,t))},Mj=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[f,d]=a[u];cp(d,YS(e,f),n,i)}},YS=(t,e)=>{let n=t;const i=e.split(Lc),a=i.length;for(let l=0;l<a;l++){const u=i[l];let f=n.nextPart.get(u);f||(f=HS(),n.nextPart.set(u,f)),n=f}return n},Lj=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,zj=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},fp="!",$S=":",jj=[],XS=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Bj=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let u=0,f=0,d=0,h;const m=a.length;for(let w=0;w<m;w++){const C=a[w];if(u===0&&f===0){if(C===$S){l.push(a.slice(d,w)),d=w+1;continue}if(C==="/"){h=w;continue}}C==="["?u++:C==="]"?u--:C==="("?f++:C===")"&&f--}const y=l.length===0?a:a.slice(d);let b=y,v=!1;y.endsWith(fp)?(b=y.slice(0,-1),v=!0):y.startsWith(fp)&&(b=y.slice(1),v=!0);const S=h&&h>d?h-d:void 0;return XS(l,v,b,S)};if(e){const a=e+$S,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):XS(jj,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},Ij=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],f=u[0]==="[",d=e.has(u);f||d?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},Uj=t=>({cache:zj(t.cacheSize),parseClassName:Bj(t),sortModifiers:Ij(t),..._j(t)}),Pj=/\s+/,qj=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],f=t.trim().split(Pj);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:b,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:w}=n(m);if(y){d=m+(d.length>0?" "+d:d);continue}let C=!!w,_=i(C?S.substring(0,w):S);if(!_){if(!C){d=m+(d.length>0?" "+d:d);continue}if(_=i(S),!_){d=m+(d.length>0?" "+d:d);continue}C=!1}const L=b.length===0?"":b.length===1?b[0]:l(b).join(":"),R=v?L+fp:L,B=R+_;if(u.indexOf(B)>-1)continue;u.push(B);const K=a(_,C);for(let j=0;j<K.length;++j){const q=K[j];u.push(R+q)}d=m+(d.length>0?" "+d:d)}return d},Fj=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=QS(n))&&(a&&(a+=" "),a+=i);return a},QS=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=QS(t[i]))&&(n&&(n+=" "),n+=e);return n},Vj=(t,...e)=>{let n,i,a,l;const u=d=>{const h=e.reduce((m,y)=>y(m),t());return n=Uj(h),i=n.cache.get,a=n.cache.set,l=f,f(d)},f=d=>{const h=i(d);if(h)return h;const m=qj(d,n);return a(d,m),m};return l=u,(...d)=>l(Fj(...d))},Hj=[],ze=t=>{const e=n=>n[t]||Hj;return e.isThemeGetter=!0,e},ZS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,JS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gj=/^\d+\/\d+$/,Kj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sa=t=>Gj.test(t),Bt=t=>!!t&&!Number.isNaN(Number(t)),vi=t=>!!t&&Number.isInteger(Number(t)),dp=t=>t.endsWith("%")&&Bt(t.slice(0,-1)),Ir=t=>Kj.test(t),Zj=()=>!0,Jj=t=>Yj.test(t)&&!$j.test(t),WS=()=>!1,Wj=t=>Xj.test(t),t3=t=>Qj.test(t),e3=t=>!pt(t)&&!mt(t),n3=t=>wa(t,iw,WS),pt=t=>ZS.test(t),Ts=t=>wa(t,sw,Jj),hp=t=>wa(t,o3,Bt),tw=t=>wa(t,nw,WS),r3=t=>wa(t,rw,t3),zc=t=>wa(t,aw,Wj),mt=t=>JS.test(t),hl=t=>Ea(t,sw),i3=t=>Ea(t,l3),ew=t=>Ea(t,nw),s3=t=>Ea(t,iw),a3=t=>Ea(t,rw),jc=t=>Ea(t,aw,!0),wa=(t,e,n)=>{const i=ZS.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},Ea=(t,e,n=!1)=>{const i=JS.exec(t);return i?i[1]?e(i[1]):n:!1},nw=t=>t==="position"||t==="percentage",rw=t=>t==="image"||t==="url",iw=t=>t==="length"||t==="size"||t==="bg-size",sw=t=>t==="length",o3=t=>t==="number",l3=t=>t==="family-name",aw=t=>t==="shadow",ge=Vj(()=>{const t=ze("color"),e=ze("font"),n=ze("text"),i=ze("font-weight"),a=ze("tracking"),l=ze("leading"),u=ze("breakpoint"),f=ze("container"),d=ze("spacing"),h=ze("radius"),m=ze("shadow"),y=ze("inset-shadow"),b=ze("text-shadow"),v=ze("drop-shadow"),S=ze("blur"),w=ze("perspective"),C=ze("aspect"),_=ze("ease"),L=ze("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),mt,pt],j=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],N=()=>[mt,pt,d],H=()=>[Sa,"full","auto",...N()],Y=()=>[vi,"none","subgrid",mt,pt],nt=()=>["auto",{span:["full",vi,mt,pt]},vi,mt,pt],at=()=>[vi,"auto",mt,pt],ft=()=>["auto","min","max","fr",mt,pt],st=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],it=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...N()],G=()=>[Sa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],P=()=>[t,mt,pt],dt=()=>[...B(),ew,tw,{position:[mt,pt]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xt=()=>["auto","cover","contain",s3,n3,{size:[mt,pt]}],D=()=>[dp,hl,Ts],E=()=>["","none","full",h,mt,pt],W=()=>["",Bt,hl,Ts],ct=()=>["solid","dashed","dotted","double"],vt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],yt=()=>[Bt,dp,ew,tw],kt=()=>["","none",S,mt,pt],ae=()=>["none",Bt,mt,pt],Gt=()=>["none",Bt,mt,pt],mn=()=>[Bt,mt,pt],or=()=>[Sa,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ir],breakpoint:[Ir],color:[Zj],container:[Ir],"drop-shadow":[Ir],ease:["in","out","in-out"],font:[e3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ir],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ir],shadow:[Ir],spacing:["px",Bt],text:[Ir],"text-shadow":[Ir],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sa,pt,mt,C]}],container:["container"],columns:[{columns:[Bt,pt,mt,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[vi,"auto",mt,pt]}],basis:[{basis:[Sa,"full","auto",f,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Bt,Sa,"auto","initial","none",pt]}],grow:[{grow:["",Bt,mt,pt]}],shrink:[{shrink:["",Bt,mt,pt]}],order:[{order:[vi,"first","last","none",mt,pt]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:nt()}],"col-start":[{"col-start":at()}],"col-end":[{"col-end":at()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:nt()}],"row-start":[{"row-start":at()}],"row-end":[{"row-end":at()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ft()}],"auto-rows":[{"auto-rows":ft()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...st(),"normal"]}],"justify-items":[{"justify-items":[...it(),"normal"]}],"justify-self":[{"justify-self":["auto",...it()]}],"align-content":[{content:["normal",...st()]}],"align-items":[{items:[...it(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...it(),{baseline:["","last"]}]}],"place-content":[{"place-content":st()}],"place-items":[{"place-items":[...it(),"baseline"]}],"place-self":[{"place-self":["auto",...it()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[f,"screen",...G()]}],"min-w":[{"min-w":[f,"screen","none",...G()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,hl,Ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,mt,hp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dp,pt]}],"font-family":[{font:[i3,pt,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,mt,pt]}],"line-clamp":[{"line-clamp":[Bt,"none",mt,hp]}],leading:[{leading:[l,...N()]}],"list-image":[{"list-image":["none",mt,pt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",mt,pt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ct(),"wavy"]}],"text-decoration-thickness":[{decoration:[Bt,"from-font","auto",mt,Ts]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Bt,"auto",mt,pt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",mt,pt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",mt,pt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:dt()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:xt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vi,mt,pt],radial:["",mt,pt],conic:[vi,mt,pt]},a3,r3]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ct(),"hidden","none"]}],"divide-style":[{divide:[...ct(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ct(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Bt,mt,pt]}],"outline-w":[{outline:["",Bt,hl,Ts]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",m,jc,zc]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",y,jc,zc]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Bt,Ts]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",b,jc,zc]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Bt,mt,pt]}],"mix-blend":[{"mix-blend":[...vt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":vt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":yt()}],"mask-image-linear-to-pos":[{"mask-linear-to":yt()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":yt()}],"mask-image-t-to-pos":[{"mask-t-to":yt()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":yt()}],"mask-image-r-to-pos":[{"mask-r-to":yt()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":yt()}],"mask-image-b-to-pos":[{"mask-b-to":yt()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":yt()}],"mask-image-l-to-pos":[{"mask-l-to":yt()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":yt()}],"mask-image-x-to-pos":[{"mask-x-to":yt()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":yt()}],"mask-image-y-to-pos":[{"mask-y-to":yt()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[mt,pt]}],"mask-image-radial-from-pos":[{"mask-radial-from":yt()}],"mask-image-radial-to-pos":[{"mask-radial-to":yt()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[Bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":yt()}],"mask-image-conic-to-pos":[{"mask-conic-to":yt()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:dt()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:xt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",mt,pt]}],filter:[{filter:["","none",mt,pt]}],blur:[{blur:kt()}],brightness:[{brightness:[Bt,mt,pt]}],contrast:[{contrast:[Bt,mt,pt]}],"drop-shadow":[{"drop-shadow":["","none",v,jc,zc]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Bt,mt,pt]}],"hue-rotate":[{"hue-rotate":[Bt,mt,pt]}],invert:[{invert:["",Bt,mt,pt]}],saturate:[{saturate:[Bt,mt,pt]}],sepia:[{sepia:["",Bt,mt,pt]}],"backdrop-filter":[{"backdrop-filter":["","none",mt,pt]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Bt,mt,pt]}],"backdrop-contrast":[{"backdrop-contrast":[Bt,mt,pt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Bt,mt,pt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Bt,mt,pt]}],"backdrop-invert":[{"backdrop-invert":["",Bt,mt,pt]}],"backdrop-opacity":[{"backdrop-opacity":[Bt,mt,pt]}],"backdrop-saturate":[{"backdrop-saturate":[Bt,mt,pt]}],"backdrop-sepia":[{"backdrop-sepia":["",Bt,mt,pt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",mt,pt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Bt,"initial",mt,pt]}],ease:[{ease:["linear","initial",_,mt,pt]}],delay:[{delay:[Bt,mt,pt]}],animate:[{animate:["none",L,mt,pt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,mt,pt]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:Gt()}],"scale-x":[{"scale-x":Gt()}],"scale-y":[{"scale-y":Gt()}],"scale-z":[{"scale-z":Gt()}],"scale-3d":["scale-3d"],skew:[{skew:mn()}],"skew-x":[{"skew-x":mn()}],"skew-y":[{"skew-y":mn()}],transform:[{transform:[mt,pt,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:or()}],"translate-x":[{"translate-x":or()}],"translate-y":[{"translate-y":or()}],"translate-z":[{"translate-z":or()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",mt,pt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",mt,pt]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Bt,hl,Ts,hp]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),u3={xs:"w-6 h-6",sm:"w-8 h-8",mds:"w-9 h-9",md:"w-15 h-15",lg:"w-16 h-16",xl:"w-24 h-24"},pl=({size:t="md",isOnline:e=!1,className:n=""})=>{const{data:i}=br(),a=i!=null&&i.chatbotProfilePhoto?cl.BASE_URL+i.chatbotProfilePhoto.url:cl.APP_URL+"/avatar.jpg",l=u3[t];return M.jsxs("div",{className:ge(n),children:[M.jsx("img",{src:a,alt:"Avatar",className:ge("rounded-full border border-gray-300 bg-white object-cover",l)}),e&&M.jsx("span",{className:"absolute top-1 right-0 block h-3 w-3 rounded-full bg-green-500"})]})},Bc=({variant:t="filled",color:e="primary",size:n="medium",icon:i,children:a,loading:l,disabled:u,className:f,iconRight:d,...h})=>{const m="rounded-full focus:outline-none text-nowrap flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed text-center transition animate-bounceInContent active:scale-[0.99] cursor-pointer",y={filled:{primary:"bg-primary-500 text-white hover:bg-primary-600 font-bold shadow shadow-primary-500/50 shadow shadow-inner ",secondary:"bg-gray-500 text-white hover:bg-gray-600 font-bold shadow shadow-gray-500/50 shadow shadow-inner ",neutral:"bg-neutral-500 text-white hover:bg-neutral-600 font-bold shadow shadow-neutral-500/50 shadow shadow-inner ",error:"bg-red-500 text-white hover:bg-red-600 font-bold shadow shadow-red-500/50",success:"bg-green-500 text-white hover:bg-green-600 font-bold shadow shadow-green-500/50 shadow shadow-inner "},outlined:{primary:"border border-primary-500 text-primary-500 hover:bg-primary-100",secondary:"border border-gray-500 text-gray-500 hover:bg-gray-100",neutral:"border border-neutral-500 text-neutral-500 hover:bg-neutral-100",error:"border border-red-500 text-red-500 hover:bg-red-100",success:"border border-green-500 text-green-500 hover:bg-green-100"},plain:{primary:"text-primary-500 hover:bg-primary-100 px-2 py-1 rounded-full font-bold",secondary:"text-gray-500 hover:bg-gray-100 px-2 py-1 rounded-full font-bold",neutral:"text-neutral-500 hover:bg-neutral-100 px-2 py-1 rounded-full font-bold",error:"text-red-500 hover:bg-red-100 px-2 py-1 rounded-full font-bold",success:"text-green-500 hover:bg-green-100 px-2 py-1 rounded-full font-bold"},light:{primary:"bg-primary-100 text-primary-400 hover:bg-primary-200 font-bold shadow shadow-primary-100/50",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200 font-bold shadow shadow-gray-100/50",neutral:"bg-neutral-200 text-neutral-700 hover:bg-neutral-200 font-bold shadow shadow-neutral-200/50",error:"bg-red-100 text-red-700 hover:bg-red-200 font-bold shadow shadow-red-100/50",success:"bg-green-100 text-green-700 hover:bg-green-200 font-bold shadow shadow-green-100/50"}},b={small:"px-2 py-1 text-sm",medium:"px-4 py-2 text-[15px]",large:"px-6 py-3 text-lg"},v={small:"w-4 h-4",medium:"w-5 h-5",large:"w-6 h-6"};return M.jsxs("button",{className:ge(m,y[t][e],b[n],f),disabled:u||l,...h,children:[l?M.jsx("span",{className:ge("animate-spin",v[n]),children:"🔄"}):i&&M.jsx("span",{className:ge(v[n]),children:i}),a,d&&M.jsx("span",{className:ge(v[n]),children:d})]})};function c3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const ow=I.forwardRef(c3);function f3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Ta=I.forwardRef(f3);function d3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))}const h3=I.forwardRef(d3);function p3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{fillRule:"evenodd",d:"M13.836 2.477a.75.75 0 0 1 .75.75v3.182a.75.75 0 0 1-.75.75h-3.182a.75.75 0 0 1 0-1.5h1.37l-.84-.841a4.5 4.5 0 0 0-7.08.932.75.75 0 0 1-1.3-.75 6 6 0 0 1 9.44-1.242l.842.84V3.227a.75.75 0 0 1 .75-.75Zm-.911 7.5A.75.75 0 0 1 13.199 11a6 6 0 0 1-9.44 1.241l-.84-.84v1.371a.75.75 0 0 1-1.5 0V9.591a.75.75 0 0 1 .75-.75H5.35a.75.75 0 0 1 0 1.5H3.98l.841.841a4.5 4.5 0 0 0 7.08-.932.75.75 0 0 1 1.025-.273Z",clipRule:"evenodd"}))}const m3=I.forwardRef(p3);function g3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const y3=I.forwardRef(g3);function b3({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{d:"M2 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12.5 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}const v3=I.forwardRef(b3),pp=I.createContext({});function Ic(t){const e=I.useRef(null);return e.current===null&&(e.current=t()),e.current}const mp=typeof window<"u",gp=mp?I.useLayoutEffect:I.useEffect,Uc=I.createContext(null);function yp(t,e){t.indexOf(e)===-1&&t.push(e)}function bp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ur=(t,e,n)=>n>e?e:n<t?t:n;let vp=()=>{};const Pr={},lw=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function uw(t){return typeof t=="object"&&t!==null}const cw=t=>/^0[^.\s]+$/u.test(t);function xp(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bn=t=>t,x3=(t,e)=>n=>e(t(n)),ml=(...t)=>t.reduce(x3),gl=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class Sp{constructor(){this.subscriptions=[]}add(e){return yp(this.subscriptions,e),()=>bp(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vr=t=>t*1e3,In=t=>t/1e3;function fw(t,e){return e?t*(1e3/e):0}const dw=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,S3=1e-7,w3=12;function E3(t,e,n,i,a){let l,u,f=0;do u=e+(n-e)/2,l=dw(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>S3&&++f<w3);return u}function yl(t,e,n,i){if(t===e&&n===i)return Bn;const a=l=>E3(l,0,1,t,n);return l=>l===0||l===1?l:dw(a(l),e,i)}const hw=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,pw=t=>e=>1-t(1-e),mw=yl(.33,1.53,.69,.99),wp=pw(mw),gw=hw(wp),yw=t=>(t*=2)<1?.5*wp(t):.5*(2-Math.pow(2,-10*(t-1))),Ep=t=>1-Math.sin(Math.acos(t)),bw=pw(Ep),vw=hw(Ep),T3=yl(.42,0,1,1),C3=yl(0,0,.58,1),xw=yl(.42,0,.58,1),_3=t=>Array.isArray(t)&&typeof t[0]!="number",Sw=t=>Array.isArray(t)&&typeof t[0]=="number",A3={linear:Bn,easeIn:T3,easeInOut:xw,easeOut:C3,circIn:Ep,circInOut:vw,circOut:bw,backIn:wp,backInOut:gw,backOut:mw,anticipate:yw},O3=t=>typeof t=="string",ww=t=>{if(Sw(t)){vp(t.length===4);const[e,n,i,a]=t;return yl(e,n,i,a)}else if(O3(t))return A3[t];return t},Pc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R3(t,e){let n=new Set,i=new Set,a=!1,l=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function d(m){u.has(m)&&(h.schedule(m),t()),m(f)}const h={schedule:(m,y=!1,b=!1)=>{const S=b&&a?n:i;return y&&u.add(m),S.has(m)||S.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(f=m,a){l=!0;return}a=!0,[n,i]=[i,n],n.forEach(d),n.clear(),a=!1,l&&(l=!1,h.process(m))}};return h}const k3=40;function Ew(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Pc.reduce((R,B)=>(R[B]=R3(l),R),{}),{setup:f,read:d,resolveKeyframes:h,preUpdate:m,update:y,preRender:b,render:v,postRender:S}=u,w=()=>{const R=Pr.useManualTiming?a.timestamp:performance.now();n=!1,Pr.useManualTiming||(a.delta=i?1e3/60:Math.max(Math.min(R-a.timestamp,k3),1)),a.timestamp=R,a.isProcessing=!0,f.process(a),d.process(a),h.process(a),m.process(a),y.process(a),b.process(a),v.process(a),S.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(w))},C=()=>{n=!0,i=!0,a.isProcessing||t(w)};return{schedule:Pc.reduce((R,B)=>{const K=u[B];return R[B]=(j,q=!1,N=!1)=>(n||C(),K.schedule(j,q,N)),R},{}),cancel:R=>{for(let B=0;B<Pc.length;B++)u[Pc[B]].cancel(R)},state:a,steps:u}}const{schedule:he,cancel:xi,state:Fe,steps:Tp}=Ew(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0);let qc;function D3(){qc=void 0}const un={now:()=>(qc===void 0&&un.set(Fe.isProcessing||Pr.useManualTiming?Fe.timestamp:performance.now()),qc),set:t=>{qc=t,queueMicrotask(D3)}},Tw=t=>e=>typeof e=="string"&&e.startsWith(t),Cp=Tw("--"),N3=Tw("var(--"),_p=t=>N3(t)?M3.test(t.split("/*")[0].trim()):!1,M3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ca={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},bl={...Ca,transform:t=>Ur(0,1,t)},Fc={...Ca,default:1},vl=t=>Math.round(t*1e5)/1e5,Ap=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function L3(t){return t==null}const z3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Op=(t,e)=>n=>!!(typeof n=="string"&&z3.test(n)&&n.startsWith(t)||e&&!L3(n)&&Object.prototype.hasOwnProperty.call(n,e)),Cw=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,f]=i.match(Ap);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},j3=t=>Ur(0,255,t),Rp={...Ca,transform:t=>Math.round(j3(t))},Cs={test:Op("rgb","red"),parse:Cw("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Rp.transform(t)+", "+Rp.transform(e)+", "+Rp.transform(n)+", "+vl(bl.transform(i))+")"};function B3(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const kp={test:Op("#"),parse:B3,transform:Cs.transform},xl=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Si=xl("deg"),xr=xl("%"),Et=xl("px"),I3=xl("vh"),U3=xl("vw"),_w={...xr,parse:t=>xr.parse(t)/100,transform:t=>xr.transform(t*100)},_a={test:Op("hsl","hue"),parse:Cw("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+xr.transform(vl(e))+", "+xr.transform(vl(n))+", "+vl(bl.transform(i))+")"},Ae={test:t=>Cs.test(t)||kp.test(t)||_a.test(t),parse:t=>Cs.test(t)?Cs.parse(t):_a.test(t)?_a.parse(t):kp.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Cs.transform(t):_a.transform(t),getAnimatableNone:t=>{const e=Ae.parse(t);return e.alpha=0,Ae.transform(e)}},P3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q3(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ap))==null?void 0:e.length)||0)+(((n=t.match(P3))==null?void 0:n.length)||0)>0}const Aw="number",Ow="color",F3="var",V3="var(",Rw="${}",H3=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sl(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const f=e.replace(H3,d=>(Ae.test(d)?(i.color.push(l),a.push(Ow),n.push(Ae.parse(d))):d.startsWith(V3)?(i.var.push(l),a.push(F3),n.push(d)):(i.number.push(l),a.push(Aw),n.push(parseFloat(d))),++l,Rw)).split(Rw);return{values:n,split:f,indexes:i,types:a}}function kw(t){return Sl(t).values}function Dw(t){const{split:e,types:n}=Sl(t),i=e.length;return a=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],a[u]!==void 0){const f=n[u];f===Aw?l+=vl(a[u]):f===Ow?l+=Ae.transform(a[u]):l+=a[u]}return l}}const G3=t=>typeof t=="number"?0:Ae.test(t)?Ae.getAnimatableNone(t):t;function K3(t){const e=kw(t);return Dw(t)(e.map(G3))}const wi={test:q3,parse:kw,createTransformer:Dw,getAnimatableNone:K3};function Dp(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Y3({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const f=n<.5?n*(1+e):n+e-n*e,d=2*n-f;a=Dp(d,f,t+1/3),l=Dp(d,f,t),u=Dp(d,f,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Vc(t,e){return n=>n>0?e:t}const ye=(t,e,n)=>t+(e-t)*n,Np=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},$3=[kp,Cs,_a],X3=t=>$3.find(e=>e.test(t));function Nw(t){const e=X3(t);if(!e)return!1;let n=e.parse(t);return e===_a&&(n=Y3(n)),n}const Mw=(t,e)=>{const n=Nw(t),i=Nw(e);if(!n||!i)return Vc(t,e);const a={...n};return l=>(a.red=Np(n.red,i.red,l),a.green=Np(n.green,i.green,l),a.blue=Np(n.blue,i.blue,l),a.alpha=ye(n.alpha,i.alpha,l),Cs.transform(a))},Mp=new Set(["none","hidden"]);function Q3(t,e){return Mp.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Z3(t,e){return n=>ye(t,e,n)}function Lp(t){return typeof t=="number"?Z3:typeof t=="string"?_p(t)?Vc:Ae.test(t)?Mw:tB:Array.isArray(t)?Lw:typeof t=="object"?Ae.test(t)?Mw:J3:Vc}function Lw(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>Lp(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function J3(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=Lp(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function W3(t,e){const n=[],i={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const l=e.types[a],u=t.indexes[l][i[l]],f=t.values[u]??0;n[a]=f,i[l]++}return n}const tB=(t,e)=>{const n=wi.createTransformer(e),i=Sl(t),a=Sl(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Mp.has(t)&&!a.values.length||Mp.has(e)&&!i.values.length?Q3(t,e):ml(Lw(W3(i,a),a.values),n):Vc(t,e)};function zw(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ye(t,e,n):Lp(t)(t,e)}const eB=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>he.update(e,n),stop:()=>xi(e),now:()=>Fe.isProcessing?Fe.timestamp:un.now()}},jw=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=Math.round(t(l/(a-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Hc=2e4;function zp(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Hc;)e+=n,i=t.next(e);return e>=Hc?1/0:e}function nB(t,e=100,n){const i=n({...t,keyframes:[0,e]}),a=Math.min(zp(i),Hc);return{type:"keyframes",ease:l=>i.next(a*l).value/e,duration:In(a)}}const rB=5;function Bw(t,e,n){const i=Math.max(e-rB,0);return fw(n-t(i),e-i)}const be={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jp=.001;function iB({duration:t=be.duration,bounce:e=be.bounce,velocity:n=be.velocity,mass:i=be.mass}){let a,l,u=1-e;u=Ur(be.minDamping,be.maxDamping,u),t=Ur(be.minDuration,be.maxDuration,In(t)),u<1?(a=h=>{const m=h*u,y=m*t,b=m-n,v=Bp(h,u),S=Math.exp(-y);return jp-b/v*S},l=h=>{const y=h*u*t,b=y*n+n,v=Math.pow(u,2)*Math.pow(h,2)*t,S=Math.exp(-y),w=Bp(Math.pow(h,2),u);return(-a(h)+jp>0?-1:1)*((b-v)*S)/w}):(a=h=>{const m=Math.exp(-h*t),y=(h-n)*t+1;return-jp+m*y},l=h=>{const m=Math.exp(-h*t),y=(n-h)*(t*t);return m*y});const f=5/t,d=aB(a,l,f);if(t=vr(t),isNaN(d))return{stiffness:be.stiffness,damping:be.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:t}}}const sB=12;function aB(t,e,n){let i=n;for(let a=1;a<sB;a++)i=i-t(i)/e(i);return i}function Bp(t,e){return t*Math.sqrt(1-e*e)}const oB=["duration","bounce"],lB=["stiffness","damping","mass"];function Iw(t,e){return e.some(n=>t[n]!==void 0)}function uB(t){let e={velocity:be.velocity,stiffness:be.stiffness,damping:be.damping,mass:be.mass,isResolvedFromDuration:!1,...t};if(!Iw(t,lB)&&Iw(t,oB))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*Ur(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:be.mass,stiffness:a,damping:l}}else{const n=iB(t);e={...e,...n,mass:be.mass},e.isResolvedFromDuration=!0}return e}function Gc(t=be.visualDuration,e=be.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:d,damping:h,mass:m,duration:y,velocity:b,isResolvedFromDuration:v}=uB({...n,velocity:-In(n.velocity||0)}),S=b||0,w=h/(2*Math.sqrt(d*m)),C=u-l,_=In(Math.sqrt(d/m)),L=Math.abs(C)<5;i||(i=L?be.restSpeed.granular:be.restSpeed.default),a||(a=L?be.restDelta.granular:be.restDelta.default);let R;if(w<1){const K=Bp(_,w);R=j=>{const q=Math.exp(-w*_*j);return u-q*((S+w*_*C)/K*Math.sin(K*j)+C*Math.cos(K*j))}}else if(w===1)R=K=>u-Math.exp(-_*K)*(C+(S+_*C)*K);else{const K=_*Math.sqrt(w*w-1);R=j=>{const q=Math.exp(-w*_*j),N=Math.min(K*j,300);return u-q*((S+w*_*C)*Math.sinh(N)+K*C*Math.cosh(N))/K}}const B={calculatedDuration:v&&y||null,next:K=>{const j=R(K);if(v)f.done=K>=y;else{let q=K===0?S:0;w<1&&(q=K===0?vr(S):Bw(R,K,j));const N=Math.abs(q)<=i,H=Math.abs(u-j)<=a;f.done=N&&H}return f.value=f.done?u:j,f},toString:()=>{const K=Math.min(zp(B),Hc),j=jw(q=>B.next(K*q).value,K,30);return K+"ms "+j},toTransition:()=>{}};return B}Gc.applyToOptions=t=>{const e=nB(t,100,Gc);return t.ease=e.ease,t.duration=vr(e.duration),t.type="keyframes",t};function Ip({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:f,max:d,restDelta:h=.5,restSpeed:m}){const y=t[0],b={done:!1,value:y},v=N=>f!==void 0&&N<f||d!==void 0&&N>d,S=N=>f===void 0?d:d===void 0||Math.abs(f-N)<Math.abs(d-N)?f:d;let w=n*e;const C=y+w,_=u===void 0?C:u(C);_!==C&&(w=_-y);const L=N=>-w*Math.exp(-N/i),R=N=>_+L(N),B=N=>{const H=L(N),Y=R(N);b.done=Math.abs(H)<=h,b.value=b.done?_:Y};let K,j;const q=N=>{v(b.value)&&(K=N,j=Gc({keyframes:[b.value,S(b.value)],velocity:Bw(R,N,b.value),damping:a,stiffness:l,restDelta:h,restSpeed:m}))};return q(0),{calculatedDuration:null,next:N=>{let H=!1;return!j&&K===void 0&&(H=!0,B(N),q(N)),K!==void 0&&N>=K?j.next(N-K):(!H&&B(N),b)}}}function cB(t,e,n){const i=[],a=n||Pr.mix||zw,l=t.length-1;for(let u=0;u<l;u++){let f=a(t[u],t[u+1]);if(e){const d=Array.isArray(e)?e[u]||Bn:e;f=ml(d,f)}i.push(f)}return i}function fB(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(vp(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const f=cB(e,i,a),d=f.length,h=m=>{if(u&&m<t[0])return e[0];let y=0;if(d>1)for(;y<t.length-2&&!(m<t[y+1]);y++);const b=gl(t[y],t[y+1],m);return f[y](b)};return n?m=>h(Ur(t[0],t[l-1],m)):h}function dB(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=gl(0,e,i);t.push(ye(n,1,a))}}function hB(t){const e=[0];return dB(e,t.length-1),e}function pB(t,e){return t.map(n=>n*e)}function mB(t,e){return t.map(()=>e||xw).splice(0,t.length-1)}function wl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=_3(i)?i.map(ww):ww(i),l={done:!1,value:e[0]},u=pB(n&&n.length===e.length?n:hB(e),t),f=fB(u,e,{ease:Array.isArray(a)?a:mB(e,a)});return{calculatedDuration:t,next:d=>(l.value=f(d),l.done=d>=t,l)}}const gB=t=>t!==null;function Up(t,{repeat:e,repeatType:n="loop"},i,a=1){const l=t.filter(gB),f=a<0||e&&n!=="loop"&&e%2===1?0:l.length-1;return!f||i===void 0?l[f]:i}const yB={decay:Ip,inertia:Ip,tween:wl,keyframes:wl,spring:Gc};function Uw(t){typeof t.type=="string"&&(t.type=yB[t.type])}class Pp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const bB=t=>t/100;class qp extends Pp{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,a;const{motionValue:n}=this.options;n&&n.updatedAt!==un.now()&&this.tick(un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(i=this.options).onStop)==null||a.call(i))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Uw(e);const{type:n=wl,repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=e;let{keyframes:f}=e;const d=n||wl;d!==wl&&typeof f[0]!="number"&&(this.mixKeyframes=ml(bB,zw(f[0],f[1])),f=[0,100]);const h=d({...e,keyframes:f});l==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...f].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=zp(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(i+1)-a,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:d}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:m,repeat:y,repeatType:b,repeatDelay:v,type:S,onUpdate:w,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?_<0:_>a;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,B=i;if(y){const N=Math.min(this.currentTime,a)/f;let H=Math.floor(N),Y=N%1;!Y&&N>=1&&(Y=1),Y===1&&H--,H=Math.min(H,y+1),!!(H%2)&&(b==="reverse"?(Y=1-Y,v&&(Y-=v/f)):b==="mirror"&&(B=u)),R=Ur(0,1,Y)*f}const K=L?{done:!1,value:m[0]}:B.next(R);l&&(K.value=l(K.value));let{done:j}=K;!L&&d!==null&&(j=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return q&&S!==Ip&&(K.value=Up(m,this.options,C,this.speed)),w&&w(K.value),q&&this.finish(),K}then(e,n){return this.finished.then(e,n)}get duration(){return In(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+In(e)}get time(){return In(this.currentTime)}set time(e){var n;e=vr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(un.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=In(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:e=eB,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(l=(a=this.options).onPlay)==null||l.call(a);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function vB(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const _s=t=>t*180/Math.PI,Fp=t=>{const e=_s(Math.atan2(t[1],t[0]));return Vp(e)},xB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Fp,rotateZ:Fp,skewX:t=>_s(Math.atan(t[1])),skewY:t=>_s(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Vp=t=>(t=t%360,t<0&&(t+=360),t),Pw=Fp,qw=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Fw=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),SB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qw,scaleY:Fw,scale:t=>(qw(t)+Fw(t))/2,rotateX:t=>Vp(_s(Math.atan2(t[6],t[5]))),rotateY:t=>Vp(_s(Math.atan2(-t[2],t[0]))),rotateZ:Pw,rotate:Pw,skewX:t=>_s(Math.atan(t[4])),skewY:t=>_s(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Hp(t){return t.includes("scale")?1:0}function Gp(t,e){if(!t||t==="none")return Hp(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=SB,a=n;else{const f=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=xB,a=f}if(!a)return Hp(e);const l=i[e],u=a[1].split(",").map(EB);return typeof l=="function"?l(u):u[l]}const wB=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Gp(n,e)};function EB(t){return parseFloat(t.trim())}const Aa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oa=new Set(Aa),Vw=t=>t===Ca||t===Et,TB=new Set(["x","y","z"]),CB=Aa.filter(t=>!TB.has(t));function _B(t){const e=[];return CB.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const As={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Gp(e,"x"),y:(t,{transform:e})=>Gp(e,"y")};As.translateX=As.x,As.translateY=As.y;const Os=new Set;let Kp=!1,Yp=!1,$p=!1;function Hw(){if(Yp){const t=Array.from(Os).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=_B(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{var f;(f=i.getValue(l))==null||f.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Yp=!1,Kp=!1,Os.forEach(t=>t.complete($p)),Os.clear()}function Gw(){Os.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Yp=!0)})}function AB(){$p=!0,Gw(),Hw(),$p=!1}class Xp{constructor(e,n,i,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Os.add(this),Kp||(Kp=!0,he.read(Gw),he.resolveKeyframes(Hw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;if(e[0]===null){const l=a==null?void 0:a.get(),u=e[e.length-1];if(l!==void 0)e[0]=l;else if(i&&n){const f=i.readValue(n,u);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=u),a&&l===void 0&&a.set(e[0])}vB(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Os.delete(this)}cancel(){this.state==="scheduled"&&(Os.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const OB=t=>t.startsWith("--");function RB(t,e,n){OB(e)?t.style.setProperty(e,n):t.style[e]=n}const kB=xp(()=>window.ScrollTimeline!==void 0),DB={};function NB(t,e){const n=xp(t);return()=>DB[e]??n()}const Kw=NB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),El=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Yw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:El([0,.65,.55,1]),circOut:El([.55,0,1,.45]),backIn:El([.31,.01,.66,-.59]),backOut:El([.33,1.53,.69,.99])};function $w(t,e){if(t)return typeof t=="function"?Kw()?jw(t,e):"ease-out":Sw(t)?El(t):Array.isArray(t)?t.map(n=>$w(n,e)||Yw.easeOut):Yw[t]}function MB(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:f="easeOut",times:d}={},h=void 0){const m={[e]:n};d&&(m.offset=d);const y=$w(f,a);Array.isArray(y)&&(m.easing=y);const b={delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),t.animate(m,b)}function Xw(t){return typeof t=="function"&&"applyToOptions"in t}function LB({type:t,...e}){return Xw(t)&&Kw()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class zB extends Pp{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:i,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:f,onComplete:d}=e;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=e,vp(typeof e.type!="string");const h=LB(e);this.animation=MB(n,i,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=Up(a,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):RB(n,i,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,i;const e=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return In(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+In(e)}get time(){return In(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=vr(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&kB()?(this.animation.timeline=e,Bn):n(this)}}const Qw={anticipate:yw,backInOut:gw,circInOut:vw};function jB(t){return t in Qw}function BB(t){typeof t.ease=="string"&&jB(t.ease)&&(t.ease=Qw[t.ease])}const Zw=10;class IB extends zB{constructor(e){BB(e),Uw(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:a,element:l,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const f=new qp({...u,autoplay:!1}),d=vr(this.finishedTime??this.time);n.setWithVelocity(f.sample(d-Zw).value,f.sample(d).value,Zw),f.stop()}}const Jw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wi.test(t)||t==="0")&&!t.startsWith("url("));function UB(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function PB(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=Jw(a,e),f=Jw(l,e);return!u||!f?!1:UB(t)||(n==="spring"||Xw(n))&&i}function Qp(t){t.duration=0,t.type="keyframes"}const qB=new Set(["opacity","clipPath","filter","transform"]),FB=xp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function VB(t){var m;const{motionValue:e,name:n,repeatDelay:i,repeatType:a,damping:l,type:u}=t;if(!(((m=e==null?void 0:e.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=e.owner.getProps();return FB()&&n&&qB.has(n)&&(n!=="transform"||!h)&&!d&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}const HB=40;class GB extends Pp{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:f,name:d,motionValue:h,element:m,...y}){var S;super(),this.stop=()=>{var w,C;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=un.now();const b={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,name:d,motionValue:h,element:m,...y},v=(m==null?void 0:m.KeyframeResolver)||Xp;this.keyframeResolver=new v(f,(w,C,_)=>this.onKeyframesResolved(w,C,b,!_),d,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(e,n,i,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:f,delay:d,isHandoff:h,onUpdate:m}=i;this.resolvedAt=un.now(),PB(e,l,u,f)||((Pr.instantAnimations||!d)&&(m==null||m(Up(e,i,n))),e[0]=e[e.length-1],Qp(i),i.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>HB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},v=!h&&VB(b)?new IB({...b,element:b.motionValue.owner.current}):new qp(b);v.finished.then(()=>this.notifyFinished()).catch(Bn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),AB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const KB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YB(t){const e=KB.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function Ww(t,e,n=1){const[i,a]=YB(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return lw(u)?parseFloat(u):u}return _p(a)?Ww(a,e,n+1):a}function Zp(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const t1=new Set(["width","height","top","left","right","bottom",...Aa]),$B={test:t=>t==="auto",parse:t=>t},e1=t=>e=>e.test(t),n1=[Ca,Et,xr,Si,U3,I3,$B],r1=t=>n1.find(e1(t));function XB(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||cw(t):!0}const QB=new Set(["brightness","contrast","saturate","opacity"]);function ZB(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ap)||[];if(!i)return t;const a=n.replace(i,"");let l=QB.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const JB=/\b([a-z-]*)\(.*?\)/gu,Jp={...wi,getAnimatableNone:t=>{const e=t.match(JB);return e?e.map(ZB).join(" "):t}},i1={...Ca,transform:Math.round},Wp={borderWidth:Et,borderTopWidth:Et,borderRightWidth:Et,borderBottomWidth:Et,borderLeftWidth:Et,borderRadius:Et,radius:Et,borderTopLeftRadius:Et,borderTopRightRadius:Et,borderBottomRightRadius:Et,borderBottomLeftRadius:Et,width:Et,maxWidth:Et,height:Et,maxHeight:Et,top:Et,right:Et,bottom:Et,left:Et,padding:Et,paddingTop:Et,paddingRight:Et,paddingBottom:Et,paddingLeft:Et,margin:Et,marginTop:Et,marginRight:Et,marginBottom:Et,marginLeft:Et,backgroundPositionX:Et,backgroundPositionY:Et,...{rotate:Si,rotateX:Si,rotateY:Si,rotateZ:Si,scale:Fc,scaleX:Fc,scaleY:Fc,scaleZ:Fc,skew:Si,skewX:Si,skewY:Si,distance:Et,translateX:Et,translateY:Et,translateZ:Et,x:Et,y:Et,z:Et,perspective:Et,transformPerspective:Et,opacity:bl,originX:_w,originY:_w,originZ:Et},zIndex:i1,fillOpacity:bl,strokeOpacity:bl,numOctaves:i1},WB={...Wp,color:Ae,backgroundColor:Ae,outlineColor:Ae,fill:Ae,stroke:Ae,borderColor:Ae,borderTopColor:Ae,borderRightColor:Ae,borderBottomColor:Ae,borderLeftColor:Ae,filter:Jp,WebkitFilter:Jp},s1=t=>WB[t];function a1(t,e){let n=s1(t);return n!==Jp&&(n=wi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tI=new Set(["auto","none","0"]);function eI(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!tI.has(l)&&Sl(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=a1(n,a)}class nI extends Xp{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),_p(h))){const m=Ww(h,n.current);m!==void 0&&(e[d]=m),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!t1.has(i)||e.length!==2)return;const[a,l]=e,u=r1(a),f=r1(l);if(u!==f)if(Vw(u)&&Vw(f))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else As[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)(e[a]===null||XB(e[a]))&&i.push(a);i.length&&eI(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=As[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var f;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const a=e.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=As[n](e.measureViewportBox(),window.getComputedStyle(e.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([d,h])=>{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function rI(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const a=(n==null?void 0:n[t])??i.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}const o1=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function l1(t){return uw(t)&&"offsetHeight"in t}const u1=30,iI=t=>!isNaN(parseFloat(t));class sI{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const a=un.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=un.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=iI(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sp);const i=this.events[e].add(n);return e==="change"?()=>{i(),he.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>u1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,u1);return fw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ra(t,e){return new sI(t,e)}const{schedule:tm}=Ew(queueMicrotask,!1),nr={x:!1,y:!1};function c1(){return nr.x||nr.y}function aI(t){return t==="x"||t==="y"?nr[t]?null:(nr[t]=!0,()=>{nr[t]=!1}):nr.x||nr.y?null:(nr.x=nr.y=!0,()=>{nr.x=nr.y=!1})}function f1(t,e){const n=rI(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function d1(t){return!(t.pointerType==="touch"||c1())}function oI(t,e,n={}){const[i,a,l]=f1(t,n),u=f=>{if(!d1(f))return;const{target:d}=f,h=e(d,f);if(typeof h!="function"||!d)return;const m=y=>{d1(y)&&(h(y),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,a)};return i.forEach(f=>{f.addEventListener("pointerenter",u,a)}),l}const h1=(t,e)=>e?t===e?!0:h1(t,e.parentElement):!1,em=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,lI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uI(t){return lI.has(t.tagName)||t.tabIndex!==-1}const Kc=new WeakSet;function p1(t){return e=>{e.key==="Enter"&&t(e)}}function nm(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cI=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=p1(()=>{if(Kc.has(n))return;nm(n,"down");const a=p1(()=>{nm(n,"up")}),l=()=>nm(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function m1(t){return em(t)&&!c1()}function fI(t,e,n={}){const[i,a,l]=f1(t,n),u=f=>{const d=f.currentTarget;if(!m1(f))return;Kc.add(d);const h=e(d,f),m=(v,S)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Kc.has(d)&&Kc.delete(d),m1(v)&&typeof h=="function"&&h(v,{success:S})},y=v=>{m(v,d===window||d===document||n.useGlobalTarget||h1(d,v.target))},b=v=>{m(v,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",b,a)};return i.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",u,a),l1(f)&&(f.addEventListener("focus",h=>cI(h,a)),!uI(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),l}function g1(t){return uw(t)&&"ownerSVGElement"in t}function dI(t){return g1(t)&&t.tagName==="svg"}const Qe=t=>!!(t&&t.getVelocity),hI=[...n1,Ae,wi],pI=t=>hI.find(e1(t)),rm=I.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function y1(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function mI(...t){return e=>{let n=!1;const i=t.map(a=>{const l=y1(a,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():y1(t[a],null)}}}}function gI(...t){return I.useCallback(mI(...t),t)}class yI extends I.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=n.offsetParent,a=l1(i)&&i.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function bI({children:t,isPresent:e,anchorX:n,root:i}){const a=I.useId(),l=I.useRef(null),u=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=I.useContext(rm),d=gI(l,t==null?void 0:t.ref);return I.useInsertionEffect(()=>{const{width:h,height:m,top:y,left:b,right:v}=u.current;if(e||!l.current||!h||!m)return;const S=n==="left"?`left: ${b}`:`right: ${v}`;l.current.dataset.motionPopId=a;const w=document.createElement("style");f&&(w.nonce=f);const C=i??document.head;return C.appendChild(w),w.sheet&&w.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${h}px !important;
            height: ${m}px !important;
            ${S}px !important;
            top: ${y}px !important;
          }
        `),()=>{C.contains(w)&&C.removeChild(w)}},[e]),M.jsx(yI,{isPresent:e,childRef:l,sizeRef:u,children:I.cloneElement(t,{ref:d})})}const vI=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u,anchorX:f,root:d})=>{const h=Ic(xI),m=I.useId();let y=!0,b=I.useMemo(()=>(y=!1,{id:m,initial:e,isPresent:n,custom:a,onExitComplete:v=>{h.set(v,!0);for(const S of h.values())if(!S)return;i&&i()},register:v=>(h.set(v,!1),()=>h.delete(v))}),[n,h,i]);return l&&y&&(b={...b}),I.useMemo(()=>{h.forEach((v,S)=>h.set(S,!1))},[n]),I.useEffect(()=>{!n&&!h.size&&i&&i()},[n]),u==="popLayout"&&(t=M.jsx(bI,{isPresent:n,anchorX:f,root:d,children:t})),M.jsx(Uc.Provider,{value:b,children:t})};function xI(){return new Map}function b1(t=!0){const e=I.useContext(Uc);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=I.useId();I.useEffect(()=>{if(t)return a(l)},[t]);const u=I.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const Yc=t=>t.key||"";function v1(t){const e=[];return I.Children.forEach(t,n=>{I.isValidElement(n)&&e.push(n)}),e}const Tl=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1,anchorX:f="left",root:d})=>{const[h,m]=b1(u),y=I.useMemo(()=>v1(t),[t]),b=u&&!h?[]:y.map(Yc),v=I.useRef(!0),S=I.useRef(y),w=Ic(()=>new Map),[C,_]=I.useState(y),[L,R]=I.useState(y);gp(()=>{v.current=!1,S.current=y;for(let j=0;j<L.length;j++){const q=Yc(L[j]);b.includes(q)?w.delete(q):w.get(q)!==!0&&w.set(q,!1)}},[L,b.length,b.join("-")]);const B=[];if(y!==C){let j=[...y];for(let q=0;q<L.length;q++){const N=L[q],H=Yc(N);b.includes(H)||(j.splice(q,0,N),B.push(N))}return l==="wait"&&B.length&&(j=B),R(v1(j)),_(y),null}const{forceRender:K}=I.useContext(pp);return M.jsx(M.Fragment,{children:L.map(j=>{const q=Yc(j),N=u&&!h?!1:y===L||b.includes(q),H=()=>{if(w.has(q))w.set(q,!0);else return;let Y=!0;w.forEach(nt=>{nt||(Y=!1)}),Y&&(K==null||K(),R(S.current),u&&(m==null||m()),i&&i())};return M.jsx(vI,{isPresent:N,initial:!v.current||n?void 0:!1,custom:e,presenceAffectsLayout:a,mode:l,root:d,onExitComplete:N?void 0:H,anchorX:f,children:j},q)})})},x1=I.createContext({strict:!1}),S1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ka={};for(const t in S1)ka[t]={isEnabled:e=>S1[t].some(n=>!!e[n])};function SI(t){for(const e in t)ka[e]={...ka[e],...t[e]}}const wI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $c(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||wI.has(t)}let w1=t=>!$c(t);function EI(t){typeof t=="function"&&(w1=e=>e.startsWith("on")?!$c(e):t(e))}try{EI(require("@emotion/is-prop-valid").default)}catch{}function TI(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(w1(a)||n===!0&&$c(a)||!e&&!$c(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}const Xc=I.createContext({});function Qc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Cl(t){return typeof t=="string"||Array.isArray(t)}const im=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sm=["initial",...im];function Zc(t){return Qc(t.animate)||sm.some(e=>Cl(t[e]))}function E1(t){return!!(Zc(t)||t.variants)}function CI(t,e){if(Zc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Cl(n)?n:void 0,animate:Cl(i)?i:void 0}}return t.inherit!==!1?e:{}}function _I(t){const{initial:e,animate:n}=CI(t,I.useContext(Xc));return I.useMemo(()=>({initial:e,animate:n}),[T1(e),T1(n)])}function T1(t){return Array.isArray(t)?t.join(" "):t}const _l={};function AI(t){for(const e in t)_l[e]=t[e],Cp(e)&&(_l[e].isCSSVariable=!0)}function C1(t,{layout:e,layoutId:n}){return Oa.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!_l[t]||t==="opacity")}const OI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RI=Aa.length;function kI(t,e,n){let i="",a=!0;for(let l=0;l<RI;l++){const u=Aa[l],f=t[u];if(f===void 0)continue;let d=!0;if(typeof f=="number"?d=f===(u.startsWith("scale")?1:0):d=parseFloat(f)===0,!d||n){const h=o1(f,Wp[u]);if(!d){a=!1;const m=OI[u]||u;i+=`${m}(${h}) `}n&&(e[u]=h)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function am(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let u=!1,f=!1;for(const d in e){const h=e[d];if(Oa.has(d)){u=!0;continue}else if(Cp(d)){a[d]=h;continue}else{const m=o1(h,Wp[d]);d.startsWith("origin")?(f=!0,l[d]=m):i[d]=m}}if(e.transform||(u||n?i.transform=kI(e,t.transform,n):i.transform&&(i.transform="none")),f){const{originX:d="50%",originY:h="50%",originZ:m=0}=l;i.transformOrigin=`${d} ${h} ${m}`}}const om=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _1(t,e,n){for(const i in e)!Qe(e[i])&&!C1(i,n)&&(t[i]=e[i])}function DI({transformTemplate:t},e){return I.useMemo(()=>{const n=om();return am(n,e,t),Object.assign({},n.vars,n.style)},[e])}function NI(t,e){const n=t.style||{},i={};return _1(i,n,t),Object.assign(i,DI(t,e)),i}function MI(t,e){const n={},i=NI(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const LI={offset:"stroke-dashoffset",array:"stroke-dasharray"},zI={offset:"strokeDashoffset",array:"strokeDasharray"};function jI(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?LI:zI;t[l.offset]=Et.transform(-i);const u=Et.transform(e),f=Et.transform(n);t[l.array]=`${u} ${f}`}function A1(t,{attrX:e,attrY:n,attrScale:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...f},d,h,m){if(am(t,f,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:b}=t;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),i!==void 0&&(y.scale=i),a!==void 0&&jI(y,a,l,u,!1)}const O1=()=>({...om(),attrs:{}}),R1=t=>typeof t=="string"&&t.toLowerCase()==="svg";function BI(t,e,n,i){const a=I.useMemo(()=>{const l=O1();return A1(l,e,R1(i),t.transformTemplate,t.style),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};_1(l,t.style,t),a.style={...l,...a.style}}return a}const II=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lm(t){return typeof t!="string"||t.includes("-")?!1:!!(II.indexOf(t)>-1||/[A-Z]/u.test(t))}function UI(t,e,n,{latestValues:i},a,l=!1){const f=(lm(t)?BI:MI)(e,i,a,t),d=TI(e,typeof t=="string",l),h=t!==I.Fragment?{...d,...f,ref:n}:{},{children:m}=e,y=I.useMemo(()=>Qe(m)?m.get():m,[m]);return I.createElement(t,{...h,children:y})}function k1(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function um(t,e,n,i){if(typeof e=="function"){const[a,l]=k1(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=k1(i);e=e(n!==void 0?n:t.custom,a,l)}return e}function Jc(t){return Qe(t)?t.get():t}function PI({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,a){return{latestValues:qI(n,i,a,t),renderState:e()}}function qI(t,e,n,i){const a={},l=i(t,{});for(const b in l)a[b]=Jc(l[b]);let{initial:u,animate:f}=t;const d=Zc(t),h=E1(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),f===void 0&&(f=e.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const y=m?f:u;if(y&&typeof y!="boolean"&&!Qc(y)){const b=Array.isArray(y)?y:[y];for(let v=0;v<b.length;v++){const S=um(t,b[v]);if(S){const{transitionEnd:w,transition:C,..._}=S;for(const L in _){let R=_[L];if(Array.isArray(R)){const B=m?R.length-1:0;R=R[B]}R!==null&&(a[L]=R)}for(const L in w)a[L]=w[L]}}}return a}const D1=t=>(e,n)=>{const i=I.useContext(Xc),a=I.useContext(Uc),l=()=>PI(t,e,i,a);return n?l():Ic(l)};function cm(t,e,n){var l;const{style:i}=t,a={};for(const u in i)(Qe(i[u])||e.style&&Qe(e.style[u])||C1(u,t)||((l=n==null?void 0:n.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(a[u]=i[u]);return a}const FI=D1({scrapeMotionValuesFromProps:cm,createRenderState:om});function N1(t,e,n){const i=cm(t,e,n);for(const a in t)if(Qe(t[a])||Qe(e[a])){const l=Aa.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}const VI=D1({scrapeMotionValuesFromProps:N1,createRenderState:O1}),HI=Symbol.for("motionComponentSymbol");function Da(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function GI(t,e,n){return I.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Da(n)&&(n.current=i))},[e])}const fm=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),M1="data-"+fm("framerAppearId"),L1=I.createContext({});function KI(t,e,n,i,a){var w,C;const{visualElement:l}=I.useContext(Xc),u=I.useContext(x1),f=I.useContext(Uc),d=I.useContext(rm).reducedMotion,h=I.useRef(null);i=i||u.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,y=I.useContext(L1);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&YI(h.current,n,a,y);const b=I.useRef(!1);I.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const v=n[M1],S=I.useRef(!!v&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,v)));return gp(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),S.current&&m.animationState&&m.animationState.animateChanges())}),I.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,v)}),S.current=!1),m.enteringChildren=void 0)}),m}function YI(t,e,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:f,layoutScroll:d,layoutRoot:h,layoutCrossfade:m}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:z1(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||f&&Da(f),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:d,layoutRoot:h})}function z1(t){if(t)return t.options.allowProjection!==!1?t.projection:z1(t.parent)}function dm(t,{forwardMotionProps:e=!1}={},n,i){n&&SI(n);const a=lm(t)?VI:FI;function l(f,d){let h;const m={...I.useContext(rm),...f,layoutId:$I(f)},{isStatic:y}=m,b=_I(f),v=a(f,y);if(!y&&mp){XI();const S=QI(m);h=S.MeasureLayout,b.visualElement=KI(t,v,m,i,S.ProjectionNode)}return M.jsxs(Xc.Provider,{value:b,children:[h&&b.visualElement?M.jsx(h,{visualElement:b.visualElement,...m}):null,UI(t,f,GI(v,b.visualElement,d),v,y,e)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=I.forwardRef(l);return u[HI]=t,u}function $I({layoutId:t}){const e=I.useContext(pp).id;return e&&t!==void 0?e+"-"+t:t}function XI(t,e){I.useContext(x1).strict}function QI(t){const{drag:e,layout:n}=ka;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function ZI(t,e){if(typeof Proxy>"u")return dm;const n=new Map,i=(l,u)=>dm(l,u,t,e),a=(l,u)=>i(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?i:(n.has(u)||n.set(u,dm(u,void 0,t,e)),n.get(u))})}function j1({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function JI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function WI(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function hm(t){return t===void 0||t===1}function pm({scale:t,scaleX:e,scaleY:n}){return!hm(t)||!hm(e)||!hm(n)}function Rs(t){return pm(t)||B1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function B1(t){return I1(t.x)||I1(t.y)}function I1(t){return t&&t!=="0%"}function Wc(t,e,n){const i=t-n,a=e*i;return n+a}function U1(t,e,n,i,a){return a!==void 0&&(t=Wc(t,a,i)),Wc(t,n,i)+e}function mm(t,e=0,n=1,i,a){t.min=U1(t.min,e,n,i,a),t.max=U1(t.max,e,n,i,a)}function P1(t,{x:e,y:n}){mm(t.x,e.translate,e.scale,e.originPoint),mm(t.y,n.translate,n.scale,n.originPoint)}const q1=.999999999999,F1=1.0000000000001;function tU(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let f=0;f<a;f++){l=n[f],u=l.projectionDelta;const{visualElement:d}=l.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Ma(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,P1(t,u)),i&&Rs(l.latestValues)&&Ma(t,l.latestValues))}e.x<F1&&e.x>q1&&(e.x=1),e.y<F1&&e.y>q1&&(e.y=1)}function Na(t,e){t.min=t.min+e,t.max=t.max+e}function V1(t,e,n,i,a=.5){const l=ye(t.min,t.max,a);mm(t,e,n,l,i)}function Ma(t,e){V1(t.x,e.x,e.scaleX,e.scale,e.originX),V1(t.y,e.y,e.scaleY,e.scale,e.originY)}function H1(t,e){return j1(WI(t.getBoundingClientRect(),e))}function eU(t,e,n){const i=H1(t,n),{scroll:a}=e;return a&&(Na(i.x,a.offset.x),Na(i.y,a.offset.y)),i}const G1=()=>({translate:0,scale:1,origin:0,originPoint:0}),La=()=>({x:G1(),y:G1()}),K1=()=>({min:0,max:0}),Te=()=>({x:K1(),y:K1()}),gm={current:null},Y1={current:!1};function nU(){if(Y1.current=!0,!!mp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gm.current=t.matches;t.addEventListener("change",e),e()}else gm.current=!1}const rU=new WeakMap;function iU(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Qe(a))t.addValue(i,a);else if(Qe(l))t.addValue(i,Ra(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(i);t.addValue(i,Ra(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const $1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sU{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=un.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,he.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=u;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Zc(n),this.isVariantNode=E1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in y){const v=y[b];d[b]!==void 0&&Qe(v)&&v.set(d[b])}}mount(e){var n;this.current=e,rU.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,a)=>this.bindToMotionValue(a,i)),Y1.current||nU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gm.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),xi(this.notifyUpdate),xi(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Oa.has(e);i&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&he.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ka){const n=ka[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<$1.length;i++){const a=$1[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=iU(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Ra(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(lw(i)||cw(i))?i=parseFloat(i):!pI(i)&&wi.test(n)&&(i=a1(e,n)),this.setBaseTarget(e,Qe(i)?i.get():i)),Qe(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var l;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const u=um(this.props,n,(l=this.presenceContext)==null?void 0:l.custom);u&&(i=u[e])}if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!Qe(a)?a:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sp),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){tm.render(this.render)}}class X1 extends sU{constructor(){super(...arguments),this.KeyframeResolver=nI}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Qe(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Q1(t,{style:e,vars:n},i,a){const l=t.style;let u;for(u in e)l[u]=e[u];a==null||a.applyProjectionStyles(l,i);for(u in n)l.setProperty(u,n[u])}function aU(t){return window.getComputedStyle(t)}class oU extends X1{constructor(){super(...arguments),this.type="html",this.renderInstance=Q1}readValueFromInstance(e,n){var i;if(Oa.has(n))return(i=this.projection)!=null&&i.isProjecting?Hp(n):wB(e,n);{const a=aU(e),l=(Cp(n)?a.getPropertyValue(n):a[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(e,{transformPagePoint:n}){return H1(e,n)}build(e,n,i){am(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return cm(e,n,i)}}const Z1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lU(t,e,n,i){Q1(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Z1.has(a)?a:fm(a),e.attrs[a])}class uU extends X1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Oa.has(n)){const i=s1(n);return i&&i.default||0}return n=Z1.has(n)?n:fm(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return N1(e,n,i)}build(e,n,i){A1(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,a){lU(e,n,i,a)}mount(e){this.isSVGTag=R1(e.tagName),super.mount(e)}}const cU=(t,e)=>lm(t)?new uU(e):new oU(e,{allowProjection:t!==I.Fragment});function za(t,e,n){const i=t.getProps();return um(i,e,n!==void 0?n:i.custom,t)}const ym=t=>Array.isArray(t);function fU(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ra(n))}function dU(t){return ym(t)?t[t.length-1]||0:t}function bm(t,e){const n=za(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const f=dU(l[u]);fU(t,u,f)}}function hU(t){return!!(Qe(t)&&t.add)}function vm(t,e){const n=t.getValue("willChange");if(hU(n))return n.add(e);if(!n&&Pr.WillChange){const i=new Pr.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function J1(t){return t.props[M1]}const pU=t=>t!==null;function mU(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(pU),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return a[l]}const gU={type:"spring",stiffness:500,damping:25,restSpeed:10},yU=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),bU={type:"keyframes",duration:.8},vU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xU=(t,{keyframes:e})=>e.length>2?bU:Oa.has(t)?t.startsWith("scale")?yU(e[1]):gU:vU;function SU({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:f,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const xm=(t,e,n,i={},a,l)=>u=>{const f=Zp(i,t)||{},d=f.delay||i.delay||0;let{elapsed:h=0}=i;h=h-vr(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-h,onUpdate:b=>{e.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:l?void 0:a};SU(f)||Object.assign(m,xU(t,m)),m.duration&&(m.duration=vr(m.duration)),m.repeatDelay&&(m.repeatDelay=vr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Qp(m),m.delay===0&&(y=!0)),(Pr.instantAnimations||Pr.skipAnimations)&&(y=!0,Qp(m),m.delay=0),m.allowFlatten=!f.type&&!f.ease,y&&!l&&e.get()!==void 0){const b=mU(m.keyframes,f);if(b!==void 0){he.update(()=>{m.onUpdate(b),m.onComplete()});return}}return f.isSync?new qp(m):new GB(m)};function wU({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function W1(t,e,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:l=t.getDefaultTransition(),transitionEnd:u,...f}=e;i&&(l=i);const d=[],h=a&&t.animationState&&t.animationState.getState()[a];for(const m in f){const y=t.getValue(m,t.latestValues[m]??null),b=f[m];if(b===void 0||h&&wU(h,m))continue;const v={delay:n,...Zp(l||{},m)},S=y.get();if(S!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===S&&!v.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const _=J1(t);if(_){const L=window.MotionHandoffAnimation(_,m,he);L!==null&&(v.startTime=L,w=!0)}}vm(t,m),y.start(xm(m,y,b,t.shouldReduceMotion&&t1.has(m)?{type:!1}:v,t,w));const C=y.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{he.update(()=>{u&&bm(t,u)})}),d}function tE(t,e,n,i=0,a=1){const l=Array.from(t).sort((h,m)=>h.sortNodePosition(m)).indexOf(e),u=t.size,f=(u-1)*i;return typeof n=="function"?n(l,u):a===1?l*i:f-l*i}function Sm(t,e,n={}){var d;const i=za(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const l=i?()=>Promise.all(W1(t,i,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:b}=a;return EU(t,e,h,m,y,b,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[l,u]:[u,l];return h().then(()=>m())}else return Promise.all([l(),u(n.delay)])}function EU(t,e,n=0,i=0,a=0,l=1,u){const f=[];for(const d of t.variantChildren)d.notify("AnimationStart",e),f.push(Sm(d,e,{...u,delay:n+(typeof i=="function"?0:i)+tE(t.variantChildren,d,i,a,l)}).then(()=>d.notify("AnimationComplete",e)));return Promise.all(f)}function eE(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>Sm(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=Sm(t,e,n);else{const a=typeof e=="function"?za(t,e,n.custom):e;i=Promise.all(W1(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function nE(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const TU=sm.length;function rE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?rE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<TU;n++){const i=sm[n],a=t.props[i];(Cl(a)||a===!1)&&(e[i]=a)}return e}const CU=[...im].reverse(),_U=im.length;function AU(t){return e=>Promise.all(e.map(({animation:n,options:i})=>eE(t,n,i)))}function OU(t){let e=AU(t),n=iE(),i=!0;const a=d=>(h,m)=>{var b;const y=za(t,m,d==="exit"?(b=t.presenceContext)==null?void 0:b.custom:void 0);if(y){const{transition:v,transitionEnd:S,...w}=y;h={...h,...w,...S}}return h};function l(d){e=d(t)}function u(d){const{props:h}=t,m=rE(t.parent)||{},y=[],b=new Set;let v={},S=1/0;for(let C=0;C<_U;C++){const _=CU[C],L=n[_],R=h[_]!==void 0?h[_]:m[_],B=Cl(R),K=_===d?L.isActive:null;K===!1&&(S=C);let j=R===m[_]&&R!==h[_]&&B;if(j&&i&&t.manuallyAnimateOnMount&&(j=!1),L.protectedKeys={...v},!L.isActive&&K===null||!R&&!L.prevProp||Qc(R)||typeof R=="boolean")continue;const q=RU(L.prevProp,R);let N=q||_===d&&L.isActive&&!j&&B||C>S&&B,H=!1;const Y=Array.isArray(R)?R:[R];let nt=Y.reduce(a(_),{});K===!1&&(nt={});const{prevResolvedValues:at={}}=L,ft={...at,...nt},st=G=>{N=!0,b.has(G)&&(H=!0,b.delete(G)),L.needsAnimating[G]=!0;const P=t.getValue(G);P&&(P.liveStyle=!1)};for(const G in ft){const P=nt[G],dt=at[G];if(v.hasOwnProperty(G))continue;let O=!1;ym(P)&&ym(dt)?O=!nE(P,dt):O=P!==dt,O?P!=null?st(G):b.add(G):P!==void 0&&b.has(G)?st(G):L.protectedKeys[G]=!0}L.prevProp=R,L.prevResolvedValues=nt,L.isActive&&(v={...v,...nt}),i&&t.blockInitialAnimation&&(N=!1);const it=j&&q;N&&(!it||H)&&y.push(...Y.map(G=>{const P={type:_};if(typeof G=="string"&&i&&!it&&t.manuallyAnimateOnMount&&t.parent){const{parent:dt}=t,O=za(dt,G);if(dt.enteringChildren&&O){const{delayChildren:xt}=O.transition||{};P.delay=tE(dt.enteringChildren,t,xt)}}return{animation:G,options:P}}))}if(b.size){const C={};if(typeof h.initial!="boolean"){const _=za(t,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(C.transition=_.transition)}b.forEach(_=>{const L=t.getBaseTarget(_),R=t.getValue(_);R&&(R.liveStyle=!0),C[_]=L??null}),y.push({animation:C})}let w=!!y.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(w=!1),i=!1,w?e(y):Promise.resolve()}function f(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(b=>{var v;return(v=b.animationState)==null?void 0:v.setActive(d,h)}),n[d].isActive=h;const m=u(d);for(const b in n)n[b].protectedKeys={};return m}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=iE()}}}function RU(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!nE(e,t):!1}function ks(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iE(){return{animate:ks(!0),whileInView:ks(),whileHover:ks(),whileTap:ks(),whileDrag:ks(),whileFocus:ks(),exit:ks()}}class Ei{constructor(e){this.isMounted=!1,this.node=e}update(){}}class kU extends Ei{constructor(e){super(e),e.animationState||(e.animationState=OU(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Qc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let DU=0;class NU extends Ei{constructor(){super(...arguments),this.id=DU++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const MU={animation:{Feature:kU},exit:{Feature:NU}};function Al(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Ol(t){return{point:{x:t.pageX,y:t.pageY}}}const LU=t=>e=>em(e)&&t(e,Ol(e));function Rl(t,e,n,i){return Al(t,e,LU(n),i)}const sE=1e-4,zU=1-sE,jU=1+sE,aE=.01,BU=0-aE,IU=0+aE;function en(t){return t.max-t.min}function UU(t,e,n){return Math.abs(t-e)<=n}function oE(t,e,n,i=.5){t.origin=i,t.originPoint=ye(e.min,e.max,t.origin),t.scale=en(n)/en(e),t.translate=ye(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zU&&t.scale<=jU||isNaN(t.scale))&&(t.scale=1),(t.translate>=BU&&t.translate<=IU||isNaN(t.translate))&&(t.translate=0)}function kl(t,e,n,i){oE(t.x,e.x,n.x,i?i.originX:void 0),oE(t.y,e.y,n.y,i?i.originY:void 0)}function lE(t,e,n){t.min=n.min+e.min,t.max=t.min+en(e)}function PU(t,e,n){lE(t.x,e.x,n.x),lE(t.y,e.y,n.y)}function uE(t,e,n){t.min=e.min-n.min,t.max=t.min+en(e)}function Dl(t,e,n){uE(t.x,e.x,n.x),uE(t.y,e.y,n.y)}function Un(t){return[t("x"),t("y")]}const cE=({current:t})=>t?t.ownerDocument.defaultView:null,fE=(t,e)=>Math.abs(t-e);function qU(t,e){const n=fE(t.x,e.x),i=fE(t.y,e.y);return Math.sqrt(n**2+i**2)}class dE{constructor(e,n,{transformPagePoint:i,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Em(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,S=qU(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!S)return;const{point:w}=b,{timestamp:C}=Fe;this.history.push({...w,timestamp:C});const{onStart:_,onMove:L}=this.handlers;v||(_&&_(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,b)},this.handlePointerMove=(b,v)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=wm(v,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(b,v)=>{this.end();const{onEnd:S,onSessionEnd:w,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Em(b.type==="pointercancel"?this.lastMoveEventInfo:wm(v,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,_),w&&w(b,_)},!em(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=a||window;const f=Ol(e),d=wm(f,this.transformPagePoint),{point:h}=d,{timestamp:m}=Fe;this.history=[{...h,timestamp:m}];const{onSessionStart:y}=n;y&&y(e,Em(d,this.history)),this.removeListeners=ml(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xi(this.updatePoint)}}function wm(t,e){return e?{point:e(t.point)}:t}function hE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Em({point:t},e){return{point:t,delta:hE(t,pE(e)),offset:hE(t,FU(e)),velocity:VU(e,.1)}}function FU(t){return t[0]}function pE(t){return t[t.length-1]}function VU(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=pE(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>vr(e)));)n--;if(!i)return{x:0,y:0};const l=In(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function HU(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?ye(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?ye(n,t,i.max):Math.min(t,n)),t}function mE(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function GU(t,{top:e,left:n,bottom:i,right:a}){return{x:mE(t.x,n,a),y:mE(t.y,e,i)}}function gE(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function KU(t,e){return{x:gE(t.x,e.x),y:gE(t.y,e.y)}}function YU(t,e){let n=.5;const i=en(t),a=en(e);return a>i?n=gl(e.min,e.max-i,t.min):i>a&&(n=gl(t.min,t.max-a,e.min)),Ur(0,1,n)}function $U(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Tm=.35;function XU(t=Tm){return t===!1?t=0:t===!0&&(t=Tm),{x:yE(t,"left","right"),y:yE(t,"top","bottom")}}function yE(t,e,n){return{min:bE(t,e),max:bE(t,n)}}function bE(t,e){return typeof t=="number"?t:t[e]||0}const QU=new WeakMap;class ZU{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ol(y).point)},u=(y,b)=>{const{drag:v,dragPropagation:S,onDragStart:w}=this.getProps();if(v&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aI(v),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Un(_=>{let L=this.getAxisMotionValue(_).get()||0;if(xr.test(L)){const{projection:R}=this.visualElement;if(R&&R.layout){const B=R.layout.layoutBox[_];B&&(L=en(B)*(parseFloat(L)/100))}}this.originPoint[_]=L}),w&&he.postRender(()=>w(y,b)),vm(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},f=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:v,dragDirectionLock:S,onDirectionLock:w,onDrag:C}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:_}=b;if(S&&this.currentDirection===null){this.currentDirection=JU(_),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,_),this.updateAxis("y",b.point,_),this.visualElement.render(),C&&C(y,b)},d=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Un(y=>{var b;return this.getAnimationState(y)==="paused"&&((b=this.getAxisMotionValue(y).animation)==null?void 0:b.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new dE(e,{onSessionStart:l,onStart:u,onMove:f,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:cE(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!i)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&he.postRender(()=>f(i,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!tf(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=HU(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,a=this.constraints;e&&Da(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=GU(i.layoutBox,e):this.constraints=!1,this.elastic=XU(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Un(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=$U(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Da(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=eU(i,a.root,this.visualElement.getTransformPagePoint());let u=KU(a.layout.layoutBox,l);if(n){const f=n(JI(u));this.hasMutatedConstraints=!!f,f&&(u=j1(f))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},h=Un(m=>{if(!tf(m,n,this.currentDirection))return;let y=d&&d[m]||{};u&&(y={min:0,max:0});const b=a?200:1e6,v=a?40:1e7,S={type:"inertia",velocity:i?e[m]:0,bounceStiffness:b,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(f)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return vm(this.visualElement,e),i.start(xm(e,i,0,n,this.visualElement,!1))}stopAnimation(){Un(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Un(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Un(n=>{const{drag:i}=this.getProps();if(!tf(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:f}=a.layout.layoutBox[n];l.set(e[n]-ye(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Da(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Un(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const d=f.get();a[u]=YU({min:d,max:d},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Un(u=>{if(!tf(u,e,null))return;const f=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];f.set(ye(d,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;QU.set(this.visualElement,this);const e=this.visualElement.current,n=Rl(e,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();Da(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),he.read(i);const u=Al(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Un(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=d[m].translate,y.set(y.get()+d[m].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=Tm,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function tf(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function JU(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class WU extends Ei{constructor(e){super(e),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new ZU(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const vE=t=>(e,n)=>{t&&he.postRender(()=>t(e,n))};class tP extends Ei{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(e){this.session=new dE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:vE(e),onStart:vE(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&he.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Rl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ef={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Nl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Et.test(t))t=parseFloat(t);else return t;const n=xE(t,e.target.x),i=xE(t,e.target.y);return`${n}% ${i}%`}},eP={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=wi.parse(t);if(a.length>5)return i;const l=wi.createTransformer(t),u=typeof a[0]!="number"?1:0,f=n.x.scale*e.x,d=n.y.scale*e.y;a[0+u]/=f,a[1+u]/=d;const h=ye(f,d,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),l(a)}};let Cm=!1;class nP extends I.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;AI(rP),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),Cm&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),ef.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,Cm=!0,a||e.layoutDependency!==n||n===void 0||e.isPresent!==l?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||he.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;Cm=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function SE(t){const[e,n]=b1(),i=I.useContext(pp);return M.jsx(nP,{...t,layoutGroup:i,switchLayoutGroup:I.useContext(L1),isPresent:e,safeToRemove:n})}const rP={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:eP};function iP(t,e,n){const i=Qe(t)?t:Ra(t);return i.start(xm("",i,e,n)),i.animation}const sP=(t,e)=>t.depth-e.depth;class aP{constructor(){this.children=[],this.isDirty=!1}add(e){yp(this.children,e),this.isDirty=!0}remove(e){bp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sP),this.isDirty=!1,this.children.forEach(e)}}function oP(t,e){const n=un.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(xi(i),t(l-e))};return he.setup(i,!0),()=>xi(i)}const wE=["TopLeft","TopRight","BottomLeft","BottomRight"],lP=wE.length,EE=t=>typeof t=="string"?parseFloat(t):t,TE=t=>typeof t=="number"||Et.test(t);function uP(t,e,n,i,a,l){a?(t.opacity=ye(0,n.opacity??1,cP(i)),t.opacityExit=ye(e.opacity??1,0,fP(i))):l&&(t.opacity=ye(e.opacity??1,n.opacity??1,i));for(let u=0;u<lP;u++){const f=`border${wE[u]}Radius`;let d=CE(e,f),h=CE(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||TE(d)===TE(h)?(t[f]=Math.max(ye(EE(d),EE(h),i),0),(xr.test(h)||xr.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=ye(e.rotate||0,n.rotate||0,i))}function CE(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const cP=_E(0,.5,bw),fP=_E(.5,.95,Bn);function _E(t,e,n){return i=>i<t?0:i>e?1:n(gl(t,e,i))}function AE(t,e){t.min=e.min,t.max=e.max}function Pn(t,e){AE(t.x,e.x),AE(t.y,e.y)}function OE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function RE(t,e,n,i,a){return t-=e,t=Wc(t,1/n,i),a!==void 0&&(t=Wc(t,1/a,i)),t}function dP(t,e=0,n=1,i=.5,a,l=t,u=t){if(xr.test(e)&&(e=parseFloat(e),e=ye(u.min,u.max,e/100)-u.min),typeof e!="number")return;let f=ye(l.min,l.max,i);t===l&&(f-=e),t.min=RE(t.min,e,n,f,a),t.max=RE(t.max,e,n,f,a)}function kE(t,e,[n,i,a],l,u){dP(t,e[n],e[i],e[a],e.scale,l,u)}const hP=["x","scaleX","originX"],pP=["y","scaleY","originY"];function DE(t,e,n,i){kE(t.x,e,hP,n?n.x:void 0,i?i.x:void 0),kE(t.y,e,pP,n?n.y:void 0,i?i.y:void 0)}function NE(t){return t.translate===0&&t.scale===1}function ME(t){return NE(t.x)&&NE(t.y)}function LE(t,e){return t.min===e.min&&t.max===e.max}function mP(t,e){return LE(t.x,e.x)&&LE(t.y,e.y)}function zE(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function jE(t,e){return zE(t.x,e.x)&&zE(t.y,e.y)}function BE(t){return en(t.x)/en(t.y)}function IE(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class gP{constructor(){this.members=[]}add(e){yp(this.members,e),e.scheduleRender()}remove(e){if(bp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yP(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:y,rotateY:b,skewX:v,skewY:S}=n;h&&(i=`perspective(${h}px) ${i}`),m&&(i+=`rotate(${m}deg) `),y&&(i+=`rotateX(${y}deg) `),b&&(i+=`rotateY(${b}deg) `),v&&(i+=`skewX(${v}deg) `),S&&(i+=`skewY(${S}deg) `)}const f=t.x.scale*e.x,d=t.y.scale*e.y;return(f!==1||d!==1)&&(i+=`scale(${f}, ${d})`),i||"none"}const _m=["","X","Y","Z"],bP=1e3;let vP=0;function Am(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function UE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=J1(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&UE(i)}function PE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},f=e==null?void 0:e()){this.id=vP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wP),this.nodes.forEach(_P),this.nodes.forEach(AP),this.nodes.forEach(EP)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new aP)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sp),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const d=this.eventHandlers.get(u);d&&d.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=g1(u)&&!dI(u),this.instance=u;const{layoutId:f,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||f)&&(this.isLayoutDirty=!0),t){let m,y=0;const b=()=>this.root.updateBlockedByResize=!1;he.read(()=>{y=window.innerWidth}),t(u,()=>{const v=window.innerWidth;v!==y&&(y=v,this.root.updateBlockedByResize=!0,m&&m(),m=oP(b,250),ef.hasAnimatedSinceResize&&(ef.hasAnimatedSinceResize=!1,this.nodes.forEach(VE)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||NP,{onLayoutAnimationStart:w,onLayoutAnimationComplete:C}=h.getProps(),_=!this.targetLayout||!jE(this.targetLayout,v),L=!y&&b;if(this.options.layoutRoot||this.resumeFrom||L||y&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Zp(S,"layout"),onPlay:w,onComplete:C};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(m,L)}else y||VE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(OP),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&UE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:d}=this.options;if(f===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(FE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(CP),this.nodes.forEach(xP),this.nodes.forEach(SP)):this.nodes.forEach(FE),this.clearAllSnapshots();const f=un.now();Fe.delta=Ur(0,1e3/60,f-Fe.timestamp),Fe.timestamp=f,Fe.isProcessing=!0,Tp.update.process(Fe),Tp.preRender.process(Fe),Tp.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(TP),this.sharedNodes.forEach(RP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,he.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){he.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!en(this.snapshot.measuredBox.x)&&!en(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!ME(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;u&&this.instance&&(f||Rs(this.latestValues)||m)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let d=this.removeElementScroll(f);return u&&(d=this.removeTransform(d)),MP(d),{animationId:this.root.animationId,measuredBox:f,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Te();const f=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(LP))){const{scroll:m}=this.root;m&&(Na(f.x,m.offset.x),Na(f.y,m.offset.y))}return f}removeElementScroll(u){var d;const f=Te();if(Pn(f,u),(d=this.scroll)!=null&&d.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:y,options:b}=m;m!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&Pn(f,u),Na(f.x,y.offset.x),Na(f.y,y.offset.y))}return f}applyTransform(u,f=!1){const d=Te();Pn(d,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Ma(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Rs(m.latestValues)&&Ma(d,m.latestValues)}return Rs(this.latestValues)&&Ma(d,this.latestValues),d}removeTransform(u){const f=Te();Pn(f,u);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!Rs(h.latestValues))continue;pm(h.latestValues)&&h.updateSnapshot();const m=Te(),y=h.measurePageBox();Pn(m,y),DE(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Rs(this.latestValues)&&DE(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var b;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==f;if(!(u||d&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!(!this.layout||!(m||y))){if(this.resolvedRelativeTargetAt=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),Dl(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),PU(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pn(this.target,this.layout.layoutBox),P1(this.target,this.targetDelta)):Pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),Dl(this.relativeTargetOrigin,this.target,v.target),Pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||pm(this.parent.latestValues)||B1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var S;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(d=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Fe.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Pn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;tU(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Te());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(OE(this.prevProjectionDelta.x,this.projectionDelta.x),OE(this.prevProjectionDelta.y,this.projectionDelta.y)),kl(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!IE(this.projectionDelta.x,this.prevProjectionDelta.x)||!IE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=La(),this.projectionDelta=La(),this.projectionDeltaWithTransform=La()}setAnimationOrigin(u,f=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},y=La();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Te(),v=d?d.source:void 0,S=this.layout?this.layout.source:void 0,w=v!==S,C=this.getStack(),_=!C||C.members.length<=1,L=!!(w&&!_&&this.options.crossfade===!0&&!this.path.some(DP));this.animationProgress=0;let R;this.mixTargetDelta=B=>{const K=B/1e3;HE(y.x,u.x,K),HE(y.y,u.y,K),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kP(this.relativeTarget,this.relativeTargetOrigin,b,K),R&&mP(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Te()),Pn(R,this.relativeTarget)),w&&(this.animationValues=m,uP(m,h,this.latestValues,K,L,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var f,d,h;this.notifyListeners("animationStart"),(f=this.currentAnimation)==null||f.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(xi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{ef.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ra(0)),this.currentAnimation=iP(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:d,layout:h,latestValues:m}=u;if(!(!f||!d||!h)){if(this!==u&&this.layout&&h&&XE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Te();const y=en(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const b=en(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+b}Pn(f,d),Ma(f,m),kl(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new gP),this.sharedNodes.get(u).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var f;const{layoutId:u}=this.options;return u?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:u}=this.options;return u?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(f=!0),!f)return;const h={};d.z&&Am("z",u,h,this.animationValues);for(let m=0;m<_m.length;m++)Am(`rotate${_m[m]}`,u,h,this.animationValues),Am(`skew${_m[m]}`,u,h,this.animationValues);u.render();for(const m in h)u.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Jc(f==null?void 0:f.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Jc(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!Rs(this.latestValues)&&(u.transform=d?d({},""):"none",this.hasProjected=!1);return}u.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=yP(this.projectionDeltaWithTransform,this.treeScale,m);d&&(y=d(m,y)),u.transform=y;const{x:b,y:v}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,h.animationValues?u.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in _l){if(m[S]===void 0)continue;const{correct:w,applyTo:C,isCSSVariable:_}=_l[S],L=y==="none"?m[S]:w(m[S],h);if(C){const R=C.length;for(let B=0;B<R;B++)u[C[B]]=L}else _?this.options.visualElement.renderState.vars[S]=L:u[S]=L}this.options.layoutId&&(u.pointerEvents=h===this?Jc(f==null?void 0:f.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(qE),this.root.sharedNodes.clear()}}}function xP(t){t.updateLayout()}function SP(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,u=e.source!==t.layout.source;l==="size"?Un(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=en(b);b.min=i[y].min,b.max=b.min+v}):XE(l,e.layoutBox,i)&&Un(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=en(i[y]);b.max=b.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+v)});const f=La();kl(f,i,e.layoutBox);const d=La();u?kl(d,t.applyTransform(a,!0),e.measuredBox):kl(d,i,e.layoutBox);const h=!ME(f);let m=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:v}=y;if(b&&v){const S=Te();Dl(S,e.layoutBox,b.layoutBox);const w=Te();Dl(w,i,v.layoutBox),jE(S,w)||(m=!0),y.options.layoutRoot&&(t.relativeTarget=w,t.relativeTargetOrigin=S,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:d,layoutDelta:f,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function wP(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function EP(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function TP(t){t.clearSnapshot()}function qE(t){t.clearMeasurements()}function FE(t){t.isLayoutDirty=!1}function CP(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function VE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function _P(t){t.resolveTargetDelta()}function AP(t){t.calcProjection()}function OP(t){t.resetSkewAndRotation()}function RP(t){t.removeLeadSnapshot()}function HE(t,e,n){t.translate=ye(e.translate,0,n),t.scale=ye(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function GE(t,e,n,i){t.min=ye(e.min,n.min,i),t.max=ye(e.max,n.max,i)}function kP(t,e,n,i){GE(t.x,e.x,n.x,i),GE(t.y,e.y,n.y,i)}function DP(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const NP={duration:.45,ease:[.4,0,.1,1]},KE=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),YE=KE("applewebkit/")&&!KE("chrome/")?Math.round:Bn;function $E(t){t.min=YE(t.min),t.max=YE(t.max)}function MP(t){$E(t.x),$E(t.y)}function XE(t,e,n){return t==="position"||t==="preserve-aspect"&&!UU(BE(e),BE(n),.2)}function LP(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const zP=PE({attachResizeListener:(t,e)=>Al(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Om={current:void 0},QE=PE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Om.current){const t=new zP({});t.mount(window),t.setOptions({layoutScroll:!0}),Om.current=t}return Om.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),jP={pan:{Feature:tP},drag:{Feature:WU,ProjectionNode:QE,MeasureLayout:SE}};function ZE(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&he.postRender(()=>l(e,Ol(e)))}class BP extends Ei{mount(){const{current:e}=this.node;e&&(this.unmount=oI(e,(n,i)=>(ZE(this.node,i,"Start"),a=>ZE(this.node,a,"End"))))}unmount(){}}class IP extends Ei{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ml(Al(this.node.current,"focus",()=>this.onFocus()),Al(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function JE(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&he.postRender(()=>l(e,Ol(e)))}class UP extends Ei{mount(){const{current:e}=this.node;e&&(this.unmount=fI(e,(n,i)=>(JE(this.node,i,"Start"),(a,{success:l})=>JE(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Rm=new WeakMap,km=new WeakMap,PP=t=>{const e=Rm.get(t.target);e&&e(t)},qP=t=>{t.forEach(PP)};function FP({root:t,...e}){const n=t||document;km.has(n)||km.set(n,{});const i=km.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(qP,{root:t,...e})),i[a]}function VP(t,e,n){const i=FP(e);return Rm.set(t,n),i.observe(t),()=>{Rm.delete(t),i.unobserve(t)}}const HP={some:0,all:1};class GP extends Ei{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:HP[a]},f=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),b=h?m:y;b&&b(d)};return VP(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(KP(e,n))&&this.startObserver()}unmount(){}}function KP({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const YP={...MU,...{inView:{Feature:GP},tap:{Feature:UP},focus:{Feature:IP},hover:{Feature:BP}},...jP,...{layout:{ProjectionNode:QE,MeasureLayout:SE}}},rr=ZI(YP,cU);function $P(t){t.values.forEach(e=>e.stop())}function Dm(t,e){[...e].reverse().forEach(i=>{const a=t.getVariant(i);a&&bm(t,a),t.variantChildren&&t.variantChildren.forEach(l=>{Dm(l,e)})})}function XP(t,e){if(Array.isArray(e))return Dm(t,e);if(typeof e=="string")return Dm(t,[e]);bm(t,e)}function QP(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,i){const a=[];return t.forEach(l=>{a.push(eE(l,n,{transitionOverride:i}))}),Promise.all(a)},set(n){return t.forEach(i=>{XP(i,n)})},stop(){t.forEach(n=>{$P(n)})},mount(){return()=>{e.stop()}}};return e}function ZP(){const t=Ic(QP);return gp(t.mount,[]),t}const JP=ZP,ja=({variant:t="filled",color:e="primary",size:n="medium",icon:i,loading:a,disabled:l,className:u,children:f,...d})=>{const h="rounded-md focus:outline-none aspect-square  flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",m={filled:{primary:"bg-primary-500 text-white hover:bg-primary-600",secondary:"bg-gray-500 text-white hover:bg-gray-600",error:"bg-red-500 text-white hover:bg-red-600",success:"bg-green-500 text-white hover:bg-green-600",neutral:"bg-neutral-500 text-white hover:bg-neutral-600"},outlined:{primary:"border border-primary-500 text-primary-500 hover:bg-primary-100",secondary:"border border-gray-500 text-gray-500 hover:bg-gray-100",error:"border border-red-500 text-red-500 hover:bg-red-100",success:"border border-green-500 text-green-500 hover:bg-green-100",neutral:"border border-neutral-500 text-neutral-500 hover:bg-neutral-100"},plain:{primary:"text-primary-500 hover:bg-primary-100",secondary:"text-gray-500 hover:bg-gray-100",error:"text-red-500 hover:bg-red-100",success:"text-green-500 hover:bg-green-100",neutral:"text-neutral-500 hover:text-primary-600"},light:{primary:"bg-primary-100 text-primary-400 hover:bg-primary-200",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200",error:"bg-red-100 text-red-700 hover:bg-red-200",success:"bg-green-100 text-green-700 hover:bg-green-200",neutral:"bg-neutral-100 text-neutral-700 hover:bg-neutral-200"}},y={xs:"w-6 h-6 ",small:"w-8 h-8 ",medium:"w-9 h-9",large:"w-10 h-10",xl:"w-1 h-11"},b={xs:"w-6 h-6",small:"w-7 h-7",medium:"w-8 h-8 ",large:"w-9 h-9",xl:"w-10 h-10"};return M.jsxs("button",{className:ge(h,m[t][e],y[n],u),disabled:l||a,...d,children:[a?M.jsx("span",{className:ge("animate-spin",b[n]),children:"🔄"}):M.jsx("span",{className:ge(b[n]),children:i}),f]})};function WP({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const t6=I.forwardRef(WP);function e6({title:t,titleId:e,...n},i){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?I.createElement("title",{id:e},t):null,I.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Nm=I.forwardRef(e6),WE=({messageTemplates:t,onClick:e,size:n="md"})=>{const i="message-template  border-primary-600 text-primary-600 hover:bg-primary-100 cursor-pointer rounded-lg border bg-white transition",a=n==="sm"?"p-0.5 px-1.5 text-sm":"p-1 px-2 text-left font-medium";return M.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>M.jsx("button",{className:`${i} ${a}`,onClick:()=>e==null?void 0:e(l),children:l.content},l.id))})};function tG(){}function eG(){}function n6(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const r6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s6={};function tT(t,e){return(s6.jsx?i6:r6).test(t)}const a6=/[ \t\n\f\r]/g;function o6(t){return typeof t=="object"?t.type==="text"?eT(t.value):!1:eT(t)}function eT(t){return t.replace(a6,"")===""}class Ml{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}Ml.prototype.normal={},Ml.prototype.property={},Ml.prototype.space=void 0;function nT(t,e){const n={},i={};for(const a of t)Object.assign(n,a.property),Object.assign(i,a.normal);return new Ml(n,i,e)}function Mm(t){return t.toLowerCase()}class cn{constructor(e,n){this.attribute=n,this.property=e}}cn.prototype.attribute="",cn.prototype.booleanish=!1,cn.prototype.boolean=!1,cn.prototype.commaOrSpaceSeparated=!1,cn.prototype.commaSeparated=!1,cn.prototype.defined=!1,cn.prototype.mustUseProperty=!1,cn.prototype.number=!1,cn.prototype.overloadedBoolean=!1,cn.prototype.property="",cn.prototype.spaceSeparated=!1,cn.prototype.space=void 0;let l6=0;const Mt=Ds(),Oe=Ds(),Lm=Ds(),ot=Ds(),le=Ds(),Ba=Ds(),Cn=Ds();function Ds(){return 2**++l6}const zm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Oe,commaOrSpaceSeparated:Cn,commaSeparated:Ba,number:ot,overloadedBoolean:Lm,spaceSeparated:le},Symbol.toStringTag,{value:"Module"})),jm=Object.keys(zm);class Bm extends cn{constructor(e,n,i,a){let l=-1;if(super(e,n),rT(this,"space",a),typeof i=="number")for(;++l<jm.length;){const u=jm[l];rT(this,jm[l],(i&zm[u])===zm[u])}}}Bm.prototype.defined=!0;function rT(t,e,n){n&&(t[e]=n)}function Ia(t){const e={},n={};for(const[i,a]of Object.entries(t.properties)){const l=new Bm(i,t.transform(t.attributes||{},i),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),e[i]=l,n[Mm(i)]=i,n[Mm(l.attribute)]=i}return new Ml(e,n,t.space)}const iT=Ia({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:le,ariaCurrent:null,ariaDescribedBy:le,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:le,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:le,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:le,ariaLevel:ot,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:le,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:le,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:Oe,ariaSetSize:ot,ariaSort:null,ariaValueMax:ot,ariaValueMin:ot,ariaValueNow:ot,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function sT(t,e){return e in t?t[e]:e}function aT(t,e){return sT(t,e.toLowerCase())}const u6=Ia({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ba,acceptCharset:le,accessKey:le,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:le,autoFocus:Mt,autoPlay:Mt,blocking:le,capture:null,charSet:null,checked:Mt,cite:null,className:le,cols:ot,colSpan:null,content:null,contentEditable:Oe,controls:Mt,controlsList:le,coords:ot|Ba,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:Lm,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:le,height:ot,hidden:Lm,high:ot,href:null,hrefLang:null,htmlFor:le,httpEquiv:le,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:le,itemRef:le,itemScope:Mt,itemType:le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mt,optimum:ot,pattern:null,ping:le,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:le,required:Mt,reversed:Mt,rows:ot,rowSpan:ot,sandbox:le,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shadowRootClonable:Mt,shadowRootDelegatesFocus:Mt,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ot,step:null,style:null,tabIndex:ot,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:Oe,width:ot,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:le,axis:null,background:null,bgColor:null,border:ot,borderColor:null,bottomMargin:ot,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:ot,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ot,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:ot,security:null,unselectable:null},space:"html",transform:aT}),c6=Ia({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Cn,accentHeight:ot,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ot,amplitude:ot,arabicForm:null,ascent:ot,attributeName:null,attributeType:null,azimuth:ot,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ot,by:null,calcMode:null,capHeight:ot,className:le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ot,diffuseConstant:ot,direction:null,display:null,dur:null,divisor:ot,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ot,enableBackground:null,end:null,event:null,exponent:ot,externalResourcesRequired:null,fill:null,fillOpacity:ot,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ba,g2:Ba,glyphName:Ba,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ot,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ot,horizOriginX:ot,horizOriginY:ot,id:null,ideographic:ot,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ot,k:ot,k1:ot,k2:ot,k3:ot,k4:ot,kernelMatrix:Cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ot,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ot,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ot,overlineThickness:ot,paintOrder:null,panose1:null,path:null,pathLength:ot,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ot,pointsAtY:ot,pointsAtZ:ot,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Cn,rev:Cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Cn,requiredFeatures:Cn,requiredFonts:Cn,requiredFormats:Cn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ot,specularExponent:ot,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ot,strikethroughThickness:ot,string:null,stroke:null,strokeDashArray:Cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ot,strokeOpacity:ot,strokeWidth:null,style:null,surfaceScale:ot,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Cn,tabIndex:ot,tableValues:null,target:null,targetX:ot,targetY:ot,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ot,underlineThickness:ot,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ot,values:null,vAlphabetic:ot,vMathematical:ot,vectorEffect:null,vHanging:ot,vIdeographic:ot,version:null,vertAdvY:ot,vertOriginX:ot,vertOriginY:ot,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ot,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sT}),oT=Ia({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),lT=Ia({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:aT}),uT=Ia({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),f6={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},d6=/[A-Z]/g,cT=/-[a-z]/g,h6=/^data[-\w.:]+$/i;function p6(t,e){const n=Mm(e);let i=e,a=cn;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&h6.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(cT,g6);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!cT.test(l)){let u=l.replace(d6,m6);u.charAt(0)!=="-"&&(u="-"+u),e="data"+u}}a=Bm}return new a(i,e)}function m6(t){return"-"+t.toLowerCase()}function g6(t){return t.charAt(1).toUpperCase()}const y6=nT([iT,u6,oT,lT,uT],"html"),Im=nT([iT,c6,oT,lT,uT],"svg");function b6(t){return t.join(" ").trim()}var Ua={},Um,fT;function v6(){if(fT)return Um;fT=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
`,h="/",m="*",y="",b="comment",v="declaration";function S(C,_){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];_=_||{};var L=1,R=1;function B(st){var it=st.match(e);it&&(L+=it.length);var Z=st.lastIndexOf(d);R=~Z?st.length-Z:R+st.length}function K(){var st={line:L,column:R};return function(it){return it.position=new j(st),H(),it}}function j(st){this.start=st,this.end={line:L,column:R},this.source=_.source}j.prototype.content=C;function q(st){var it=new Error(_.source+":"+L+":"+R+": "+st);if(it.reason=st,it.filename=_.source,it.line=L,it.column=R,it.source=C,!_.silent)throw it}function N(st){var it=st.exec(C);if(it){var Z=it[0];return B(Z),C=C.slice(Z.length),it}}function H(){N(n)}function Y(st){var it;for(st=st||[];it=nt();)it!==!1&&st.push(it);return st}function nt(){var st=K();if(!(h!=C.charAt(0)||m!=C.charAt(1))){for(var it=2;y!=C.charAt(it)&&(m!=C.charAt(it)||h!=C.charAt(it+1));)++it;if(it+=2,y===C.charAt(it-1))return q("End of comment missing");var Z=C.slice(2,it-2);return R+=2,B(Z),C=C.slice(it),R+=2,st({type:b,comment:Z})}}function at(){var st=K(),it=N(i);if(it){if(nt(),!N(a))return q("property missing ':'");var Z=N(l),G=st({type:v,property:w(it[0].replace(t,y)),value:Z?w(Z[0].replace(t,y)):y});return N(u),G}}function ft(){var st=[];Y(st);for(var it;it=at();)it!==!1&&(st.push(it),Y(st));return st}return H(),ft()}function w(C){return C?C.replace(f,y):y}return Um=S,Um}var dT;function x6(){if(dT)return Ua;dT=1;var t=Ua&&Ua.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=n;const e=t(v6());function n(i,a){let l=null;if(!i||typeof i!="string")return l;const u=(0,e.default)(i),f=typeof a=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;f?a(h,m,d):m&&(l=l||{},l[h]=m)}),l}return Ua}var Ll={},hT;function S6(){if(hT)return Ll;hT=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(h){return!h||n.test(h)||t.test(h)},u=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(a,f):h=h.replace(i,f),h.replace(e,u))};return Ll.camelCase=d,Ll}var zl,pT;function w6(){if(pT)return zl;pT=1;var t=zl&&zl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},e=t(x6()),n=S6();function i(a,l){var u={};return!a||typeof a!="string"||(0,e.default)(a,function(f,d){f&&d&&(u[(0,n.camelCase)(f,l)]=d)}),u}return i.default=i,zl=i,zl}var E6=w6();const T6=It(E6),mT=gT("end"),Pm=gT("start");function gT(t){return e;function e(n){const i=n&&n.position&&n.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function C6(t){const e=Pm(t),n=mT(t);if(e&&n)return{start:e,end:n}}function jl(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?yT(t.position):"start"in t||"end"in t?yT(t):"line"in t||"column"in t?qm(t):""}function qm(t){return bT(t&&t.line)+":"+bT(t&&t.column)}function yT(t){return qm(t&&t.start)+"-"+qm(t&&t.end)}function bT(t){return t&&typeof t=="number"?t:1}class Ze extends Error{constructor(e,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof e=="string"?a=e:!l.cause&&e&&(u=!0,a=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=f?f.line:void 0,this.name=jl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ze.prototype.file="",Ze.prototype.name="",Ze.prototype.reason="",Ze.prototype.message="",Ze.prototype.stack="",Ze.prototype.column=void 0,Ze.prototype.line=void 0,Ze.prototype.ancestors=void 0,Ze.prototype.cause=void 0,Ze.prototype.fatal=void 0,Ze.prototype.place=void 0,Ze.prototype.ruleId=void 0,Ze.prototype.source=void 0;const Fm={}.hasOwnProperty,_6=new Map,A6=/[A-Z]/g,O6=new Set(["table","tbody","thead","tfoot","tr"]),R6=new Set(["td","th"]),vT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function k6(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=I6(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=B6(n,e.jsx,e.jsxs)}const a={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Im:y6,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=xT(a,t,void 0);return l&&typeof l!="string"?l:a.create(t,a.Fragment,{children:l||void 0},void 0)}function xT(t,e,n){if(e.type==="element")return D6(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return N6(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return L6(t,e,n);if(e.type==="mdxjsEsm")return M6(t,e);if(e.type==="root")return z6(t,e,n);if(e.type==="text")return j6(t,e)}function D6(t,e,n){const i=t.schema;let a=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Im,t.schema=a),t.ancestors.push(e);const l=wT(t,e.tagName,!1),u=U6(t,e);let f=Hm(t,e);return O6.has(e.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!o6(d):!0})),ST(t,u,l,e),Vm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function N6(t,e){if(e.data&&e.data.estree&&t.evaluater){const i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}Bl(t,e.position)}function M6(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Bl(t,e.position)}function L6(t,e,n){const i=t.schema;let a=i;e.name==="svg"&&i.space==="html"&&(a=Im,t.schema=a),t.ancestors.push(e);const l=e.name===null?t.Fragment:wT(t,e.name,!0),u=P6(t,e),f=Hm(t,e);return ST(t,u,l,e),Vm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function z6(t,e,n){const i={};return Vm(i,Hm(t,e)),t.create(e,t.Fragment,i,n)}function j6(t,e){return e.value}function ST(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Vm(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function B6(t,e,n){return i;function i(a,l,u,f){const h=Array.isArray(u.children)?n:e;return f?h(l,u,f):h(l,u)}}function I6(t,e){return n;function n(i,a,l,u){const f=Array.isArray(l.children),d=Pm(i);return e(a,l,u,f,{columnNumber:d?d.column-1:void 0,fileName:t,lineNumber:d?d.line:void 0},void 0)}}function U6(t,e){const n={};let i,a;for(a in e.properties)if(a!=="children"&&Fm.call(e.properties,a)){const l=q6(t,a,e.properties[a]);if(l){const[u,f]=l;t.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&R6.has(e.tagName)?i=f:n[u]=f}}if(i){const l=n.style||(n.style={});l[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function P6(t,e){const n={};for(const i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,t.evaluater.evaluateExpression(f.argument))}else Bl(t,e.position);else{const a=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const f=i.value.data.estree.body[0];f.type,l=t.evaluater.evaluateExpression(f.expression)}else Bl(t,e.position);else l=i.value===null?!0:i.value;n[a]=l}return n}function Hm(t,e){const n=[];let i=-1;const a=t.passKeys?new Map:_6;for(;++i<e.children.length;){const l=e.children[i];let u;if(t.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=a.get(d)||0;u=d+"-"+h,a.set(d,h+1)}}const f=xT(t,l,u);f!==void 0&&n.push(f)}return n}function q6(t,e,n){const i=p6(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?n6(n):b6(n)),i.property==="style"){let a=typeof n=="object"?n:F6(t,String(n));return t.stylePropertyNameCase==="css"&&(a=V6(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&i.space?f6[i.property]||i.property:i.attribute,n]}}function F6(t,e){try{return T6(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,a=new Ze("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=vT+"#cannot-parse-style-attribute",a}}function wT(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){const a=e.split(".");let l=-1,u;for(;++l<a.length;){const f=tT(a[l])?{type:"Identifier",name:a[l]}:{type:"Literal",value:a[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}i=u}else i=tT(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const a=i.value;return Fm.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(i);Bl(t)}function Bl(t,e){const n=new Ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=vT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function V6(t){const e={};let n;for(n in t)Fm.call(t,n)&&(e[H6(n)]=t[n]);return e}function H6(t){let e=t.replace(A6,G6);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function G6(t){return"-"+t.toLowerCase()}const Gm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},K6={};function Y6(t,e){const n=K6,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ET(t,i,a)}function ET(t,e,n){if($6(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return TT(t.children,e,n)}return Array.isArray(t)?TT(t,e,n):""}function TT(t,e,n){const i=[];let a=-1;for(;++a<t.length;)i[a]=ET(t[a],e,n);return i.join("")}function $6(t){return!!(t&&typeof t=="object")}const CT=document.createElement("i");function Km(t){const e="&"+t+";";CT.innerHTML=e;const n=CT.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Sr(t,e,n,i){const a=t.length;let l=0,u;if(e<0?e=-e>a?0:a+e:e=e>a?a:e,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(e,n),t.splice(...u);else for(n&&t.splice(e,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(e,0),t.splice(...u),l+=1e4,e+=1e4}function qn(t,e){return t.length>0?(Sr(t,t.length,0,e),t):e}const _T={}.hasOwnProperty;function X6(t){const e={};let n=-1;for(;++n<t.length;)Q6(e,t[n]);return e}function Q6(t,e){let n;for(n in e){const a=(_T.call(t,n)?t[n]:void 0)||(t[n]={}),l=e[n];let u;if(l)for(u in l){_T.call(a,u)||(a[u]=[]);const f=l[u];Z6(a[u],Array.isArray(f)?f:f?[f]:[])}}}function Z6(t,e){let n=-1;const i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);Sr(t,0,0,i)}function AT(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Pa(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wr=Ti(/[A-Za-z]/),_n=Ti(/[\dA-Za-z]/),J6=Ti(/[#-'*+\--9=?A-Z^-~]/);function Ym(t){return t!==null&&(t<32||t===127)}const $m=Ti(/\d/),W6=Ti(/[\dA-Fa-f]/),tq=Ti(/[!-/:-@[-`{-~]/);function Ct(t){return t!==null&&t<-2}function fn(t){return t!==null&&(t<0||t===32)}function Xt(t){return t===-2||t===-1||t===32}const eq=Ti(new RegExp("\\p{P}|\\p{S}","u")),nq=Ti(/\s/);function Ti(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function qa(t){const e=[];let n=-1,i=0,a=0;for(;++n<t.length;){const l=t.charCodeAt(n);let u="";if(l===37&&_n(t.charCodeAt(n+1))&&_n(t.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=t.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),a=1):u="�"}else u=String.fromCharCode(l);u&&(e.push(t.slice(i,n),encodeURIComponent(u)),i=n+a+1,u=""),a&&(n+=a,a=0)}return e.join("")+t.slice(i)}function ue(t,e,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return Xt(d)?(t.enter(n),f(d)):e(d)}function f(d){return Xt(d)&&l++<a?(t.consume(d),f):(t.exit(n),e(d))}}const rq={tokenize:iq};function iq(t){const e=t.attempt(this.parser.constructs.contentInitial,i,a);let n;return e;function i(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),ue(t,e,"linePrefix")}function a(f){return t.enter("paragraph"),l(f)}function l(f){const d=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(f)}function u(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return Ct(f)?(t.consume(f),t.exit("chunkText"),l):(t.consume(f),u)}}const sq={tokenize:aq},OT={tokenize:oq};function aq(t){const e=this,n=[];let i=0,a,l,u;return f;function f(R){if(i<n.length){const B=n[i];return e.containerState=B[1],t.attempt(B[0].continuation,d,h)(R)}return h(R)}function d(R){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,a&&L();const B=e.events.length;let K=B,j;for(;K--;)if(e.events[K][0]==="exit"&&e.events[K][1].type==="chunkFlow"){j=e.events[K][1].end;break}_(i);let q=B;for(;q<e.events.length;)e.events[q][1].end={...j},q++;return Sr(e.events,K+1,0,e.events.slice(B)),e.events.length=q,h(R)}return f(R)}function h(R){if(i===n.length){if(!a)return b(R);if(a.currentConstruct&&a.currentConstruct.concrete)return S(R);e.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(OT,m,y)(R)}function m(R){return a&&L(),_(i),b(R)}function y(R){return e.parser.lazy[e.now().line]=i!==n.length,u=e.now().offset,S(R)}function b(R){return e.containerState={},t.attempt(OT,v,S)(R)}function v(R){return i++,n.push([e.currentConstruct,e.containerState]),b(R)}function S(R){if(R===null){a&&L(),_(0),t.consume(R);return}return a=a||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),w(R)}function w(R){if(R===null){C(t.exit("chunkFlow"),!0),_(0),t.consume(R);return}return Ct(R)?(t.consume(R),C(t.exit("chunkFlow")),i=0,e.interrupt=void 0,f):(t.consume(R),w)}function C(R,B){const K=e.sliceStream(R);if(B&&K.push(null),R.previous=l,l&&(l.next=R),l=R,a.defineSkip(R.start),a.write(K),e.parser.lazy[R.start.line]){let j=a.events.length;for(;j--;)if(a.events[j][1].start.offset<u&&(!a.events[j][1].end||a.events[j][1].end.offset>u))return;const q=e.events.length;let N=q,H,Y;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(H){Y=e.events[N][1].end;break}H=!0}for(_(i),j=q;j<e.events.length;)e.events[j][1].end={...Y},j++;Sr(e.events,N+1,0,e.events.slice(q)),e.events.length=j}}function _(R){let B=n.length;for(;B-- >R;){const K=n[B];e.containerState=K[1],K[0].exit.call(e,t)}n.length=R}function L(){a.write([null]),l=void 0,a=void 0,e.containerState._closeFlow=void 0}}function oq(t,e,n){return ue(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function RT(t){if(t===null||fn(t)||nq(t))return 1;if(eq(t))return 2}function Xm(t,e,n){const i=[];let a=-1;for(;++a<t.length;){const l=t[a].resolveAll;l&&!i.includes(l)&&(e=l(e,n),i.push(l))}return e}const Qm={name:"attention",resolveAll:lq,tokenize:uq};function lq(t,e){let n=-1,i,a,l,u,f,d,h,m;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;d=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const y={...t[i][1].end},b={...t[n][1].start};kT(y,-d),kT(b,d),u={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...t[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:b},l={type:d>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},t[i][1].end={...u.start},t[n][1].start={...f.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=qn(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=qn(h,[["enter",a,e],["enter",u,e],["exit",u,e],["enter",l,e]]),h=qn(h,Xm(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),h=qn(h,[["exit",l,e],["enter",f,e],["exit",f,e],["exit",a,e]]),t[n][1].end.offset-t[n][1].start.offset?(m=2,h=qn(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):m=0,Sr(t,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function uq(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=RT(i);let l;return u;function u(d){return l=d,t.enter("attentionSequence"),f(d)}function f(d){if(d===l)return t.consume(d),f;const h=t.exit("attentionSequence"),m=RT(d),y=!m||m===2&&a||n.includes(d),b=!a||a===2&&m||n.includes(i);return h._open=!!(l===42?y:y&&(a||!b)),h._close=!!(l===42?b:b&&(m||!y)),e(d)}}function kT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const cq={name:"autolink",tokenize:fq};function fq(t,e,n){let i=0;return a;function a(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),l}function l(v){return wr(v)?(t.consume(v),u):v===64?n(v):h(v)}function u(v){return v===43||v===45||v===46||_n(v)?(i=1,f(v)):h(v)}function f(v){return v===58?(t.consume(v),i=0,d):(v===43||v===45||v===46||_n(v))&&i++<32?(t.consume(v),f):(i=0,h(v))}function d(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):v===null||v===32||v===60||Ym(v)?n(v):(t.consume(v),d)}function h(v){return v===64?(t.consume(v),m):J6(v)?(t.consume(v),h):n(v)}function m(v){return _n(v)?y(v):n(v)}function y(v){return v===46?(t.consume(v),i=0,m):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),e):b(v)}function b(v){if((v===45||_n(v))&&i++<63){const S=v===45?b:y;return t.consume(v),S}return n(v)}}const nf={partial:!0,tokenize:dq};function dq(t,e,n){return i;function i(l){return Xt(l)?ue(t,a,"linePrefix")(l):a(l)}function a(l){return l===null||Ct(l)?e(l):n(l)}}const DT={continuation:{tokenize:pq},exit:mq,name:"blockQuote",tokenize:hq};function hq(t,e,n){const i=this;return a;function a(u){if(u===62){const f=i.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(u),t.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Xt(u)?(t.enter("blockQuotePrefixWhitespace"),t.consume(u),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(u))}}function pq(t,e,n){const i=this;return a;function a(u){return Xt(u)?ue(t,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return t.attempt(DT,e,n)(u)}}function mq(t){t.exit("blockQuote")}const NT={name:"characterEscape",tokenize:gq};function gq(t,e,n){return i;function i(l){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(l),t.exit("escapeMarker"),a}function a(l){return tq(l)?(t.enter("characterEscapeValue"),t.consume(l),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(l)}}const MT={name:"characterReference",tokenize:yq};function yq(t,e,n){const i=this;let a=0,l,u;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),d}function d(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),l=31,u=_n,m(y))}function h(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),l=6,u=W6,m):(t.enter("characterReferenceValue"),l=7,u=$m,m(y))}function m(y){if(y===59&&a){const b=t.exit("characterReferenceValue");return u===_n&&!Km(i.sliceSerialize(b))?n(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return u(y)&&a++<l?(t.consume(y),m):n(y)}}const LT={partial:!0,tokenize:vq},zT={concrete:!0,name:"codeFenced",tokenize:bq};function bq(t,e,n){const i=this,a={partial:!0,tokenize:K};let l=0,u=0,f;return d;function d(j){return h(j)}function h(j){const q=i.events[i.events.length-1];return l=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,f=j,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(u++,t.consume(j),m):u<3?n(j):(t.exit("codeFencedFenceSequence"),Xt(j)?ue(t,y,"whitespace")(j):y(j))}function y(j){return j===null||Ct(j)?(t.exit("codeFencedFence"),i.interrupt?e(j):t.check(LT,w,B)(j)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),b(j))}function b(j){return j===null||Ct(j)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(j)):Xt(j)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ue(t,v,"whitespace")(j)):j===96&&j===f?n(j):(t.consume(j),b)}function v(j){return j===null||Ct(j)?y(j):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),S(j))}function S(j){return j===null||Ct(j)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?n(j):(t.consume(j),S)}function w(j){return t.attempt(a,B,C)(j)}function C(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),_}function _(j){return l>0&&Xt(j)?ue(t,L,"linePrefix",l+1)(j):L(j)}function L(j){return j===null||Ct(j)?t.check(LT,w,B)(j):(t.enter("codeFlowValue"),R(j))}function R(j){return j===null||Ct(j)?(t.exit("codeFlowValue"),L(j)):(t.consume(j),R)}function B(j){return t.exit("codeFenced"),e(j)}function K(j,q,N){let H=0;return Y;function Y(it){return j.enter("lineEnding"),j.consume(it),j.exit("lineEnding"),nt}function nt(it){return j.enter("codeFencedFence"),Xt(it)?ue(j,at,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it):at(it)}function at(it){return it===f?(j.enter("codeFencedFenceSequence"),ft(it)):N(it)}function ft(it){return it===f?(H++,j.consume(it),ft):H>=u?(j.exit("codeFencedFenceSequence"),Xt(it)?ue(j,st,"whitespace")(it):st(it)):N(it)}function st(it){return it===null||Ct(it)?(j.exit("codeFencedFence"),q(it)):N(it)}}}function vq(t,e,n){const i=this;return a;function a(u){return u===null?n(u):(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):e(u)}}const Zm={name:"codeIndented",tokenize:Sq},xq={partial:!0,tokenize:wq};function Sq(t,e,n){const i=this;return a;function a(h){return t.enter("codeIndented"),ue(t,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):Ct(h)?t.attempt(xq,u,d)(h):(t.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ct(h)?(t.exit("codeFlowValue"),u(h)):(t.consume(h),f)}function d(h){return t.exit("codeIndented"),e(h)}}function wq(t,e,n){const i=this;return a;function a(u){return i.parser.lazy[i.now().line]?n(u):Ct(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a):ue(t,l,"linePrefix",5)(u)}function l(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?e(u):Ct(u)?a(u):n(u)}}const Eq={name:"codeText",previous:Cq,resolve:Tq,tokenize:_q};function Tq(t){let e=t.length-4,n=3,i,a;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)a===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(a=i):(i===e||t[i][1].type==="lineEnding")&&(t[a][1].type="codeTextData",i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),e-=i-a-2,i=a+2),a=void 0);return t}function Cq(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _q(t,e,n){let i=0,a,l;return u;function u(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),i++,f):(t.exit("codeTextSequence"),d(y))}function d(y){return y===null?n(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),d):y===96?(l=t.enter("codeTextSequence"),a=0,m(y)):Ct(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),d):(t.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ct(y)?(t.exit("codeTextData"),d(y)):(t.consume(y),h)}function m(y){return y===96?(t.consume(y),a++,m):a===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(y)):(l.type="codeTextData",h(y))}}class Aq{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,n,i){const a=n||0;this.setCursor(Math.trunc(e));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&Il(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Il(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Il(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Il(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Il(this.left,n.reverse())}}}function Il(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function jT(t){const e={};let n=-1,i,a,l,u,f,d,h;const m=new Aq(t);for(;++n<m.length;){for(;n in e;)n=e[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,Oq(m,n)),n=e[n],h=!0);else if(i[1]._container){for(l=n,a=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(i[1].end={...m.get(a)[1].start},f=m.slice(a,n),f.unshift(i),m.splice(a,n-a+1,f))}}return Sr(t,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Oq(t,e){const n=t.get(e)[1],i=t.get(e)[2];let a=e-1;const l=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],h={};let m,y,b=-1,v=n,S=0,w=0;const C=[w];for(;v;){for(;t.get(++a)[1]!==v;);l.push(a),v._tokenizer||(m=i.sliceStream(v),v.next||m.push(null),y&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=n;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(w=b+1,C.push(w),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):C.pop(),b=C.length;b--;){const _=f.slice(C[b],C[b+1]),L=l.pop();d.push([L,L+_.length-1]),t.splice(L,2,_)}for(d.reverse(),b=-1;++b<d.length;)h[S+d[b][0]]=S+d[b][1],S+=d[b][1]-d[b][0]-1;return h}const Rq={resolve:Dq,tokenize:Nq},kq={partial:!0,tokenize:Mq};function Dq(t){return jT(t),t}function Nq(t,e){let n;return i;function i(f){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),a(f)}function a(f){return f===null?l(f):Ct(f)?t.check(kq,u,l)(f):(t.consume(f),a)}function l(f){return t.exit("chunkContent"),t.exit("content"),e(f)}function u(f){return t.consume(f),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Mq(t,e,n){const i=this;return a;function a(u){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ue(t,l,"linePrefix")}function l(u){if(u===null||Ct(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?e(u):t.interrupt(i.parser.constructs.flow,n,e)(u)}}function BT(t,e,n,i,a,l,u,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(_){return _===60?(t.enter(i),t.enter(a),t.enter(l),t.consume(_),t.exit(l),b):_===null||_===32||_===41||Ym(_)?n(_):(t.enter(i),t.enter(u),t.enter(f),t.enter("chunkString",{contentType:"string"}),w(_))}function b(_){return _===62?(t.enter(l),t.consume(_),t.exit(l),t.exit(a),t.exit(i),e):(t.enter(f),t.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(t.exit("chunkString"),t.exit(f),b(_)):_===null||_===60||Ct(_)?n(_):(t.consume(_),_===92?S:v)}function S(_){return _===60||_===62||_===92?(t.consume(_),v):v(_)}function w(_){return!m&&(_===null||_===41||fn(_))?(t.exit("chunkString"),t.exit(f),t.exit(u),t.exit(i),e(_)):m<h&&_===40?(t.consume(_),m++,w):_===41?(t.consume(_),m--,w):_===null||_===32||_===40||Ym(_)?n(_):(t.consume(_),_===92?C:w)}function C(_){return _===40||_===41||_===92?(t.consume(_),w):w(_)}}function IT(t,e,n,i,a,l){const u=this;let f=0,d;return h;function h(v){return t.enter(i),t.enter(a),t.consume(v),t.exit(a),t.enter(l),m}function m(v){return f>999||v===null||v===91||v===93&&!d||v===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(t.exit(l),t.enter(a),t.consume(v),t.exit(a),t.exit(i),e):Ct(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),m):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||Ct(v)||f++>999?(t.exit("chunkString"),m(v)):(t.consume(v),d||(d=!Xt(v)),v===92?b:y)}function b(v){return v===91||v===92||v===93?(t.consume(v),f++,y):y(v)}}function UT(t,e,n,i,a,l){let u;return f;function f(b){return b===34||b===39||b===40?(t.enter(i),t.enter(a),t.consume(b),t.exit(a),u=b===40?41:b,d):n(b)}function d(b){return b===u?(t.enter(a),t.consume(b),t.exit(a),t.exit(i),e):(t.enter(l),h(b))}function h(b){return b===u?(t.exit(l),d(u)):b===null?n(b):Ct(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),ue(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===u||b===null||Ct(b)?(t.exit("chunkString"),h(b)):(t.consume(b),b===92?y:m)}function y(b){return b===u||b===92?(t.consume(b),m):m(b)}}function Ul(t,e){let n;return i;function i(a){return Ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,i):Xt(a)?ue(t,i,n?"linePrefix":"lineSuffix")(a):e(a)}}const Lq={name:"definition",tokenize:jq},zq={partial:!0,tokenize:Bq};function jq(t,e,n){const i=this;let a;return l;function l(v){return t.enter("definition"),u(v)}function u(v){return IT.call(i,t,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return a=Pa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),d):n(v)}function d(v){return fn(v)?Ul(t,h)(v):h(v)}function h(v){return BT(t,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return t.attempt(zq,y,y)(v)}function y(v){return Xt(v)?ue(t,b,"whitespace")(v):b(v)}function b(v){return v===null||Ct(v)?(t.exit("definition"),i.parser.defined.push(a),e(v)):n(v)}}function Bq(t,e,n){return i;function i(f){return fn(f)?Ul(t,a)(f):n(f)}function a(f){return UT(t,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Xt(f)?ue(t,u,"whitespace")(f):u(f)}function u(f){return f===null||Ct(f)?e(f):n(f)}}const Iq={name:"hardBreakEscape",tokenize:Uq};function Uq(t,e,n){return i;function i(l){return t.enter("hardBreakEscape"),t.consume(l),a}function a(l){return Ct(l)?(t.exit("hardBreakEscape"),e(l)):n(l)}}const Pq={name:"headingAtx",resolve:qq,tokenize:Fq};function qq(t,e){let n=t.length-2,i=3,a,l;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},l={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},Sr(t,i,n-i+1,[["enter",a,e],["enter",l,e],["exit",l,e],["exit",a,e]])),t}function Fq(t,e,n){let i=0;return a;function a(m){return t.enter("atxHeading"),l(m)}function l(m){return t.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(t.consume(m),u):m===null||fn(m)?(t.exit("atxHeadingSequence"),f(m)):n(m)}function f(m){return m===35?(t.enter("atxHeadingSequence"),d(m)):m===null||Ct(m)?(t.exit("atxHeading"),e(m)):Xt(m)?ue(t,f,"whitespace")(m):(t.enter("atxHeadingText"),h(m))}function d(m){return m===35?(t.consume(m),d):(t.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||fn(m)?(t.exit("atxHeadingText"),f(m)):(t.consume(m),h)}}const Vq=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],PT=["pre","script","style","textarea"],Hq={concrete:!0,name:"htmlFlow",resolveTo:Yq,tokenize:$q},Gq={partial:!0,tokenize:Qq},Kq={partial:!0,tokenize:Xq};function Yq(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function $q(t,e,n){const i=this;let a,l,u,f,d;return h;function h(E){return m(E)}function m(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),y}function y(E){return E===33?(t.consume(E),b):E===47?(t.consume(E),l=!0,w):E===63?(t.consume(E),a=3,i.interrupt?e:O):wr(E)?(t.consume(E),u=String.fromCharCode(E),C):n(E)}function b(E){return E===45?(t.consume(E),a=2,v):E===91?(t.consume(E),a=5,f=0,S):wr(E)?(t.consume(E),a=4,i.interrupt?e:O):n(E)}function v(E){return E===45?(t.consume(E),i.interrupt?e:O):n(E)}function S(E){const W="CDATA[";return E===W.charCodeAt(f++)?(t.consume(E),f===W.length?i.interrupt?e:at:S):n(E)}function w(E){return wr(E)?(t.consume(E),u=String.fromCharCode(E),C):n(E)}function C(E){if(E===null||E===47||E===62||fn(E)){const W=E===47,ct=u.toLowerCase();return!W&&!l&&PT.includes(ct)?(a=1,i.interrupt?e(E):at(E)):Vq.includes(u.toLowerCase())?(a=6,W?(t.consume(E),_):i.interrupt?e(E):at(E)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(E):l?L(E):R(E))}return E===45||_n(E)?(t.consume(E),u+=String.fromCharCode(E),C):n(E)}function _(E){return E===62?(t.consume(E),i.interrupt?e:at):n(E)}function L(E){return Xt(E)?(t.consume(E),L):Y(E)}function R(E){return E===47?(t.consume(E),Y):E===58||E===95||wr(E)?(t.consume(E),B):Xt(E)?(t.consume(E),R):Y(E)}function B(E){return E===45||E===46||E===58||E===95||_n(E)?(t.consume(E),B):K(E)}function K(E){return E===61?(t.consume(E),j):Xt(E)?(t.consume(E),K):R(E)}function j(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(t.consume(E),d=E,q):Xt(E)?(t.consume(E),j):N(E)}function q(E){return E===d?(t.consume(E),d=null,H):E===null||Ct(E)?n(E):(t.consume(E),q)}function N(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||fn(E)?K(E):(t.consume(E),N)}function H(E){return E===47||E===62||Xt(E)?R(E):n(E)}function Y(E){return E===62?(t.consume(E),nt):n(E)}function nt(E){return E===null||Ct(E)?at(E):Xt(E)?(t.consume(E),nt):n(E)}function at(E){return E===45&&a===2?(t.consume(E),Z):E===60&&a===1?(t.consume(E),G):E===62&&a===4?(t.consume(E),xt):E===63&&a===3?(t.consume(E),O):E===93&&a===5?(t.consume(E),dt):Ct(E)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(Gq,D,ft)(E)):E===null||Ct(E)?(t.exit("htmlFlowData"),ft(E)):(t.consume(E),at)}function ft(E){return t.check(Kq,st,D)(E)}function st(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),it}function it(E){return E===null||Ct(E)?ft(E):(t.enter("htmlFlowData"),at(E))}function Z(E){return E===45?(t.consume(E),O):at(E)}function G(E){return E===47?(t.consume(E),u="",P):at(E)}function P(E){if(E===62){const W=u.toLowerCase();return PT.includes(W)?(t.consume(E),xt):at(E)}return wr(E)&&u.length<8?(t.consume(E),u+=String.fromCharCode(E),P):at(E)}function dt(E){return E===93?(t.consume(E),O):at(E)}function O(E){return E===62?(t.consume(E),xt):E===45&&a===2?(t.consume(E),O):at(E)}function xt(E){return E===null||Ct(E)?(t.exit("htmlFlowData"),D(E)):(t.consume(E),xt)}function D(E){return t.exit("htmlFlow"),e(E)}}function Xq(t,e,n){const i=this;return a;function a(u){return Ct(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):e(u)}}function Qq(t,e,n){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(nf,e,n)}}const Zq={name:"htmlText",tokenize:Jq};function Jq(t,e,n){const i=this;let a,l,u;return f;function f(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),d}function d(O){return O===33?(t.consume(O),h):O===47?(t.consume(O),K):O===63?(t.consume(O),R):wr(O)?(t.consume(O),N):n(O)}function h(O){return O===45?(t.consume(O),m):O===91?(t.consume(O),l=0,S):wr(O)?(t.consume(O),L):n(O)}function m(O){return O===45?(t.consume(O),v):n(O)}function y(O){return O===null?n(O):O===45?(t.consume(O),b):Ct(O)?(u=y,G(O)):(t.consume(O),y)}function b(O){return O===45?(t.consume(O),v):y(O)}function v(O){return O===62?Z(O):O===45?b(O):y(O)}function S(O){const xt="CDATA[";return O===xt.charCodeAt(l++)?(t.consume(O),l===xt.length?w:S):n(O)}function w(O){return O===null?n(O):O===93?(t.consume(O),C):Ct(O)?(u=w,G(O)):(t.consume(O),w)}function C(O){return O===93?(t.consume(O),_):w(O)}function _(O){return O===62?Z(O):O===93?(t.consume(O),_):w(O)}function L(O){return O===null||O===62?Z(O):Ct(O)?(u=L,G(O)):(t.consume(O),L)}function R(O){return O===null?n(O):O===63?(t.consume(O),B):Ct(O)?(u=R,G(O)):(t.consume(O),R)}function B(O){return O===62?Z(O):R(O)}function K(O){return wr(O)?(t.consume(O),j):n(O)}function j(O){return O===45||_n(O)?(t.consume(O),j):q(O)}function q(O){return Ct(O)?(u=q,G(O)):Xt(O)?(t.consume(O),q):Z(O)}function N(O){return O===45||_n(O)?(t.consume(O),N):O===47||O===62||fn(O)?H(O):n(O)}function H(O){return O===47?(t.consume(O),Z):O===58||O===95||wr(O)?(t.consume(O),Y):Ct(O)?(u=H,G(O)):Xt(O)?(t.consume(O),H):Z(O)}function Y(O){return O===45||O===46||O===58||O===95||_n(O)?(t.consume(O),Y):nt(O)}function nt(O){return O===61?(t.consume(O),at):Ct(O)?(u=nt,G(O)):Xt(O)?(t.consume(O),nt):H(O)}function at(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(t.consume(O),a=O,ft):Ct(O)?(u=at,G(O)):Xt(O)?(t.consume(O),at):(t.consume(O),st)}function ft(O){return O===a?(t.consume(O),a=void 0,it):O===null?n(O):Ct(O)?(u=ft,G(O)):(t.consume(O),ft)}function st(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||fn(O)?H(O):(t.consume(O),st)}function it(O){return O===47||O===62||fn(O)?H(O):n(O)}function Z(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),e):n(O)}function G(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),P}function P(O){return Xt(O)?ue(t,dt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):dt(O)}function dt(O){return t.enter("htmlTextData"),u(O)}}const Jm={name:"labelEnd",resolveAll:nF,resolveTo:rF,tokenize:iF},Wq={tokenize:sF},tF={tokenize:aF},eF={tokenize:oF};function nF(t){let e=-1;const n=[];for(;++e<t.length;){const i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",e+=a}}return t.length!==n.length&&Sr(t,0,t.length,n),t}function rF(t,e){let n=t.length,i=0,a,l,u,f;for(;n--;)if(a=t[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(t[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(u=n);const d={type:t[l][1].type==="labelLink"?"link":"image",start:{...t[l][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[l][1].start},end:{...t[u][1].end}},m={type:"labelText",start:{...t[l+i+2][1].end},end:{...t[u-2][1].start}};return f=[["enter",d,e],["enter",h,e]],f=qn(f,t.slice(l+1,l+i+3)),f=qn(f,[["enter",m,e]]),f=qn(f,Xm(e.parser.constructs.insideSpan.null,t.slice(l+i+4,u-3),e)),f=qn(f,[["exit",m,e],t[u-2],t[u-1],["exit",h,e]]),f=qn(f,t.slice(u+1)),f=qn(f,[["exit",d,e]]),Sr(t,l,t.length,f),t}function iF(t,e,n){const i=this;let a=i.events.length,l,u;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){l=i.events[a][1];break}return f;function f(b){return l?l._inactive?y(b):(u=i.parser.defined.includes(Pa(i.sliceSerialize({start:l.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(b),t.exit("labelMarker"),t.exit("labelEnd"),d):n(b)}function d(b){return b===40?t.attempt(Wq,m,u?m:y)(b):b===91?t.attempt(tF,m,u?h:y)(b):u?m(b):y(b)}function h(b){return t.attempt(eF,m,y)(b)}function m(b){return e(b)}function y(b){return l._balanced=!0,n(b)}}function sF(t,e,n){return i;function i(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),a}function a(y){return fn(y)?Ul(t,l)(y):l(y)}function l(y){return y===41?m(y):BT(t,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return fn(y)?Ul(t,d)(y):m(y)}function f(y){return n(y)}function d(y){return y===34||y===39||y===40?UT(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return fn(y)?Ul(t,m)(y):m(y)}function m(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),e):n(y)}}function aF(t,e,n){const i=this;return a;function a(f){return IT.call(i,t,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes(Pa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(f):n(f)}function u(f){return n(f)}}function oF(t,e,n){return i;function i(l){return t.enter("reference"),t.enter("referenceMarker"),t.consume(l),t.exit("referenceMarker"),a}function a(l){return l===93?(t.enter("referenceMarker"),t.consume(l),t.exit("referenceMarker"),t.exit("reference"),e):n(l)}}const lF={name:"labelStartImage",resolveAll:Jm.resolveAll,tokenize:uF};function uF(t,e,n){const i=this;return a;function a(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),l}function l(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):e(f)}}const cF={name:"labelStartLink",resolveAll:Jm.resolveAll,tokenize:fF};function fF(t,e,n){const i=this;return a;function a(u){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):e(u)}}const Wm={name:"lineEnding",tokenize:dF};function dF(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ue(t,e,"linePrefix")}}const rf={name:"thematicBreak",tokenize:hF};function hF(t,e,n){let i=0,a;return l;function l(h){return t.enter("thematicBreak"),u(h)}function u(h){return a=h,f(h)}function f(h){return h===a?(t.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ct(h))?(t.exit("thematicBreak"),e(h)):n(h)}function d(h){return h===a?(t.consume(h),i++,d):(t.exit("thematicBreakSequence"),Xt(h)?ue(t,f,"whitespace")(h):f(h))}}const dn={continuation:{tokenize:yF},exit:vF,name:"list",tokenize:gF},pF={partial:!0,tokenize:xF},mF={partial:!0,tokenize:bF};function gF(t,e,n){const i=this,a=i.events[i.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return f;function f(v){const S=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:$m(v)){if(i.containerState.type||(i.containerState.type=S,t.enter(S,{_container:!0})),S==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(rf,n,h)(v):h(v);if(!i.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),d(v)}return n(v)}function d(v){return $m(v)&&++u<10?(t.consume(v),d):(!i.interrupt||u<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),h(v)):n(v)}function h(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,t.check(nf,i.interrupt?n:m,t.attempt(pF,b,y))}function m(v){return i.containerState.initialBlankLine=!0,l++,b(v)}function y(v){return Xt(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),b):n(v)}function b(v){return i.containerState.size=l+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(v)}}function yF(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(nf,a,l);function a(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ue(t,e,"listItemIndent",i.containerState.size+1)(f)}function l(f){return i.containerState.furtherBlankLines||!Xt(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(mF,e,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,ue(t,t.attempt(dn,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function bF(t,e,n){const i=this;return ue(t,a,"listItemIndent",i.containerState.size+1);function a(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?e(l):n(l)}}function vF(t){t.exit(this.containerState.type)}function xF(t,e,n){const i=this;return ue(t,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const u=i.events[i.events.length-1];return!Xt(l)&&u&&u[1].type==="listItemPrefixWhitespace"?e(l):n(l)}}const qT={name:"setextUnderline",resolveTo:SF,tokenize:wF};function SF(t,e){let n=t.length,i,a,l;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(a=n)}else t[n][1].type==="content"&&t.splice(n,1),!l&&t[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[a][1].type="setextHeadingText",l?(t.splice(a,0,["enter",u,e]),t.splice(l+1,0,["exit",t[i][1],e]),t[i][1].end={...t[l][1].end}):t[i][1]=u,t.push(["exit",u,e]),t}function wF(t,e,n){const i=this;let a;return l;function l(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(t.enter("setextHeadingLine"),a=h,u(h)):n(h)}function u(h){return t.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===a?(t.consume(h),f):(t.exit("setextHeadingLineSequence"),Xt(h)?ue(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ct(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const EF={tokenize:TF};function TF(t){const e=this,n=t.attempt(nf,i,t.attempt(this.parser.constructs.flowInitial,a,ue(t,t.attempt(this.parser.constructs.flow,a,t.attempt(Rq,a)),"linePrefix")));return n;function i(l){if(l===null){t.consume(l);return}return t.enter("lineEndingBlank"),t.consume(l),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function a(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const CF={resolveAll:VT()},_F=FT("string"),AF=FT("text");function FT(t){return{resolveAll:VT(t==="text"?OF:void 0),tokenize:e};function e(n){const i=this,a=this.parser.constructs[t],l=n.attempt(a,u,f);return u;function u(m){return h(m)?l(m):f(m)}function f(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const y=a[m];let b=-1;if(y)for(;++b<y.length;){const v=y[b];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function VT(t){return e;function e(n,i){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return t?t(n,i):n}}function OF(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const i=t[n-1][1],a=e.sliceStream(i);let l=a.length,u=-1,f=0,d;for(;l--;){const h=a[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(h===-2)d=!0,f++;else if(h!==-1){l++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(f=0),f){const h={type:n===t.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(n,0,["enter",h,e],["exit",h,e]),n+=2)}n++}return t}const RF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Lq},disable:{null:[]},document:{42:dn,43:dn,45:dn,48:dn,49:dn,50:dn,51:dn,52:dn,53:dn,54:dn,55:dn,56:dn,57:dn,62:DT},flow:{35:Pq,42:rf,45:[qT,rf],60:Hq,61:qT,95:rf,96:zT,126:zT},flowInitial:{[-2]:Zm,[-1]:Zm,32:Zm},insideSpan:{null:[Qm,CF]},string:{38:MT,92:NT},text:{[-5]:Wm,[-4]:Wm,[-3]:Wm,33:lF,38:MT,42:Qm,60:[cq,Zq],91:cF,92:[Iq,NT],93:Jm,95:Qm,96:Eq}},Symbol.toStringTag,{value:"Module"}));function kF(t,e,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},l=[];let u=[],f=[];const d={attempt:q(K),check:q(j),consume:L,enter:R,exit:B,interrupt:q(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:S,parser:t,previous:null,sliceSerialize:b,sliceStream:v,write:y};let m=e.tokenize.call(h,d);return e.resolveAll&&l.push(e),h;function y(nt){return u=qn(u,nt),C(),u[u.length-1]!==null?[]:(N(e,0),h.events=Xm(l,h.events,h),h.events)}function b(nt,at){return NF(v(nt),at)}function v(nt){return DF(u,nt)}function S(){const{_bufferIndex:nt,_index:at,line:ft,column:st,offset:it}=i;return{_bufferIndex:nt,_index:at,line:ft,column:st,offset:it}}function w(nt){a[nt.line]=nt.column,Y()}function C(){let nt;for(;i._index<u.length;){const at=u[i._index];if(typeof at=="string")for(nt=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===nt&&i._bufferIndex<at.length;)_(at.charCodeAt(i._bufferIndex));else _(at)}}function _(nt){m=m(nt)}function L(nt){Ct(nt)?(i.line++,i.column=1,i.offset+=nt===-3?2:1,Y()):nt!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=nt}function R(nt,at){const ft=at||{};return ft.type=nt,ft.start=S(),h.events.push(["enter",ft,h]),f.push(ft),ft}function B(nt){const at=f.pop();return at.end=S(),h.events.push(["exit",at,h]),at}function K(nt,at){N(nt,at.from)}function j(nt,at){at.restore()}function q(nt,at){return ft;function ft(st,it,Z){let G,P,dt,O;return Array.isArray(st)?D(st):"tokenize"in st?D([st]):xt(st);function xt(vt){return yt;function yt(kt){const ae=kt!==null&&vt[kt],Gt=kt!==null&&vt.null,mn=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(Gt)?Gt:Gt?[Gt]:[]];return D(mn)(kt)}}function D(vt){return G=vt,P=0,vt.length===0?Z:E(vt[P])}function E(vt){return yt;function yt(kt){return O=H(),dt=vt,vt.partial||(h.currentConstruct=vt),vt.name&&h.parser.constructs.disable.null.includes(vt.name)?ct():vt.tokenize.call(at?Object.assign(Object.create(h),at):h,d,W,ct)(kt)}}function W(vt){return nt(dt,O),it}function ct(vt){return O.restore(),++P<G.length?E(G[P]):Z}}}function N(nt,at){nt.resolveAll&&!l.includes(nt)&&l.push(nt),nt.resolve&&Sr(h.events,at,h.events.length-at,nt.resolve(h.events.slice(at),h)),nt.resolveTo&&(h.events=nt.resolveTo(h.events,h))}function H(){const nt=S(),at=h.previous,ft=h.currentConstruct,st=h.events.length,it=Array.from(f);return{from:st,restore:Z};function Z(){i=nt,h.previous=at,h.currentConstruct=ft,h.events.length=st,f=it,Y()}}function Y(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function DF(t,e){const n=e.start._index,i=e.start._bufferIndex,a=e.end._index,l=e.end._bufferIndex;let u;if(n===a)u=[t[n].slice(i,l)];else{if(u=t.slice(n,a),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}l>0&&u.push(t[a].slice(0,l))}return u}function NF(t,e){let n=-1;const i=[];let a;for(;++n<t.length;){const l=t[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=e?" ":"	";break}case-1:{if(!e&&a)continue;u=" ";break}default:u=String.fromCharCode(l)}a=l===-2,i.push(u)}return i.join("")}function MF(t){const i={constructs:X6([RF,...(t||{}).extensions||[]]),content:a(rq),defined:[],document:a(sq),flow:a(EF),lazy:{},string:a(_F),text:a(AF)};return i;function a(l){return u;function u(f){return kF(i,l,f)}}}function LF(t){for(;!jT(t););return t}const HT=/[\0\t\n\r]/g;function zF(){let t=1,e="",n=!0,i;return a;function a(l,u,f){const d=[];let h,m,y,b,v;for(l=e+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),y=0,e="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(HT.lastIndex=y,h=HT.exec(l),b=h&&h.index!==void 0?h.index:l.length,v=l.charCodeAt(b),!h){e=l.slice(y);break}if(v===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(l.slice(y,b)),t+=b-y),v){case 0:{d.push(65533),t++;break}case 9:{for(m=Math.ceil(t/4)*4,d.push(-2);t++<m;)d.push(-1);break}case 10:{d.push(-4),t=1;break}default:i=!0,t=1}y=b+1}return f&&(i&&d.push(-5),e&&d.push(e),d.push(null)),d}}const jF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BF(t){return t.replace(jF,IF)}function IF(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return AT(n.slice(l?2:1),l?16:10)}return Km(n)||t}const GT={}.hasOwnProperty;function UF(t,e,n){return typeof e!="string"&&(n=e,e=void 0),PF(n)(LF(MF(n).document().write(zF()(t,e,!0))))}function PF(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ql),autolinkProtocol:H,autolinkEmail:H,atxHeading:l(Rr),blockQuote:l(Gt),characterEscape:H,characterReference:H,codeFenced:l(mn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(mn,u),codeText:l(or,u),codeTextData:H,data:H,codeFlowValue:H,definition:l(Xl),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(mf),hardBreakEscape:l(no),hardBreakTrailing:l(no),htmlFlow:l(ro,u),htmlFlowData:H,htmlText:l(ro,u),htmlTextData:H,image:l(bg),label:u,link:l(Ql),listItem:l(Zl),listItemValue:b,listOrdered:l(io,y),listUnordered:l(io),paragraph:l(Jl),reference:E,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Rr),strong:l(vg),thematicBreak:l(sn)},exit:{atxHeading:d(),atxHeadingSequence:K,autolink:d(),autolinkEmail:ae,autolinkProtocol:kt,blockQuote:d(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:ct,characterReferenceMarkerNumeric:ct,characterReferenceValue:vt,characterReference:yt,codeFenced:d(C),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:Y,codeIndented:d(_),codeText:d(it),codeTextData:Y,data:Y,definition:d(),definitionDestinationString:B,definitionLabelString:L,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(at),hardBreakTrailing:d(at),htmlFlow:d(ft),htmlFlowData:Y,htmlText:d(st),htmlTextData:Y,image:d(G),label:dt,labelText:P,lineEnding:nt,link:d(Z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:W,resourceDestinationString:O,resourceTitleString:xt,resource:D,setextHeading:d(N),setextHeadingLineSequence:q,setextHeadingText:j,strong:d(),thematicBreak:d()}};KT(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(tt){let ut={type:"root",children:[]};const At={stack:[ut],tokenStack:[],config:e,enter:f,exit:h,buffer:u,resume:m,data:n},zt=[];let Wt=-1;for(;++Wt<tt.length;)if(tt[Wt][1].type==="listOrdered"||tt[Wt][1].type==="listUnordered")if(tt[Wt][0]==="enter")zt.push(Wt);else{const gn=zt.pop();Wt=a(tt,gn,Wt)}for(Wt=-1;++Wt<tt.length;){const gn=e[tt[Wt][0]];GT.call(gn,tt[Wt][1].type)&&gn[tt[Wt][1].type].call(Object.assign({sliceSerialize:tt[Wt][2].sliceSerialize},At),tt[Wt][1])}if(At.tokenStack.length>0){const gn=At.tokenStack[At.tokenStack.length-1];(gn[1]||YT).call(At,void 0,gn[0])}for(ut.position={start:Ci(tt.length>0?tt[0][1].start:{line:1,column:1,offset:0}),end:Ci(tt.length>0?tt[tt.length-2][1].end:{line:1,column:1,offset:0})},Wt=-1;++Wt<e.transforms.length;)ut=e.transforms[Wt](ut)||ut;return ut}function a(tt,ut,At){let zt=ut-1,Wt=-1,gn=!1,Yr,lr,ur,je;for(;++zt<=At;){const xe=tt[zt];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?Wt++:Wt--,je=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(Yr&&!je&&!Wt&&!ur&&(ur=zt),je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!Wt&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||Wt===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(Yr){let Re=zt;for(lr=void 0;Re--;){const cr=tt[Re];if(cr[1].type==="lineEnding"||cr[1].type==="lineEndingBlank"){if(cr[0]==="exit")continue;lr&&(tt[lr][1].type="lineEndingBlank",gn=!0),cr[1].type="lineEnding",lr=Re}else if(!(cr[1].type==="linePrefix"||cr[1].type==="blockQuotePrefix"||cr[1].type==="blockQuotePrefixWhitespace"||cr[1].type==="blockQuoteMarker"||cr[1].type==="listItemIndent"))break}ur&&(!lr||ur<lr)&&(Yr._spread=!0),Yr.end=Object.assign({},lr?tt[lr][1].start:xe[1].end),tt.splice(lr||zt,0,["exit",Yr,xe[2]]),zt++,At++}if(xe[1].type==="listItemPrefix"){const Re={type:"listItem",_spread:!1,start:Object.assign({},xe[1].start),end:void 0};Yr=Re,tt.splice(zt,0,["enter",Re,xe[2]]),zt++,At++,ur=void 0,je=!0}}}return tt[ut][1]._spread=gn,At}function l(tt,ut){return At;function At(zt){f.call(this,tt(zt),zt),ut&&ut.call(this,zt)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(tt,ut,At){this.stack[this.stack.length-1].children.push(tt),this.stack.push(tt),this.tokenStack.push([ut,At||void 0]),tt.position={start:Ci(ut.start),end:void 0}}function d(tt){return ut;function ut(At){tt&&tt.call(this,At),h.call(this,At)}}function h(tt,ut){const At=this.stack.pop(),zt=this.tokenStack.pop();if(zt)zt[0].type!==tt.type&&(ut?ut.call(this,tt,zt[0]):(zt[1]||YT).call(this,tt,zt[0]));else throw new Error("Cannot close `"+tt.type+"` ("+jl({start:tt.start,end:tt.end})+"): it’s not open");At.position.end=Ci(tt.end)}function m(){return Y6(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(tt){if(this.data.expectingFirstListItemValue){const ut=this.stack[this.stack.length-2];ut.start=Number.parseInt(this.sliceSerialize(tt),10),this.data.expectingFirstListItemValue=void 0}}function v(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.lang=tt}function S(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.meta=tt}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.value=tt.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.value=tt.replace(/(\r?\n|\r)$/g,"")}function L(tt){const ut=this.resume(),At=this.stack[this.stack.length-1];At.label=ut,At.identifier=Pa(this.sliceSerialize(tt)).toLowerCase()}function R(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.title=tt}function B(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.url=tt}function K(tt){const ut=this.stack[this.stack.length-1];if(!ut.depth){const At=this.sliceSerialize(tt).length;ut.depth=At}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function q(tt){const ut=this.stack[this.stack.length-1];ut.depth=this.sliceSerialize(tt).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function H(tt){const At=this.stack[this.stack.length-1].children;let zt=At[At.length-1];(!zt||zt.type!=="text")&&(zt=xg(),zt.position={start:Ci(tt.start),end:void 0},At.push(zt)),this.stack.push(zt)}function Y(tt){const ut=this.stack.pop();ut.value+=this.sliceSerialize(tt),ut.position.end=Ci(tt.end)}function nt(tt){const ut=this.stack[this.stack.length-1];if(this.data.atHardBreak){const At=ut.children[ut.children.length-1];At.position.end=Ci(tt.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ut.type)&&(H.call(this,tt),Y.call(this,tt))}function at(){this.data.atHardBreak=!0}function ft(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.value=tt}function st(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.value=tt}function it(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.value=tt}function Z(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=ut,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function G(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=ut,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function P(tt){const ut=this.sliceSerialize(tt),At=this.stack[this.stack.length-2];At.label=BF(ut),At.identifier=Pa(ut).toLowerCase()}function dt(){const tt=this.stack[this.stack.length-1],ut=this.resume(),At=this.stack[this.stack.length-1];if(this.data.inReference=!0,At.type==="link"){const zt=tt.children;At.children=zt}else At.alt=ut}function O(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.url=tt}function xt(){const tt=this.resume(),ut=this.stack[this.stack.length-1];ut.title=tt}function D(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function W(tt){const ut=this.resume(),At=this.stack[this.stack.length-1];At.label=ut,At.identifier=Pa(this.sliceSerialize(tt)).toLowerCase(),this.data.referenceType="full"}function ct(tt){this.data.characterReferenceType=tt.type}function vt(tt){const ut=this.sliceSerialize(tt),At=this.data.characterReferenceType;let zt;At?(zt=AT(ut,At==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):zt=Km(ut);const Wt=this.stack[this.stack.length-1];Wt.value+=zt}function yt(tt){const ut=this.stack.pop();ut.position.end=Ci(tt.end)}function kt(tt){Y.call(this,tt);const ut=this.stack[this.stack.length-1];ut.url=this.sliceSerialize(tt)}function ae(tt){Y.call(this,tt);const ut=this.stack[this.stack.length-1];ut.url="mailto:"+this.sliceSerialize(tt)}function Gt(){return{type:"blockquote",children:[]}}function mn(){return{type:"code",lang:null,meta:null,value:""}}function or(){return{type:"inlineCode",value:""}}function Xl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mf(){return{type:"emphasis",children:[]}}function Rr(){return{type:"heading",depth:0,children:[]}}function no(){return{type:"break"}}function ro(){return{type:"html",value:""}}function bg(){return{type:"image",title:null,url:"",alt:null}}function Ql(){return{type:"link",title:null,url:"",children:[]}}function io(tt){return{type:"list",ordered:tt.type==="listOrdered",start:null,spread:tt._spread,children:[]}}function Zl(tt){return{type:"listItem",spread:tt._spread,checked:null,children:[]}}function Jl(){return{type:"paragraph",children:[]}}function vg(){return{type:"strong",children:[]}}function xg(){return{type:"text",value:""}}function sn(){return{type:"thematicBreak"}}}function Ci(t){return{line:t.line,column:t.column,offset:t.offset}}function KT(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?KT(t,i):qF(t,i)}}function qF(t,e){let n;for(n in e)if(GT.call(e,n))switch(n){case"canContainEols":{const i=e[n];i&&t[n].push(...i);break}case"transforms":{const i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{const i=e[n];i&&Object.assign(t[n],i);break}}}function YT(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+jl({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+jl({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+jl({start:e.start,end:e.end})+") is still open")}function FF(t){const e=this;e.parser=n;function n(i){return UF(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function VF(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function HF(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
`}]}function GF(t,e){const n=e.value?e.value+`
`:"",i={},a=e.lang?e.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return e.meta&&(l.data={meta:e.meta}),t.patch(e,l),l=t.applyData(e,l),l={type:"element",tagName:"pre",properties:{},children:[l]},t.patch(e,l),l}function KF(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function YF(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function $F(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),a=qa(i.toLowerCase()),l=t.footnoteOrder.indexOf(i);let u,f=t.footnoteCounts.get(i);f===void 0?(f=0,t.footnoteOrder.push(i),u=t.footnoteOrder.length):u=l+1,f+=1,t.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};t.patch(e,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return t.patch(e,h),t.applyData(e,h)}function XF(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function QF(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function $T(t,e){const n=e.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const a=t.all(e),l=a[0];l&&l.type==="text"?l.value="["+l.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=i:a.push({type:"text",value:i}),a}function ZF(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return $T(t,e);const a={src:qa(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"img",properties:a,children:[]};return t.patch(e,l),t.applyData(e,l)}function JF(t,e){const n={src:qa(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function WF(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function tV(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return $T(t,e);const a={href:qa(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"a",properties:a,children:t.all(e)};return t.patch(e,l),t.applyData(e,l)}function eV(t,e){const n={href:qa(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function nV(t,e,n){const i=t.all(e),a=n?rV(n):XT(e),l={},u=[];if(typeof e.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(a||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!a?u.push(...m.children):u.push(m)}const d=i[i.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
`});const h={type:"element",tagName:"li",properties:l,children:u};return t.patch(e,h),t.applyData(e,h)}function rV(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let i=-1;for(;!e&&++i<n.length;)e=XT(n[i])}return e}function XT(t){const e=t.spread;return e??t.children.length>1}function iV(t,e){const n={},i=t.all(e);let a=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++a<i.length;){const u=i[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,l),t.applyData(e,l)}function sV(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function aV(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function oV(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function lV(t,e){const n=t.all(e),i=n.shift(),a=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},f=Pm(e.children[1]),d=mT(e.children[e.children.length-1]);f&&d&&(u.position={start:f,end:d}),a.push(u)}const l={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(e,l),t.applyData(e,l)}function uV(t,e,n){const i=n?n.children:void 0,l=(i?i.indexOf(e):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:e.children.length;let d=-1;const h=[];for(;++d<f;){const y=e.children[d],b={},v=u?u[d]:void 0;v&&(b.align=v);let S={type:"element",tagName:l,properties:b,children:[]};y&&(S.children=t.all(y),t.patch(y,S),S=t.applyData(y,S)),h.push(S)}const m={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,m),t.applyData(e,m)}function cV(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const QT=9,ZT=32;function fV(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),a=0;const l=[];for(;i;)l.push(JT(e.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(e);return l.push(JT(e.slice(a),a>0,!1)),l.join("")}function JT(t,e,n){let i=0,a=t.length;if(e){let l=t.codePointAt(i);for(;l===QT||l===ZT;)i++,l=t.codePointAt(i)}if(n){let l=t.codePointAt(a-1);for(;l===QT||l===ZT;)a--,l=t.codePointAt(a-1)}return a>i?t.slice(i,a):""}function dV(t,e){const n={type:"text",value:fV(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function hV(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const pV={blockquote:VF,break:HF,code:GF,delete:KF,emphasis:YF,footnoteReference:$F,heading:XF,html:QF,imageReference:ZF,image:JF,inlineCode:WF,linkReference:tV,link:eV,listItem:nV,list:iV,paragraph:sV,root:aV,strong:oV,table:lV,tableCell:cV,tableRow:uV,text:dV,thematicBreak:hV,toml:sf,yaml:sf,definition:sf,footnoteDefinition:sf};function sf(){}const WT=-1,af=0,Pl=1,of=2,tg=3,eg=4,ng=5,rg=6,tC=7,eC=8,nC=typeof self=="object"?self:globalThis,mV=(t,e)=>{const n=(a,l)=>(t.set(l,a),a),i=a=>{if(t.has(a))return t.get(a);const[l,u]=e[a];switch(l){case af:case WT:return n(u,a);case Pl:{const f=n([],a);for(const d of u)f.push(i(d));return f}case of:{const f=n({},a);for(const[d,h]of u)f[i(d)]=i(h);return f}case tg:return n(new Date(u),a);case eg:{const{source:f,flags:d}=u;return n(new RegExp(f,d),a)}case ng:{const f=n(new Map,a);for(const[d,h]of u)f.set(i(d),i(h));return f}case rg:{const f=n(new Set,a);for(const d of u)f.add(i(d));return f}case tC:{const{name:f,message:d}=u;return n(new nC[f](d),a)}case eC:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new nC[l](u),a)};return i},rC=t=>mV(new Map,t)(0),Fa="",{toString:gV}={},{keys:yV}=Object,ql=t=>{const e=typeof t;if(e!=="object"||!t)return[af,e];const n=gV.call(t).slice(8,-1);switch(n){case"Array":return[Pl,Fa];case"Object":return[of,Fa];case"Date":return[tg,Fa];case"RegExp":return[eg,Fa];case"Map":return[ng,Fa];case"Set":return[rg,Fa];case"DataView":return[Pl,n]}return n.includes("Array")?[Pl,n]:n.includes("Error")?[tC,n]:[of,n]},lf=([t,e])=>t===af&&(e==="function"||e==="symbol"),bV=(t,e,n,i)=>{const a=(u,f)=>{const d=i.push(u)-1;return n.set(f,d),d},l=u=>{if(n.has(u))return n.get(u);let[f,d]=ql(u);switch(f){case af:{let m=u;switch(d){case"bigint":f=eC,m=u.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([WT],u)}return a([f,m],u)}case Pl:{if(d){let b=u;return d==="DataView"?b=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(u)),a([d,[...b]],u)}const m=[],y=a([f,m],u);for(const b of u)m.push(l(b));return y}case of:{if(d)switch(d){case"BigInt":return a([d,u.toString()],u);case"Boolean":case"Number":case"String":return a([d,u.valueOf()],u)}if(e&&"toJSON"in u)return l(u.toJSON());const m=[],y=a([f,m],u);for(const b of yV(u))(t||!lf(ql(u[b])))&&m.push([l(b),l(u[b])]);return y}case tg:return a([f,u.toISOString()],u);case eg:{const{source:m,flags:y}=u;return a([f,{source:m,flags:y}],u)}case ng:{const m=[],y=a([f,m],u);for(const[b,v]of u)(t||!(lf(ql(b))||lf(ql(v))))&&m.push([l(b),l(v)]);return y}case rg:{const m=[],y=a([f,m],u);for(const b of u)(t||!lf(ql(b)))&&m.push(l(b));return y}}const{message:h}=u;return a([f,{name:d,message:h}],u)};return l},iC=(t,{json:e,lossy:n}={})=>{const i=[];return bV(!(e||n),!!e,new Map,i)(t),i},uf=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?rC(iC(t,e)):structuredClone(t):(t,e)=>rC(iC(t,e));function vV(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function xV(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function SV(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||vV,i=t.options.footnoteBackLabel||xV,a=t.options.footnoteLabel||"Footnotes",l=t.options.footnoteLabelTagName||"h2",u=t.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[d]);if(!h)continue;const m=t.all(h),y=String(h.identifier).toUpperCase(),b=qa(y.toLowerCase());let v=0;const S=[],w=t.footnoteCounts.get(y);for(;w!==void 0&&++v<=w;){S.length>0&&S.push({type:"text",value:" "});let L=typeof n=="string"?n:n(d,v);typeof L=="string"&&(L={type:"text",value:L}),S.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,v),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const C=m[m.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const L=C.children[C.children.length-1];L&&L.type==="text"?L.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...S)}else m.push(...S);const _={type:"element",tagName:"li",properties:{id:e+"fn-"+b},children:t.wrap(m,!0)};t.patch(h,_),f.push(_)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...uf(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(f,!0)},{type:"text",value:`
`}]}}const sC=(function(t){if(t==null)return CV;if(typeof t=="function")return cf(t);if(typeof t=="object")return Array.isArray(t)?wV(t):EV(t);if(typeof t=="string")return TV(t);throw new Error("Expected function, string, or object as test")});function wV(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=sC(t[n]);return cf(i);function i(...a){let l=-1;for(;++l<e.length;)if(e[l].apply(this,a))return!0;return!1}}function EV(t){const e=t;return cf(n);function n(i){const a=i;let l;for(l in t)if(a[l]!==e[l])return!1;return!0}}function TV(t){return cf(e);function e(n){return n&&n.type===t}}function cf(t){return e;function e(n,i,a){return!!(_V(n)&&t.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function CV(){return!0}function _V(t){return t!==null&&typeof t=="object"&&"type"in t}function fG(t){return t}const aC=[],AV=!0,oC=!1,OV="skip";function RV(t,e,n,i){let a;typeof e=="function"&&typeof n!="function"?(i=n,n=e):a=e;const l=sC(a),u=i?-1:1;f(t,void 0,[])();function f(d,h,m){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=aC,S,w,C;if((!e||l(d,h,m[m.length-1]||void 0))&&(v=kV(n(d,m)),v[0]===oC))return v;if("children"in d&&d.children){const _=d;if(_.children&&v[0]!==OV)for(w=(i?_.children.length:-1)+u,C=m.concat(_);w>-1&&w<_.children.length;){const L=_.children[w];if(S=f(L,w,C)(),S[0]===oC)return S;w=typeof S[1]=="number"?S[1]:w+u}}return v}}}function kV(t){return Array.isArray(t)?t:typeof t=="number"?[AV,t]:t==null?aC:[t]}function lC(t,e,n,i){let a,l,u;typeof e=="function"&&typeof n!="function"?(l=void 0,u=e,a=n):(l=e,u=n,a=i),RV(t,l,f,a);function f(d,h){const m=h[h.length-1],y=m?m.children.indexOf(d):void 0;return u(d,y,m)}}const ig={}.hasOwnProperty,DV={};function NV(t,e){const n=e||DV,i=new Map,a=new Map,l=new Map,u={...pV,...n.handlers},f={all:h,applyData:LV,definitionById:i,footnoteById:a,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:MV,wrap:jV};return lC(t,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:a,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function d(m,y){const b=m.type,v=f.handlers[b];if(ig.call(f.handlers,b)&&v)return v(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:w,...C}=m,_=uf(C);return _.children=f.all(m),_}return uf(m)}return(f.options.unknownHandler||zV)(f,m,y)}function h(m){const y=[];if("children"in m){const b=m.children;let v=-1;for(;++v<b.length;){const S=f.one(b[v],m);if(S){if(v&&b[v-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=uC(S.value)),!Array.isArray(S)&&S.type==="element")){const w=S.children[0];w&&w.type==="text"&&(w.value=uC(w.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function MV(t,e){t.position&&(e.position=C6(t))}function LV(t,e){let n=e;if(t&&t.data){const i=t.data.hName,a=t.data.hChildren,l=t.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,uf(l)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function zV(t,e){const n=e.data||{},i="value"in e&&!(ig.call(n,"hProperties")||ig.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function jV(t,e){const n=[];let i=-1;for(e&&n.push({type:"text",value:`
`});++i<t.length;)i&&n.push({type:"text",value:`
`}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
`}),n}function uC(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function cC(t,e){const n=NV(t,e),i=n.one(t,void 0),a=SV(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&l.children.push({type:"text",value:`
`},a),l}function BV(t,e){return t&&"run"in t?async function(n,i){const a=cC(n,{file:i,...e});await t.run(a,i)}:function(n,i){return cC(n,{file:i,...t||e})}}function fC(t){if(t)throw t}var sg,dC;function IV(){if(dC)return sg;dC=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},l=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var m=t.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||t.call(h,b)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(t.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return sg=function d(){var h,m,y,b,v,S,w=arguments[0],C=1,_=arguments.length,L=!1;for(typeof w=="boolean"&&(L=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<_;++C)if(h=arguments[C],h!=null)for(m in h)y=f(w,m),b=f(h,m),w!==b&&(L&&b&&(l(b)||(v=a(b)))?(v?(v=!1,S=y&&a(y)?y:[]):S=y&&l(y)?y:{},u(w,{name:m,newValue:d(L,S,b)})):typeof b<"u"&&u(w,{name:m,newValue:b}));return w},sg}var UV=IV();const ag=It(UV);function og(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function PV(){const t=[],e={run:n,use:i};return e;function n(...a){let l=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...a);function f(d,...h){const m=t[++l];let y=-1;if(d){u(d);return}for(;++y<a.length;)(h[y]===null||h[y]===void 0)&&(h[y]=a[y]);a=h,m?qV(m,f)(...h):u(null,...h)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),e}}function qV(t,e){let n;return i;function i(...u){const f=t.length>u.length;let d;f&&u.push(a);try{d=t.apply(this,u)}catch(h){const m=h;if(f&&n)throw m;return a(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(l,a):d instanceof Error?a(d):l(d))}function a(u,...f){n||(n=!0,e(u,...f))}function l(u){a(null,u)}}const Er={basename:FV,dirname:VV,extname:HV,join:GV,sep:"/"};function FV(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Fl(t);let n=0,i=-1,a=t.length,l;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(l){n=a+1;break}}else i<0&&(l=!0,i=a+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let u=-1,f=e.length-1;for(;a--;)if(t.codePointAt(a)===47){if(l){n=a+1;break}}else u<0&&(l=!0,u=a+1),f>-1&&(t.codePointAt(a)===e.codePointAt(f--)?f<0&&(i=a):(f=-1,i=u));return n===i?i=u:i<0&&(i=t.length),t.slice(n,i)}function VV(t){if(Fl(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function HV(t){Fl(t);let e=t.length,n=-1,i=0,a=-1,l=0,u;for(;e--;){const f=t.codePointAt(e);if(f===47){if(u){i=e+1;break}continue}n<0&&(u=!0,n=e+1),f===46?a<0?a=e:l!==1&&(l=1):a>-1&&(l=-1)}return a<0||n<0||l===0||l===1&&a===n-1&&a===i+1?"":t.slice(a,n)}function GV(...t){let e=-1,n;for(;++e<t.length;)Fl(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":KV(n)}function KV(t){Fl(t);const e=t.codePointAt(0)===47;let n=YV(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function YV(t,e){let n="",i=0,a=-1,l=0,u=-1,f,d;for(;++u<=t.length;){if(u<t.length)f=t.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(a===u-1||l===1))if(a!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),a=u,l=0;continue}}else if(n.length>0){n="",i=0,a=u,l=0;continue}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(a+1,u):n=t.slice(a+1,u),i=u-a-1;a=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function Fl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const $V={cwd:XV};function XV(){return"/"}function lg(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function QV(t){if(typeof t=="string")t=new URL(t);else if(!lg(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return ZV(t)}function ZV(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const i=e.codePointAt(n+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(e)}const ug=["history","path","basename","stem","extname","dirname"];class hC{constructor(e){let n;e?lg(e)?n={path:e}:typeof e=="string"||JV(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":$V.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<ug.length;){const l=ug[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let a;for(a in n)ug.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Er.basename(this.path):void 0}set basename(e){fg(e,"basename"),cg(e,"basename"),this.path=Er.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Er.dirname(this.path):void 0}set dirname(e){pC(this.basename,"dirname"),this.path=Er.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Er.extname(this.path):void 0}set extname(e){if(cg(e,"extname"),pC(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Er.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lg(e)&&(e=QV(e)),fg(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Er.basename(this.path,this.extname):void 0}set stem(e){fg(e,"stem"),cg(e,"stem"),this.path=Er.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){const a=this.message(e,n,i);throw a.fatal=!0,a}info(e,n,i){const a=this.message(e,n,i);return a.fatal=void 0,a}message(e,n,i){const a=new Ze(e,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function cg(t,e){if(t&&t.includes(Er.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Er.sep+"`")}function fg(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function pC(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function JV(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const WV=(function(t){const i=this.constructor.prototype,a=i[t],l=function(){return a.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),tH={}.hasOwnProperty;class dg extends WV{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=PV()}copy(){const e=new dg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(ag(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(mg("data",this.frozen),this.namespace[e]=n,this):tH.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mg("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=n.call(e,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=ff(e),i=this.parser||this.Parser;return hg("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),hg("process",this.parser||this.Parser),pg("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(l,u){const f=ff(e),d=i.parse(f);i.run(d,f,function(m,y,b){if(m||!y||!b)return h(m);const v=y,S=i.stringify(v,b);rH(S)?b.value=S:b.result=S,h(m,b)});function h(m,y){m||!y?u(m):l?l(y):n(void 0,y)}}}processSync(e){let n=!1,i;return this.freeze(),hg("processSync",this.parser||this.Parser),pg("processSync",this.compiler||this.Compiler),this.process(e,a),gC("processSync","process",n),i;function a(l,u){n=!0,fC(l),i=u}}run(e,n,i){mC(e),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,f){const d=ff(n);a.run(e,d,h);function h(m,y,b){const v=y||e;m?f(m):u?u(v):i(void 0,v,b)}}}runSync(e,n){let i=!1,a;return this.run(e,n,l),gC("runSync","run",i),a;function l(u,f){fC(u),a=f,i=!0}}stringify(e,n){this.freeze();const i=ff(n),a=this.compiler||this.Compiler;return pg("stringify",a),mC(e),a(e,i)}use(e,...n){const i=this.attachers,a=this.namespace;if(mg("use",this.frozen),e!=null)if(typeof e=="function")d(e,n);else if(typeof e=="object")Array.isArray(e)?f(e):u(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function l(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;d(m,y)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(a.settings=ag(!0,a.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];l(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===h){b=y;break}if(b===-1)i.push([h,...m]);else if(m.length>0){let[v,...S]=m;const w=i[b][1];og(w)&&og(v)&&(v=ag(!0,w,v)),i[b]=[h,v,...S]}}}}const eH=new dg().freeze();function hg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function pg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function mg(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mC(t){if(!og(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function gC(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function ff(t){return nH(t)?t:new hC(t)}function nH(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function rH(t){return typeof t=="string"||iH(t)}function iH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const sH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yC=[],bC={allowDangerousHtml:!0},aH=/^(https?|ircs?|mailto|xmpp)$/i,oH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vC(t){const e=lH(t),n=uH(t);return cH(e.runSync(e.parse(n),n),t)}function lH(t){const e=t.rehypePlugins||yC,n=t.remarkPlugins||yC,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...bC}:bC;return eH().use(FF).use(n).use(BV,i).use(e)}function uH(t){const e=t.children||"",n=new hC;return typeof e=="string"&&(n.value=e),n}function cH(t,e){const n=e.allowedElements,i=e.allowElement,a=e.components,l=e.disallowedElements,u=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||fH;for(const m of oH)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+sH+m.id,void 0);return lC(t,h),k6(t,{Fragment:M.Fragment,components:a,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return u?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let v;for(v in Gm)if(Object.hasOwn(Gm,v)&&Object.hasOwn(m.properties,v)){const S=m.properties[v],w=Gm[v];(w===null||w.includes(m.tagName))&&(m.properties[v]=d(String(S||""),v,m))}}if(m.type==="element"){let v=n?!n.includes(m.tagName):l?l.includes(m.tagName):!1;if(!v&&i&&typeof y=="number"&&(v=!i(m,y,b)),v&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function fH(t){const e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),a=t.indexOf("/");return e===-1||a!==-1&&e>a||n!==-1&&e>n||i!==-1&&e>i||aH.test(t.slice(0,e))?t:""}const dH=({onClick:t,buttons:e})=>M.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>M.jsxs("button",{className:"action-button border-primary-500 text-primary-600 hover:bg-primary-500 flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border-1 bg-white p-2 shadow transition hover:text-white",onClick:()=>t==null?void 0:t(n),children:[M.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),M.jsx("div",{className:"font-semibold",children:n.label})]},n.id))}),hH=({isOpen:t,onClose:e,onMessageTemplateSelect:n,onChatStart:i,onActionButtonSelect:a})=>{const{data:l}=br(),u=I.useRef(null),[f,d]=I.useState(!1),[h,m]=I.useState(!1),{t:y}=mr(),b=()=>{const S=u.current;if(!S)return;m(S.scrollHeight>S.clientHeight);const w=S.scrollTop+S.clientHeight>=S.scrollHeight-20;d(w)};I.useEffect(()=>{b()},[l==null?void 0:l.agentInitMessage]);const v=()=>{const S=u.current;S&&(d(!0),S.scrollTo({top:S.scrollHeight,behavior:"smooth"}),setTimeout(b,16))};return M.jsx(Tl,{children:t&&M.jsxs(rr.div,{initial:{opacity:0,y:30,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:30,scale:.95},transition:{duration:.3,ease:"easeOut"},className:"chat-welcome-message-notification bg-primary-50 fixed right-4 bottom-22 z-[100010] flex max-w-[320px] flex-col gap-2 rounded-2xl p-5 px-4 shadow-xl select-none",children:[M.jsxs("div",{className:"flex justify-between",children:[M.jsxs("div",{className:"text-primary-600 flex items-center gap-3",children:[M.jsx(pl,{className:"transition hover:scale-[1.1]",size:"mds"}),M.jsx("span",{className:"chat-welcome-message-notification-header text-[17px] font-bold",children:l==null?void 0:l.chatbotName})]}),M.jsx(ja,{onClick:e,icon:M.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})]}),M.jsxs("div",{className:"relative",children:[M.jsx("div",{ref:u,onScroll:b,className:"scroll-hidden scroll-smooth-ios max-h-[150px] overflow-y-scroll pr-2",children:M.jsx(vC,{children:l==null?void 0:l.agentInitMessage})}),h&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:`chat-welcome-message-notification-gradient from-primary-50 pointer-events-none absolute bottom-0 left-0 h-8 w-full bg-gradient-to-t to-transparent transition-opacity duration-300 ${f?"opacity-0":"opacity-100"}`}),M.jsx(rr.button,{onClick:v,initial:{opacity:0,y:10},animate:{opacity:f?0:1,y:f?10:0},transition:{duration:.2},className:"text-primary-600 chat-welcome-message-notification-slider-button bg-primary-100 absolute bottom-2 left-1/2 -translate-x-1/2 cursor-pointer rounded-full p-1 shadow-md hover:bg-gray-100",children:M.jsx(y3,{className:"h-4 w-4"})})]})]}),(l==null?void 0:l.messageTemplates)&&l.welcomeNotificationActionsMode===xh.MESSAGE_TEMPLATES&&M.jsx(WE,{messageTemplates:l==null?void 0:l.messageTemplates,size:"sm",onClick:n}),(l==null?void 0:l.actionButtons)&&l.welcomeNotificationActionsMode===xh.ACTION_BUTTONS&&M.jsx(dH,{buttons:l==null?void 0:l.actionButtons,size:"sm",onClick:a}),M.jsx(Bc,{iconRight:M.jsx(Ta,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:i,children:y("startChatButton")})]},"chat-welcome")})},pH={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.1}}},mH={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.1}}},xC={shake:{rotate:[0,-5,5,-4,4,-2,2,0],transition:{duration:.6}}},gH=({onClick:t,hideTitle:e})=>{const{data:n}=br(),i=JP();return I.useEffect(()=>{if(n!=null&&n.animateThumbnail){const a=setInterval(()=>{i.start("shake")},5e3);return()=>clearInterval(a)}},[i,n]),M.jsxs(M.Fragment,{children:[M.jsx(Tl,{children:!e&&M.jsx(rr.div,{className:"fixed right-15 bottom-11 z-100000 flex",initial:"hidden",animate:"visible",exit:"exit",style:{bottom:(n==null?void 0:n.chatbotBubbleBottomOffset)||void 0},children:M.jsx(rr.div,{animate:i,variants:xC,children:M.jsxs(rr.button,{className:ge("bg-primary-100 text-primary-600 chat-thumbnail flex h-fit max-w-[300px] cursor-pointer flex-col gap-1 rounded-3xl p-3 px-4 text-left shadow-lg",(n==null?void 0:n.thumbnailStyle)===pc.STYLE2&&"text-center"),variants:mH,onClick:t,children:[(n==null?void 0:n.thumbnailStyle)===pc.STYLE1&&M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"text-xs",children:n==null?void 0:n.chatbotThumbnailTitle}),M.jsx("span",{className:"text-sm font-semibold",children:n==null?void 0:n.chatbotThumbnailSubtitle})]}),(n==null?void 0:n.thumbnailStyle)===pc.STYLE2&&M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"text-xl font-semibold",children:n==null?void 0:n.chatbotThumbnailTitle}),M.jsx("span",{className:"bg-primary-600 chat-thumbnail-2-button w-full rounded-xl p-2 font-medium text-white",children:n==null?void 0:n.chatbotThumbnailSubtitle})]})]})})})}),M.jsx(rr.div,{className:"fixed right-4 bottom-4 z-100000",initial:"hidden",animate:"visible",exit:"exit",style:{bottom:n!=null&&n.chatbotBubbleBottomOffset?(n==null?void 0:n.chatbotBubbleBottomOffset)-24:void 0},children:M.jsx(rr.button,{className:"cursor-pointer",variants:pH,onClick:t,children:M.jsx(rr.div,{animate:i,variants:xC,children:M.jsx(pl,{isOnline:!0,className:"transition hover:scale-[1.1]",size:"md"})})})})]})},yH={default:"text-gray-700 hover:bg-gray-100",error:"text-red-600 hover:bg-red-100",success:"text-green-600 hover:bg-green-100",warning:"text-yellow-600 hover:bg-yellow-100",info:"text-blue-600 hover:bg-blue-100"};function bH({children:t,items:e,gap:n=5,width:i=208,anchor:a="bottom-start",className:l,itemClassName:u}){const[f,d]=I.useState(!1),h=I.useRef(null);I.useEffect(()=>{const y=v=>{setTimeout(()=>{h.current&&!h.current.contains(v.target)&&d(!1)},0)},b=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("click",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("click",y),document.removeEventListener("keydown",b)}},[]);const m=a==="bottom-end"?"right-0":"left-0";return M.jsxs("div",{className:"relative inline-block",ref:h,children:[M.jsx("div",{className:ge("cursor-pointer",l),onClick:y=>{y.stopPropagation(),d(b=>!b)},children:t}),f&&M.jsx("div",{className:ge("absolute z-50 mt-1 rounded-xl border border-gray-200 bg-white p-1 shadow-sm transition duration-100 ease-out",m),style:{marginTop:n,width:i},children:e.map((y,b)=>M.jsx("div",{children:y.customContent?y.customContent:M.jsxs("button",{onClick:v=>{var S;v.stopPropagation(),(S=y.onClick)==null||S.call(y),d(!1)},className:ge("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-1.5 py-1.5 text-left",yH[y.variant||"default"],u),children:[y.icon&&M.jsx("span",{className:"size-4",children:y.icon}),M.jsx("span",{className:"text-sm font-medium",children:y.label}),M.jsx("span",{className:"text-sm font-medium",children:y.content}),y.shortcut&&M.jsx("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline",children:y.shortcut})]})},b))})]})}const vH=({onClose:t,onNewChat:e,hideClose:n,hideContextMenuButton:i})=>{const{t:a}=mr(),{data:l}=br(),u=()=>M.jsxs("div",{className:"chat-header-avatar-shadow flex w-fit items-center gap-2 rounded-full bg-white p-1 px-2 pr-3 font-medium whitespace-nowrap",children:[M.jsx(pl,{size:"xs"}),M.jsx("span",{children:l==null?void 0:l.chatbotName})]});return M.jsxs("div",{className:"flex w-full justify-between p-4",children:[M.jsx("div",{className:"flex-1 shrink-1",children:!i&&M.jsx(bH,{items:[{content:a("headerDropdown.reloadChat"),icon:M.jsx(m3,{}),onClick:e}],gap:-5,children:M.jsx(ja,{icon:M.jsx(v3,{}),variant:"plain",color:"neutral",size:"small"})})}),u(),M.jsx("div",{className:"flex flex-1 shrink-1 justify-end",children:!n&&M.jsx(ja,{onClick:t,icon:M.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})})]})},xH=({className:t})=>{const{t:e}=mr();return M.jsxs("a",{className:ge("flex items-center justify-center gap-1",t),href:"https://bezvabot.cz",target:"_blank",children:[M.jsx("span",{className:"text-xs font-bold text-gray-400",children:e("poweredByBezvabot")}),M.jsx("img",{src:`${cl.APP_URL}/bezvabot-logo.png`,alt:"Bezvabot logo",className:"h-5"})]})},SH=()=>{const[t,e]=I.useState(navigator.onLine);return I.useEffect(()=>{const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n),window.addEventListener("offline",i),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}},[]),t},wH=({message:t,className:e})=>M.jsxs("div",{className:ge("flex w-full items-center justify-center gap-2 bg-red-400 py-1 text-center text-sm font-bold text-white",e),children:[M.jsx(ow,{className:"w-5 stroke-[3]"}),t]}),SC=t=>{const e=t.getHours().toString().padStart(2,"0"),n=t.getMinutes().toString().padStart(2,"0");return`${e}:${n}`},EH=(t,e)=>t.toLocaleDateString("cs",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\s/g,"");function TH(t){return Date.now()-t.getTime()>864e5}const df=({children:t,role:e,createdAt:n,hideAvatar:i})=>{const{data:a}=br(),l=I.useMemo(()=>{if(n)return TH(n)?M.jsxs(M.Fragment,{children:[EH(n)," ",SC(n)]}):SC(n)},[n]);return M.jsxs("div",{className:ge("flex flex-col items-start gap-1",e===tr.USER&&"items-end"),children:[!i&&M.jsx("div",{className:"text-left text-sm font-medium",children:e===tr.ASSISTANT&&(a==null?void 0:a.chatbotName)}),M.jsxs("div",{className:ge("flex w-[90%] flex-row items-start gap-2",e===tr.USER&&"justify-end"),children:[e===tr.ASSISTANT&&!i&&M.jsx(pl,{size:"sm",className:"shrink-0"}),M.jsxs("div",{className:ge("flex flex-col",i&&"ml-10"),children:[t,M.jsx("div",{className:"mt-1 text-right text-xs",children:l})]})]})]})},CH=({role:t,createdAt:e,content:n})=>n?M.jsx(df,{role:t,createdAt:e,children:M.jsx("div",{className:ge("chat-text-message bg-primary-100 min-h-11 w-fit rounded-3xl rounded-br-3xl px-3.5 py-3 text-[15px] text-gray-900",t===tr.USER&&"chat-text-message-user rounded-br-none bg-[#E7E7E7]",t===tr.ASSISTANT&&"rounded-tl-none"),style:{overflowWrap:"anywhere"},children:M.jsx(vC,{children:n})})}):null,_H=({options:t,onClick:e,isMultiSelect:n})=>{const[i,a]=I.useState([]),{t:l}=mr(),u=d=>{if(!n){e(d);return}a(h=>h.includes(d.value)?h.filter(m=>m!==d.value):[...h,d.value])},f=t.filter(d=>i.includes(d.value));return M.jsx(df,{role:tr.ASSISTANT,hideAvatar:!0,children:M.jsxs("div",{className:"flex flex-col gap-4",children:[M.jsx("div",{className:"grid auto-rows-fr grid-cols-3 gap-3",children:t.map(d=>{const h=i.includes(d.value);return M.jsxs("button",{className:ge("flex cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border p-2 shadow transition",h?"border-primary-500 bg-primary-400 text-white":"border-primary-500 text-primary-600 hover:bg-primary-500 bg-white hover:text-white"),onClick:()=>u(d),children:[M.jsx("span",{className:"flex text-3xl",children:d.emoji}),M.jsx("div",{className:"text-sm font-semibold",children:d.label})]},d.value)})}),n&&M.jsx("div",{className:"flex justify-end",children:M.jsxs("button",{type:"submit",className:"bg-primary-500 hover:bg-primary-400 text-sx flex h-12 w-full cursor-pointer items-center justify-center gap-3 rounded-xl border border-transparent px-4 text-white transition disabled:opacity-50",disabled:f.length===0,onClick:()=>e(f),children:[l("common.confirm"),M.jsx(Ta,{className:"h-5 w-5"})]})})]})})},hf=t=>t.replace(/\D/g,""),AH=({length:t=4,value:e,onChange:n,onComplete:i,autoFocus:a=!0,disabled:l=!1,className:u="",inputClassName:f="",onSubmit:d})=>{const h=typeof e=="string",[m,y]=I.useState("".padEnd(t," ")),b=I.useMemo(()=>(h?hf(e):m).slice(0,t).padEnd(t," "),[h,e,m,t]),v=I.useRef([]);I.useEffect(()=>{a&&v.current[0]&&(v.current[0].focus(),v.current[0].select())},[a]);const S=I.useMemo(()=>b.replace(/ /g,""),[b]),w=S.length===t;I.useEffect(()=>{n==null||n(S),w&&(i==null||i(S))},[S,w,n,i]);const C=(q,N)=>{const H=b.split("");H[q]=N||" ";const Y=H.join("");h?n==null||n(Y.replace(/ /g,"")):y(Y)},_=q=>{const N=v.current[q];N&&(N.focus(),N.select())},L=(q,N)=>{var ft;if(l)return;const H=N.target.value,Y=hf(H);if(Y.length===0){C(q," ");return}const nt=Y.slice(0,t-q).split("");for(let st=0;st<nt.length;st++)C(q+st,nt[st]);const at=Math.min(q+nt.length,t-1);_(at),q+nt.length>=t&&((ft=v.current[t-1])==null||ft.blur())},R=(q,N)=>{var Y;if(l)return;const H=N.key;if(H==="Backspace"){N.preventDefault(),b[q]!==" "?(C(q," "),_(q)):q>0&&(C(q-1," "),_(q-1));return}if(H==="ArrowLeft"&&q>0){N.preventDefault(),_(q-1);return}if(H==="ArrowRight"&&q<t-1){N.preventDefault(),_(q+1);return}if(H.length===1){const nt=hf(H);nt&&(N.preventDefault(),C(q,nt),q<t-1?_(q+1):(Y=v.current[q])==null||Y.blur())}},B=(q,N)=>{var ft;if(l)return;const H=N.clipboardData.getData("text"),Y=hf(H);if(!Y)return;N.preventDefault();const nt=Y.slice(0,t-q).split("");for(let st=0;st<nt.length;st++)C(q+st,nt[st]);const at=Math.min(q+nt.length-1,t-1);at<t-1?_(at+1):(ft=v.current[at])==null||ft.blur()},K=q=>N=>{v.current[q]=N},j=q=>{q.preventDefault(),!(!w||l)&&(d==null||d(S))};return M.jsxs("form",{onSubmit:j,className:`flex items-center gap-3 ${u}`,children:[M.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:t}).map((q,N)=>M.jsx("input",{ref:K(N),type:"text",inputMode:"numeric",pattern:"\\d*",autoComplete:"one-time-code","aria-label":`Ověřovací kód – znak ${N+1} z ${t}`,className:["h-14 w-12 text-center text-2xl font-semibold","border-primary-600 rounded-2xl border","focus:ring-primary-700 focus:ring-2 focus:ring-offset-1 focus:outline-none","disabled:opacity-50","caret-transparent",f].join(" "),maxLength:1,value:b[N]===" "?"":b[N],onChange:H=>L(N,H),onKeyDown:H=>R(N,H),onPaste:H=>B(N,H),disabled:l},N))}),w&&M.jsx("button",{type:"submit",className:"bg-primary-600 hover:bg-primary-500 h-12 cursor-pointer rounded-xl border border-transparent px-4 font-medium text-white transition disabled:opacity-50",disabled:l,children:M.jsx(Ta,{className:"h-5 w-5"})})]})},OH=({type:t,onSubmit:e})=>M.jsx(df,{role:tr.ASSISTANT,hideAvatar:!0,children:t==="verificationCode"&&M.jsx(AH,{onSubmit:e})}),RH=({createdAt:t})=>{const{t:e}=mr();return M.jsx(df,{role:tr.ASSISTANT,createdAt:t,children:M.jsxs("div",{className:"flex min-w-[300px] flex-col items-center justify-center gap-2 rounded-3xl border border-solid border-gray-400 p-4 text-center",children:[M.jsx("div",{className:"rounded-full bg-green-300 p-2",children:M.jsx(t6,{className:"w-5"})}),M.jsxs("div",{className:"flex flex-col gap-1",children:[M.jsx("h2",{className:"font-medium",children:e("contactSavedWidget.title")}),M.jsx("p",{className:"text-xs font-semibold text-gray-400",children:e("contactSavedWidget.subtitle")})]})]})})},wC={chatMessage:{maxLength:300}},kH=({onSubmit:t,isLoading:e,input:n,onInputChange:i,onStop:a})=>{const{t:l}=mr(),u=f=>{f.preventDefault(),!e&&t(f)};return M.jsxs("div",{children:[M.jsxs("form",{className:"relative flex h-fit items-center justify-between gap-2 rounded-full border border-solid border-gray-300 bg-white px-5 py-[13px] pr-[12px]",onSubmit:u,children:[M.jsx("input",{className:"w-full resize-none overflow-y-auto transition placeholder:text-gray-400 focus:outline-none",placeholder:l("chatMessageInputForm.placeholder"),value:n,onChange:i}),e?M.jsx(ja,{icon:M.jsx(h3,{}),variant:"plain",type:"button",onClick:f=>{f.preventDefault(),a==null||a()},size:"xs",color:"neutral"}):M.jsx(ja,{icon:M.jsx(Ta,{}),variant:"plain",type:"submit",size:"xs",color:"neutral"})]}),M.jsx("div",{className:"mt-2 mr-2 flex justify-end",children:M.jsxs("span",{className:ge("text-xs",n.length>wC.chatMessage.maxLength&&"text-red-600"),children:[n.length,"/",wC.chatMessage.maxLength]})})]})},DH=({onReload:t,isReloadPending:e})=>{const{t:n}=mr();return M.jsx("div",{className:"absolute flex h-full w-full items-center justify-center bg-[#ffffffef]",children:M.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 text-center",children:[M.jsx(ow,{className:"text-primary-600 w-24 stroke-[1]"}),M.jsx("div",{className:"text-primary-600 text-lg font-bold",children:n("errors.general.title")}),M.jsx("div",{className:"text-primary-600 text-md max-w-[190px]",children:n("errors.general.description")}),M.jsx(Bc,{variant:"light",className:"mt-4",onClick:t,loading:e,children:n("errors.general.buttonReload")})]})})},NH=({mode:t})=>{const{data:e,error:n,isLoading:i}=IS(),a=fl(q=>q.setSession),l=la(),[u,f]=I.useState(""),{fireEvent:d}=dl(),{mutate:h,isPending:m}=fj(),{data:y}=dj(),{mutate:b,isPending:v,error:S}=hj(),w=(e==null?void 0:e.messages)??[],C=v||m,_=C,L=n||S,R=()=>{a(void 0),l.invalidateQueries({queryKey:[]})},B=q=>{w.length===1&&t===qr.PAGE&&d("fe.chat.page.first-message-sent"),b({message:q})},K=q=>{q.preventDefault(),B(u),d("fe.chat.message.sent"),f("")},j=I.useCallback(q=>{h({messageTemplateId:q.id,content:q.content}),d("fe.chat.message-template.sent",{messageTemplate:q})},[h,d]);return{messages:w,onNewChat:R,isSubmittingMessage:C,isError:L,isChatLoading:i,chatSession:e,handleSubmit:K,input:u,setInput:f,sendMessageTemplate:j,unusedMessageTemplates:y,sendMessage:B,isLoadingMessage:_}},EC=["typingIndicator.a","typingIndicator.b","typingIndicator.c","typingIndicator.d"],MH=["0ms","150ms","300ms"],LH=1e3,zH=3e3,jH=(t,e)=>{let n=t;for(;n===t;)n=Math.floor(Math.random()*e);return n},BH=({className:t})=>{const{t:e}=mr(),n=I.useMemo(()=>EC,[]),[i,a]=I.useState(()=>Math.floor(Math.random()*EC.length)),[l,u]=I.useState(!1);return I.useEffect(()=>{const f=setTimeout(()=>u(!0),LH);return()=>clearTimeout(f)},[]),I.useEffect(()=>{if(!l)return;const f=setInterval(()=>{a(d=>jH(d,n.length))},zH);return()=>clearInterval(f)},[l,n.length]),M.jsxs("div",{className:"flex items-center",children:[M.jsx(pl,{size:"xs"}),M.jsx("div",{className:ge("typing-indicator flex w-fit items-center gap-1 p-4",t),children:MH.map(f=>M.jsx("span",{className:"typing-dot",style:{animationDelay:f}},f))}),l&&M.jsx("div",{className:"relative h-5 overflow-hidden",children:M.jsx(Tl,{mode:"wait",children:M.jsx(rr.span,{initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35,ease:"easeOut"},className:"block text-sm whitespace-nowrap text-gray-500",children:e(n[i])},n[i])})})]})},IH=({options:t,onClick:e,size:n="md"})=>{const i="message-template  border-primary-600 text-primary-600 hover:bg-primary-100 cursor-pointer rounded-lg border bg-white transition",a=n==="sm"?"p-0.5 px-1.5 text-sm":"p-1 px-2 text-left font-medium";return M.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>M.jsx("button",{className:`${i} ${a}`,onClick:()=>e==null?void 0:e(l),children:l},l))})};var qr=(t=>(t.BUBBLE="BUBBLE",t.PAGE="PAGE",t.FULLSCREEN="FULLSCREEN",t))(qr||{});const TC=I.forwardRef(({mode:t="BUBBLE",showContextMenuButton:e=!0,onClose:n,initiallySelectedMessageTemplate:i,clearInitMessageTemplateSelect:a,initUserTextMessage:l,clearInitUserTextMessage:u,setMode:f,showStartChatButton:d,className:h},m)=>{const y=SH(),{t:b}=mr(),{data:v}=br(),S=I.useRef(null),{messages:w,onNewChat:C,isSubmittingMessage:_,isError:L,isChatLoading:R,input:B,handleSubmit:K,sendMessageTemplate:j,unusedMessageTemplates:q,sendMessage:N,setInput:H,isLoadingMessage:Y,chatSession:nt}=NH({mode:t}),at=()=>{var st;(st=S==null?void 0:S.current)==null||st.scrollTo({top:0,behavior:"smooth"})};I.useEffect(()=>{i&&!R&&(j(i),a==null||a())},[i,R,j,a]),I.useEffect(()=>{l&&!R&&(N(l),u==null||u())},[l,R,N,u]),I.useEffect(()=>{at(),setTimeout(at,400)},[w.length]);const ft=I.useMemo(()=>{if(!(nt!=null&&nt.showMessageTemplates))return!0;const st=w[w.length-1];return st?st.messageBlocks.some(it=>it.type==="OPTIONS_SELECT"||it.type==="CODE_INPUT"||it.type==="MESSAGE_TEMPLATE"):!1},[w,nt]);return M.jsxs("div",{ref:m,className:ge("flex w-full flex-col justify-between overflow-hidden bg-gray-100",t==="BUBBLE"&&"chat-shadow mr-4 mb-4 h-[75vh] w-[440px] rounded-3xl",t==="FULLSCREEN"&&"z-[100001] h-[100dvh] w-screen",h),children:[M.jsxs("div",{children:[M.jsx(vH,{onClose:()=>{n==null||n()},onNewChat:C,hideClose:!n,hideContextMenuButton:!e}),!y&&M.jsx(wH,{message:b("errors.offline")})]}),M.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[M.jsx("div",{className:"flex flex-1 grow flex-col-reverse overflow-hidden overflow-y-auto px-5 py-4 will-change-transform",ref:S,children:M.jsxs("div",{className:"flex grow flex-col gap-3",children:[w.map((st,it)=>{const Z=[...st.messageBlocks].sort((P,dt)=>P.order-dt.order),G=it===w.length-1;return M.jsx(Xo.Fragment,{children:Z.map((P,dt)=>{var O,xt,D;if(P.type==="TEXT")return M.jsx(CH,{role:st.role,content:P.content.text},`${it}-${dt}`);if(P.type==="OPTIONS_SELECT"&&G){const E=P.content;return M.jsx(_H,{options:E.options.map(W=>({label:W.label,value:W.value,emoji:W.emoji})),isMultiSelect:E.multiSelect??!1,onClick:W=>{const ct=Array.isArray(W)?W:[W];N(ct.map(vt=>vt.label).join(", "))}},`${it}-${dt}`)}if(P.type==="CODE_INPUT"&&G){const E=P.content;return M.jsx(OH,{type:E.inputType,onSubmit:W=>N(W)},`${it}-${dt}`)}if(P.type==="CONTACT_SAVED_INFOBOX"){const E=P.content;return M.jsx(RH,{fullName:(O=E.contactInfo)==null?void 0:O.fullName,email:(xt=E.contactInfo)==null?void 0:xt.email,phoneNumber:(D=E.contactInfo)==null?void 0:D.phoneNumber},`${it}-${dt}`)}if(P.type==="MESSAGE_TEMPLATE"&&G){const E=P.content;return M.jsx(IH,{options:E.options,onClick:N},`${it}-${dt}`)}return null})},it)}),Y&&M.jsx(BH,{}),!Y&&q&&!_&&!ft&&M.jsx(WE,{messageTemplates:q,onClick:j})]})}),M.jsxs("div",{className:"flex flex-col p-4 px-4",children:[d&&M.jsx(Bc,{iconRight:M.jsx(Ta,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:()=>f==null?void 0:f("FULLSCREEN"),children:b("startChatButton")}),!d&&M.jsx(kH,{onSubmit:st=>{K(st)},input:B,onInputChange:st=>H(st.target.value),isLoading:_}),!(v!=null&&v.chatbotHideLogo)&&M.jsx(xH,{className:"-mt-3"})]}),L&&M.jsx(DH,{onReload:C,isReloadPending:R})]})]})}),Vl={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},pf=["xs","sm","md","lg","xl","2xl"];function CC(t){return t>=Vl["2xl"]?"2xl":t>=Vl.xl?"xl":t>=Vl.lg?"lg":t>=Vl.md?"md":t>=Vl.sm?"sm":"xs"}function UH(){const[t,e]=I.useState(()=>CC(window.innerWidth));return I.useEffect(()=>{const a=()=>{e(CC(window.innerWidth))};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),{breakpoint:t,isAtOrAbove:a=>pf.indexOf(t)>=pf.indexOf(a),isBelow:a=>pf.indexOf(t)<pf.indexOf(a)}}const PH=({onClick:t,buttons:e})=>M.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>M.jsxs("button",{className:"action-button border-primary-500 text-primary-600 hover:bg-primary-500 flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 rounded-xl border-1 bg-white p-2 shadow transition hover:text-white",onClick:()=>t==null?void 0:t(n),children:[M.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),M.jsx("div",{className:"font-semibold",children:n.label})]},n.label))}),qH=({isOpen:t,onClose:e,onChatStart:n,onActionButtonSelect:i})=>{var u,f;const{data:a}=qS(),{t:l}=mr();return M.jsx(Tl,{children:t&&M.jsxs(rr.div,{initial:{opacity:0,y:30,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:30,scale:.95},transition:{duration:.3,ease:"easeOut"},className:"chat-welcome-message-notification bg-primary-50 fixed right-4 bottom-22 z-[100010] flex max-w-[320px] flex-col gap-2 rounded-2xl p-5 px-4 shadow-xl select-none",children:[M.jsxs("div",{className:"flex justify-between",children:[M.jsx("span",{className:"chat-welcome-message-notification-header -mr-6 text-center text-[17px] font-bold",children:(u=a==null?void 0:a.notificationSettings)==null?void 0:u.notificationHeading}),M.jsx(ja,{onClick:e,icon:M.jsx(Nm,{}),variant:"plain",color:"neutral",size:"small"})]}),M.jsxs("div",{className:"overflow-hidden rounded-xl bg-white",children:[(a==null?void 0:a.productImageUrl)&&M.jsx("img",{src:a==null?void 0:a.productImageUrl,className:"h-36 w-full object-cover"}),M.jsx("div",{className:"chat-welcome-message-notification-header p-4 text-center font-bold",children:a==null?void 0:a.name})]}),M.jsx(PH,{buttons:(f=a==null?void 0:a.notificationSettings)==null?void 0:f.buttons,onClick:i,size:"sm"}),M.jsx(Bc,{iconRight:M.jsx(Ta,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:n,children:l("startChatButton")})]},"chat-welcome")})},FH={hidden:{opacity:0,y:200},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.2}}},VH=()=>{const{isBelow:t}=UH(),{onChatStateChange:e,chatState:n,onInitMessageTemplateSelect:i,selectedInitMessageTemplate:a,clearInitMessageTemplateSelect:l,onProductNotificationButtonSelect:u,onWelcomeMessageActionButtonSelect:f,initUserTextMessage:d,clearInitUserMessage:h}=wj();return M.jsxs(M.Fragment,{children:[M.jsx(hH,{isOpen:n===jn.WELCOME_NOTIFICATION,onClose:()=>e(jn.CHAT_CLOSED),onMessageTemplateSelect:i,onChatStart:()=>e(jn.CHAT_OPENED),onActionButtonSelect:f}),M.jsx(qH,{isOpen:n===jn.PRODUCT_DETAIL_NOTIFICATION,onClose:()=>e(jn.CHAT_CLOSED),onChatStart:()=>e(jn.CHAT_OPENED),onActionButtonSelect:u}),M.jsxs(Tl,{mode:"wait",initial:!1,children:[n!==jn.CHAT_OPENED&&M.jsx(gH,{onClick:()=>e(jn.CHAT_OPENED),hideTitle:n!==jn.CHAT_CLOSED},"thumbnail"),n===jn.CHAT_OPENED&&M.jsx(rr.div,{initial:"hidden",animate:"visible",exit:"exit",variants:FH,className:"fixed right-0 bottom-0 z-[100000]",children:M.jsx(TC,{onClose:()=>e(jn.CHAT_CLOSED),initiallySelectedMessageTemplate:a,clearInitMessageTemplateSelect:l,initUserTextMessage:d,clearInitUserTextMessage:h,mode:t("md")?qr.FULLSCREEN:qr.BUBBLE},"chat")})]})]})};var HH=X0();const GH=350,KH=()=>{const[t,e]=I.useState(qr.PAGE),[n,i]=I.useState(!1),a=I.useRef(null);return I.useEffect(()=>{if(!a.current)return;const l=a.current,u=d=>{i(d<GH&&t===qr.PAGE)},f=new ResizeObserver(d=>{for(const h of d)u(h.contentRect.width)});return u(l.offsetWidth),f.observe(l),()=>f.disconnect()},[t]),M.jsx(TC,{ref:a,mode:t,showStartChatButton:n,showContextMenuButton:!n,setMode:e,onClose:t===qr.PAGE?void 0:()=>e(qr.PAGE),className:t===qr.FULLSCREEN?"fixed right-0 bottom-0":void 0})},YH=({children:t})=>{const{data:e}=IS();return e?t:null};function $H({tenantCode:t,externalMountEl:e}){return M.jsx(ij,{children:M.jsx(gj,{tenantCode:t,children:M.jsx(tD,{client:SM,children:M.jsx(mj,{children:M.jsxs(YH,{children:[M.jsx(VH,{}),e?HH.createPortal(M.jsx(KH,{}),e):null]})})})})})}const gg='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:12px;--text-xs--line-height:calc(1/.75);--text-sm:14px;--text-sm--line-height:calc(1.25/.875);--text-lg:18px;--text-lg--line-height:calc(1.75/1.125);--text-xl:20px;--text-xl--line-height:calc(1.75/1.25);--text-2xl:24px;--text-2xl--line-height:calc(2/1.5);--text-3xl:30px;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#f0f7ff;--color-primary-100:#e0eefe;--color-primary-200:#b9ddfe;--color-primary-400:#36a5fa;--color-primary-500:#0c8aeb;--color-primary-600:#006cca;--color-primary-700:#0155a3;--spacing-0:0px;--spacing-0\\.5:2px;--spacing-1:4px;--spacing-1\\.5:6px;--spacing-2:8px;--spacing-3:12px;--spacing-3\\.5:14px;--spacing-4:16px;--spacing-5:20px;--spacing-6:24px;--spacing-7:28px;--spacing-8:32px;--spacing-9:36px;--spacing-10:40px;--spacing-11:44px;--spacing-12:48px;--spacing-14:56px;--spacing-15:60px;--spacing-16:64px;--spacing-24:96px;--spacing-36:144px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start-50{inset-inline-start:calc(var(--spacing)*50)}.top-1{top:var(--spacing-1)}.top-50{top:calc(var(--spacing)*50)}.right-0{right:var(--spacing-0)}.right-4{right:var(--spacing-4)}.right-15{right:var(--spacing-15)}.bottom-0{bottom:var(--spacing-0)}.bottom-2{bottom:var(--spacing-2)}.bottom-4{bottom:var(--spacing-4)}.bottom-11{bottom:var(--spacing-11)}.bottom-22{bottom:calc(var(--spacing)*22)}.left-0{left:var(--spacing-0)}.left-1\\/2{left:50%}.z-50{z-index:50}.z-100000,.z-\\[100000\\]{z-index:100000}.z-\\[100001\\]{z-index:100001}.z-\\[100010\\]{z-index:100010}.col-4{grid-column:4}.col-12{grid-column:12}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:var(--spacing-0)}.mx-1{margin-inline:var(--spacing-1)}.mx-auto{margin-inline:auto}.ms-1{margin-inline-start:var(--spacing-1)}.ms-2{margin-inline-start:var(--spacing-2)}.ms-3{margin-inline-start:var(--spacing-3)}.ms-4{margin-inline-start:var(--spacing-4)}.ms-auto{margin-inline-start:auto}.me-0{margin-inline-end:var(--spacing-0)}.me-2{margin-inline-end:var(--spacing-2)}.me-3{margin-inline-end:var(--spacing-3)}.me-4{margin-inline-end:var(--spacing-4)}.-mt-3{margin-top:calc(var(--spacing-3)*-1)}.mt-1{margin-top:var(--spacing-1)}.mt-2{margin-top:var(--spacing-2)}.mt-4{margin-top:var(--spacing-4)}.mt-5{margin-top:var(--spacing-5)}.mt-6{margin-top:var(--spacing-6)}.-mr-6{margin-right:calc(var(--spacing-6)*-1)}.mr-2{margin-right:var(--spacing-2)}.mr-4{margin-right:var(--spacing-4)}.mb-0{margin-bottom:var(--spacing-0)}.mb-1{margin-bottom:var(--spacing-1)}.mb-2{margin-bottom:var(--spacing-2)}.mb-3{margin-bottom:var(--spacing-3)}.mb-4{margin-bottom:var(--spacing-4)}.mb-5{margin-bottom:var(--spacing-5)}.mb-6{margin-bottom:var(--spacing-6)}.ml-10{margin-left:var(--spacing-10)}.ml-auto{margin-left:auto}.\\!grid{display:grid!important}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-4{width:var(--spacing-4);height:var(--spacing-4)}.h-3{height:var(--spacing-3)}.h-4{height:var(--spacing-4)}.h-5{height:var(--spacing-5)}.h-6{height:var(--spacing-6)}.h-7{height:var(--spacing-7)}.h-8{height:var(--spacing-8)}.h-9{height:var(--spacing-9)}.h-10{height:var(--spacing-10)}.h-11{height:var(--spacing-11)}.h-12{height:var(--spacing-12)}.h-14{height:var(--spacing-14)}.h-15{height:var(--spacing-15)}.h-16{height:var(--spacing-16)}.h-24{height:var(--spacing-24)}.h-36{height:var(--spacing-36)}.h-100{height:calc(var(--spacing)*100)}.h-\\[75vh\\]{height:75vh}.h-\\[100dvh\\]{height:100dvh}.h-fit{height:fit-content}.h-full{height:100%}.max-h-\\[150px\\]{max-height:150px}.min-h-11{min-height:var(--spacing-11)}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing-1)}.w-3{width:var(--spacing-3)}.w-4{width:var(--spacing-4)}.w-5{width:var(--spacing-5)}.w-6{width:var(--spacing-6)}.w-7{width:var(--spacing-7)}.w-8{width:var(--spacing-8)}.w-9{width:var(--spacing-9)}.w-10{width:var(--spacing-10)}.w-11{width:var(--spacing-11)}.w-12{width:var(--spacing-12)}.w-15{width:var(--spacing-15)}.w-16{width:var(--spacing-16)}.w-24{width:var(--spacing-24)}.w-46{width:calc(var(--spacing)*46)}.w-100{width:calc(var(--spacing)*100)}.w-\\[90\\%\\]{width:90%}.w-\\[440px\\]{width:440px}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-\\[190px\\]{max-width:190px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[320px\\]{max-width:320px}.max-w-\\[600px\\]{max-width:600px}.min-w-\\[300px\\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.shrink-1{flex-shrink:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1{--tw-translate-x:var(--spacing-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-6{--tw-translate-x:var(--spacing-6);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing-1)}.gap-2{gap:var(--spacing-2)}.gap-3{gap:var(--spacing-3)}.gap-4{gap:var(--spacing-4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-tl-none{border-top-left-radius:0}.rounded-br-3xl{border-bottom-right-radius:var(--radius-3xl)}.rounded-br-none{border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-5{border-style:var(--tw-border-style);border-width:5px}.border-solid{--tw-border-style:solid;border-style:solid}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-green-500{border-color:var(--color-green-500)}.border-neutral-500{border-color:var(--color-neutral-500)}.border-primary-500{border-color:var(--color-primary-500)}.border-primary-600{border-color:var(--color-primary-600)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#E7E7E7\\]{background-color:#e7e7e7}.bg-\\[\\#ffffffef\\]{background-color:#ffffffef}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-300{background-color:var(--color-green-300)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-primary-50{background-color:var(--color-primary-50)}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-400{background-color:var(--color-primary-400)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-white{background-color:var(--color-white)}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-primary-50{--tw-gradient-from:var(--color-primary-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-\\[1\\]{stroke-width:1px}.stroke-\\[3\\]{stroke-width:3px}.object-cover{object-fit:cover}.p-0{padding:var(--spacing-0)}.p-0\\.5{padding:var(--spacing-0\\.5)}.p-1{padding:var(--spacing-1)}.p-2{padding:var(--spacing-2)}.p-3{padding:var(--spacing-3)}.p-4{padding:var(--spacing-4)}.p-5{padding:var(--spacing-5)}.px-0{padding-inline:var(--spacing-0)}.px-1{padding-inline:var(--spacing-1)}.px-1\\.5{padding-inline:var(--spacing-1\\.5)}.px-2{padding-inline:var(--spacing-2)}.px-3{padding-inline:var(--spacing-3)}.px-3\\.5{padding-inline:var(--spacing-3\\.5)}.px-4{padding-inline:var(--spacing-4)}.px-5{padding-inline:var(--spacing-5)}.px-6{padding-inline:var(--spacing-6)}.py-1{padding-block:var(--spacing-1)}.py-1\\.5{padding-block:var(--spacing-1\\.5)}.py-2{padding-block:var(--spacing-2)}.py-3{padding-block:var(--spacing-3)}.py-4{padding-block:var(--spacing-4)}.py-5{padding-block:var(--spacing-5)}.py-\\[13px\\]{padding-block:13px}.ps-3{padding-inline-start:var(--spacing-3)}.pe-3{padding-inline-end:var(--spacing-3)}.pt-0{padding-top:var(--spacing-0)}.pt-2{padding-top:var(--spacing-2)}.pt-3{padding-top:var(--spacing-3)}.pt-4{padding-top:var(--spacing-4)}.pt-5{padding-top:var(--spacing-5)}.pt-6{padding-top:var(--spacing-6)}.pr-2{padding-right:var(--spacing-2)}.pr-3{padding-right:var(--spacing-3)}.pr-\\[12px\\]{padding-right:12px}.pb-5{padding-bottom:var(--spacing-5)}.pb-6{padding-bottom:var(--spacing-6)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab,red,red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-700{color:var(--color-neutral-700)}.text-primary-400{color:var(--color-primary-400)}.text-primary-500{color:var(--color-primary-500)}.text-primary-600{color:var(--color-primary-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.caret-transparent{caret-color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-gray-100\\/50{--tw-shadow-color:#f3f4f680}@supports (color:color-mix(in lab,red,red)){.shadow-gray-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-gray-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-gray-500\\/50{--tw-shadow-color:#6a728280}@supports (color:color-mix(in lab,red,red)){.shadow-gray-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-gray-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-green-100\\/50{--tw-shadow-color:#dcfce780}@supports (color:color-mix(in lab,red,red)){.shadow-green-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-green-500\\/50{--tw-shadow-color:#00c75880}@supports (color:color-mix(in lab,red,red)){.shadow-green-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-green-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-neutral-200\\/50{--tw-shadow-color:#e5e5e580}@supports (color:color-mix(in lab,red,red)){.shadow-neutral-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-neutral-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-neutral-500\\/50{--tw-shadow-color:#73737380}@supports (color:color-mix(in lab,red,red)){.shadow-neutral-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-neutral-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-primary-100\\/50{--tw-shadow-color:#e0eefe80}@supports (color:color-mix(in lab,red,red)){.shadow-primary-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-primary-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-primary-500\\/50{--tw-shadow-color:#0c8aeb80}@supports (color:color-mix(in lab,red,red)){.shadow-primary-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-primary-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-red-100\\/50{--tw-shadow-color:#ffe2e280}@supports (color:color-mix(in lab,red,red)){.shadow-red-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-red-500\\/50{--tw-shadow-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.shadow-red-500\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-500)50%,transparent)var(--tw-shadow-alpha),transparent)}}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:inline:is(:where(.group):hover *){display:inline}}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media(hover:hover){.hover\\:scale-\\[1\\.1\\]:hover{scale:1.1}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\\:bg-neutral-600:hover{background-color:var(--color-neutral-600)}.hover\\:bg-primary-100:hover{background-color:var(--color-primary-100)}.hover\\:bg-primary-200:hover{background-color:var(--color-primary-200)}.hover\\:bg-primary-400:hover{background-color:var(--color-primary-400)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-primary-600:hover{background-color:var(--color-primary-600)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\\:text-primary-600:hover{color:var(--color-primary-600)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-primary-700:focus{--tw-ring-color:var(--color-primary-700)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-\\[0\\.99\\]:active{scale:.99}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}}*{font-family:Inter,sans-serif}.scroll-hidden{-ms-overflow-style:none;scrollbar-width:none}.scroll-hidden::-webkit-scrollbar{display:none}.scroll-gutter-stable{scrollbar-gutter:stable both-edges}.scroll-smooth-ios{-webkit-overflow-scrolling:touch}.chat-shadow{box-shadow:0 0 42px -11px #42445a}.chat-header-avatar-shadow{box-shadow:0 2px 7.9px 2px #42445a24}.chat-thumbnail{background-color:var(--chat-thumbnail-bg,var(--color-primary-100));color:var(--chat-thumbnail-text,var(--color-primary-600))}.chat-text-message{background-color:var(--chat-text-message-bg,var(--color-primary-100));color:var(--chat-text-message-text,var(--color-gray-800))}.chat-text-message-user{background-color:var(--chat-text-message-user-bg,#e7e7e7);color:var(--chat-text-message-user-text,var(--color-gray-800))}.typing-dot{height:var(--spacing-1);width:var(--spacing-1);background-color:var(--color-gray-500);background-color:var(--typing-dot,var(--color-gray-500));border-radius:3.40282e38px;animation:.8s ease-in-out infinite typing-dot}.message-template{border-color:var(--message-template-border,var(--color-primary-600));color:var(--message-template-text,var(--color-primary-600))}.message-template:hover{background-color:var(--chat-text-message-bg-hover,var(--color-primary-100))}.action-button{border-color:var(--action-button-border,var(--color-primary-500));background-color:var(--action-button-bg,var(--color-white));color:var(--action-button-text,var(--color-primary-600))}.action-button:hover{background-color:var(--action-button-bg-hover,var(--color-primary-100));color:var(--action-button-text-hover,var(--color-primary-600))}.chat-welcome-message-notification{background-color:var(--chat-welcome-message-notification-bg,var(--color-primary-50));color:var(--chat-welcome-message-notification-text,var(--color-gray-800))}.chat-welcome-message-notification-header{color:var(--chat-welcome-message-notification-header-text,var(--color-primary-600))}.chat-welcome-message-notification-button{background-color:var(--chat-welcome-message-notification-button-bg,var(--color-primary-500));color:var(--chat-welcome-message-notification-button-text,#fff)}.chat-welcome-message-notification-gradient{background-image:linear-gradient(to top,var(--chat-welcome-message-notification-bg,var(--color-primary-50)),transparent)}.chat-welcome-message-notification-slider-button{background-color:var(--chat-welcome-message-notification-slider-button-bg,var(--color-primary-100));color:var(--chat-welcome-message-notification-slider-button,var(--color-primary-600))}.chat-thumbnail-2-button{background-color:var(--chat-thumbnail-2-button-bg,var(--color-primary-600));color:var(--chat-thumbnail-2-text,var(--color-white))}.border,.border-0,.border-1,.border-4,.border-5{--tw-border-style:solid}@keyframes typing-dot{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-6px)}}p:not(:last-child){margin-bottom:.5rem}ul,ol{margin-bottom:.5rem;padding-left:1.25rem}ul{list-style-type:disc}ol{list-style-type:decimal}li{margin-bottom:.25rem}a{text-decoration:underline}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';rj({dsn:"https://0a3c25c0b2fc31d86dc455e092b4b019@o4510499205218304.ingest.de.sentry.io/4510499206332496",sendDefaultPii:!0,beforeSend(t){return(t.tags||{}).embed?t:null}});function XH(t={}){var h;const e="chatbot-widget-container";if(document.getElementById(e))return;const n=document.createElement("div");n.id=e,document.body.appendChild(n);const i=n.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=gg,i.appendChild(a);const l=document.createElement("div");i.appendChild(l);let u=null;const f=document.getElementById("bezvabot-container");if(f){const m=(h=f.attachShadow)==null?void 0:h.call(f,{mode:"open"});if(m){const y=document.createElement("style");y.textContent=gg,m.appendChild(y);const b=document.createElement("div");b.style="max-height:100%; display:flex; height:100%;",m.appendChild(b),u=b}else{const y=document.createElement("style");y.textContent=gg,f.appendChild(y);const b=document.createElement("div");f.appendChild(b),u=b}}VR.createRoot(l).render(M.jsx($H,{tenantCode:t.tenantCode,externalMountEl:u}))}window.ChatbotWidget={init:XH}})();
